From 51f9a6fd0dc9ad22df7e93a070aced34a8d99a7a Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Tue, 4 Sep 2018 14:49:12 -0700 Subject: [PATCH] make grpc work on Mac OSX with premake --- build3/premake4.lua | 84 +- examples/RobotSimulator/premake4.lua | 10 + .../SharedMemory/grpc/ConvertGRPCBullet.cpp | 5 +- examples/SharedMemory/grpc/premake4.lua | 42 +- .../SharedMemory/grpc/pybullet.grpc.pb.cpp | 33 +- examples/SharedMemory/grpc/pybullet.grpc.pb.h | 61 +- examples/SharedMemory/grpc/pybullet.pb.cpp | 14121 ++++++---------- examples/SharedMemory/grpc/pybullet.pb.h | 4832 ++++-- examples/SharedMemory/grpc/pybullet_client.py | 8 +- examples/SharedMemory/premake4.lua | 4 +- 10 files changed, 8289 insertions(+), 10911 deletions(-) diff --git a/build3/premake4.lua b/build3/premake4.lua index 324344c40..967f326ec 100644 --- a/build3/premake4.lua +++ b/build3/premake4.lua @@ -72,10 +72,81 @@ newoption { - trigger = "grpc", + trigger = "enable_grpc", description = "Build GRPC server/client features for PyBullet/BulletRobotics" - } + } + + if os.is("Linux") then + default_grpc_include_dir = "usr/local/include/GRPC" + default_grpc_lib_dir = "/usr/local/lib/" + end + + if os.is("macosx") then + default_grpc_include_dir = "/usr/local/Cellar/grpc/1.14.1/include" + default_grpc_lib_dir = "/usr/local/Cellar/grpc/1.14.1/lib" + default_protobuf_include_dir = "/usr/local/Cellar/protobuf/3.6.0/include/" + default_protobuf_lib_dir = "/usr/local/Cellar/protobuf/3.6.0/lib" + end + + if os.is("Windows") then + default_grpc_include_dir = "c:/grpc/include" + default_grpc_lib_dir = "c:/grpc/lib" + end + + newoption + { + trigger = "grpc_include_dir", + value = default_grpc_include_dir, + description = "(optional) GRPC include directory" + } + + newoption + { + trigger = "grpc_lib_dir", + value = default_grpc_lib_dir, + description = "(optional) GRPC library directory " + } + + + newoption + { + trigger = "protobuf_include_dir", + value = default_protobuf_include_dir, + description = "(optional) protobuf include directory" + } + + newoption + { + trigger = "protobuf_lib_dir", + value = default_protobuf_lib_dir, + description = "(optional) protobuf library directory " + } + + + if _OPTIONS["enable_grpc"] then + function initGRPC() + buildoptions { "-std=c++11", "-stdlib=libc++" } + + defines {"BT_ENABLE_GRPC"} + + includedirs { + _OPTIONS["grpc_include_dir"], _OPTIONS["protobuf_include_dir"], + } + + libdirs { + _OPTIONS["grpc_lib_dir"], _OPTIONS["protobuf_lib_dir"], + } + links { "grpc","grpc++", "grpc++_reflection", "gpr", "protobuf"} + files { projectRootDir .. "examples/SharedMemory/grpc/ConvertGRPCBullet.cpp", + projectRootDir .. "examples/SharedMemory/grpc/ConvertGRPCBullet.h", + projectRootDir .. "examples/SharedMemory/grpc/pybullet.grpc.pb.cpp", + projectRootDir .. "examples/SharedMemory/grpc/pybullet.grpc.pb.h", + projectRootDir .. "examples/SharedMemory/grpc/pybullet.pb.cpp", + projectRootDir .. "examples/SharedMemory/grpc/pybullet.pb.h", } + end + + end -- _OPTIONS["midi"] = "1"; @@ -201,10 +272,6 @@ end defines {"BT_USE_DOUBLE_PRECISION"} end - if _OPTIONS["grpc"] then - defines {"BT_ENABLE_GRPC"} - end - configurations {"Release", "Debug"} configuration "Release" flags { "Optimize", "EnableSSE2","StaticRuntime", "NoMinimalRebuild", "FloatFast"} @@ -299,6 +366,9 @@ if os.is("Windows") then default_glfw_lib_name = "glfw3" end + + + if not _OPTIONS["glfw_lib_dir"] then _OPTIONS["glfw_lib_dir"] = default_glfw_lib_dir end @@ -342,8 +412,6 @@ end if _OPTIONS["enable_glfw"] then defines {"B3_USE_GLFW"} - - function initOpenGL() includedirs { projectRootDir .. "examples/ThirdPartyLibs/glad" diff --git a/examples/RobotSimulator/premake4.lua b/examples/RobotSimulator/premake4.lua index 37eb9197f..21c98fafe 100644 --- a/examples/RobotSimulator/premake4.lua +++ b/examples/RobotSimulator/premake4.lua @@ -9,6 +9,16 @@ project ("App_RobotSimulator") "../../examples/ThirdPartyLibs"} defines {"B3_USE_ROBOTSIM_GUI", "PHYSICS_IN_PROCESS_EXAMPLE_BROWSER"} + if _OPTIONS["enable_grpc"] then + initGRPC() + files { + "../../examples/SharedMemory/PhysicsClientGRPC.cpp", + "../../examples/SharedMemory/PhysicsClientGRPC.h", + "../../examples/SharedMemory/PhysicsClientGRPC_C_API.cpp", + "../../examples/SharedMemory/PhysicsClientGRPC_C_API.h", + } + end + links{"BulletRobotics", "BulletExampleBrowserLib", "gwen", "OpenGL_Window","BulletFileLoader","BulletWorldImporter","BulletSoftBody", "BulletInverseDynamicsUtils", "BulletInverseDynamics", "BulletDynamics","BulletCollision","LinearMath","Bullet3Common"} initOpenGL() diff --git a/examples/SharedMemory/grpc/ConvertGRPCBullet.cpp b/examples/SharedMemory/grpc/ConvertGRPCBullet.cpp index 00bf11096..d45621dc5 100644 --- a/examples/SharedMemory/grpc/ConvertGRPCBullet.cpp +++ b/examples/SharedMemory/grpc/ConvertGRPCBullet.cpp @@ -546,6 +546,7 @@ SharedMemoryCommand* convertGRPCToBulletCommand(const PyBulletCommand& grpcComma } + int sz = grpcCommand.unknowncommandbinaryblob_size(); if (sz) { @@ -571,7 +572,7 @@ SharedMemoryCommand* convertGRPCToBulletCommand(const PyBulletCommand& grpcComma if (cmdPtr == 0) { - switch (grpcCommand.commandtype()) + switch (cmd.m_type) { case CMD_RESET_SIMULATION: @@ -1244,7 +1245,7 @@ SharedMemoryCommand* convertGRPCToBulletCommand(const PyBulletCommand& grpcComma printf("unknown convertGRPCToBulletCommand"); assert(0); } - } + } } diff --git a/examples/SharedMemory/grpc/premake4.lua b/examples/SharedMemory/grpc/premake4.lua index 814fb3e06..05299a470 100644 --- a/examples/SharedMemory/grpc/premake4.lua +++ b/examples/SharedMemory/grpc/premake4.lua @@ -7,21 +7,8 @@ project ("App_PhysicsServerSharedMemoryBridgeGRPC") includedirs {"../../ThirdPartyLibs/clsocket/src","../../../src",".."} + initGRPC() - if os.is("Windows") then - defines { "WIN32", "_WIN32_WINNT=0x0600" } - includedirs {"../../ThirdPartyLibs/grpc/include"} - libdirs {"../../ThirdPartyLibs/grpc/lib/win64"} - links {"grpc","grpc++","grpc++_reflection","gpr", - "libprotobufd","crypto","ssl","zlibstaticd","Ws2_32","Winmm" } - end - if os.is("Linux") then - defines {"_LINUX"} - end - if os.is("MacOSX") then - defines {"_DARWIN"} - end - links { "BulletFileLoader", "Bullet3Common", @@ -30,12 +17,6 @@ project ("App_PhysicsServerSharedMemoryBridgeGRPC") files { "main.cpp", - "ConvertGRPCBullet.cpp", - "ConvertGRPCBullet.h", - "pybullet.grpc.pb.cpp", - "pybullet.grpc.pb.h", - "pybullet.pb.cpp", - "pybullet.pb.h", "../PhysicsClient.cpp", "../PhysicsClient.h", "../PhysicsDirect.cpp", @@ -73,21 +54,8 @@ links { } + initGRPC() - if os.is("Windows") then - defines { "WIN32", "_WIN32_WINNT=0x0600" } - includedirs {"../../ThirdPartyLibs/grpc/include"} - libdirs {"../../ThirdPartyLibs/grpc/lib/win64"} - links {"grpc","grpc++","grpc++_reflection","gpr", - "libprotobufd","crypto","ssl","zlibstaticd","Ws2_32","Winmm" } - end - if os.is("Linux") then - defines {"_LINUX"} - links{"dl"} - end - if os.is("MacOSX") then - defines {"_DARWIN"} - end language "C++" @@ -156,11 +124,5 @@ myfiles = files { myfiles, "main.cpp", - "ConvertGRPCBullet.cpp", - "ConvertGRPCBullet.h", - "pybullet.grpc.pb.cpp", - "pybullet.grpc.pb.h", - "pybullet.pb.cpp", - "pybullet.pb.h", } diff --git a/examples/SharedMemory/grpc/pybullet.grpc.pb.cpp b/examples/SharedMemory/grpc/pybullet.grpc.pb.cpp index 36ab7c4bc..5f36b6874 100644 --- a/examples/SharedMemory/grpc/pybullet.grpc.pb.cpp +++ b/examples/SharedMemory/grpc/pybullet.grpc.pb.cpp @@ -5,14 +5,14 @@ #include "pybullet.pb.h" #include "pybullet.grpc.pb.h" -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include namespace pybullet_grpc { static const char* PyBulletAPI_method_names[] = { @@ -20,27 +20,32 @@ static const char* PyBulletAPI_method_names[] = { }; std::unique_ptr< PyBulletAPI::Stub> PyBulletAPI::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; std::unique_ptr< PyBulletAPI::Stub> stub(new PyBulletAPI::Stub(channel)); return stub; } PyBulletAPI::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) - : channel_(channel), rpcmethod_SubmitCommand_(PyBulletAPI_method_names[0], ::grpc::RpcMethod::NORMAL_RPC, channel) + : channel_(channel), rpcmethod_SubmitCommand_(PyBulletAPI_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status PyBulletAPI::Stub::SubmitCommand(::grpc::ClientContext* context, const ::pybullet_grpc::PyBulletCommand& request, ::pybullet_grpc::PyBulletStatus* response) { - return ::grpc::BlockingUnaryCall(channel_.get(), rpcmethod_SubmitCommand_, context, request, response); + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SubmitCommand_, context, request, response); } ::grpc::ClientAsyncResponseReader< ::pybullet_grpc::PyBulletStatus>* PyBulletAPI::Stub::AsyncSubmitCommandRaw(::grpc::ClientContext* context, const ::pybullet_grpc::PyBulletCommand& request, ::grpc::CompletionQueue* cq) { - return new ::grpc::ClientAsyncResponseReader< ::pybullet_grpc::PyBulletStatus>(channel_.get(), cq, rpcmethod_SubmitCommand_, context, request); + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::pybullet_grpc::PyBulletStatus>::Create(channel_.get(), cq, rpcmethod_SubmitCommand_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::pybullet_grpc::PyBulletStatus>* PyBulletAPI::Stub::PrepareAsyncSubmitCommandRaw(::grpc::ClientContext* context, const ::pybullet_grpc::PyBulletCommand& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::pybullet_grpc::PyBulletStatus>::Create(channel_.get(), cq, rpcmethod_SubmitCommand_, context, request, false); } PyBulletAPI::Service::Service() { - AddMethod(new ::grpc::RpcServiceMethod( + AddMethod(new ::grpc::internal::RpcServiceMethod( PyBulletAPI_method_names[0], - ::grpc::RpcMethod::NORMAL_RPC, - new ::grpc::RpcMethodHandler< PyBulletAPI::Service, ::pybullet_grpc::PyBulletCommand, ::pybullet_grpc::PyBulletStatus>( + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< PyBulletAPI::Service, ::pybullet_grpc::PyBulletCommand, ::pybullet_grpc::PyBulletStatus>( std::mem_fn(&PyBulletAPI::Service::SubmitCommand), this))); } diff --git a/examples/SharedMemory/grpc/pybullet.grpc.pb.h b/examples/SharedMemory/grpc/pybullet.grpc.pb.h index e7787f82b..4712d0a3c 100644 --- a/examples/SharedMemory/grpc/pybullet.grpc.pb.h +++ b/examples/SharedMemory/grpc/pybullet.grpc.pb.h @@ -6,20 +6,20 @@ #include "pybullet.pb.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace grpc { class CompletionQueue; class Channel; -class RpcService; class ServerCompletionQueue; class ServerContext; } // namespace grpc @@ -28,6 +28,9 @@ namespace pybullet_grpc { class PyBulletAPI final { public: + static constexpr char const* service_full_name() { + return "pybullet_grpc.PyBulletAPI"; + } class StubInterface { public: virtual ~StubInterface() {} @@ -36,8 +39,12 @@ class PyBulletAPI final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pybullet_grpc::PyBulletStatus>> AsyncSubmitCommand(::grpc::ClientContext* context, const ::pybullet_grpc::PyBulletCommand& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pybullet_grpc::PyBulletStatus>>(AsyncSubmitCommandRaw(context, request, cq)); } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pybullet_grpc::PyBulletStatus>> PrepareAsyncSubmitCommand(::grpc::ClientContext* context, const ::pybullet_grpc::PyBulletCommand& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pybullet_grpc::PyBulletStatus>>(PrepareAsyncSubmitCommandRaw(context, request, cq)); + } private: virtual ::grpc::ClientAsyncResponseReaderInterface< ::pybullet_grpc::PyBulletStatus>* AsyncSubmitCommandRaw(::grpc::ClientContext* context, const ::pybullet_grpc::PyBulletCommand& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::pybullet_grpc::PyBulletStatus>* PrepareAsyncSubmitCommandRaw(::grpc::ClientContext* context, const ::pybullet_grpc::PyBulletCommand& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -46,11 +53,15 @@ class PyBulletAPI final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pybullet_grpc::PyBulletStatus>> AsyncSubmitCommand(::grpc::ClientContext* context, const ::pybullet_grpc::PyBulletCommand& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pybullet_grpc::PyBulletStatus>>(AsyncSubmitCommandRaw(context, request, cq)); } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pybullet_grpc::PyBulletStatus>> PrepareAsyncSubmitCommand(::grpc::ClientContext* context, const ::pybullet_grpc::PyBulletCommand& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pybullet_grpc::PyBulletStatus>>(PrepareAsyncSubmitCommandRaw(context, request, cq)); + } private: std::shared_ptr< ::grpc::ChannelInterface> channel_; ::grpc::ClientAsyncResponseReader< ::pybullet_grpc::PyBulletStatus>* AsyncSubmitCommandRaw(::grpc::ClientContext* context, const ::pybullet_grpc::PyBulletCommand& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::RpcMethod rpcmethod_SubmitCommand_; + ::grpc::ClientAsyncResponseReader< ::pybullet_grpc::PyBulletStatus>* PrepareAsyncSubmitCommandRaw(::grpc::ClientContext* context, const ::pybullet_grpc::PyBulletCommand& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_SubmitCommand_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -73,7 +84,7 @@ class PyBulletAPI final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SubmitCommand(::grpc::ServerContext* context, const ::pybullet_grpc::PyBulletCommand* request, ::pybullet_grpc::PyBulletStatus* response) final override { + ::grpc::Status SubmitCommand(::grpc::ServerContext* context, const ::pybullet_grpc::PyBulletCommand* request, ::pybullet_grpc::PyBulletStatus* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -94,25 +105,45 @@ class PyBulletAPI final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SubmitCommand(::grpc::ServerContext* context, const ::pybullet_grpc::PyBulletCommand* request, ::pybullet_grpc::PyBulletStatus* response) final override { + ::grpc::Status SubmitCommand(::grpc::ServerContext* context, const ::pybullet_grpc::PyBulletCommand* request, ::pybullet_grpc::PyBulletStatus* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template + class WithRawMethod_SubmitCommand : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_SubmitCommand() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_SubmitCommand() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SubmitCommand(::grpc::ServerContext* context, const ::pybullet_grpc::PyBulletCommand* request, ::pybullet_grpc::PyBulletStatus* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSubmitCommand(::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 WithStreamedUnaryMethod_SubmitCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithStreamedUnaryMethod_SubmitCommand() { ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::StreamedUnaryHandler< ::pybullet_grpc::PyBulletCommand, ::pybullet_grpc::PyBulletStatus>(std::bind(&WithStreamedUnaryMethod_SubmitCommand::StreamedSubmitCommand, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::pybullet_grpc::PyBulletCommand, ::pybullet_grpc::PyBulletStatus>(std::bind(&WithStreamedUnaryMethod_SubmitCommand::StreamedSubmitCommand, this, std::placeholders::_1, std::placeholders::_2))); } ~WithStreamedUnaryMethod_SubmitCommand() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status SubmitCommand(::grpc::ServerContext* context, const ::pybullet_grpc::PyBulletCommand* request, ::pybullet_grpc::PyBulletStatus* response) final override { + ::grpc::Status SubmitCommand(::grpc::ServerContext* context, const ::pybullet_grpc::PyBulletCommand* request, ::pybullet_grpc::PyBulletStatus* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } diff --git a/examples/SharedMemory/grpc/pybullet.pb.cpp b/examples/SharedMemory/grpc/pybullet.pb.cpp index ee70a400b..5f56e6332 100644 --- a/examples/SharedMemory/grpc/pybullet.pb.cpp +++ b/examples/SharedMemory/grpc/pybullet.pb.cpp @@ -1,70 +1,167 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: pybullet.proto -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "pybullet.pb.h" #include #include #include -#include #include #include #include #include #include #include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif // @@protoc_insertion_point(includes) +namespace protobuf_pybullet_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CheckVersionCommand; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CheckVersionStatus; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GetDynamicsCommand; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_InitPoseCommand; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_JointMotorControlCommand; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_KeyboardEvent; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_LoadMjcfCommand; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_LoadSdfCommand; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_LoadUrdfStatus; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MjcfLoadedStatus; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RequestActualStateCommand; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RequestBodyInfoCommand; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RequestBodyInfoStatus; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RequestCameraImageStatus; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RequestKeyboardEventsCommand; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SdfLoadedStatus; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SendActualStateStatus; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StepSimulationCommand; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SyncBodiesCommand; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SyncBodiesStatus; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TerminateServerCommand; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_UserConstraintStatus; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_matrix4x4; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_quat4; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_vec3; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ChangeDynamicsCommand; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ConfigureOpenGLVisualizerCommand; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_GetDynamicsStatus; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_KeyboardEventsStatus; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_PhysicsSimulationParameters; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_PhysicsSimulationParametersCommand; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_UserConstraintStateStatus; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_LoadUrdfCommand; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_RequestCameraImageCommand; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_UserConstraintCommand; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_transform; +} // namespace protobuf_pybullet_2eproto namespace pybullet_grpc { -class vec3DefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class vec3DefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _vec3_default_instance_; -class quat4DefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class quat4DefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _quat4_default_instance_; -class vec4DefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class vec4DefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _vec4_default_instance_; -class transformDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class transformDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _transform_default_instance_; -class matrix4x4DefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class matrix4x4DefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _matrix4x4_default_instance_; -class CheckVersionCommandDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class CheckVersionCommandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _CheckVersionCommand_default_instance_; -class CheckVersionStatusDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class CheckVersionStatusDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _CheckVersionStatus_default_instance_; -class TerminateServerCommandDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class TerminateServerCommandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _TerminateServerCommand_default_instance_; -class StepSimulationCommandDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class StepSimulationCommandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _StepSimulationCommand_default_instance_; -class SyncBodiesCommandDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class SyncBodiesCommandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _SyncBodiesCommand_default_instance_; -class SyncBodiesStatusDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class SyncBodiesStatusDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _SyncBodiesStatus_default_instance_; -class RequestBodyInfoCommandDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class RequestBodyInfoCommandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _RequestBodyInfoCommand_default_instance_; -class RequestBodyInfoStatusDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class RequestBodyInfoStatusDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _RequestBodyInfoStatus_default_instance_; -class LoadUrdfCommandDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { - public: +class LoadUrdfCommandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; ::google::protobuf::int32 usemultibody_; bool usefixedbase_; double globalscaling_; } _LoadUrdfCommand_default_instance_; -class LoadUrdfStatusDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class LoadUrdfStatusDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _LoadUrdfStatus_default_instance_; -class LoadSdfCommandDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { - public: +class LoadSdfCommandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; ::google::protobuf::int32 usemultibody_; double globalscaling_; } _LoadSdfCommand_default_instance_; -class SdfLoadedStatusDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class SdfLoadedStatusDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _SdfLoadedStatus_default_instance_; -class LoadMjcfCommandDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class LoadMjcfCommandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _LoadMjcfCommand_default_instance_; -class MjcfLoadedStatusDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class MjcfLoadedStatusDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _MjcfLoadedStatus_default_instance_; -class ChangeDynamicsCommandDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { - public: +class ChangeDynamicsCommandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; double mass_; double lateralfriction_; double spinningfriction_; @@ -80,42 +177,95 @@ class ChangeDynamicsCommandDefaultTypeInternal : public ::google::protobuf::inte double contactprocessingthreshold_; ::google::protobuf::int32 activationstate_; } _ChangeDynamicsCommand_default_instance_; -class GetDynamicsCommandDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class GetDynamicsCommandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _GetDynamicsCommand_default_instance_; -class GetDynamicsStatusDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class GetDynamicsStatusDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _GetDynamicsStatus_default_instance_; -class InitPoseCommandDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class InitPoseCommandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _InitPoseCommand_default_instance_; -class RequestActualStateCommandDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class RequestActualStateCommandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _RequestActualStateCommand_default_instance_; -class SendActualStateStatusDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class SendActualStateStatusDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _SendActualStateStatus_default_instance_; -class ConfigureOpenGLVisualizerCommandDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class ConfigureOpenGLVisualizerCommandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _ConfigureOpenGLVisualizerCommand_default_instance_; -class PhysicsSimulationParametersDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class PhysicsSimulationParametersDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _PhysicsSimulationParameters_default_instance_; -class PhysicsSimulationParametersCommandDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class PhysicsSimulationParametersCommandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _PhysicsSimulationParametersCommand_default_instance_; -class JointMotorControlCommandDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class JointMotorControlCommandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _JointMotorControlCommand_default_instance_; -class UserConstraintCommandDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class UserConstraintCommandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _UserConstraintCommand_default_instance_; -class UserConstraintStatusDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class UserConstraintStatusDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _UserConstraintStatus_default_instance_; -class UserConstraintStateStatusDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class UserConstraintStateStatusDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _UserConstraintStateStatus_default_instance_; -class RequestKeyboardEventsCommandDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class RequestKeyboardEventsCommandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _RequestKeyboardEventsCommand_default_instance_; -class KeyboardEventDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class KeyboardEventDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _KeyboardEvent_default_instance_; -class KeyboardEventsStatusDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class KeyboardEventsStatusDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _KeyboardEventsStatus_default_instance_; -class RequestCameraImageCommandDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class RequestCameraImageCommandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _RequestCameraImageCommand_default_instance_; -class RequestCameraImageStatusDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +class RequestCameraImageStatusDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _RequestCameraImageStatus_default_instance_; -class PyBulletCommandDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { - public: +class PyBulletCommandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; const ::pybullet_grpc::LoadUrdfCommand* loadurdfcommand_; const ::pybullet_grpc::TerminateServerCommand* terminateservercommand_; const ::pybullet_grpc::StepSimulationCommand* stepsimulationcommand_; @@ -135,8 +285,10 @@ class PyBulletCommandDefaultTypeInternal : public ::google::protobuf::internal:: const ::pybullet_grpc::RequestKeyboardEventsCommand* requestkeyboardeventscommand_; const ::pybullet_grpc::RequestCameraImageCommand* requestcameraimagecommand_; } _PyBulletCommand_default_instance_; -class PyBulletStatusDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { - public: +class PyBulletStatusDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; const ::pybullet_grpc::LoadUrdfStatus* urdfstatus_; const ::pybullet_grpc::SdfLoadedStatus* sdfstatus_; const ::pybullet_grpc::MjcfLoadedStatus* mjcfstatus_; @@ -151,774 +303,1185 @@ class PyBulletStatusDefaultTypeInternal : public ::google::protobuf::internal::E const ::pybullet_grpc::KeyboardEventsStatus* keyboardeventsstatus_; const ::pybullet_grpc::RequestCameraImageStatus* requestcameraimagestatus_; } _PyBulletStatus_default_instance_; - +} // namespace pybullet_grpc namespace protobuf_pybullet_2eproto { +static void InitDefaultsvec3() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + { + void* ptr = &::pybullet_grpc::_vec3_default_instance_; + new (ptr) ::pybullet_grpc::vec3(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::vec3::InitAsDefaultInstance(); +} -namespace { +::google::protobuf::internal::SCCInfo<0> scc_info_vec3 = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsvec3}, {}}; + +static void InitDefaultsquat4() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_quat4_default_instance_; + new (ptr) ::pybullet_grpc::quat4(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::quat4::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_quat4 = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsquat4}, {}}; + +static void InitDefaultsvec4() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_vec4_default_instance_; + new (ptr) ::pybullet_grpc::vec4(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::vec4::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_vec4 = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsvec4}, {}}; + +static void InitDefaultstransform() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_transform_default_instance_; + new (ptr) ::pybullet_grpc::transform(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::transform::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_transform = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultstransform}, { + &protobuf_pybullet_2eproto::scc_info_vec3.base, + &protobuf_pybullet_2eproto::scc_info_quat4.base,}}; + +static void InitDefaultsmatrix4x4() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_matrix4x4_default_instance_; + new (ptr) ::pybullet_grpc::matrix4x4(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::matrix4x4::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_matrix4x4 = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsmatrix4x4}, {}}; + +static void InitDefaultsCheckVersionCommand() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_CheckVersionCommand_default_instance_; + new (ptr) ::pybullet_grpc::CheckVersionCommand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::CheckVersionCommand::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CheckVersionCommand = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCheckVersionCommand}, {}}; + +static void InitDefaultsCheckVersionStatus() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_CheckVersionStatus_default_instance_; + new (ptr) ::pybullet_grpc::CheckVersionStatus(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::CheckVersionStatus::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CheckVersionStatus = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCheckVersionStatus}, {}}; + +static void InitDefaultsTerminateServerCommand() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_TerminateServerCommand_default_instance_; + new (ptr) ::pybullet_grpc::TerminateServerCommand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::TerminateServerCommand::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TerminateServerCommand = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTerminateServerCommand}, {}}; + +static void InitDefaultsStepSimulationCommand() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_StepSimulationCommand_default_instance_; + new (ptr) ::pybullet_grpc::StepSimulationCommand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::StepSimulationCommand::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_StepSimulationCommand = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStepSimulationCommand}, {}}; + +static void InitDefaultsSyncBodiesCommand() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_SyncBodiesCommand_default_instance_; + new (ptr) ::pybullet_grpc::SyncBodiesCommand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::SyncBodiesCommand::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_SyncBodiesCommand = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSyncBodiesCommand}, {}}; + +static void InitDefaultsSyncBodiesStatus() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_SyncBodiesStatus_default_instance_; + new (ptr) ::pybullet_grpc::SyncBodiesStatus(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::SyncBodiesStatus::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_SyncBodiesStatus = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSyncBodiesStatus}, {}}; + +static void InitDefaultsRequestBodyInfoCommand() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_RequestBodyInfoCommand_default_instance_; + new (ptr) ::pybullet_grpc::RequestBodyInfoCommand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::RequestBodyInfoCommand::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_RequestBodyInfoCommand = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRequestBodyInfoCommand}, {}}; + +static void InitDefaultsRequestBodyInfoStatus() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_RequestBodyInfoStatus_default_instance_; + new (ptr) ::pybullet_grpc::RequestBodyInfoStatus(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::RequestBodyInfoStatus::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_RequestBodyInfoStatus = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRequestBodyInfoStatus}, {}}; + +static void InitDefaultsLoadUrdfCommand() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_LoadUrdfCommand_default_instance_; + new (ptr) ::pybullet_grpc::LoadUrdfCommand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::LoadUrdfCommand::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_LoadUrdfCommand = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsLoadUrdfCommand}, { + &protobuf_pybullet_2eproto::scc_info_vec3.base, + &protobuf_pybullet_2eproto::scc_info_quat4.base,}}; + +static void InitDefaultsLoadUrdfStatus() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_LoadUrdfStatus_default_instance_; + new (ptr) ::pybullet_grpc::LoadUrdfStatus(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::LoadUrdfStatus::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_LoadUrdfStatus = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLoadUrdfStatus}, {}}; + +static void InitDefaultsLoadSdfCommand() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_LoadSdfCommand_default_instance_; + new (ptr) ::pybullet_grpc::LoadSdfCommand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::LoadSdfCommand::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_LoadSdfCommand = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLoadSdfCommand}, {}}; + +static void InitDefaultsSdfLoadedStatus() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_SdfLoadedStatus_default_instance_; + new (ptr) ::pybullet_grpc::SdfLoadedStatus(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::SdfLoadedStatus::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_SdfLoadedStatus = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSdfLoadedStatus}, {}}; + +static void InitDefaultsLoadMjcfCommand() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_LoadMjcfCommand_default_instance_; + new (ptr) ::pybullet_grpc::LoadMjcfCommand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::LoadMjcfCommand::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_LoadMjcfCommand = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLoadMjcfCommand}, {}}; + +static void InitDefaultsMjcfLoadedStatus() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_MjcfLoadedStatus_default_instance_; + new (ptr) ::pybullet_grpc::MjcfLoadedStatus(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::MjcfLoadedStatus::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MjcfLoadedStatus = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMjcfLoadedStatus}, {}}; + +static void InitDefaultsChangeDynamicsCommand() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_ChangeDynamicsCommand_default_instance_; + new (ptr) ::pybullet_grpc::ChangeDynamicsCommand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::ChangeDynamicsCommand::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ChangeDynamicsCommand = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsChangeDynamicsCommand}, { + &protobuf_pybullet_2eproto::scc_info_vec3.base,}}; + +static void InitDefaultsGetDynamicsCommand() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_GetDynamicsCommand_default_instance_; + new (ptr) ::pybullet_grpc::GetDynamicsCommand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::GetDynamicsCommand::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_GetDynamicsCommand = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetDynamicsCommand}, {}}; + +static void InitDefaultsGetDynamicsStatus() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_GetDynamicsStatus_default_instance_; + new (ptr) ::pybullet_grpc::GetDynamicsStatus(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::GetDynamicsStatus::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetDynamicsStatus = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetDynamicsStatus}, { + &protobuf_pybullet_2eproto::scc_info_vec3.base,}}; + +static void InitDefaultsInitPoseCommand() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_InitPoseCommand_default_instance_; + new (ptr) ::pybullet_grpc::InitPoseCommand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::InitPoseCommand::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_InitPoseCommand = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsInitPoseCommand}, {}}; + +static void InitDefaultsRequestActualStateCommand() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_RequestActualStateCommand_default_instance_; + new (ptr) ::pybullet_grpc::RequestActualStateCommand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::RequestActualStateCommand::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_RequestActualStateCommand = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRequestActualStateCommand}, {}}; + +static void InitDefaultsSendActualStateStatus() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_SendActualStateStatus_default_instance_; + new (ptr) ::pybullet_grpc::SendActualStateStatus(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::SendActualStateStatus::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_SendActualStateStatus = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSendActualStateStatus}, {}}; + +static void InitDefaultsConfigureOpenGLVisualizerCommand() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_ConfigureOpenGLVisualizerCommand_default_instance_; + new (ptr) ::pybullet_grpc::ConfigureOpenGLVisualizerCommand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::ConfigureOpenGLVisualizerCommand::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ConfigureOpenGLVisualizerCommand = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsConfigureOpenGLVisualizerCommand}, { + &protobuf_pybullet_2eproto::scc_info_vec3.base,}}; + +static void InitDefaultsPhysicsSimulationParameters() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_PhysicsSimulationParameters_default_instance_; + new (ptr) ::pybullet_grpc::PhysicsSimulationParameters(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::PhysicsSimulationParameters::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_PhysicsSimulationParameters = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPhysicsSimulationParameters}, { + &protobuf_pybullet_2eproto::scc_info_vec3.base,}}; + +static void InitDefaultsPhysicsSimulationParametersCommand() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_PhysicsSimulationParametersCommand_default_instance_; + new (ptr) ::pybullet_grpc::PhysicsSimulationParametersCommand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::PhysicsSimulationParametersCommand::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_PhysicsSimulationParametersCommand = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPhysicsSimulationParametersCommand}, { + &protobuf_pybullet_2eproto::scc_info_PhysicsSimulationParameters.base,}}; + +static void InitDefaultsJointMotorControlCommand() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_JointMotorControlCommand_default_instance_; + new (ptr) ::pybullet_grpc::JointMotorControlCommand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::JointMotorControlCommand::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_JointMotorControlCommand = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsJointMotorControlCommand}, {}}; + +static void InitDefaultsUserConstraintCommand() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_UserConstraintCommand_default_instance_; + new (ptr) ::pybullet_grpc::UserConstraintCommand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::UserConstraintCommand::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_UserConstraintCommand = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsUserConstraintCommand}, { + &protobuf_pybullet_2eproto::scc_info_transform.base, + &protobuf_pybullet_2eproto::scc_info_vec3.base,}}; + +static void InitDefaultsUserConstraintStatus() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_UserConstraintStatus_default_instance_; + new (ptr) ::pybullet_grpc::UserConstraintStatus(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::UserConstraintStatus::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_UserConstraintStatus = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUserConstraintStatus}, {}}; + +static void InitDefaultsUserConstraintStateStatus() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_UserConstraintStateStatus_default_instance_; + new (ptr) ::pybullet_grpc::UserConstraintStateStatus(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::UserConstraintStateStatus::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_UserConstraintStateStatus = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsUserConstraintStateStatus}, { + &protobuf_pybullet_2eproto::scc_info_vec3.base,}}; + +static void InitDefaultsRequestKeyboardEventsCommand() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_RequestKeyboardEventsCommand_default_instance_; + new (ptr) ::pybullet_grpc::RequestKeyboardEventsCommand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::RequestKeyboardEventsCommand::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_RequestKeyboardEventsCommand = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRequestKeyboardEventsCommand}, {}}; + +static void InitDefaultsKeyboardEvent() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_KeyboardEvent_default_instance_; + new (ptr) ::pybullet_grpc::KeyboardEvent(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::KeyboardEvent::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_KeyboardEvent = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsKeyboardEvent}, {}}; + +static void InitDefaultsKeyboardEventsStatus() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_KeyboardEventsStatus_default_instance_; + new (ptr) ::pybullet_grpc::KeyboardEventsStatus(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::KeyboardEventsStatus::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_KeyboardEventsStatus = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsKeyboardEventsStatus}, { + &protobuf_pybullet_2eproto::scc_info_KeyboardEvent.base,}}; + +static void InitDefaultsRequestCameraImageCommand() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_RequestCameraImageCommand_default_instance_; + new (ptr) ::pybullet_grpc::RequestCameraImageCommand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::RequestCameraImageCommand::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_RequestCameraImageCommand = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsRequestCameraImageCommand}, { + &protobuf_pybullet_2eproto::scc_info_matrix4x4.base, + &protobuf_pybullet_2eproto::scc_info_vec3.base,}}; + +static void InitDefaultsRequestCameraImageStatus() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_RequestCameraImageStatus_default_instance_; + new (ptr) ::pybullet_grpc::RequestCameraImageStatus(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::RequestCameraImageStatus::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_RequestCameraImageStatus = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRequestCameraImageStatus}, {}}; + +static void InitDefaultsPyBulletCommand() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_PyBulletCommand_default_instance_; + new (ptr) ::pybullet_grpc::PyBulletCommand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::PyBulletCommand::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<18> scc_info_PyBulletCommand = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 18, InitDefaultsPyBulletCommand}, { + &protobuf_pybullet_2eproto::scc_info_LoadUrdfCommand.base, + &protobuf_pybullet_2eproto::scc_info_TerminateServerCommand.base, + &protobuf_pybullet_2eproto::scc_info_StepSimulationCommand.base, + &protobuf_pybullet_2eproto::scc_info_LoadSdfCommand.base, + &protobuf_pybullet_2eproto::scc_info_LoadMjcfCommand.base, + &protobuf_pybullet_2eproto::scc_info_ChangeDynamicsCommand.base, + &protobuf_pybullet_2eproto::scc_info_GetDynamicsCommand.base, + &protobuf_pybullet_2eproto::scc_info_InitPoseCommand.base, + &protobuf_pybullet_2eproto::scc_info_RequestActualStateCommand.base, + &protobuf_pybullet_2eproto::scc_info_ConfigureOpenGLVisualizerCommand.base, + &protobuf_pybullet_2eproto::scc_info_SyncBodiesCommand.base, + &protobuf_pybullet_2eproto::scc_info_RequestBodyInfoCommand.base, + &protobuf_pybullet_2eproto::scc_info_PhysicsSimulationParametersCommand.base, + &protobuf_pybullet_2eproto::scc_info_JointMotorControlCommand.base, + &protobuf_pybullet_2eproto::scc_info_UserConstraintCommand.base, + &protobuf_pybullet_2eproto::scc_info_CheckVersionCommand.base, + &protobuf_pybullet_2eproto::scc_info_RequestKeyboardEventsCommand.base, + &protobuf_pybullet_2eproto::scc_info_RequestCameraImageCommand.base,}}; + +static void InitDefaultsPyBulletStatus() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::pybullet_grpc::_PyBulletStatus_default_instance_; + new (ptr) ::pybullet_grpc::PyBulletStatus(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::pybullet_grpc::PyBulletStatus::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<13> scc_info_PyBulletStatus = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 13, InitDefaultsPyBulletStatus}, { + &protobuf_pybullet_2eproto::scc_info_LoadUrdfStatus.base, + &protobuf_pybullet_2eproto::scc_info_SdfLoadedStatus.base, + &protobuf_pybullet_2eproto::scc_info_MjcfLoadedStatus.base, + &protobuf_pybullet_2eproto::scc_info_GetDynamicsStatus.base, + &protobuf_pybullet_2eproto::scc_info_SendActualStateStatus.base, + &protobuf_pybullet_2eproto::scc_info_SyncBodiesStatus.base, + &protobuf_pybullet_2eproto::scc_info_RequestBodyInfoStatus.base, + &protobuf_pybullet_2eproto::scc_info_PhysicsSimulationParameters.base, + &protobuf_pybullet_2eproto::scc_info_CheckVersionStatus.base, + &protobuf_pybullet_2eproto::scc_info_UserConstraintStatus.base, + &protobuf_pybullet_2eproto::scc_info_UserConstraintStateStatus.base, + &protobuf_pybullet_2eproto::scc_info_KeyboardEventsStatus.base, + &protobuf_pybullet_2eproto::scc_info_RequestCameraImageStatus.base,}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_vec3.base); + ::google::protobuf::internal::InitSCC(&scc_info_quat4.base); + ::google::protobuf::internal::InitSCC(&scc_info_vec4.base); + ::google::protobuf::internal::InitSCC(&scc_info_transform.base); + ::google::protobuf::internal::InitSCC(&scc_info_matrix4x4.base); + ::google::protobuf::internal::InitSCC(&scc_info_CheckVersionCommand.base); + ::google::protobuf::internal::InitSCC(&scc_info_CheckVersionStatus.base); + ::google::protobuf::internal::InitSCC(&scc_info_TerminateServerCommand.base); + ::google::protobuf::internal::InitSCC(&scc_info_StepSimulationCommand.base); + ::google::protobuf::internal::InitSCC(&scc_info_SyncBodiesCommand.base); + ::google::protobuf::internal::InitSCC(&scc_info_SyncBodiesStatus.base); + ::google::protobuf::internal::InitSCC(&scc_info_RequestBodyInfoCommand.base); + ::google::protobuf::internal::InitSCC(&scc_info_RequestBodyInfoStatus.base); + ::google::protobuf::internal::InitSCC(&scc_info_LoadUrdfCommand.base); + ::google::protobuf::internal::InitSCC(&scc_info_LoadUrdfStatus.base); + ::google::protobuf::internal::InitSCC(&scc_info_LoadSdfCommand.base); + ::google::protobuf::internal::InitSCC(&scc_info_SdfLoadedStatus.base); + ::google::protobuf::internal::InitSCC(&scc_info_LoadMjcfCommand.base); + ::google::protobuf::internal::InitSCC(&scc_info_MjcfLoadedStatus.base); + ::google::protobuf::internal::InitSCC(&scc_info_ChangeDynamicsCommand.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetDynamicsCommand.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetDynamicsStatus.base); + ::google::protobuf::internal::InitSCC(&scc_info_InitPoseCommand.base); + ::google::protobuf::internal::InitSCC(&scc_info_RequestActualStateCommand.base); + ::google::protobuf::internal::InitSCC(&scc_info_SendActualStateStatus.base); + ::google::protobuf::internal::InitSCC(&scc_info_ConfigureOpenGLVisualizerCommand.base); + ::google::protobuf::internal::InitSCC(&scc_info_PhysicsSimulationParameters.base); + ::google::protobuf::internal::InitSCC(&scc_info_PhysicsSimulationParametersCommand.base); + ::google::protobuf::internal::InitSCC(&scc_info_JointMotorControlCommand.base); + ::google::protobuf::internal::InitSCC(&scc_info_UserConstraintCommand.base); + ::google::protobuf::internal::InitSCC(&scc_info_UserConstraintStatus.base); + ::google::protobuf::internal::InitSCC(&scc_info_UserConstraintStateStatus.base); + ::google::protobuf::internal::InitSCC(&scc_info_RequestKeyboardEventsCommand.base); + ::google::protobuf::internal::InitSCC(&scc_info_KeyboardEvent.base); + ::google::protobuf::internal::InitSCC(&scc_info_KeyboardEventsStatus.base); + ::google::protobuf::internal::InitSCC(&scc_info_RequestCameraImageCommand.base); + ::google::protobuf::internal::InitSCC(&scc_info_RequestCameraImageStatus.base); + ::google::protobuf::internal::InitSCC(&scc_info_PyBulletCommand.base); + ::google::protobuf::internal::InitSCC(&scc_info_PyBulletStatus.base); +} ::google::protobuf::Metadata file_level_metadata[39]; -} // namespace - -const ::google::protobuf::uint32 TableStruct::offsets[] = { +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(vec3, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::vec3, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(vec3, x_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(vec3, y_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(vec3, z_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::vec3, x_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::vec3, y_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::vec3, z_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(quat4, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::quat4, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(quat4, x_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(quat4, y_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(quat4, z_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(quat4, w_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::quat4, x_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::quat4, y_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::quat4, z_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::quat4, w_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(vec4, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::vec4, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(vec4, x_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(vec4, y_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(vec4, z_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(vec4, w_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::vec4, x_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::vec4, y_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::vec4, z_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::vec4, w_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(transform, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::transform, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(transform, origin_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(transform, orientation_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::transform, origin_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::transform, orientation_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(matrix4x4, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::matrix4x4, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(matrix4x4, elems_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::matrix4x4, elems_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CheckVersionCommand, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::CheckVersionCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CheckVersionCommand, clientversion_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::CheckVersionCommand, clientversion_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CheckVersionStatus, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::CheckVersionStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CheckVersionStatus, serverversion_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::CheckVersionStatus, serverversion_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TerminateServerCommand, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::TerminateServerCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TerminateServerCommand, exitreason_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::TerminateServerCommand, exitreason_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StepSimulationCommand, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::StepSimulationCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SyncBodiesCommand, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::SyncBodiesCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SyncBodiesStatus, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::SyncBodiesStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SyncBodiesStatus, bodyuniqueids_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SyncBodiesStatus, userconstraintuniqueids_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::SyncBodiesStatus, bodyuniqueids_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::SyncBodiesStatus, userconstraintuniqueids_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestBodyInfoCommand, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestBodyInfoCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestBodyInfoCommand, bodyuniqueid_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestBodyInfoCommand, bodyuniqueid_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestBodyInfoStatus, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestBodyInfoStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestBodyInfoStatus, bodyuniqueid_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestBodyInfoStatus, bodyname_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestBodyInfoStatus, bodyuniqueid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestBodyInfoStatus, bodyname_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadUrdfCommand, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadUrdfCommand, _internal_metadata_), ~0u, // no _extensions_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadUrdfCommand, _oneof_case_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadUrdfCommand, filename_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadUrdfCommand, initialposition_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadUrdfCommand, initialorientation_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_LoadUrdfCommand_default_instance_), usemultibody_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_LoadUrdfCommand_default_instance_), usefixedbase_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadUrdfCommand, flags_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_LoadUrdfCommand_default_instance_), globalscaling_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadUrdfCommand, hasUseMultiBody_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadUrdfCommand, hasUseFixedBase_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadUrdfCommand, hasGlobalScaling_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadUrdfCommand, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadUrdfCommand, filename_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadUrdfCommand, initialposition_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadUrdfCommand, initialorientation_), + offsetof(::pybullet_grpc::LoadUrdfCommandDefaultTypeInternal, usemultibody_), + offsetof(::pybullet_grpc::LoadUrdfCommandDefaultTypeInternal, usefixedbase_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadUrdfCommand, flags_), + offsetof(::pybullet_grpc::LoadUrdfCommandDefaultTypeInternal, globalscaling_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadUrdfCommand, hasUseMultiBody_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadUrdfCommand, hasUseFixedBase_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadUrdfCommand, hasGlobalScaling_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadUrdfStatus, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadUrdfStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadUrdfStatus, bodyuniqueid_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadUrdfStatus, bodyname_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadUrdfStatus, filename_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadUrdfStatus, bodyuniqueid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadUrdfStatus, bodyname_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadUrdfStatus, filename_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadSdfCommand, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadSdfCommand, _internal_metadata_), ~0u, // no _extensions_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadSdfCommand, _oneof_case_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadSdfCommand, filename_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_LoadSdfCommand_default_instance_), usemultibody_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_LoadSdfCommand_default_instance_), globalscaling_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadSdfCommand, hasUseMultiBody_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadSdfCommand, hasGlobalScaling_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadSdfCommand, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadSdfCommand, filename_), + offsetof(::pybullet_grpc::LoadSdfCommandDefaultTypeInternal, usemultibody_), + offsetof(::pybullet_grpc::LoadSdfCommandDefaultTypeInternal, globalscaling_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadSdfCommand, hasUseMultiBody_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadSdfCommand, hasGlobalScaling_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SdfLoadedStatus, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::SdfLoadedStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SdfLoadedStatus, bodyuniqueids_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::SdfLoadedStatus, bodyuniqueids_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadMjcfCommand, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadMjcfCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadMjcfCommand, filename_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoadMjcfCommand, flags_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadMjcfCommand, filename_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::LoadMjcfCommand, flags_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MjcfLoadedStatus, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::MjcfLoadedStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MjcfLoadedStatus, bodyuniqueids_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::MjcfLoadedStatus, bodyuniqueids_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeDynamicsCommand, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ChangeDynamicsCommand, _internal_metadata_), ~0u, // no _extensions_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeDynamicsCommand, _oneof_case_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeDynamicsCommand, bodyuniqueid_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeDynamicsCommand, linkindex_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_ChangeDynamicsCommand_default_instance_), mass_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_ChangeDynamicsCommand_default_instance_), lateralfriction_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_ChangeDynamicsCommand_default_instance_), spinningfriction_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_ChangeDynamicsCommand_default_instance_), rollingfriction_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_ChangeDynamicsCommand_default_instance_), restitution_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_ChangeDynamicsCommand_default_instance_), lineardamping_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_ChangeDynamicsCommand_default_instance_), angulardamping_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_ChangeDynamicsCommand_default_instance_), contactstiffness_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_ChangeDynamicsCommand_default_instance_), contactdamping_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_ChangeDynamicsCommand_default_instance_), localinertiadiagonal_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_ChangeDynamicsCommand_default_instance_), frictionanchor_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_ChangeDynamicsCommand_default_instance_), ccdsweptsphereradius_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_ChangeDynamicsCommand_default_instance_), contactprocessingthreshold_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_ChangeDynamicsCommand_default_instance_), activationstate_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeDynamicsCommand, hasMass_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeDynamicsCommand, hasLateralFriction_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeDynamicsCommand, hasSpinningFriction_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeDynamicsCommand, hasRollingFriction_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeDynamicsCommand, hasRestitution_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeDynamicsCommand, haslinearDamping_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeDynamicsCommand, hasangularDamping_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeDynamicsCommand, hasContactStiffness_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeDynamicsCommand, hasContactDamping_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeDynamicsCommand, hasLocalInertiaDiagonal_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeDynamicsCommand, hasFrictionAnchor_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeDynamicsCommand, hasccdSweptSphereRadius_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeDynamicsCommand, hasContactProcessingThreshold_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeDynamicsCommand, hasActivationState_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ChangeDynamicsCommand, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ChangeDynamicsCommand, bodyuniqueid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ChangeDynamicsCommand, linkindex_), + offsetof(::pybullet_grpc::ChangeDynamicsCommandDefaultTypeInternal, mass_), + offsetof(::pybullet_grpc::ChangeDynamicsCommandDefaultTypeInternal, lateralfriction_), + offsetof(::pybullet_grpc::ChangeDynamicsCommandDefaultTypeInternal, spinningfriction_), + offsetof(::pybullet_grpc::ChangeDynamicsCommandDefaultTypeInternal, rollingfriction_), + offsetof(::pybullet_grpc::ChangeDynamicsCommandDefaultTypeInternal, restitution_), + offsetof(::pybullet_grpc::ChangeDynamicsCommandDefaultTypeInternal, lineardamping_), + offsetof(::pybullet_grpc::ChangeDynamicsCommandDefaultTypeInternal, angulardamping_), + offsetof(::pybullet_grpc::ChangeDynamicsCommandDefaultTypeInternal, contactstiffness_), + offsetof(::pybullet_grpc::ChangeDynamicsCommandDefaultTypeInternal, contactdamping_), + offsetof(::pybullet_grpc::ChangeDynamicsCommandDefaultTypeInternal, localinertiadiagonal_), + offsetof(::pybullet_grpc::ChangeDynamicsCommandDefaultTypeInternal, frictionanchor_), + offsetof(::pybullet_grpc::ChangeDynamicsCommandDefaultTypeInternal, ccdsweptsphereradius_), + offsetof(::pybullet_grpc::ChangeDynamicsCommandDefaultTypeInternal, contactprocessingthreshold_), + offsetof(::pybullet_grpc::ChangeDynamicsCommandDefaultTypeInternal, activationstate_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ChangeDynamicsCommand, hasMass_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ChangeDynamicsCommand, hasLateralFriction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ChangeDynamicsCommand, hasSpinningFriction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ChangeDynamicsCommand, hasRollingFriction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ChangeDynamicsCommand, hasRestitution_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ChangeDynamicsCommand, haslinearDamping_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ChangeDynamicsCommand, hasangularDamping_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ChangeDynamicsCommand, hasContactStiffness_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ChangeDynamicsCommand, hasContactDamping_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ChangeDynamicsCommand, hasLocalInertiaDiagonal_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ChangeDynamicsCommand, hasFrictionAnchor_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ChangeDynamicsCommand, hasccdSweptSphereRadius_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ChangeDynamicsCommand, hasContactProcessingThreshold_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ChangeDynamicsCommand, hasActivationState_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDynamicsCommand, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::GetDynamicsCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDynamicsCommand, bodyuniqueid_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDynamicsCommand, linkindex_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::GetDynamicsCommand, bodyuniqueid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::GetDynamicsCommand, linkindex_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDynamicsStatus, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::GetDynamicsStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDynamicsStatus, mass_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDynamicsStatus, lateralfriction_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDynamicsStatus, spinningfriction_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDynamicsStatus, rollingfriction_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDynamicsStatus, restitution_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDynamicsStatus, lineardamping_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDynamicsStatus, angulardamping_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDynamicsStatus, contactstiffness_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDynamicsStatus, contactdamping_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDynamicsStatus, localinertiadiagonal_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDynamicsStatus, frictionanchor_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDynamicsStatus, ccdsweptsphereradius_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDynamicsStatus, contactprocessingthreshold_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDynamicsStatus, activationstate_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::GetDynamicsStatus, mass_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::GetDynamicsStatus, lateralfriction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::GetDynamicsStatus, spinningfriction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::GetDynamicsStatus, rollingfriction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::GetDynamicsStatus, restitution_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::GetDynamicsStatus, lineardamping_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::GetDynamicsStatus, angulardamping_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::GetDynamicsStatus, contactstiffness_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::GetDynamicsStatus, contactdamping_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::GetDynamicsStatus, localinertiadiagonal_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::GetDynamicsStatus, frictionanchor_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::GetDynamicsStatus, ccdsweptsphereradius_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::GetDynamicsStatus, contactprocessingthreshold_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::GetDynamicsStatus, activationstate_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitPoseCommand, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::InitPoseCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitPoseCommand, bodyuniqueid_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitPoseCommand, updateflags_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitPoseCommand, hasinitialstateq_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitPoseCommand, initialstateq_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitPoseCommand, hasinitialstateqdot_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitPoseCommand, initialstateqdot_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::InitPoseCommand, bodyuniqueid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::InitPoseCommand, updateflags_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::InitPoseCommand, hasinitialstateq_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::InitPoseCommand, initialstateq_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::InitPoseCommand, hasinitialstateqdot_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::InitPoseCommand, initialstateqdot_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestActualStateCommand, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestActualStateCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestActualStateCommand, bodyuniqueid_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestActualStateCommand, computeforwardkinematics_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestActualStateCommand, computelinkvelocities_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestActualStateCommand, bodyuniqueid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestActualStateCommand, computeforwardkinematics_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestActualStateCommand, computelinkvelocities_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendActualStateStatus, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::SendActualStateStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendActualStateStatus, bodyuniqueid_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendActualStateStatus, numlinks_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendActualStateStatus, numdegreeoffreedomq_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendActualStateStatus, numdegreeoffreedomu_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendActualStateStatus, rootlocalinertialframe_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendActualStateStatus, actualstateq_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendActualStateStatus, actualstateqdot_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendActualStateStatus, jointreactionforces_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendActualStateStatus, jointmotorforce_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendActualStateStatus, linkstate_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendActualStateStatus, linkworldvelocities_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendActualStateStatus, linklocalinertialframes_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::SendActualStateStatus, bodyuniqueid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::SendActualStateStatus, numlinks_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::SendActualStateStatus, numdegreeoffreedomq_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::SendActualStateStatus, numdegreeoffreedomu_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::SendActualStateStatus, rootlocalinertialframe_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::SendActualStateStatus, actualstateq_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::SendActualStateStatus, actualstateqdot_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::SendActualStateStatus, jointreactionforces_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::SendActualStateStatus, jointmotorforce_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::SendActualStateStatus, linkstate_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::SendActualStateStatus, linkworldvelocities_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::SendActualStateStatus, linklocalinertialframes_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConfigureOpenGLVisualizerCommand, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ConfigureOpenGLVisualizerCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConfigureOpenGLVisualizerCommand, updateflags_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConfigureOpenGLVisualizerCommand, cameradistance_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConfigureOpenGLVisualizerCommand, camerapitch_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConfigureOpenGLVisualizerCommand, camerayaw_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConfigureOpenGLVisualizerCommand, cameratargetposition_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConfigureOpenGLVisualizerCommand, setflag_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConfigureOpenGLVisualizerCommand, setenabled_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ConfigureOpenGLVisualizerCommand, updateflags_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ConfigureOpenGLVisualizerCommand, cameradistance_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ConfigureOpenGLVisualizerCommand, camerapitch_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ConfigureOpenGLVisualizerCommand, camerayaw_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ConfigureOpenGLVisualizerCommand, cameratargetposition_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ConfigureOpenGLVisualizerCommand, setflag_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::ConfigureOpenGLVisualizerCommand, setenabled_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, deltatime_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, gravityacceleration_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, numsimulationsubsteps_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, numsolveriterations_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, userealtimesimulation_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, usesplitimpulse_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, splitimpulsepenetrationthreshold_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, contactbreakingthreshold_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, internalsimflags_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, defaultcontacterp_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, collisionfiltermode_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, enablefilecaching_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, restitutionvelocitythreshold_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, defaultnoncontacterp_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, frictionerp_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, defaultglobalcfm_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, frictioncfm_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, enableconefriction_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, deterministicoverlappingpairs_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, allowedccdpenetration_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, jointfeedbackmode_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, solverresidualthreshold_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, contactslop_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, enablesat_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, constraintsolvertype_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParameters, minimumsolverislandsize_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, deltatime_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, gravityacceleration_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, numsimulationsubsteps_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, numsolveriterations_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, userealtimesimulation_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, usesplitimpulse_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, splitimpulsepenetrationthreshold_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, contactbreakingthreshold_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, internalsimflags_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, defaultcontacterp_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, collisionfiltermode_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, enablefilecaching_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, restitutionvelocitythreshold_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, defaultnoncontacterp_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, frictionerp_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, defaultglobalcfm_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, frictioncfm_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, enableconefriction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, deterministicoverlappingpairs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, allowedccdpenetration_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, jointfeedbackmode_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, solverresidualthreshold_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, contactslop_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, enablesat_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, constraintsolvertype_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParameters, minimumsolverislandsize_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParametersCommand, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParametersCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParametersCommand, updateflags_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PhysicsSimulationParametersCommand, params_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParametersCommand, updateflags_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PhysicsSimulationParametersCommand, params_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JointMotorControlCommand, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::JointMotorControlCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JointMotorControlCommand, bodyuniqueid_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JointMotorControlCommand, controlmode_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JointMotorControlCommand, updateflags_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JointMotorControlCommand, kp_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JointMotorControlCommand, kd_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JointMotorControlCommand, maxvelocity_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JointMotorControlCommand, hasdesiredstateflags_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JointMotorControlCommand, desiredstateq_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JointMotorControlCommand, desiredstateqdot_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JointMotorControlCommand, desiredstateforcetorque_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::JointMotorControlCommand, bodyuniqueid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::JointMotorControlCommand, controlmode_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::JointMotorControlCommand, updateflags_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::JointMotorControlCommand, kp_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::JointMotorControlCommand, kd_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::JointMotorControlCommand, maxvelocity_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::JointMotorControlCommand, hasdesiredstateflags_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::JointMotorControlCommand, desiredstateq_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::JointMotorControlCommand, desiredstateqdot_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::JointMotorControlCommand, desiredstateforcetorque_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintCommand, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintCommand, parentbodyindex_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintCommand, parentjointindex_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintCommand, childbodyindex_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintCommand, childjointindex_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintCommand, parentframe_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintCommand, childframe_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintCommand, jointaxis_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintCommand, jointtype_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintCommand, maxappliedforce_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintCommand, userconstraintuniqueid_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintCommand, gearratio_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintCommand, gearauxlink_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintCommand, relativepositiontarget_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintCommand, erp_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintCommand, updateflags_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintCommand, parentbodyindex_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintCommand, parentjointindex_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintCommand, childbodyindex_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintCommand, childjointindex_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintCommand, parentframe_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintCommand, childframe_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintCommand, jointaxis_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintCommand, jointtype_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintCommand, maxappliedforce_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintCommand, userconstraintuniqueid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintCommand, gearratio_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintCommand, gearauxlink_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintCommand, relativepositiontarget_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintCommand, erp_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintCommand, updateflags_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintStatus, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintStatus, maxappliedforce_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintStatus, userconstraintuniqueid_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintStatus, maxappliedforce_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintStatus, userconstraintuniqueid_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintStateStatus, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintStateStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintStateStatus, appliedconstraintforceslinear_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintStateStatus, appliedconstraintforcesangular_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UserConstraintStateStatus, numdofs_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintStateStatus, appliedconstraintforceslinear_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintStateStatus, appliedconstraintforcesangular_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::UserConstraintStateStatus, numdofs_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestKeyboardEventsCommand, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestKeyboardEventsCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyboardEvent, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::KeyboardEvent, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyboardEvent, keycode_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyboardEvent, keystate_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::KeyboardEvent, keycode_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::KeyboardEvent, keystate_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyboardEventsStatus, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::KeyboardEventsStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyboardEventsStatus, keyboardevents_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::KeyboardEventsStatus, keyboardevents_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageCommand, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageCommand, updateflags_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageCommand, cameraflags_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageCommand, viewmatrix_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageCommand, projectionmatrix_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageCommand, startpixelindex_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageCommand, pixelwidth_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageCommand, pixelheight_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageCommand, lightdirection_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageCommand, lightcolor_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageCommand, lightdistance_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageCommand, lightambientcoeff_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageCommand, lightdiffusecoeff_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageCommand, lightspecularcoeff_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageCommand, hasshadow_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageCommand, projectivetextureviewmatrix_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageCommand, projectivetextureprojectionmatrix_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageCommand, updateflags_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageCommand, cameraflags_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageCommand, viewmatrix_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageCommand, projectionmatrix_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageCommand, startpixelindex_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageCommand, pixelwidth_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageCommand, pixelheight_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageCommand, lightdirection_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageCommand, lightcolor_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageCommand, lightdistance_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageCommand, lightambientcoeff_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageCommand, lightdiffusecoeff_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageCommand, lightspecularcoeff_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageCommand, hasshadow_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageCommand, projectivetextureviewmatrix_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageCommand, projectivetextureprojectionmatrix_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageStatus, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageStatus, imagewidth_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageStatus, imageheight_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageStatus, startingpixelindex_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageStatus, numpixelscopied_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RequestCameraImageStatus, numremainingpixels_), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageStatus, imagewidth_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageStatus, imageheight_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageStatus, startingpixelindex_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageStatus, numpixelscopied_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::RequestCameraImageStatus, numremainingpixels_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PyBulletCommand, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PyBulletCommand, _internal_metadata_), ~0u, // no _extensions_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PyBulletCommand, _oneof_case_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PyBulletCommand, commandtype_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PyBulletCommand, binaryblob_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PyBulletCommand, unknowncommandbinaryblob_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletCommand_default_instance_), loadurdfcommand_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletCommand_default_instance_), terminateservercommand_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletCommand_default_instance_), stepsimulationcommand_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletCommand_default_instance_), loadsdfcommand_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletCommand_default_instance_), loadmjcfcommand_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletCommand_default_instance_), changedynamicscommand_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletCommand_default_instance_), getdynamicscommand_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletCommand_default_instance_), initposecommand_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletCommand_default_instance_), requestactualstatecommand_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletCommand_default_instance_), configureopenglvisualizercommand_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletCommand_default_instance_), syncbodiescommand_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletCommand_default_instance_), requestbodyinfocommand_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletCommand_default_instance_), setphysicssimulationparameterscommand_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletCommand_default_instance_), jointmotorcontrolcommand_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletCommand_default_instance_), userconstraintcommand_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletCommand_default_instance_), checkversioncommand_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletCommand_default_instance_), requestkeyboardeventscommand_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletCommand_default_instance_), requestcameraimagecommand_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PyBulletCommand, commands_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PyBulletCommand, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PyBulletCommand, commandtype_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PyBulletCommand, binaryblob_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PyBulletCommand, unknowncommandbinaryblob_), + offsetof(::pybullet_grpc::PyBulletCommandDefaultTypeInternal, loadurdfcommand_), + offsetof(::pybullet_grpc::PyBulletCommandDefaultTypeInternal, terminateservercommand_), + offsetof(::pybullet_grpc::PyBulletCommandDefaultTypeInternal, stepsimulationcommand_), + offsetof(::pybullet_grpc::PyBulletCommandDefaultTypeInternal, loadsdfcommand_), + offsetof(::pybullet_grpc::PyBulletCommandDefaultTypeInternal, loadmjcfcommand_), + offsetof(::pybullet_grpc::PyBulletCommandDefaultTypeInternal, changedynamicscommand_), + offsetof(::pybullet_grpc::PyBulletCommandDefaultTypeInternal, getdynamicscommand_), + offsetof(::pybullet_grpc::PyBulletCommandDefaultTypeInternal, initposecommand_), + offsetof(::pybullet_grpc::PyBulletCommandDefaultTypeInternal, requestactualstatecommand_), + offsetof(::pybullet_grpc::PyBulletCommandDefaultTypeInternal, configureopenglvisualizercommand_), + offsetof(::pybullet_grpc::PyBulletCommandDefaultTypeInternal, syncbodiescommand_), + offsetof(::pybullet_grpc::PyBulletCommandDefaultTypeInternal, requestbodyinfocommand_), + offsetof(::pybullet_grpc::PyBulletCommandDefaultTypeInternal, setphysicssimulationparameterscommand_), + offsetof(::pybullet_grpc::PyBulletCommandDefaultTypeInternal, jointmotorcontrolcommand_), + offsetof(::pybullet_grpc::PyBulletCommandDefaultTypeInternal, userconstraintcommand_), + offsetof(::pybullet_grpc::PyBulletCommandDefaultTypeInternal, checkversioncommand_), + offsetof(::pybullet_grpc::PyBulletCommandDefaultTypeInternal, requestkeyboardeventscommand_), + offsetof(::pybullet_grpc::PyBulletCommandDefaultTypeInternal, requestcameraimagecommand_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PyBulletCommand, commands_), ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PyBulletStatus, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PyBulletStatus, _internal_metadata_), ~0u, // no _extensions_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PyBulletStatus, _oneof_case_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PyBulletStatus, statustype_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PyBulletStatus, binaryblob_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PyBulletStatus, unknownstatusbinaryblob_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletStatus_default_instance_), urdfstatus_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletStatus_default_instance_), sdfstatus_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletStatus_default_instance_), mjcfstatus_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletStatus_default_instance_), getdynamicsstatus_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletStatus_default_instance_), actualstatestatus_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletStatus_default_instance_), syncbodiesstatus_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletStatus_default_instance_), requestbodyinfostatus_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletStatus_default_instance_), requestphysicssimulationparametersstatus_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletStatus_default_instance_), checkversionstatus_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletStatus_default_instance_), userconstraintstatus_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletStatus_default_instance_), userconstraintstatestatus_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletStatus_default_instance_), keyboardeventsstatus_), - PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&_PyBulletStatus_default_instance_), requestcameraimagestatus_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PyBulletStatus, status_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PyBulletStatus, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PyBulletStatus, statustype_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PyBulletStatus, binaryblob_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PyBulletStatus, unknownstatusbinaryblob_), + offsetof(::pybullet_grpc::PyBulletStatusDefaultTypeInternal, urdfstatus_), + offsetof(::pybullet_grpc::PyBulletStatusDefaultTypeInternal, sdfstatus_), + offsetof(::pybullet_grpc::PyBulletStatusDefaultTypeInternal, mjcfstatus_), + offsetof(::pybullet_grpc::PyBulletStatusDefaultTypeInternal, getdynamicsstatus_), + offsetof(::pybullet_grpc::PyBulletStatusDefaultTypeInternal, actualstatestatus_), + offsetof(::pybullet_grpc::PyBulletStatusDefaultTypeInternal, syncbodiesstatus_), + offsetof(::pybullet_grpc::PyBulletStatusDefaultTypeInternal, requestbodyinfostatus_), + offsetof(::pybullet_grpc::PyBulletStatusDefaultTypeInternal, requestphysicssimulationparametersstatus_), + offsetof(::pybullet_grpc::PyBulletStatusDefaultTypeInternal, checkversionstatus_), + offsetof(::pybullet_grpc::PyBulletStatusDefaultTypeInternal, userconstraintstatus_), + offsetof(::pybullet_grpc::PyBulletStatusDefaultTypeInternal, userconstraintstatestatus_), + offsetof(::pybullet_grpc::PyBulletStatusDefaultTypeInternal, keyboardeventsstatus_), + offsetof(::pybullet_grpc::PyBulletStatusDefaultTypeInternal, requestcameraimagestatus_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PyBulletStatus, status_), }; - -static const ::google::protobuf::internal::MigrationSchema schemas[] = { - { 0, -1, sizeof(vec3)}, - { 7, -1, sizeof(quat4)}, - { 15, -1, sizeof(vec4)}, - { 23, -1, sizeof(transform)}, - { 29, -1, sizeof(matrix4x4)}, - { 34, -1, sizeof(CheckVersionCommand)}, - { 39, -1, sizeof(CheckVersionStatus)}, - { 44, -1, sizeof(TerminateServerCommand)}, - { 49, -1, sizeof(StepSimulationCommand)}, - { 53, -1, sizeof(SyncBodiesCommand)}, - { 57, -1, sizeof(SyncBodiesStatus)}, - { 63, -1, sizeof(RequestBodyInfoCommand)}, - { 68, -1, sizeof(RequestBodyInfoStatus)}, - { 74, -1, sizeof(LoadUrdfCommand)}, - { 88, -1, sizeof(LoadUrdfStatus)}, - { 95, -1, sizeof(LoadSdfCommand)}, - { 104, -1, sizeof(SdfLoadedStatus)}, - { 109, -1, sizeof(LoadMjcfCommand)}, - { 115, -1, sizeof(MjcfLoadedStatus)}, - { 120, -1, sizeof(ChangeDynamicsCommand)}, - { 154, -1, sizeof(GetDynamicsCommand)}, - { 160, -1, sizeof(GetDynamicsStatus)}, - { 178, -1, sizeof(InitPoseCommand)}, - { 188, -1, sizeof(RequestActualStateCommand)}, - { 195, -1, sizeof(SendActualStateStatus)}, - { 211, -1, sizeof(ConfigureOpenGLVisualizerCommand)}, - { 222, -1, sizeof(PhysicsSimulationParameters)}, - { 252, -1, sizeof(PhysicsSimulationParametersCommand)}, - { 258, -1, sizeof(JointMotorControlCommand)}, - { 272, -1, sizeof(UserConstraintCommand)}, - { 291, -1, sizeof(UserConstraintStatus)}, - { 297, -1, sizeof(UserConstraintStateStatus)}, - { 304, -1, sizeof(RequestKeyboardEventsCommand)}, - { 308, -1, sizeof(KeyboardEvent)}, - { 314, -1, sizeof(KeyboardEventsStatus)}, - { 319, -1, sizeof(RequestCameraImageCommand)}, - { 339, -1, sizeof(RequestCameraImageStatus)}, - { 348, -1, sizeof(PyBulletCommand)}, - { 374, -1, sizeof(PyBulletStatus)}, +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::pybullet_grpc::vec3)}, + { 8, -1, sizeof(::pybullet_grpc::quat4)}, + { 17, -1, sizeof(::pybullet_grpc::vec4)}, + { 26, -1, sizeof(::pybullet_grpc::transform)}, + { 33, -1, sizeof(::pybullet_grpc::matrix4x4)}, + { 39, -1, sizeof(::pybullet_grpc::CheckVersionCommand)}, + { 45, -1, sizeof(::pybullet_grpc::CheckVersionStatus)}, + { 51, -1, sizeof(::pybullet_grpc::TerminateServerCommand)}, + { 57, -1, sizeof(::pybullet_grpc::StepSimulationCommand)}, + { 62, -1, sizeof(::pybullet_grpc::SyncBodiesCommand)}, + { 67, -1, sizeof(::pybullet_grpc::SyncBodiesStatus)}, + { 74, -1, sizeof(::pybullet_grpc::RequestBodyInfoCommand)}, + { 80, -1, sizeof(::pybullet_grpc::RequestBodyInfoStatus)}, + { 87, -1, sizeof(::pybullet_grpc::LoadUrdfCommand)}, + { 102, -1, sizeof(::pybullet_grpc::LoadUrdfStatus)}, + { 110, -1, sizeof(::pybullet_grpc::LoadSdfCommand)}, + { 120, -1, sizeof(::pybullet_grpc::SdfLoadedStatus)}, + { 126, -1, sizeof(::pybullet_grpc::LoadMjcfCommand)}, + { 133, -1, sizeof(::pybullet_grpc::MjcfLoadedStatus)}, + { 139, -1, sizeof(::pybullet_grpc::ChangeDynamicsCommand)}, + { 174, -1, sizeof(::pybullet_grpc::GetDynamicsCommand)}, + { 181, -1, sizeof(::pybullet_grpc::GetDynamicsStatus)}, + { 200, -1, sizeof(::pybullet_grpc::InitPoseCommand)}, + { 211, -1, sizeof(::pybullet_grpc::RequestActualStateCommand)}, + { 219, -1, sizeof(::pybullet_grpc::SendActualStateStatus)}, + { 236, -1, sizeof(::pybullet_grpc::ConfigureOpenGLVisualizerCommand)}, + { 248, -1, sizeof(::pybullet_grpc::PhysicsSimulationParameters)}, + { 279, -1, sizeof(::pybullet_grpc::PhysicsSimulationParametersCommand)}, + { 286, -1, sizeof(::pybullet_grpc::JointMotorControlCommand)}, + { 301, -1, sizeof(::pybullet_grpc::UserConstraintCommand)}, + { 321, -1, sizeof(::pybullet_grpc::UserConstraintStatus)}, + { 328, -1, sizeof(::pybullet_grpc::UserConstraintStateStatus)}, + { 336, -1, sizeof(::pybullet_grpc::RequestKeyboardEventsCommand)}, + { 341, -1, sizeof(::pybullet_grpc::KeyboardEvent)}, + { 348, -1, sizeof(::pybullet_grpc::KeyboardEventsStatus)}, + { 354, -1, sizeof(::pybullet_grpc::RequestCameraImageCommand)}, + { 375, -1, sizeof(::pybullet_grpc::RequestCameraImageStatus)}, + { 385, -1, sizeof(::pybullet_grpc::PyBulletCommand)}, + { 412, -1, sizeof(::pybullet_grpc::PyBulletStatus)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&_vec3_default_instance_), - reinterpret_cast(&_quat4_default_instance_), - reinterpret_cast(&_vec4_default_instance_), - reinterpret_cast(&_transform_default_instance_), - reinterpret_cast(&_matrix4x4_default_instance_), - reinterpret_cast(&_CheckVersionCommand_default_instance_), - reinterpret_cast(&_CheckVersionStatus_default_instance_), - reinterpret_cast(&_TerminateServerCommand_default_instance_), - reinterpret_cast(&_StepSimulationCommand_default_instance_), - reinterpret_cast(&_SyncBodiesCommand_default_instance_), - reinterpret_cast(&_SyncBodiesStatus_default_instance_), - reinterpret_cast(&_RequestBodyInfoCommand_default_instance_), - reinterpret_cast(&_RequestBodyInfoStatus_default_instance_), - reinterpret_cast(&_LoadUrdfCommand_default_instance_), - reinterpret_cast(&_LoadUrdfStatus_default_instance_), - reinterpret_cast(&_LoadSdfCommand_default_instance_), - reinterpret_cast(&_SdfLoadedStatus_default_instance_), - reinterpret_cast(&_LoadMjcfCommand_default_instance_), - reinterpret_cast(&_MjcfLoadedStatus_default_instance_), - reinterpret_cast(&_ChangeDynamicsCommand_default_instance_), - reinterpret_cast(&_GetDynamicsCommand_default_instance_), - reinterpret_cast(&_GetDynamicsStatus_default_instance_), - reinterpret_cast(&_InitPoseCommand_default_instance_), - reinterpret_cast(&_RequestActualStateCommand_default_instance_), - reinterpret_cast(&_SendActualStateStatus_default_instance_), - reinterpret_cast(&_ConfigureOpenGLVisualizerCommand_default_instance_), - reinterpret_cast(&_PhysicsSimulationParameters_default_instance_), - reinterpret_cast(&_PhysicsSimulationParametersCommand_default_instance_), - reinterpret_cast(&_JointMotorControlCommand_default_instance_), - reinterpret_cast(&_UserConstraintCommand_default_instance_), - reinterpret_cast(&_UserConstraintStatus_default_instance_), - reinterpret_cast(&_UserConstraintStateStatus_default_instance_), - reinterpret_cast(&_RequestKeyboardEventsCommand_default_instance_), - reinterpret_cast(&_KeyboardEvent_default_instance_), - reinterpret_cast(&_KeyboardEventsStatus_default_instance_), - reinterpret_cast(&_RequestCameraImageCommand_default_instance_), - reinterpret_cast(&_RequestCameraImageStatus_default_instance_), - reinterpret_cast(&_PyBulletCommand_default_instance_), - reinterpret_cast(&_PyBulletStatus_default_instance_), + reinterpret_cast(&::pybullet_grpc::_vec3_default_instance_), + reinterpret_cast(&::pybullet_grpc::_quat4_default_instance_), + reinterpret_cast(&::pybullet_grpc::_vec4_default_instance_), + reinterpret_cast(&::pybullet_grpc::_transform_default_instance_), + reinterpret_cast(&::pybullet_grpc::_matrix4x4_default_instance_), + reinterpret_cast(&::pybullet_grpc::_CheckVersionCommand_default_instance_), + reinterpret_cast(&::pybullet_grpc::_CheckVersionStatus_default_instance_), + reinterpret_cast(&::pybullet_grpc::_TerminateServerCommand_default_instance_), + reinterpret_cast(&::pybullet_grpc::_StepSimulationCommand_default_instance_), + reinterpret_cast(&::pybullet_grpc::_SyncBodiesCommand_default_instance_), + reinterpret_cast(&::pybullet_grpc::_SyncBodiesStatus_default_instance_), + reinterpret_cast(&::pybullet_grpc::_RequestBodyInfoCommand_default_instance_), + reinterpret_cast(&::pybullet_grpc::_RequestBodyInfoStatus_default_instance_), + reinterpret_cast(&::pybullet_grpc::_LoadUrdfCommand_default_instance_), + reinterpret_cast(&::pybullet_grpc::_LoadUrdfStatus_default_instance_), + reinterpret_cast(&::pybullet_grpc::_LoadSdfCommand_default_instance_), + reinterpret_cast(&::pybullet_grpc::_SdfLoadedStatus_default_instance_), + reinterpret_cast(&::pybullet_grpc::_LoadMjcfCommand_default_instance_), + reinterpret_cast(&::pybullet_grpc::_MjcfLoadedStatus_default_instance_), + reinterpret_cast(&::pybullet_grpc::_ChangeDynamicsCommand_default_instance_), + reinterpret_cast(&::pybullet_grpc::_GetDynamicsCommand_default_instance_), + reinterpret_cast(&::pybullet_grpc::_GetDynamicsStatus_default_instance_), + reinterpret_cast(&::pybullet_grpc::_InitPoseCommand_default_instance_), + reinterpret_cast(&::pybullet_grpc::_RequestActualStateCommand_default_instance_), + reinterpret_cast(&::pybullet_grpc::_SendActualStateStatus_default_instance_), + reinterpret_cast(&::pybullet_grpc::_ConfigureOpenGLVisualizerCommand_default_instance_), + reinterpret_cast(&::pybullet_grpc::_PhysicsSimulationParameters_default_instance_), + reinterpret_cast(&::pybullet_grpc::_PhysicsSimulationParametersCommand_default_instance_), + reinterpret_cast(&::pybullet_grpc::_JointMotorControlCommand_default_instance_), + reinterpret_cast(&::pybullet_grpc::_UserConstraintCommand_default_instance_), + reinterpret_cast(&::pybullet_grpc::_UserConstraintStatus_default_instance_), + reinterpret_cast(&::pybullet_grpc::_UserConstraintStateStatus_default_instance_), + reinterpret_cast(&::pybullet_grpc::_RequestKeyboardEventsCommand_default_instance_), + reinterpret_cast(&::pybullet_grpc::_KeyboardEvent_default_instance_), + reinterpret_cast(&::pybullet_grpc::_KeyboardEventsStatus_default_instance_), + reinterpret_cast(&::pybullet_grpc::_RequestCameraImageCommand_default_instance_), + reinterpret_cast(&::pybullet_grpc::_RequestCameraImageStatus_default_instance_), + reinterpret_cast(&::pybullet_grpc::_PyBulletCommand_default_instance_), + reinterpret_cast(&::pybullet_grpc::_PyBulletStatus_default_instance_), }; -namespace { - void protobuf_AssignDescriptors() { AddDescriptors(); - ::google::protobuf::MessageFactory* factory = NULL; AssignDescriptors( - "pybullet.proto", schemas, file_default_instances, TableStruct::offsets, factory, + "pybullet.proto", schemas, file_default_instances, TableStruct::offsets, file_level_metadata, NULL, NULL); } void protobuf_AssignDescriptorsOnce() { - static GOOGLE_PROTOBUF_DECLARE_ONCE(once); - ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); } -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 39); } -} // namespace - -void TableStruct::Shutdown() { - _vec3_default_instance_.Shutdown(); - delete file_level_metadata[0].reflection; - _quat4_default_instance_.Shutdown(); - delete file_level_metadata[1].reflection; - _vec4_default_instance_.Shutdown(); - delete file_level_metadata[2].reflection; - _transform_default_instance_.Shutdown(); - delete file_level_metadata[3].reflection; - _matrix4x4_default_instance_.Shutdown(); - delete file_level_metadata[4].reflection; - _CheckVersionCommand_default_instance_.Shutdown(); - delete file_level_metadata[5].reflection; - _CheckVersionStatus_default_instance_.Shutdown(); - delete file_level_metadata[6].reflection; - _TerminateServerCommand_default_instance_.Shutdown(); - delete file_level_metadata[7].reflection; - _StepSimulationCommand_default_instance_.Shutdown(); - delete file_level_metadata[8].reflection; - _SyncBodiesCommand_default_instance_.Shutdown(); - delete file_level_metadata[9].reflection; - _SyncBodiesStatus_default_instance_.Shutdown(); - delete file_level_metadata[10].reflection; - _RequestBodyInfoCommand_default_instance_.Shutdown(); - delete file_level_metadata[11].reflection; - _RequestBodyInfoStatus_default_instance_.Shutdown(); - delete file_level_metadata[12].reflection; - _LoadUrdfCommand_default_instance_.Shutdown(); - delete file_level_metadata[13].reflection; - _LoadUrdfStatus_default_instance_.Shutdown(); - delete file_level_metadata[14].reflection; - _LoadSdfCommand_default_instance_.Shutdown(); - delete file_level_metadata[15].reflection; - _SdfLoadedStatus_default_instance_.Shutdown(); - delete file_level_metadata[16].reflection; - _LoadMjcfCommand_default_instance_.Shutdown(); - delete file_level_metadata[17].reflection; - _MjcfLoadedStatus_default_instance_.Shutdown(); - delete file_level_metadata[18].reflection; - _ChangeDynamicsCommand_default_instance_.Shutdown(); - delete file_level_metadata[19].reflection; - _GetDynamicsCommand_default_instance_.Shutdown(); - delete file_level_metadata[20].reflection; - _GetDynamicsStatus_default_instance_.Shutdown(); - delete file_level_metadata[21].reflection; - _InitPoseCommand_default_instance_.Shutdown(); - delete file_level_metadata[22].reflection; - _RequestActualStateCommand_default_instance_.Shutdown(); - delete file_level_metadata[23].reflection; - _SendActualStateStatus_default_instance_.Shutdown(); - delete file_level_metadata[24].reflection; - _ConfigureOpenGLVisualizerCommand_default_instance_.Shutdown(); - delete file_level_metadata[25].reflection; - _PhysicsSimulationParameters_default_instance_.Shutdown(); - delete file_level_metadata[26].reflection; - _PhysicsSimulationParametersCommand_default_instance_.Shutdown(); - delete file_level_metadata[27].reflection; - _JointMotorControlCommand_default_instance_.Shutdown(); - delete file_level_metadata[28].reflection; - _UserConstraintCommand_default_instance_.Shutdown(); - delete file_level_metadata[29].reflection; - _UserConstraintStatus_default_instance_.Shutdown(); - delete file_level_metadata[30].reflection; - _UserConstraintStateStatus_default_instance_.Shutdown(); - delete file_level_metadata[31].reflection; - _RequestKeyboardEventsCommand_default_instance_.Shutdown(); - delete file_level_metadata[32].reflection; - _KeyboardEvent_default_instance_.Shutdown(); - delete file_level_metadata[33].reflection; - _KeyboardEventsStatus_default_instance_.Shutdown(); - delete file_level_metadata[34].reflection; - _RequestCameraImageCommand_default_instance_.Shutdown(); - delete file_level_metadata[35].reflection; - _RequestCameraImageStatus_default_instance_.Shutdown(); - delete file_level_metadata[36].reflection; - _PyBulletCommand_default_instance_.Shutdown(); - delete file_level_metadata[37].reflection; - _PyBulletStatus_default_instance_.Shutdown(); - delete file_level_metadata[38].reflection; -} - -void TableStruct::InitDefaultsImpl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - ::google::protobuf::internal::InitProtobufDefaults(); - _vec3_default_instance_.DefaultConstruct(); - _quat4_default_instance_.DefaultConstruct(); - _vec4_default_instance_.DefaultConstruct(); - _transform_default_instance_.DefaultConstruct(); - _matrix4x4_default_instance_.DefaultConstruct(); - _CheckVersionCommand_default_instance_.DefaultConstruct(); - _CheckVersionStatus_default_instance_.DefaultConstruct(); - _TerminateServerCommand_default_instance_.DefaultConstruct(); - _StepSimulationCommand_default_instance_.DefaultConstruct(); - _SyncBodiesCommand_default_instance_.DefaultConstruct(); - _SyncBodiesStatus_default_instance_.DefaultConstruct(); - _RequestBodyInfoCommand_default_instance_.DefaultConstruct(); - _RequestBodyInfoStatus_default_instance_.DefaultConstruct(); - _LoadUrdfCommand_default_instance_.DefaultConstruct(); - _LoadUrdfStatus_default_instance_.DefaultConstruct(); - _LoadSdfCommand_default_instance_.DefaultConstruct(); - _SdfLoadedStatus_default_instance_.DefaultConstruct(); - _LoadMjcfCommand_default_instance_.DefaultConstruct(); - _MjcfLoadedStatus_default_instance_.DefaultConstruct(); - _ChangeDynamicsCommand_default_instance_.DefaultConstruct(); - _GetDynamicsCommand_default_instance_.DefaultConstruct(); - _GetDynamicsStatus_default_instance_.DefaultConstruct(); - _InitPoseCommand_default_instance_.DefaultConstruct(); - _RequestActualStateCommand_default_instance_.DefaultConstruct(); - _SendActualStateStatus_default_instance_.DefaultConstruct(); - _ConfigureOpenGLVisualizerCommand_default_instance_.DefaultConstruct(); - _PhysicsSimulationParameters_default_instance_.DefaultConstruct(); - _PhysicsSimulationParametersCommand_default_instance_.DefaultConstruct(); - _JointMotorControlCommand_default_instance_.DefaultConstruct(); - _UserConstraintCommand_default_instance_.DefaultConstruct(); - _UserConstraintStatus_default_instance_.DefaultConstruct(); - _UserConstraintStateStatus_default_instance_.DefaultConstruct(); - _RequestKeyboardEventsCommand_default_instance_.DefaultConstruct(); - _KeyboardEvent_default_instance_.DefaultConstruct(); - _KeyboardEventsStatus_default_instance_.DefaultConstruct(); - _RequestCameraImageCommand_default_instance_.DefaultConstruct(); - _RequestCameraImageStatus_default_instance_.DefaultConstruct(); - _PyBulletCommand_default_instance_.DefaultConstruct(); - _PyBulletStatus_default_instance_.DefaultConstruct(); - _transform_default_instance_.get_mutable()->origin_ = const_cast< ::pybullet_grpc::vec3*>( - ::pybullet_grpc::vec3::internal_default_instance()); - _transform_default_instance_.get_mutable()->orientation_ = const_cast< ::pybullet_grpc::quat4*>( - ::pybullet_grpc::quat4::internal_default_instance()); - _LoadUrdfCommand_default_instance_.get_mutable()->initialposition_ = const_cast< ::pybullet_grpc::vec3*>( - ::pybullet_grpc::vec3::internal_default_instance()); - _LoadUrdfCommand_default_instance_.get_mutable()->initialorientation_ = const_cast< ::pybullet_grpc::quat4*>( - ::pybullet_grpc::quat4::internal_default_instance()); - _LoadUrdfCommand_default_instance_.usemultibody_ = 0; - _LoadUrdfCommand_default_instance_.usefixedbase_ = false; - _LoadUrdfCommand_default_instance_.globalscaling_ = 0; - _LoadSdfCommand_default_instance_.usemultibody_ = 0; - _LoadSdfCommand_default_instance_.globalscaling_ = 0; - _ChangeDynamicsCommand_default_instance_.mass_ = 0; - _ChangeDynamicsCommand_default_instance_.lateralfriction_ = 0; - _ChangeDynamicsCommand_default_instance_.spinningfriction_ = 0; - _ChangeDynamicsCommand_default_instance_.rollingfriction_ = 0; - _ChangeDynamicsCommand_default_instance_.restitution_ = 0; - _ChangeDynamicsCommand_default_instance_.lineardamping_ = 0; - _ChangeDynamicsCommand_default_instance_.angulardamping_ = 0; - _ChangeDynamicsCommand_default_instance_.contactstiffness_ = 0; - _ChangeDynamicsCommand_default_instance_.contactdamping_ = 0; - _ChangeDynamicsCommand_default_instance_.localinertiadiagonal_ = const_cast< ::pybullet_grpc::vec3*>( - ::pybullet_grpc::vec3::internal_default_instance()); - _ChangeDynamicsCommand_default_instance_.frictionanchor_ = 0; - _ChangeDynamicsCommand_default_instance_.ccdsweptsphereradius_ = 0; - _ChangeDynamicsCommand_default_instance_.contactprocessingthreshold_ = 0; - _ChangeDynamicsCommand_default_instance_.activationstate_ = 0; - _GetDynamicsStatus_default_instance_.get_mutable()->localinertiadiagonal_ = const_cast< ::pybullet_grpc::vec3*>( - ::pybullet_grpc::vec3::internal_default_instance()); - _ConfigureOpenGLVisualizerCommand_default_instance_.get_mutable()->cameratargetposition_ = const_cast< ::pybullet_grpc::vec3*>( - ::pybullet_grpc::vec3::internal_default_instance()); - _PhysicsSimulationParameters_default_instance_.get_mutable()->gravityacceleration_ = const_cast< ::pybullet_grpc::vec3*>( - ::pybullet_grpc::vec3::internal_default_instance()); - _PhysicsSimulationParametersCommand_default_instance_.get_mutable()->params_ = const_cast< ::pybullet_grpc::PhysicsSimulationParameters*>( - ::pybullet_grpc::PhysicsSimulationParameters::internal_default_instance()); - _UserConstraintCommand_default_instance_.get_mutable()->parentframe_ = const_cast< ::pybullet_grpc::transform*>( - ::pybullet_grpc::transform::internal_default_instance()); - _UserConstraintCommand_default_instance_.get_mutable()->childframe_ = const_cast< ::pybullet_grpc::transform*>( - ::pybullet_grpc::transform::internal_default_instance()); - _UserConstraintCommand_default_instance_.get_mutable()->jointaxis_ = const_cast< ::pybullet_grpc::vec3*>( - ::pybullet_grpc::vec3::internal_default_instance()); - _UserConstraintStateStatus_default_instance_.get_mutable()->appliedconstraintforceslinear_ = const_cast< ::pybullet_grpc::vec3*>( - ::pybullet_grpc::vec3::internal_default_instance()); - _UserConstraintStateStatus_default_instance_.get_mutable()->appliedconstraintforcesangular_ = const_cast< ::pybullet_grpc::vec3*>( - ::pybullet_grpc::vec3::internal_default_instance()); - _RequestCameraImageCommand_default_instance_.get_mutable()->viewmatrix_ = const_cast< ::pybullet_grpc::matrix4x4*>( - ::pybullet_grpc::matrix4x4::internal_default_instance()); - _RequestCameraImageCommand_default_instance_.get_mutable()->projectionmatrix_ = const_cast< ::pybullet_grpc::matrix4x4*>( - ::pybullet_grpc::matrix4x4::internal_default_instance()); - _RequestCameraImageCommand_default_instance_.get_mutable()->lightdirection_ = const_cast< ::pybullet_grpc::vec3*>( - ::pybullet_grpc::vec3::internal_default_instance()); - _RequestCameraImageCommand_default_instance_.get_mutable()->lightcolor_ = const_cast< ::pybullet_grpc::vec3*>( - ::pybullet_grpc::vec3::internal_default_instance()); - _RequestCameraImageCommand_default_instance_.get_mutable()->projectivetextureviewmatrix_ = const_cast< ::pybullet_grpc::matrix4x4*>( - ::pybullet_grpc::matrix4x4::internal_default_instance()); - _RequestCameraImageCommand_default_instance_.get_mutable()->projectivetextureprojectionmatrix_ = const_cast< ::pybullet_grpc::matrix4x4*>( - ::pybullet_grpc::matrix4x4::internal_default_instance()); - _PyBulletCommand_default_instance_.loadurdfcommand_ = const_cast< ::pybullet_grpc::LoadUrdfCommand*>( - ::pybullet_grpc::LoadUrdfCommand::internal_default_instance()); - _PyBulletCommand_default_instance_.terminateservercommand_ = const_cast< ::pybullet_grpc::TerminateServerCommand*>( - ::pybullet_grpc::TerminateServerCommand::internal_default_instance()); - _PyBulletCommand_default_instance_.stepsimulationcommand_ = const_cast< ::pybullet_grpc::StepSimulationCommand*>( - ::pybullet_grpc::StepSimulationCommand::internal_default_instance()); - _PyBulletCommand_default_instance_.loadsdfcommand_ = const_cast< ::pybullet_grpc::LoadSdfCommand*>( - ::pybullet_grpc::LoadSdfCommand::internal_default_instance()); - _PyBulletCommand_default_instance_.loadmjcfcommand_ = const_cast< ::pybullet_grpc::LoadMjcfCommand*>( - ::pybullet_grpc::LoadMjcfCommand::internal_default_instance()); - _PyBulletCommand_default_instance_.changedynamicscommand_ = const_cast< ::pybullet_grpc::ChangeDynamicsCommand*>( - ::pybullet_grpc::ChangeDynamicsCommand::internal_default_instance()); - _PyBulletCommand_default_instance_.getdynamicscommand_ = const_cast< ::pybullet_grpc::GetDynamicsCommand*>( - ::pybullet_grpc::GetDynamicsCommand::internal_default_instance()); - _PyBulletCommand_default_instance_.initposecommand_ = const_cast< ::pybullet_grpc::InitPoseCommand*>( - ::pybullet_grpc::InitPoseCommand::internal_default_instance()); - _PyBulletCommand_default_instance_.requestactualstatecommand_ = const_cast< ::pybullet_grpc::RequestActualStateCommand*>( - ::pybullet_grpc::RequestActualStateCommand::internal_default_instance()); - _PyBulletCommand_default_instance_.configureopenglvisualizercommand_ = const_cast< ::pybullet_grpc::ConfigureOpenGLVisualizerCommand*>( - ::pybullet_grpc::ConfigureOpenGLVisualizerCommand::internal_default_instance()); - _PyBulletCommand_default_instance_.syncbodiescommand_ = const_cast< ::pybullet_grpc::SyncBodiesCommand*>( - ::pybullet_grpc::SyncBodiesCommand::internal_default_instance()); - _PyBulletCommand_default_instance_.requestbodyinfocommand_ = const_cast< ::pybullet_grpc::RequestBodyInfoCommand*>( - ::pybullet_grpc::RequestBodyInfoCommand::internal_default_instance()); - _PyBulletCommand_default_instance_.setphysicssimulationparameterscommand_ = const_cast< ::pybullet_grpc::PhysicsSimulationParametersCommand*>( - ::pybullet_grpc::PhysicsSimulationParametersCommand::internal_default_instance()); - _PyBulletCommand_default_instance_.jointmotorcontrolcommand_ = const_cast< ::pybullet_grpc::JointMotorControlCommand*>( - ::pybullet_grpc::JointMotorControlCommand::internal_default_instance()); - _PyBulletCommand_default_instance_.userconstraintcommand_ = const_cast< ::pybullet_grpc::UserConstraintCommand*>( - ::pybullet_grpc::UserConstraintCommand::internal_default_instance()); - _PyBulletCommand_default_instance_.checkversioncommand_ = const_cast< ::pybullet_grpc::CheckVersionCommand*>( - ::pybullet_grpc::CheckVersionCommand::internal_default_instance()); - _PyBulletCommand_default_instance_.requestkeyboardeventscommand_ = const_cast< ::pybullet_grpc::RequestKeyboardEventsCommand*>( - ::pybullet_grpc::RequestKeyboardEventsCommand::internal_default_instance()); - _PyBulletCommand_default_instance_.requestcameraimagecommand_ = const_cast< ::pybullet_grpc::RequestCameraImageCommand*>( - ::pybullet_grpc::RequestCameraImageCommand::internal_default_instance()); - _PyBulletStatus_default_instance_.urdfstatus_ = const_cast< ::pybullet_grpc::LoadUrdfStatus*>( - ::pybullet_grpc::LoadUrdfStatus::internal_default_instance()); - _PyBulletStatus_default_instance_.sdfstatus_ = const_cast< ::pybullet_grpc::SdfLoadedStatus*>( - ::pybullet_grpc::SdfLoadedStatus::internal_default_instance()); - _PyBulletStatus_default_instance_.mjcfstatus_ = const_cast< ::pybullet_grpc::MjcfLoadedStatus*>( - ::pybullet_grpc::MjcfLoadedStatus::internal_default_instance()); - _PyBulletStatus_default_instance_.getdynamicsstatus_ = const_cast< ::pybullet_grpc::GetDynamicsStatus*>( - ::pybullet_grpc::GetDynamicsStatus::internal_default_instance()); - _PyBulletStatus_default_instance_.actualstatestatus_ = const_cast< ::pybullet_grpc::SendActualStateStatus*>( - ::pybullet_grpc::SendActualStateStatus::internal_default_instance()); - _PyBulletStatus_default_instance_.syncbodiesstatus_ = const_cast< ::pybullet_grpc::SyncBodiesStatus*>( - ::pybullet_grpc::SyncBodiesStatus::internal_default_instance()); - _PyBulletStatus_default_instance_.requestbodyinfostatus_ = const_cast< ::pybullet_grpc::RequestBodyInfoStatus*>( - ::pybullet_grpc::RequestBodyInfoStatus::internal_default_instance()); - _PyBulletStatus_default_instance_.requestphysicssimulationparametersstatus_ = const_cast< ::pybullet_grpc::PhysicsSimulationParameters*>( - ::pybullet_grpc::PhysicsSimulationParameters::internal_default_instance()); - _PyBulletStatus_default_instance_.checkversionstatus_ = const_cast< ::pybullet_grpc::CheckVersionStatus*>( - ::pybullet_grpc::CheckVersionStatus::internal_default_instance()); - _PyBulletStatus_default_instance_.userconstraintstatus_ = const_cast< ::pybullet_grpc::UserConstraintStatus*>( - ::pybullet_grpc::UserConstraintStatus::internal_default_instance()); - _PyBulletStatus_default_instance_.userconstraintstatestatus_ = const_cast< ::pybullet_grpc::UserConstraintStateStatus*>( - ::pybullet_grpc::UserConstraintStateStatus::internal_default_instance()); - _PyBulletStatus_default_instance_.keyboardeventsstatus_ = const_cast< ::pybullet_grpc::KeyboardEventsStatus*>( - ::pybullet_grpc::KeyboardEventsStatus::internal_default_instance()); - _PyBulletStatus_default_instance_.requestcameraimagestatus_ = const_cast< ::pybullet_grpc::RequestCameraImageStatus*>( - ::pybullet_grpc::RequestCameraImageStatus::internal_default_instance()); -} - -void InitDefaults() { - static GOOGLE_PROTOBUF_DECLARE_ONCE(once); - ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); -} void AddDescriptorsImpl() { InitDefaults(); - static const char descriptor[] = { + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n\016pybullet.proto\022\rpybullet_grpc\"\'\n\004vec3\022" "\t\n\001x\030\001 \001(\001\022\t\n\001y\030\002 \001(\001\022\t\n\001z\030\003 \001(\001\"3\n\005quat" "4\022\t\n\001x\030\001 \001(\001\022\t\n\001y\030\002 \001(\001\022\t\n\001z\030\003 \001(\001\022\t\n\001w\030" @@ -1141,25 +1704,25 @@ void AddDescriptorsImpl() { descriptor, 8647); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "pybullet.proto", &protobuf_RegisterTypes); - ::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown); } void AddDescriptors() { - static GOOGLE_PROTOBUF_DECLARE_ONCE(once); - ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); } -// Force AddDescriptors() to be called at static initialization time. +// Force AddDescriptors() to be called at dynamic initialization time. struct StaticDescriptorInitializer { StaticDescriptorInitializer() { AddDescriptors(); } } static_descriptor_initializer; - } // namespace protobuf_pybullet_2eproto - +namespace pybullet_grpc { // =================================================================== +void vec3::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int vec3::kXFieldNumber; const int vec3::kYFieldNumber; @@ -1168,27 +1731,25 @@ const int vec3::kZFieldNumber; vec3::vec3() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_vec3.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.vec3) } vec3::vec3(const vec3& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&x_, &from.x_, - reinterpret_cast(&z_) - - reinterpret_cast(&x_) + sizeof(z_)); + static_cast(reinterpret_cast(&z_) - + reinterpret_cast(&x_)) + sizeof(z_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.vec3) } void vec3::SharedCtor() { - ::memset(&x_, 0, reinterpret_cast(&z_) - - reinterpret_cast(&x_) + sizeof(z_)); - _cached_size_ = 0; + ::memset(&x_, 0, static_cast( + reinterpret_cast(&z_) - + reinterpret_cast(&x_)) + sizeof(z_)); } vec3::~vec3() { @@ -1200,32 +1761,29 @@ void vec3::SharedDtor() { } void vec3::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* vec3::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[0].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const vec3& vec3::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_vec3.base); return *internal_default_instance(); } -vec3* vec3::New(::google::protobuf::Arena* arena) const { - vec3* n = new vec3; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void vec3::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.vec3) - ::memset(&x_, 0, reinterpret_cast(&z_) - - reinterpret_cast(&x_) + sizeof(z_)); + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&x_, 0, static_cast( + reinterpret_cast(&z_) - + reinterpret_cast(&x_)) + sizeof(z_)); + _internal_metadata_.Clear(); } bool vec3::MergePartialFromCodedStream( @@ -1234,13 +1792,14 @@ bool vec3::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.vec3) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // double x = 1; case 1: { - if (tag == 9u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -1253,7 +1812,8 @@ bool vec3::MergePartialFromCodedStream( // double y = 2; case 2: { - if (tag == 17u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -1266,7 +1826,8 @@ bool vec3::MergePartialFromCodedStream( // double z = 3; case 3: { - if (tag == 25u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -1279,12 +1840,11 @@ bool vec3::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -1301,6 +1861,9 @@ failure: void vec3::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.vec3) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // double x = 1; if (this->x() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->x(), output); @@ -1316,13 +1879,20 @@ void vec3::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->z(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.vec3) } ::google::protobuf::uint8* vec3::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.vec3) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // double x = 1; if (this->x() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->x(), target); @@ -1338,6 +1908,10 @@ void vec3::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->z(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.vec3) return target; } @@ -1346,6 +1920,11 @@ size_t vec3::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.vec3) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // double x = 1; if (this->x() != 0) { total_size += 1 + 8; @@ -1362,9 +1941,7 @@ size_t vec3::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -1387,6 +1964,9 @@ void vec3::MergeFrom(const vec3& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.vec3) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.x() != 0) { set_x(from.x()); } @@ -1421,66 +2001,23 @@ void vec3::Swap(vec3* other) { InternalSwap(other); } void vec3::InternalSwap(vec3* other) { - std::swap(x_, other->x_); - std::swap(y_, other->y_); - std::swap(z_, other->z_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + swap(x_, other->x_); + swap(y_, other->y_); + swap(z_, other->z_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata vec3::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[0]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// vec3 - -// double x = 1; -void vec3::clear_x() { - x_ = 0; -} -double vec3::x() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.vec3.x) - return x_; -} -void vec3::set_x(double value) { - - x_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.vec3.x) -} - -// double y = 2; -void vec3::clear_y() { - y_ = 0; -} -double vec3::y() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.vec3.y) - return y_; -} -void vec3::set_y(double value) { - - y_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.vec3.y) -} - -// double z = 3; -void vec3::clear_z() { - z_ = 0; -} -double vec3::z() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.vec3.z) - return z_; -} -void vec3::set_z(double value) { - - z_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.vec3.z) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void quat4::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int quat4::kXFieldNumber; const int quat4::kYFieldNumber; @@ -1490,27 +2027,25 @@ const int quat4::kWFieldNumber; quat4::quat4() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_quat4.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.quat4) } quat4::quat4(const quat4& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&x_, &from.x_, - reinterpret_cast(&w_) - - reinterpret_cast(&x_) + sizeof(w_)); + static_cast(reinterpret_cast(&w_) - + reinterpret_cast(&x_)) + sizeof(w_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.quat4) } void quat4::SharedCtor() { - ::memset(&x_, 0, reinterpret_cast(&w_) - - reinterpret_cast(&x_) + sizeof(w_)); - _cached_size_ = 0; + ::memset(&x_, 0, static_cast( + reinterpret_cast(&w_) - + reinterpret_cast(&x_)) + sizeof(w_)); } quat4::~quat4() { @@ -1522,32 +2057,29 @@ void quat4::SharedDtor() { } void quat4::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* quat4::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[1].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const quat4& quat4::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_quat4.base); return *internal_default_instance(); } -quat4* quat4::New(::google::protobuf::Arena* arena) const { - quat4* n = new quat4; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void quat4::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.quat4) - ::memset(&x_, 0, reinterpret_cast(&w_) - - reinterpret_cast(&x_) + sizeof(w_)); + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&x_, 0, static_cast( + reinterpret_cast(&w_) - + reinterpret_cast(&x_)) + sizeof(w_)); + _internal_metadata_.Clear(); } bool quat4::MergePartialFromCodedStream( @@ -1556,13 +2088,14 @@ bool quat4::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.quat4) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // double x = 1; case 1: { - if (tag == 9u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -1575,7 +2108,8 @@ bool quat4::MergePartialFromCodedStream( // double y = 2; case 2: { - if (tag == 17u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -1588,7 +2122,8 @@ bool quat4::MergePartialFromCodedStream( // double z = 3; case 3: { - if (tag == 25u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -1601,7 +2136,8 @@ bool quat4::MergePartialFromCodedStream( // double w = 4; case 4: { - if (tag == 33u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -1614,12 +2150,11 @@ bool quat4::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -1636,6 +2171,9 @@ failure: void quat4::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.quat4) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // double x = 1; if (this->x() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->x(), output); @@ -1656,13 +2194,20 @@ void quat4::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->w(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.quat4) } ::google::protobuf::uint8* quat4::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.quat4) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // double x = 1; if (this->x() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->x(), target); @@ -1683,6 +2228,10 @@ void quat4::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->w(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.quat4) return target; } @@ -1691,6 +2240,11 @@ size_t quat4::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.quat4) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // double x = 1; if (this->x() != 0) { total_size += 1 + 8; @@ -1712,9 +2266,7 @@ size_t quat4::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -1737,6 +2289,9 @@ void quat4::MergeFrom(const quat4& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.quat4) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.x() != 0) { set_x(from.x()); } @@ -1774,81 +2329,24 @@ void quat4::Swap(quat4* other) { InternalSwap(other); } void quat4::InternalSwap(quat4* other) { - std::swap(x_, other->x_); - std::swap(y_, other->y_); - std::swap(z_, other->z_); - std::swap(w_, other->w_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + swap(x_, other->x_); + swap(y_, other->y_); + swap(z_, other->z_); + swap(w_, other->w_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata quat4::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[1]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// quat4 - -// double x = 1; -void quat4::clear_x() { - x_ = 0; -} -double quat4::x() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.quat4.x) - return x_; -} -void quat4::set_x(double value) { - - x_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.quat4.x) -} - -// double y = 2; -void quat4::clear_y() { - y_ = 0; -} -double quat4::y() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.quat4.y) - return y_; -} -void quat4::set_y(double value) { - - y_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.quat4.y) -} - -// double z = 3; -void quat4::clear_z() { - z_ = 0; -} -double quat4::z() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.quat4.z) - return z_; -} -void quat4::set_z(double value) { - - z_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.quat4.z) -} - -// double w = 4; -void quat4::clear_w() { - w_ = 0; -} -double quat4::w() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.quat4.w) - return w_; -} -void quat4::set_w(double value) { - - w_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.quat4.w) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void vec4::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int vec4::kXFieldNumber; const int vec4::kYFieldNumber; @@ -1858,27 +2356,25 @@ const int vec4::kWFieldNumber; vec4::vec4() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_vec4.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.vec4) } vec4::vec4(const vec4& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&x_, &from.x_, - reinterpret_cast(&w_) - - reinterpret_cast(&x_) + sizeof(w_)); + static_cast(reinterpret_cast(&w_) - + reinterpret_cast(&x_)) + sizeof(w_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.vec4) } void vec4::SharedCtor() { - ::memset(&x_, 0, reinterpret_cast(&w_) - - reinterpret_cast(&x_) + sizeof(w_)); - _cached_size_ = 0; + ::memset(&x_, 0, static_cast( + reinterpret_cast(&w_) - + reinterpret_cast(&x_)) + sizeof(w_)); } vec4::~vec4() { @@ -1890,32 +2386,29 @@ void vec4::SharedDtor() { } void vec4::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* vec4::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[2].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const vec4& vec4::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_vec4.base); return *internal_default_instance(); } -vec4* vec4::New(::google::protobuf::Arena* arena) const { - vec4* n = new vec4; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void vec4::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.vec4) - ::memset(&x_, 0, reinterpret_cast(&w_) - - reinterpret_cast(&x_) + sizeof(w_)); + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&x_, 0, static_cast( + reinterpret_cast(&w_) - + reinterpret_cast(&x_)) + sizeof(w_)); + _internal_metadata_.Clear(); } bool vec4::MergePartialFromCodedStream( @@ -1924,13 +2417,14 @@ bool vec4::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.vec4) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // double x = 1; case 1: { - if (tag == 9u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -1943,7 +2437,8 @@ bool vec4::MergePartialFromCodedStream( // double y = 2; case 2: { - if (tag == 17u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -1956,7 +2451,8 @@ bool vec4::MergePartialFromCodedStream( // double z = 3; case 3: { - if (tag == 25u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -1969,7 +2465,8 @@ bool vec4::MergePartialFromCodedStream( // double w = 4; case 4: { - if (tag == 33u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -1982,12 +2479,11 @@ bool vec4::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -2004,6 +2500,9 @@ failure: void vec4::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.vec4) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // double x = 1; if (this->x() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->x(), output); @@ -2024,13 +2523,20 @@ void vec4::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->w(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.vec4) } ::google::protobuf::uint8* vec4::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.vec4) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // double x = 1; if (this->x() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->x(), target); @@ -2051,6 +2557,10 @@ void vec4::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->w(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.vec4) return target; } @@ -2059,6 +2569,11 @@ size_t vec4::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.vec4) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // double x = 1; if (this->x() != 0) { total_size += 1 + 8; @@ -2080,9 +2595,7 @@ size_t vec4::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -2105,6 +2618,9 @@ void vec4::MergeFrom(const vec4& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.vec4) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.x() != 0) { set_x(from.x()); } @@ -2142,81 +2658,28 @@ void vec4::Swap(vec4* other) { InternalSwap(other); } void vec4::InternalSwap(vec4* other) { - std::swap(x_, other->x_); - std::swap(y_, other->y_); - std::swap(z_, other->z_); - std::swap(w_, other->w_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + swap(x_, other->x_); + swap(y_, other->y_); + swap(z_, other->z_); + swap(w_, other->w_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata vec4::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[2]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// vec4 - -// double x = 1; -void vec4::clear_x() { - x_ = 0; -} -double vec4::x() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.vec4.x) - return x_; -} -void vec4::set_x(double value) { - - x_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.vec4.x) -} - -// double y = 2; -void vec4::clear_y() { - y_ = 0; -} -double vec4::y() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.vec4.y) - return y_; -} -void vec4::set_y(double value) { - - y_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.vec4.y) -} - -// double z = 3; -void vec4::clear_z() { - z_ = 0; -} -double vec4::z() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.vec4.z) - return z_; -} -void vec4::set_z(double value) { - - z_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.vec4.z) -} - -// double w = 4; -void vec4::clear_w() { - w_ = 0; -} -double vec4::w() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.vec4.w) - return w_; -} -void vec4::set_w(double value) { - - w_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.vec4.w) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void transform::InitAsDefaultInstance() { + ::pybullet_grpc::_transform_default_instance_._instance.get_mutable()->origin_ = const_cast< ::pybullet_grpc::vec3*>( + ::pybullet_grpc::vec3::internal_default_instance()); + ::pybullet_grpc::_transform_default_instance_._instance.get_mutable()->orientation_ = const_cast< ::pybullet_grpc::quat4*>( + ::pybullet_grpc::quat4::internal_default_instance()); +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int transform::kOriginFieldNumber; const int transform::kOrientationFieldNumber; @@ -2224,16 +2687,14 @@ const int transform::kOrientationFieldNumber; transform::transform() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_transform.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.transform) } transform::transform(const transform& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_origin()) { origin_ = new ::pybullet_grpc::vec3(*from.origin_); @@ -2249,9 +2710,9 @@ transform::transform(const transform& from) } void transform::SharedCtor() { - ::memset(&origin_, 0, reinterpret_cast(&orientation_) - - reinterpret_cast(&origin_) + sizeof(orientation_)); - _cached_size_ = 0; + ::memset(&origin_, 0, static_cast( + reinterpret_cast(&orientation_) - + reinterpret_cast(&origin_)) + sizeof(orientation_)); } transform::~transform() { @@ -2260,39 +2721,30 @@ transform::~transform() { } void transform::SharedDtor() { - if (this != internal_default_instance()) { - delete origin_; - } - if (this != internal_default_instance()) { - delete orientation_; - } + if (this != internal_default_instance()) delete origin_; + if (this != internal_default_instance()) delete orientation_; } void transform::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* transform::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[3].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const transform& transform::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_transform.base); return *internal_default_instance(); } -transform* transform::New(::google::protobuf::Arena* arena) const { - transform* n = new transform; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void transform::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.transform) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + if (GetArenaNoVirtual() == NULL && origin_ != NULL) { delete origin_; } @@ -2301,6 +2753,7 @@ void transform::Clear() { delete orientation_; } orientation_ = NULL; + _internal_metadata_.Clear(); } bool transform::MergePartialFromCodedStream( @@ -2309,14 +2762,15 @@ bool transform::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.transform) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .pybullet_grpc.vec3 origin = 1; case 1: { - if (tag == 10u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_origin())); } else { goto handle_unusual; @@ -2326,8 +2780,9 @@ bool transform::MergePartialFromCodedStream( // .pybullet_grpc.quat4 orientation = 2; case 2: { - if (tag == 18u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_orientation())); } else { goto handle_unusual; @@ -2337,12 +2792,11 @@ bool transform::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -2359,39 +2813,53 @@ failure: void transform::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.transform) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // .pybullet_grpc.vec3 origin = 1; if (this->has_origin()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->origin_, output); + 1, this->_internal_origin(), output); } // .pybullet_grpc.quat4 orientation = 2; if (this->has_orientation()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->orientation_, output); + 2, this->_internal_orientation(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.transform) } ::google::protobuf::uint8* transform::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.transform) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // .pybullet_grpc.vec3 origin = 1; if (this->has_origin()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->origin_, false, target); + InternalWriteMessageToArray( + 1, this->_internal_origin(), deterministic, target); } // .pybullet_grpc.quat4 orientation = 2; if (this->has_orientation()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->orientation_, false, target); + InternalWriteMessageToArray( + 2, this->_internal_orientation(), deterministic, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.transform) return target; } @@ -2400,24 +2868,27 @@ size_t transform::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.transform) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // .pybullet_grpc.vec3 origin = 1; if (this->has_origin()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->origin_); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *origin_); } // .pybullet_grpc.quat4 orientation = 2; if (this->has_orientation()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->orientation_); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *orientation_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -2440,6 +2911,9 @@ void transform::MergeFrom(const transform& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.transform) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.has_origin()) { mutable_origin()->::pybullet_grpc::vec3::MergeFrom(from.origin()); } @@ -2471,124 +2945,42 @@ void transform::Swap(transform* other) { InternalSwap(other); } void transform::InternalSwap(transform* other) { - std::swap(origin_, other->origin_); - std::swap(orientation_, other->orientation_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + swap(origin_, other->origin_); + swap(orientation_, other->orientation_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata transform::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[3]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// transform - -// .pybullet_grpc.vec3 origin = 1; -bool transform::has_origin() const { - return this != internal_default_instance() && origin_ != NULL; -} -void transform::clear_origin() { - if (GetArenaNoVirtual() == NULL && origin_ != NULL) delete origin_; - origin_ = NULL; -} -const ::pybullet_grpc::vec3& transform::origin() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.transform.origin) - return origin_ != NULL ? *origin_ - : *::pybullet_grpc::vec3::internal_default_instance(); -} -::pybullet_grpc::vec3* transform::mutable_origin() { - - if (origin_ == NULL) { - origin_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.transform.origin) - return origin_; -} -::pybullet_grpc::vec3* transform::release_origin() { - // @@protoc_insertion_point(field_release:pybullet_grpc.transform.origin) - - ::pybullet_grpc::vec3* temp = origin_; - origin_ = NULL; - return temp; -} -void transform::set_allocated_origin(::pybullet_grpc::vec3* origin) { - delete origin_; - origin_ = origin; - if (origin) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.transform.origin) -} - -// .pybullet_grpc.quat4 orientation = 2; -bool transform::has_orientation() const { - return this != internal_default_instance() && orientation_ != NULL; -} -void transform::clear_orientation() { - if (GetArenaNoVirtual() == NULL && orientation_ != NULL) delete orientation_; - orientation_ = NULL; -} -const ::pybullet_grpc::quat4& transform::orientation() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.transform.orientation) - return orientation_ != NULL ? *orientation_ - : *::pybullet_grpc::quat4::internal_default_instance(); -} -::pybullet_grpc::quat4* transform::mutable_orientation() { - - if (orientation_ == NULL) { - orientation_ = new ::pybullet_grpc::quat4; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.transform.orientation) - return orientation_; -} -::pybullet_grpc::quat4* transform::release_orientation() { - // @@protoc_insertion_point(field_release:pybullet_grpc.transform.orientation) - - ::pybullet_grpc::quat4* temp = orientation_; - orientation_ = NULL; - return temp; -} -void transform::set_allocated_orientation(::pybullet_grpc::quat4* orientation) { - delete orientation_; - orientation_ = orientation; - if (orientation) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.transform.orientation) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void matrix4x4::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int matrix4x4::kElemsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 matrix4x4::matrix4x4() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_matrix4x4.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.matrix4x4) } matrix4x4::matrix4x4(const matrix4x4& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), - elems_(from.elems_), - _cached_size_(0) { + elems_(from.elems_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.matrix4x4) } void matrix4x4::SharedCtor() { - _cached_size_ = 0; } matrix4x4::~matrix4x4() { @@ -2600,31 +2992,27 @@ void matrix4x4::SharedDtor() { } void matrix4x4::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* matrix4x4::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[4].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const matrix4x4& matrix4x4::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_matrix4x4.base); return *internal_default_instance(); } -matrix4x4* matrix4x4::New(::google::protobuf::Arena* arena) const { - matrix4x4* n = new matrix4x4; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void matrix4x4::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.matrix4x4) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + elems_.Clear(); + _internal_metadata_.Clear(); } bool matrix4x4::MergePartialFromCodedStream( @@ -2633,17 +3021,20 @@ bool matrix4x4::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.matrix4x4) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated double elems = 1; case 1: { - if (tag == 10u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, this->mutable_elems()))); - } else if (tag == 9u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 1, 10u, input, this->mutable_elems()))); @@ -2655,12 +3046,11 @@ bool matrix4x4::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -2677,21 +3067,32 @@ failure: void matrix4x4::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.matrix4x4) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated double elems = 1; if (this->elems_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_elems_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _elems_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->elems().data(), this->elems_size(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.matrix4x4) } ::google::protobuf::uint8* matrix4x4::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.matrix4x4) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated double elems = 1; if (this->elems_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( @@ -2699,13 +3100,16 @@ void matrix4x4::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _elems_cached_byte_size_, target); - } - for (int i = 0; i < this->elems_size(); i++) { + static_cast< ::google::protobuf::int32>( + _elems_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->elems(i), target); + WriteDoubleNoTagToArray(this->elems_, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.matrix4x4) return target; } @@ -2714,13 +3118,19 @@ size_t matrix4x4::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.matrix4x4) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // repeated double elems = 1; { - unsigned int count = this->elems_size(); + unsigned int count = static_cast(this->elems_size()); size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -2730,9 +3140,7 @@ size_t matrix4x4::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -2755,6 +3163,9 @@ void matrix4x4::MergeFrom(const matrix4x4& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.matrix4x4) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + elems_.MergeFrom(from.elems_); } @@ -2781,68 +3192,35 @@ void matrix4x4::Swap(matrix4x4* other) { InternalSwap(other); } void matrix4x4::InternalSwap(matrix4x4* other) { - elems_.UnsafeArenaSwap(&other->elems_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + elems_.InternalSwap(&other->elems_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata matrix4x4::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[4]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// matrix4x4 - -// repeated double elems = 1; -int matrix4x4::elems_size() const { - return elems_.size(); -} -void matrix4x4::clear_elems() { - elems_.Clear(); -} -double matrix4x4::elems(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.matrix4x4.elems) - return elems_.Get(index); -} -void matrix4x4::set_elems(int index, double value) { - elems_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.matrix4x4.elems) -} -void matrix4x4::add_elems(double value) { - elems_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.matrix4x4.elems) -} -const ::google::protobuf::RepeatedField< double >& -matrix4x4::elems() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.matrix4x4.elems) - return elems_; -} -::google::protobuf::RepeatedField< double >* -matrix4x4::mutable_elems() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.matrix4x4.elems) - return &elems_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void CheckVersionCommand::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int CheckVersionCommand::kClientVersionFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CheckVersionCommand::CheckVersionCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_CheckVersionCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.CheckVersionCommand) } CheckVersionCommand::CheckVersionCommand(const CheckVersionCommand& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); clientversion_ = from.clientversion_; // @@protoc_insertion_point(copy_constructor:pybullet_grpc.CheckVersionCommand) @@ -2850,7 +3228,6 @@ CheckVersionCommand::CheckVersionCommand(const CheckVersionCommand& from) void CheckVersionCommand::SharedCtor() { clientversion_ = 0; - _cached_size_ = 0; } CheckVersionCommand::~CheckVersionCommand() { @@ -2862,31 +3239,27 @@ void CheckVersionCommand::SharedDtor() { } void CheckVersionCommand::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* CheckVersionCommand::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[5].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const CheckVersionCommand& CheckVersionCommand::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_CheckVersionCommand.base); return *internal_default_instance(); } -CheckVersionCommand* CheckVersionCommand::New(::google::protobuf::Arena* arena) const { - CheckVersionCommand* n = new CheckVersionCommand; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void CheckVersionCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.CheckVersionCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + clientversion_ = 0; + _internal_metadata_.Clear(); } bool CheckVersionCommand::MergePartialFromCodedStream( @@ -2895,13 +3268,14 @@ bool CheckVersionCommand::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.CheckVersionCommand) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 clientVersion = 1; case 1: { - if (tag == 8u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -2914,12 +3288,11 @@ bool CheckVersionCommand::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -2936,23 +3309,37 @@ failure: void CheckVersionCommand::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.CheckVersionCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 clientVersion = 1; if (this->clientversion() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->clientversion(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.CheckVersionCommand) } ::google::protobuf::uint8* CheckVersionCommand::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.CheckVersionCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 clientVersion = 1; if (this->clientversion() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->clientversion(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.CheckVersionCommand) return target; } @@ -2961,6 +3348,11 @@ size_t CheckVersionCommand::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.CheckVersionCommand) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // int32 clientVersion = 1; if (this->clientversion() != 0) { total_size += 1 + @@ -2969,9 +3361,7 @@ size_t CheckVersionCommand::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -2994,6 +3384,9 @@ void CheckVersionCommand::MergeFrom(const CheckVersionCommand& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.CheckVersionCommand) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.clientversion() != 0) { set_clientversion(from.clientversion()); } @@ -3022,52 +3415,35 @@ void CheckVersionCommand::Swap(CheckVersionCommand* other) { InternalSwap(other); } void CheckVersionCommand::InternalSwap(CheckVersionCommand* other) { - std::swap(clientversion_, other->clientversion_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + swap(clientversion_, other->clientversion_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata CheckVersionCommand::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[5]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// CheckVersionCommand - -// int32 clientVersion = 1; -void CheckVersionCommand::clear_clientversion() { - clientversion_ = 0; -} -::google::protobuf::int32 CheckVersionCommand::clientversion() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.CheckVersionCommand.clientVersion) - return clientversion_; -} -void CheckVersionCommand::set_clientversion(::google::protobuf::int32 value) { - - clientversion_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.CheckVersionCommand.clientVersion) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void CheckVersionStatus::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int CheckVersionStatus::kServerVersionFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CheckVersionStatus::CheckVersionStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_CheckVersionStatus.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.CheckVersionStatus) } CheckVersionStatus::CheckVersionStatus(const CheckVersionStatus& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); serverversion_ = from.serverversion_; // @@protoc_insertion_point(copy_constructor:pybullet_grpc.CheckVersionStatus) @@ -3075,7 +3451,6 @@ CheckVersionStatus::CheckVersionStatus(const CheckVersionStatus& from) void CheckVersionStatus::SharedCtor() { serverversion_ = 0; - _cached_size_ = 0; } CheckVersionStatus::~CheckVersionStatus() { @@ -3087,31 +3462,27 @@ void CheckVersionStatus::SharedDtor() { } void CheckVersionStatus::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* CheckVersionStatus::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[6].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const CheckVersionStatus& CheckVersionStatus::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_CheckVersionStatus.base); return *internal_default_instance(); } -CheckVersionStatus* CheckVersionStatus::New(::google::protobuf::Arena* arena) const { - CheckVersionStatus* n = new CheckVersionStatus; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void CheckVersionStatus::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.CheckVersionStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + serverversion_ = 0; + _internal_metadata_.Clear(); } bool CheckVersionStatus::MergePartialFromCodedStream( @@ -3120,13 +3491,14 @@ bool CheckVersionStatus::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.CheckVersionStatus) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 serverVersion = 1; case 1: { - if (tag == 8u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -3139,12 +3511,11 @@ bool CheckVersionStatus::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -3161,23 +3532,37 @@ failure: void CheckVersionStatus::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.CheckVersionStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 serverVersion = 1; if (this->serverversion() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->serverversion(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.CheckVersionStatus) } ::google::protobuf::uint8* CheckVersionStatus::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.CheckVersionStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 serverVersion = 1; if (this->serverversion() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->serverversion(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.CheckVersionStatus) return target; } @@ -3186,6 +3571,11 @@ size_t CheckVersionStatus::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.CheckVersionStatus) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // int32 serverVersion = 1; if (this->serverversion() != 0) { total_size += 1 + @@ -3194,9 +3584,7 @@ size_t CheckVersionStatus::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -3219,6 +3607,9 @@ void CheckVersionStatus::MergeFrom(const CheckVersionStatus& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.CheckVersionStatus) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.serverversion() != 0) { set_serverversion(from.serverversion()); } @@ -3247,52 +3638,35 @@ void CheckVersionStatus::Swap(CheckVersionStatus* other) { InternalSwap(other); } void CheckVersionStatus::InternalSwap(CheckVersionStatus* other) { - std::swap(serverversion_, other->serverversion_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + swap(serverversion_, other->serverversion_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata CheckVersionStatus::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[6]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// CheckVersionStatus - -// int32 serverVersion = 1; -void CheckVersionStatus::clear_serverversion() { - serverversion_ = 0; -} -::google::protobuf::int32 CheckVersionStatus::serverversion() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.CheckVersionStatus.serverVersion) - return serverversion_; -} -void CheckVersionStatus::set_serverversion(::google::protobuf::int32 value) { - - serverversion_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.CheckVersionStatus.serverVersion) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void TerminateServerCommand::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int TerminateServerCommand::kExitReasonFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 TerminateServerCommand::TerminateServerCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_TerminateServerCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.TerminateServerCommand) } TerminateServerCommand::TerminateServerCommand(const TerminateServerCommand& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); exitreason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.exitreason().size() > 0) { @@ -3303,7 +3677,6 @@ TerminateServerCommand::TerminateServerCommand(const TerminateServerCommand& fro void TerminateServerCommand::SharedCtor() { exitreason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _cached_size_ = 0; } TerminateServerCommand::~TerminateServerCommand() { @@ -3316,31 +3689,27 @@ void TerminateServerCommand::SharedDtor() { } void TerminateServerCommand::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* TerminateServerCommand::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[7].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const TerminateServerCommand& TerminateServerCommand::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_TerminateServerCommand.base); return *internal_default_instance(); } -TerminateServerCommand* TerminateServerCommand::New(::google::protobuf::Arena* arena) const { - TerminateServerCommand* n = new TerminateServerCommand; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void TerminateServerCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.TerminateServerCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + exitreason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); } bool TerminateServerCommand::MergePartialFromCodedStream( @@ -3349,17 +3718,18 @@ bool TerminateServerCommand::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.TerminateServerCommand) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string exitReason = 1; case 1: { - if (tag == 10u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_exitreason())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->exitreason().data(), this->exitreason().length(), + this->exitreason().data(), static_cast(this->exitreason().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "pybullet_grpc.TerminateServerCommand.exitReason")); } else { @@ -3370,12 +3740,11 @@ bool TerminateServerCommand::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -3392,27 +3761,37 @@ failure: void TerminateServerCommand::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.TerminateServerCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // string exitReason = 1; if (this->exitreason().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->exitreason().data(), this->exitreason().length(), + this->exitreason().data(), static_cast(this->exitreason().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.TerminateServerCommand.exitReason"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->exitreason(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.TerminateServerCommand) } ::google::protobuf::uint8* TerminateServerCommand::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.TerminateServerCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // string exitReason = 1; if (this->exitreason().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->exitreason().data(), this->exitreason().length(), + this->exitreason().data(), static_cast(this->exitreason().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.TerminateServerCommand.exitReason"); target = @@ -3420,6 +3799,10 @@ void TerminateServerCommand::SerializeWithCachedSizes( 1, this->exitreason(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.TerminateServerCommand) return target; } @@ -3428,6 +3811,11 @@ size_t TerminateServerCommand::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.TerminateServerCommand) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // string exitReason = 1; if (this->exitreason().size() > 0) { total_size += 1 + @@ -3436,9 +3824,7 @@ size_t TerminateServerCommand::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -3461,6 +3847,9 @@ void TerminateServerCommand::MergeFrom(const TerminateServerCommand& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.TerminateServerCommand) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.exitreason().size() > 0) { exitreason_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.exitreason_); @@ -3490,95 +3879,40 @@ void TerminateServerCommand::Swap(TerminateServerCommand* other) { InternalSwap(other); } void TerminateServerCommand::InternalSwap(TerminateServerCommand* other) { - exitreason_.Swap(&other->exitreason_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + exitreason_.Swap(&other->exitreason_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata TerminateServerCommand::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[7]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// TerminateServerCommand - -// string exitReason = 1; -void TerminateServerCommand::clear_exitreason() { - exitreason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -const ::std::string& TerminateServerCommand::exitreason() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.TerminateServerCommand.exitReason) - return exitreason_.GetNoArena(); -} -void TerminateServerCommand::set_exitreason(const ::std::string& value) { - - exitreason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pybullet_grpc.TerminateServerCommand.exitReason) -} -#if LANG_CXX11 -void TerminateServerCommand::set_exitreason(::std::string&& value) { - - exitreason_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:pybullet_grpc.TerminateServerCommand.exitReason) -} -#endif -void TerminateServerCommand::set_exitreason(const char* value) { - - exitreason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pybullet_grpc.TerminateServerCommand.exitReason) -} -void TerminateServerCommand::set_exitreason(const char* value, size_t size) { - - exitreason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pybullet_grpc.TerminateServerCommand.exitReason) -} -::std::string* TerminateServerCommand::mutable_exitreason() { - - // @@protoc_insertion_point(field_mutable:pybullet_grpc.TerminateServerCommand.exitReason) - return exitreason_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* TerminateServerCommand::release_exitreason() { - // @@protoc_insertion_point(field_release:pybullet_grpc.TerminateServerCommand.exitReason) - - return exitreason_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void TerminateServerCommand::set_allocated_exitreason(::std::string* exitreason) { - if (exitreason != NULL) { - - } else { - - } - exitreason_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), exitreason); - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.TerminateServerCommand.exitReason) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void StepSimulationCommand::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 StepSimulationCommand::StepSimulationCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_StepSimulationCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.StepSimulationCommand) } StepSimulationCommand::StepSimulationCommand(const StepSimulationCommand& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.StepSimulationCommand) } void StepSimulationCommand::SharedCtor() { - _cached_size_ = 0; } StepSimulationCommand::~StepSimulationCommand() { @@ -3590,30 +3924,26 @@ void StepSimulationCommand::SharedDtor() { } void StepSimulationCommand::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* StepSimulationCommand::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[8].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const StepSimulationCommand& StepSimulationCommand::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_StepSimulationCommand.base); return *internal_default_instance(); } -StepSimulationCommand* StepSimulationCommand::New(::google::protobuf::Arena* arena) const { - StepSimulationCommand* n = new StepSimulationCommand; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void StepSimulationCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.StepSimulationCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); } bool StepSimulationCommand::MergePartialFromCodedStream( @@ -3622,16 +3952,15 @@ bool StepSimulationCommand::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.StepSimulationCommand) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.StepSimulationCommand) @@ -3645,13 +3974,27 @@ failure: void StepSimulationCommand::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.StepSimulationCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.StepSimulationCommand) } ::google::protobuf::uint8* StepSimulationCommand::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.StepSimulationCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.StepSimulationCommand) return target; } @@ -3660,10 +4003,13 @@ size_t StepSimulationCommand::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.StepSimulationCommand) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -3686,6 +4032,9 @@ void StepSimulationCommand::MergeFrom(const StepSimulationCommand& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.StepSimulationCommand) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + } void StepSimulationCommand::CopyFrom(const ::google::protobuf::Message& from) { @@ -3711,42 +4060,38 @@ void StepSimulationCommand::Swap(StepSimulationCommand* other) { InternalSwap(other); } void StepSimulationCommand::InternalSwap(StepSimulationCommand* other) { - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata StepSimulationCommand::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[8]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// StepSimulationCommand - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void SyncBodiesCommand::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SyncBodiesCommand::SyncBodiesCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_SyncBodiesCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.SyncBodiesCommand) } SyncBodiesCommand::SyncBodiesCommand(const SyncBodiesCommand& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.SyncBodiesCommand) } void SyncBodiesCommand::SharedCtor() { - _cached_size_ = 0; } SyncBodiesCommand::~SyncBodiesCommand() { @@ -3758,30 +4103,26 @@ void SyncBodiesCommand::SharedDtor() { } void SyncBodiesCommand::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* SyncBodiesCommand::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[9].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const SyncBodiesCommand& SyncBodiesCommand::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_SyncBodiesCommand.base); return *internal_default_instance(); } -SyncBodiesCommand* SyncBodiesCommand::New(::google::protobuf::Arena* arena) const { - SyncBodiesCommand* n = new SyncBodiesCommand; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void SyncBodiesCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.SyncBodiesCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); } bool SyncBodiesCommand::MergePartialFromCodedStream( @@ -3790,16 +4131,15 @@ bool SyncBodiesCommand::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.SyncBodiesCommand) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.SyncBodiesCommand) @@ -3813,13 +4153,27 @@ failure: void SyncBodiesCommand::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.SyncBodiesCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.SyncBodiesCommand) } ::google::protobuf::uint8* SyncBodiesCommand::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.SyncBodiesCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.SyncBodiesCommand) return target; } @@ -3828,10 +4182,13 @@ size_t SyncBodiesCommand::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.SyncBodiesCommand) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -3854,6 +4211,9 @@ void SyncBodiesCommand::MergeFrom(const SyncBodiesCommand& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.SyncBodiesCommand) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + } void SyncBodiesCommand::CopyFrom(const ::google::protobuf::Message& from) { @@ -3879,21 +4239,20 @@ void SyncBodiesCommand::Swap(SyncBodiesCommand* other) { InternalSwap(other); } void SyncBodiesCommand::InternalSwap(SyncBodiesCommand* other) { - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata SyncBodiesCommand::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[9]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SyncBodiesCommand - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void SyncBodiesStatus::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int SyncBodiesStatus::kBodyUniqueIdsFieldNumber; const int SyncBodiesStatus::kUserConstraintUniqueIdsFieldNumber; @@ -3901,9 +4260,8 @@ const int SyncBodiesStatus::kUserConstraintUniqueIdsFieldNumber; SyncBodiesStatus::SyncBodiesStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_SyncBodiesStatus.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.SyncBodiesStatus) } @@ -3911,14 +4269,12 @@ SyncBodiesStatus::SyncBodiesStatus(const SyncBodiesStatus& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), bodyuniqueids_(from.bodyuniqueids_), - userconstraintuniqueids_(from.userconstraintuniqueids_), - _cached_size_(0) { + userconstraintuniqueids_(from.userconstraintuniqueids_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.SyncBodiesStatus) } void SyncBodiesStatus::SharedCtor() { - _cached_size_ = 0; } SyncBodiesStatus::~SyncBodiesStatus() { @@ -3930,32 +4286,28 @@ void SyncBodiesStatus::SharedDtor() { } void SyncBodiesStatus::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* SyncBodiesStatus::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[10].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const SyncBodiesStatus& SyncBodiesStatus::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_SyncBodiesStatus.base); return *internal_default_instance(); } -SyncBodiesStatus* SyncBodiesStatus::New(::google::protobuf::Arena* arena) const { - SyncBodiesStatus* n = new SyncBodiesStatus; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void SyncBodiesStatus::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.SyncBodiesStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + bodyuniqueids_.Clear(); userconstraintuniqueids_.Clear(); + _internal_metadata_.Clear(); } bool SyncBodiesStatus::MergePartialFromCodedStream( @@ -3964,17 +4316,20 @@ bool SyncBodiesStatus::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.SyncBodiesStatus) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated int32 bodyUniqueIds = 1; case 1: { - if (tag == 10u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, this->mutable_bodyuniqueids()))); - } else if (tag == 8u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( 1, 10u, input, this->mutable_bodyuniqueids()))); @@ -3986,11 +4341,14 @@ bool SyncBodiesStatus::MergePartialFromCodedStream( // repeated int32 userConstraintUniqueIds = 2; case 2: { - if (tag == 18u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, this->mutable_userconstraintuniqueids()))); - } else if (tag == 16u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( 1, 18u, input, this->mutable_userconstraintuniqueids()))); @@ -4002,12 +4360,11 @@ bool SyncBodiesStatus::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -4024,12 +4381,16 @@ failure: void SyncBodiesStatus::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.SyncBodiesStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated int32 bodyUniqueIds = 1; if (this->bodyuniqueids_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_bodyuniqueids_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _bodyuniqueids_cached_byte_size_)); } - for (int i = 0; i < this->bodyuniqueids_size(); i++) { + for (int i = 0, n = this->bodyuniqueids_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( this->bodyuniqueids(i), output); } @@ -4037,20 +4398,28 @@ void SyncBodiesStatus::SerializeWithCachedSizes( // repeated int32 userConstraintUniqueIds = 2; if (this->userconstraintuniqueids_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_userconstraintuniqueids_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _userconstraintuniqueids_cached_byte_size_)); } - for (int i = 0; i < this->userconstraintuniqueids_size(); i++) { + for (int i = 0, n = this->userconstraintuniqueids_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( this->userconstraintuniqueids(i), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.SyncBodiesStatus) } ::google::protobuf::uint8* SyncBodiesStatus::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.SyncBodiesStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated int32 bodyUniqueIds = 1; if (this->bodyuniqueids_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( @@ -4058,11 +4427,10 @@ void SyncBodiesStatus::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _bodyuniqueids_cached_byte_size_, target); - } - for (int i = 0; i < this->bodyuniqueids_size(); i++) { + static_cast< ::google::protobuf::int32>( + _bodyuniqueids_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32NoTagToArray(this->bodyuniqueids(i), target); + WriteInt32NoTagToArray(this->bodyuniqueids_, target); } // repeated int32 userConstraintUniqueIds = 2; @@ -4072,13 +4440,16 @@ void SyncBodiesStatus::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _userconstraintuniqueids_cached_byte_size_, target); - } - for (int i = 0; i < this->userconstraintuniqueids_size(); i++) { + static_cast< ::google::protobuf::int32>( + _userconstraintuniqueids_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32NoTagToArray(this->userconstraintuniqueids(i), target); + WriteInt32NoTagToArray(this->userconstraintuniqueids_, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.SyncBodiesStatus) return target; } @@ -4087,13 +4458,19 @@ size_t SyncBodiesStatus::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.SyncBodiesStatus) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // repeated int32 bodyUniqueIds = 1; { size_t data_size = ::google::protobuf::internal::WireFormatLite:: Int32Size(this->bodyuniqueids_); if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -4108,7 +4485,8 @@ size_t SyncBodiesStatus::ByteSizeLong() const { Int32Size(this->userconstraintuniqueids_); if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -4118,9 +4496,7 @@ size_t SyncBodiesStatus::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -4143,6 +4519,9 @@ void SyncBodiesStatus::MergeFrom(const SyncBodiesStatus& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.SyncBodiesStatus) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + bodyuniqueids_.MergeFrom(from.bodyuniqueids_); userconstraintuniqueids_.MergeFrom(from.userconstraintuniqueids_); } @@ -4170,99 +4549,36 @@ void SyncBodiesStatus::Swap(SyncBodiesStatus* other) { InternalSwap(other); } void SyncBodiesStatus::InternalSwap(SyncBodiesStatus* other) { - bodyuniqueids_.UnsafeArenaSwap(&other->bodyuniqueids_); - userconstraintuniqueids_.UnsafeArenaSwap(&other->userconstraintuniqueids_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + bodyuniqueids_.InternalSwap(&other->bodyuniqueids_); + userconstraintuniqueids_.InternalSwap(&other->userconstraintuniqueids_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata SyncBodiesStatus::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[10]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SyncBodiesStatus - -// repeated int32 bodyUniqueIds = 1; -int SyncBodiesStatus::bodyuniqueids_size() const { - return bodyuniqueids_.size(); -} -void SyncBodiesStatus::clear_bodyuniqueids() { - bodyuniqueids_.Clear(); -} -::google::protobuf::int32 SyncBodiesStatus::bodyuniqueids(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.SyncBodiesStatus.bodyUniqueIds) - return bodyuniqueids_.Get(index); -} -void SyncBodiesStatus::set_bodyuniqueids(int index, ::google::protobuf::int32 value) { - bodyuniqueids_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.SyncBodiesStatus.bodyUniqueIds) -} -void SyncBodiesStatus::add_bodyuniqueids(::google::protobuf::int32 value) { - bodyuniqueids_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.SyncBodiesStatus.bodyUniqueIds) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -SyncBodiesStatus::bodyuniqueids() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.SyncBodiesStatus.bodyUniqueIds) - return bodyuniqueids_; -} -::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -SyncBodiesStatus::mutable_bodyuniqueids() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.SyncBodiesStatus.bodyUniqueIds) - return &bodyuniqueids_; -} - -// repeated int32 userConstraintUniqueIds = 2; -int SyncBodiesStatus::userconstraintuniqueids_size() const { - return userconstraintuniqueids_.size(); -} -void SyncBodiesStatus::clear_userconstraintuniqueids() { - userconstraintuniqueids_.Clear(); -} -::google::protobuf::int32 SyncBodiesStatus::userconstraintuniqueids(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.SyncBodiesStatus.userConstraintUniqueIds) - return userconstraintuniqueids_.Get(index); -} -void SyncBodiesStatus::set_userconstraintuniqueids(int index, ::google::protobuf::int32 value) { - userconstraintuniqueids_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.SyncBodiesStatus.userConstraintUniqueIds) -} -void SyncBodiesStatus::add_userconstraintuniqueids(::google::protobuf::int32 value) { - userconstraintuniqueids_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.SyncBodiesStatus.userConstraintUniqueIds) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -SyncBodiesStatus::userconstraintuniqueids() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.SyncBodiesStatus.userConstraintUniqueIds) - return userconstraintuniqueids_; -} -::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -SyncBodiesStatus::mutable_userconstraintuniqueids() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.SyncBodiesStatus.userConstraintUniqueIds) - return &userconstraintuniqueids_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void RequestBodyInfoCommand::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int RequestBodyInfoCommand::kBodyUniqueIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 RequestBodyInfoCommand::RequestBodyInfoCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_RequestBodyInfoCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.RequestBodyInfoCommand) } RequestBodyInfoCommand::RequestBodyInfoCommand(const RequestBodyInfoCommand& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); bodyuniqueid_ = from.bodyuniqueid_; // @@protoc_insertion_point(copy_constructor:pybullet_grpc.RequestBodyInfoCommand) @@ -4270,7 +4586,6 @@ RequestBodyInfoCommand::RequestBodyInfoCommand(const RequestBodyInfoCommand& fro void RequestBodyInfoCommand::SharedCtor() { bodyuniqueid_ = 0; - _cached_size_ = 0; } RequestBodyInfoCommand::~RequestBodyInfoCommand() { @@ -4282,31 +4597,27 @@ void RequestBodyInfoCommand::SharedDtor() { } void RequestBodyInfoCommand::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* RequestBodyInfoCommand::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[11].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const RequestBodyInfoCommand& RequestBodyInfoCommand::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_RequestBodyInfoCommand.base); return *internal_default_instance(); } -RequestBodyInfoCommand* RequestBodyInfoCommand::New(::google::protobuf::Arena* arena) const { - RequestBodyInfoCommand* n = new RequestBodyInfoCommand; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void RequestBodyInfoCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.RequestBodyInfoCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + bodyuniqueid_ = 0; + _internal_metadata_.Clear(); } bool RequestBodyInfoCommand::MergePartialFromCodedStream( @@ -4315,13 +4626,14 @@ bool RequestBodyInfoCommand::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.RequestBodyInfoCommand) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 bodyUniqueId = 1; case 1: { - if (tag == 8u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -4334,12 +4646,11 @@ bool RequestBodyInfoCommand::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -4356,23 +4667,37 @@ failure: void RequestBodyInfoCommand::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.RequestBodyInfoCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->bodyuniqueid(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.RequestBodyInfoCommand) } ::google::protobuf::uint8* RequestBodyInfoCommand::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.RequestBodyInfoCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->bodyuniqueid(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.RequestBodyInfoCommand) return target; } @@ -4381,6 +4706,11 @@ size_t RequestBodyInfoCommand::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.RequestBodyInfoCommand) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { total_size += 1 + @@ -4389,9 +4719,7 @@ size_t RequestBodyInfoCommand::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -4414,6 +4742,9 @@ void RequestBodyInfoCommand::MergeFrom(const RequestBodyInfoCommand& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.RequestBodyInfoCommand) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.bodyuniqueid() != 0) { set_bodyuniqueid(from.bodyuniqueid()); } @@ -4442,36 +4773,21 @@ void RequestBodyInfoCommand::Swap(RequestBodyInfoCommand* other) { InternalSwap(other); } void RequestBodyInfoCommand::InternalSwap(RequestBodyInfoCommand* other) { - std::swap(bodyuniqueid_, other->bodyuniqueid_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + swap(bodyuniqueid_, other->bodyuniqueid_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata RequestBodyInfoCommand::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[11]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// RequestBodyInfoCommand - -// int32 bodyUniqueId = 1; -void RequestBodyInfoCommand::clear_bodyuniqueid() { - bodyuniqueid_ = 0; -} -::google::protobuf::int32 RequestBodyInfoCommand::bodyuniqueid() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestBodyInfoCommand.bodyUniqueId) - return bodyuniqueid_; -} -void RequestBodyInfoCommand::set_bodyuniqueid(::google::protobuf::int32 value) { - - bodyuniqueid_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestBodyInfoCommand.bodyUniqueId) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void RequestBodyInfoStatus::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int RequestBodyInfoStatus::kBodyUniqueIdFieldNumber; const int RequestBodyInfoStatus::kBodyNameFieldNumber; @@ -4479,16 +4795,14 @@ const int RequestBodyInfoStatus::kBodyNameFieldNumber; RequestBodyInfoStatus::RequestBodyInfoStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_RequestBodyInfoStatus.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.RequestBodyInfoStatus) } RequestBodyInfoStatus::RequestBodyInfoStatus(const RequestBodyInfoStatus& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); bodyname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.bodyname().size() > 0) { @@ -4501,7 +4815,6 @@ RequestBodyInfoStatus::RequestBodyInfoStatus(const RequestBodyInfoStatus& from) void RequestBodyInfoStatus::SharedCtor() { bodyname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); bodyuniqueid_ = 0; - _cached_size_ = 0; } RequestBodyInfoStatus::~RequestBodyInfoStatus() { @@ -4514,32 +4827,28 @@ void RequestBodyInfoStatus::SharedDtor() { } void RequestBodyInfoStatus::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* RequestBodyInfoStatus::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[12].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const RequestBodyInfoStatus& RequestBodyInfoStatus::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_RequestBodyInfoStatus.base); return *internal_default_instance(); } -RequestBodyInfoStatus* RequestBodyInfoStatus::New(::google::protobuf::Arena* arena) const { - RequestBodyInfoStatus* n = new RequestBodyInfoStatus; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void RequestBodyInfoStatus::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.RequestBodyInfoStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + bodyname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); bodyuniqueid_ = 0; + _internal_metadata_.Clear(); } bool RequestBodyInfoStatus::MergePartialFromCodedStream( @@ -4548,13 +4857,14 @@ bool RequestBodyInfoStatus::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.RequestBodyInfoStatus) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 bodyUniqueId = 1; case 1: { - if (tag == 8u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -4567,11 +4877,12 @@ bool RequestBodyInfoStatus::MergePartialFromCodedStream( // string bodyName = 2; case 2: { - if (tag == 18u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_bodyname())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->bodyname().data(), this->bodyname().length(), + this->bodyname().data(), static_cast(this->bodyname().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "pybullet_grpc.RequestBodyInfoStatus.bodyName")); } else { @@ -4582,12 +4893,11 @@ bool RequestBodyInfoStatus::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -4604,6 +4914,9 @@ failure: void RequestBodyInfoStatus::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.RequestBodyInfoStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->bodyuniqueid(), output); @@ -4612,20 +4925,27 @@ void RequestBodyInfoStatus::SerializeWithCachedSizes( // string bodyName = 2; if (this->bodyname().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->bodyname().data(), this->bodyname().length(), + this->bodyname().data(), static_cast(this->bodyname().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.RequestBodyInfoStatus.bodyName"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->bodyname(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.RequestBodyInfoStatus) } ::google::protobuf::uint8* RequestBodyInfoStatus::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.RequestBodyInfoStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->bodyuniqueid(), target); @@ -4634,7 +4954,7 @@ void RequestBodyInfoStatus::SerializeWithCachedSizes( // string bodyName = 2; if (this->bodyname().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->bodyname().data(), this->bodyname().length(), + this->bodyname().data(), static_cast(this->bodyname().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.RequestBodyInfoStatus.bodyName"); target = @@ -4642,6 +4962,10 @@ void RequestBodyInfoStatus::SerializeWithCachedSizes( 2, this->bodyname(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.RequestBodyInfoStatus) return target; } @@ -4650,6 +4974,11 @@ size_t RequestBodyInfoStatus::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.RequestBodyInfoStatus) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // string bodyName = 2; if (this->bodyname().size() > 0) { total_size += 1 + @@ -4665,9 +4994,7 @@ size_t RequestBodyInfoStatus::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -4690,6 +5017,9 @@ void RequestBodyInfoStatus::MergeFrom(const RequestBodyInfoStatus& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.RequestBodyInfoStatus) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.bodyname().size() > 0) { bodyname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bodyname_); @@ -4722,89 +5052,30 @@ void RequestBodyInfoStatus::Swap(RequestBodyInfoStatus* other) { InternalSwap(other); } void RequestBodyInfoStatus::InternalSwap(RequestBodyInfoStatus* other) { - bodyname_.Swap(&other->bodyname_); - std::swap(bodyuniqueid_, other->bodyuniqueid_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + bodyname_.Swap(&other->bodyname_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(bodyuniqueid_, other->bodyuniqueid_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata RequestBodyInfoStatus::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[12]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// RequestBodyInfoStatus - -// int32 bodyUniqueId = 1; -void RequestBodyInfoStatus::clear_bodyuniqueid() { - bodyuniqueid_ = 0; -} -::google::protobuf::int32 RequestBodyInfoStatus::bodyuniqueid() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestBodyInfoStatus.bodyUniqueId) - return bodyuniqueid_; -} -void RequestBodyInfoStatus::set_bodyuniqueid(::google::protobuf::int32 value) { - - bodyuniqueid_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestBodyInfoStatus.bodyUniqueId) -} - -// string bodyName = 2; -void RequestBodyInfoStatus::clear_bodyname() { - bodyname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -const ::std::string& RequestBodyInfoStatus::bodyname() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestBodyInfoStatus.bodyName) - return bodyname_.GetNoArena(); -} -void RequestBodyInfoStatus::set_bodyname(const ::std::string& value) { - - bodyname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestBodyInfoStatus.bodyName) -} -#if LANG_CXX11 -void RequestBodyInfoStatus::set_bodyname(::std::string&& value) { - - bodyname_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:pybullet_grpc.RequestBodyInfoStatus.bodyName) -} -#endif -void RequestBodyInfoStatus::set_bodyname(const char* value) { - - bodyname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pybullet_grpc.RequestBodyInfoStatus.bodyName) -} -void RequestBodyInfoStatus::set_bodyname(const char* value, size_t size) { - - bodyname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pybullet_grpc.RequestBodyInfoStatus.bodyName) -} -::std::string* RequestBodyInfoStatus::mutable_bodyname() { - - // @@protoc_insertion_point(field_mutable:pybullet_grpc.RequestBodyInfoStatus.bodyName) - return bodyname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* RequestBodyInfoStatus::release_bodyname() { - // @@protoc_insertion_point(field_release:pybullet_grpc.RequestBodyInfoStatus.bodyName) - - return bodyname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void RequestBodyInfoStatus::set_allocated_bodyname(::std::string* bodyname) { - if (bodyname != NULL) { - - } else { - - } - bodyname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), bodyname); - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.RequestBodyInfoStatus.bodyName) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void LoadUrdfCommand::InitAsDefaultInstance() { + ::pybullet_grpc::_LoadUrdfCommand_default_instance_._instance.get_mutable()->initialposition_ = const_cast< ::pybullet_grpc::vec3*>( + ::pybullet_grpc::vec3::internal_default_instance()); + ::pybullet_grpc::_LoadUrdfCommand_default_instance_._instance.get_mutable()->initialorientation_ = const_cast< ::pybullet_grpc::quat4*>( + ::pybullet_grpc::quat4::internal_default_instance()); + ::pybullet_grpc::_LoadUrdfCommand_default_instance_.usemultibody_ = 0; + ::pybullet_grpc::_LoadUrdfCommand_default_instance_.usefixedbase_ = false; + ::pybullet_grpc::_LoadUrdfCommand_default_instance_.globalscaling_ = 0; +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int LoadUrdfCommand::kFileNameFieldNumber; const int LoadUrdfCommand::kInitialPositionFieldNumber; @@ -4817,16 +5088,14 @@ const int LoadUrdfCommand::kGlobalScalingFieldNumber; LoadUrdfCommand::LoadUrdfCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_LoadUrdfCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.LoadUrdfCommand) } LoadUrdfCommand::LoadUrdfCommand(const LoadUrdfCommand& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.filename().size() > 0) { @@ -4878,12 +5147,12 @@ LoadUrdfCommand::LoadUrdfCommand(const LoadUrdfCommand& from) void LoadUrdfCommand::SharedCtor() { filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&initialposition_, 0, reinterpret_cast(&flags_) - - reinterpret_cast(&initialposition_) + sizeof(flags_)); + ::memset(&initialposition_, 0, static_cast( + reinterpret_cast(&flags_) - + reinterpret_cast(&initialposition_)) + sizeof(flags_)); clear_has_hasUseMultiBody(); clear_has_hasUseFixedBase(); clear_has_hasGlobalScaling(); - _cached_size_ = 0; } LoadUrdfCommand::~LoadUrdfCommand() { @@ -4893,12 +5162,8 @@ LoadUrdfCommand::~LoadUrdfCommand() { void LoadUrdfCommand::SharedDtor() { filename_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) { - delete initialposition_; - } - if (this != internal_default_instance()) { - delete initialorientation_; - } + if (this != internal_default_instance()) delete initialposition_; + if (this != internal_default_instance()) delete initialorientation_; if (has_hasUseMultiBody()) { clear_hasUseMultiBody(); } @@ -4911,27 +5176,18 @@ void LoadUrdfCommand::SharedDtor() { } void LoadUrdfCommand::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* LoadUrdfCommand::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[13].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const LoadUrdfCommand& LoadUrdfCommand::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_LoadUrdfCommand.base); return *internal_default_instance(); } -LoadUrdfCommand* LoadUrdfCommand::New(::google::protobuf::Arena* arena) const { - LoadUrdfCommand* n = new LoadUrdfCommand; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void LoadUrdfCommand::clear_hasUseMultiBody() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.LoadUrdfCommand) @@ -4978,6 +5234,10 @@ void LoadUrdfCommand::clear_hasGlobalScaling() { void LoadUrdfCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.LoadUrdfCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (GetArenaNoVirtual() == NULL && initialposition_ != NULL) { delete initialposition_; @@ -4991,6 +5251,7 @@ void LoadUrdfCommand::Clear() { clear_hasUseMultiBody(); clear_hasUseFixedBase(); clear_hasGlobalScaling(); + _internal_metadata_.Clear(); } bool LoadUrdfCommand::MergePartialFromCodedStream( @@ -4999,17 +5260,18 @@ bool LoadUrdfCommand::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.LoadUrdfCommand) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string fileName = 1; case 1: { - if (tag == 10u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_filename())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), this->filename().length(), + this->filename().data(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "pybullet_grpc.LoadUrdfCommand.fileName")); } else { @@ -5020,8 +5282,9 @@ bool LoadUrdfCommand::MergePartialFromCodedStream( // .pybullet_grpc.vec3 initialPosition = 2; case 2: { - if (tag == 18u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_initialposition())); } else { goto handle_unusual; @@ -5031,8 +5294,9 @@ bool LoadUrdfCommand::MergePartialFromCodedStream( // .pybullet_grpc.quat4 initialOrientation = 3; case 3: { - if (tag == 26u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_initialorientation())); } else { goto handle_unusual; @@ -5042,7 +5306,8 @@ bool LoadUrdfCommand::MergePartialFromCodedStream( // int32 useMultiBody = 4; case 4: { - if (tag == 32u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { clear_hasUseMultiBody(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -5056,7 +5321,8 @@ bool LoadUrdfCommand::MergePartialFromCodedStream( // bool useFixedBase = 5; case 5: { - if (tag == 40u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { clear_hasUseFixedBase(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( @@ -5070,7 +5336,8 @@ bool LoadUrdfCommand::MergePartialFromCodedStream( // int32 flags = 6; case 6: { - if (tag == 48u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -5083,7 +5350,8 @@ bool LoadUrdfCommand::MergePartialFromCodedStream( // double globalScaling = 7; case 7: { - if (tag == 57u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) { clear_hasGlobalScaling(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -5097,12 +5365,11 @@ bool LoadUrdfCommand::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -5119,10 +5386,13 @@ failure: void LoadUrdfCommand::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.LoadUrdfCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // string fileName = 1; if (this->filename().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), this->filename().length(), + this->filename().data(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.LoadUrdfCommand.fileName"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( @@ -5132,13 +5402,13 @@ void LoadUrdfCommand::SerializeWithCachedSizes( // .pybullet_grpc.vec3 initialPosition = 2; if (this->has_initialposition()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->initialposition_, output); + 2, this->_internal_initialposition(), output); } // .pybullet_grpc.quat4 initialOrientation = 3; if (this->has_initialorientation()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, *this->initialorientation_, output); + 3, this->_internal_initialorientation(), output); } // int32 useMultiBody = 4; @@ -5161,17 +5431,24 @@ void LoadUrdfCommand::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->globalscaling(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.LoadUrdfCommand) } ::google::protobuf::uint8* LoadUrdfCommand::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.LoadUrdfCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // string fileName = 1; if (this->filename().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), this->filename().length(), + this->filename().data(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.LoadUrdfCommand.fileName"); target = @@ -5182,15 +5459,15 @@ void LoadUrdfCommand::SerializeWithCachedSizes( // .pybullet_grpc.vec3 initialPosition = 2; if (this->has_initialposition()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->initialposition_, false, target); + InternalWriteMessageToArray( + 2, this->_internal_initialposition(), deterministic, target); } // .pybullet_grpc.quat4 initialOrientation = 3; if (this->has_initialorientation()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, *this->initialorientation_, false, target); + InternalWriteMessageToArray( + 3, this->_internal_initialorientation(), deterministic, target); } // int32 useMultiBody = 4; @@ -5213,6 +5490,10 @@ void LoadUrdfCommand::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->globalscaling(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.LoadUrdfCommand) return target; } @@ -5221,6 +5502,11 @@ size_t LoadUrdfCommand::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.LoadUrdfCommand) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // string fileName = 1; if (this->filename().size() > 0) { total_size += 1 + @@ -5231,15 +5517,15 @@ size_t LoadUrdfCommand::ByteSizeLong() const { // .pybullet_grpc.vec3 initialPosition = 2; if (this->has_initialposition()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->initialposition_); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *initialposition_); } // .pybullet_grpc.quat4 initialOrientation = 3; if (this->has_initialorientation()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->initialorientation_); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *initialorientation_); } // int32 flags = 6; @@ -5282,9 +5568,7 @@ size_t LoadUrdfCommand::ByteSizeLong() const { } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -5307,6 +5591,9 @@ void LoadUrdfCommand::MergeFrom(const LoadUrdfCommand& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.LoadUrdfCommand) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.filename().size() > 0) { filename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_); @@ -5372,289 +5659,31 @@ void LoadUrdfCommand::Swap(LoadUrdfCommand* other) { InternalSwap(other); } void LoadUrdfCommand::InternalSwap(LoadUrdfCommand* other) { - filename_.Swap(&other->filename_); - std::swap(initialposition_, other->initialposition_); - std::swap(initialorientation_, other->initialorientation_); - std::swap(flags_, other->flags_); - std::swap(hasUseMultiBody_, other->hasUseMultiBody_); - std::swap(_oneof_case_[0], other->_oneof_case_[0]); - std::swap(hasUseFixedBase_, other->hasUseFixedBase_); - std::swap(_oneof_case_[1], other->_oneof_case_[1]); - std::swap(hasGlobalScaling_, other->hasGlobalScaling_); - std::swap(_oneof_case_[2], other->_oneof_case_[2]); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + filename_.Swap(&other->filename_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(initialposition_, other->initialposition_); + swap(initialorientation_, other->initialorientation_); + swap(flags_, other->flags_); + swap(hasUseMultiBody_, other->hasUseMultiBody_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(hasUseFixedBase_, other->hasUseFixedBase_); + swap(_oneof_case_[1], other->_oneof_case_[1]); + swap(hasGlobalScaling_, other->hasGlobalScaling_); + swap(_oneof_case_[2], other->_oneof_case_[2]); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata LoadUrdfCommand::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[13]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// LoadUrdfCommand - -// string fileName = 1; -void LoadUrdfCommand::clear_filename() { - filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -const ::std::string& LoadUrdfCommand::filename() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.LoadUrdfCommand.fileName) - return filename_.GetNoArena(); -} -void LoadUrdfCommand::set_filename(const ::std::string& value) { - - filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pybullet_grpc.LoadUrdfCommand.fileName) -} -#if LANG_CXX11 -void LoadUrdfCommand::set_filename(::std::string&& value) { - - filename_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:pybullet_grpc.LoadUrdfCommand.fileName) -} -#endif -void LoadUrdfCommand::set_filename(const char* value) { - - filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pybullet_grpc.LoadUrdfCommand.fileName) -} -void LoadUrdfCommand::set_filename(const char* value, size_t size) { - - filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pybullet_grpc.LoadUrdfCommand.fileName) -} -::std::string* LoadUrdfCommand::mutable_filename() { - - // @@protoc_insertion_point(field_mutable:pybullet_grpc.LoadUrdfCommand.fileName) - return filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* LoadUrdfCommand::release_filename() { - // @@protoc_insertion_point(field_release:pybullet_grpc.LoadUrdfCommand.fileName) - - return filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void LoadUrdfCommand::set_allocated_filename(::std::string* filename) { - if (filename != NULL) { - - } else { - - } - filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filename); - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.LoadUrdfCommand.fileName) -} - -// .pybullet_grpc.vec3 initialPosition = 2; -bool LoadUrdfCommand::has_initialposition() const { - return this != internal_default_instance() && initialposition_ != NULL; -} -void LoadUrdfCommand::clear_initialposition() { - if (GetArenaNoVirtual() == NULL && initialposition_ != NULL) delete initialposition_; - initialposition_ = NULL; -} -const ::pybullet_grpc::vec3& LoadUrdfCommand::initialposition() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.LoadUrdfCommand.initialPosition) - return initialposition_ != NULL ? *initialposition_ - : *::pybullet_grpc::vec3::internal_default_instance(); -} -::pybullet_grpc::vec3* LoadUrdfCommand::mutable_initialposition() { - - if (initialposition_ == NULL) { - initialposition_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.LoadUrdfCommand.initialPosition) - return initialposition_; -} -::pybullet_grpc::vec3* LoadUrdfCommand::release_initialposition() { - // @@protoc_insertion_point(field_release:pybullet_grpc.LoadUrdfCommand.initialPosition) - - ::pybullet_grpc::vec3* temp = initialposition_; - initialposition_ = NULL; - return temp; -} -void LoadUrdfCommand::set_allocated_initialposition(::pybullet_grpc::vec3* initialposition) { - delete initialposition_; - initialposition_ = initialposition; - if (initialposition) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.LoadUrdfCommand.initialPosition) -} - -// .pybullet_grpc.quat4 initialOrientation = 3; -bool LoadUrdfCommand::has_initialorientation() const { - return this != internal_default_instance() && initialorientation_ != NULL; -} -void LoadUrdfCommand::clear_initialorientation() { - if (GetArenaNoVirtual() == NULL && initialorientation_ != NULL) delete initialorientation_; - initialorientation_ = NULL; -} -const ::pybullet_grpc::quat4& LoadUrdfCommand::initialorientation() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.LoadUrdfCommand.initialOrientation) - return initialorientation_ != NULL ? *initialorientation_ - : *::pybullet_grpc::quat4::internal_default_instance(); -} -::pybullet_grpc::quat4* LoadUrdfCommand::mutable_initialorientation() { - - if (initialorientation_ == NULL) { - initialorientation_ = new ::pybullet_grpc::quat4; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.LoadUrdfCommand.initialOrientation) - return initialorientation_; -} -::pybullet_grpc::quat4* LoadUrdfCommand::release_initialorientation() { - // @@protoc_insertion_point(field_release:pybullet_grpc.LoadUrdfCommand.initialOrientation) - - ::pybullet_grpc::quat4* temp = initialorientation_; - initialorientation_ = NULL; - return temp; -} -void LoadUrdfCommand::set_allocated_initialorientation(::pybullet_grpc::quat4* initialorientation) { - delete initialorientation_; - initialorientation_ = initialorientation; - if (initialorientation) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.LoadUrdfCommand.initialOrientation) -} - -// int32 useMultiBody = 4; -bool LoadUrdfCommand::has_usemultibody() const { - return hasUseMultiBody_case() == kUseMultiBody; -} -void LoadUrdfCommand::set_has_usemultibody() { - _oneof_case_[0] = kUseMultiBody; -} -void LoadUrdfCommand::clear_usemultibody() { - if (has_usemultibody()) { - hasUseMultiBody_.usemultibody_ = 0; - clear_has_hasUseMultiBody(); - } -} -::google::protobuf::int32 LoadUrdfCommand::usemultibody() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.LoadUrdfCommand.useMultiBody) - if (has_usemultibody()) { - return hasUseMultiBody_.usemultibody_; - } - return 0; -} -void LoadUrdfCommand::set_usemultibody(::google::protobuf::int32 value) { - if (!has_usemultibody()) { - clear_hasUseMultiBody(); - set_has_usemultibody(); - } - hasUseMultiBody_.usemultibody_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.LoadUrdfCommand.useMultiBody) -} - -// bool useFixedBase = 5; -bool LoadUrdfCommand::has_usefixedbase() const { - return hasUseFixedBase_case() == kUseFixedBase; -} -void LoadUrdfCommand::set_has_usefixedbase() { - _oneof_case_[1] = kUseFixedBase; -} -void LoadUrdfCommand::clear_usefixedbase() { - if (has_usefixedbase()) { - hasUseFixedBase_.usefixedbase_ = false; - clear_has_hasUseFixedBase(); - } -} -bool LoadUrdfCommand::usefixedbase() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.LoadUrdfCommand.useFixedBase) - if (has_usefixedbase()) { - return hasUseFixedBase_.usefixedbase_; - } - return false; -} -void LoadUrdfCommand::set_usefixedbase(bool value) { - if (!has_usefixedbase()) { - clear_hasUseFixedBase(); - set_has_usefixedbase(); - } - hasUseFixedBase_.usefixedbase_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.LoadUrdfCommand.useFixedBase) -} - -// int32 flags = 6; -void LoadUrdfCommand::clear_flags() { - flags_ = 0; -} -::google::protobuf::int32 LoadUrdfCommand::flags() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.LoadUrdfCommand.flags) - return flags_; -} -void LoadUrdfCommand::set_flags(::google::protobuf::int32 value) { - - flags_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.LoadUrdfCommand.flags) -} - -// double globalScaling = 7; -bool LoadUrdfCommand::has_globalscaling() const { - return hasGlobalScaling_case() == kGlobalScaling; -} -void LoadUrdfCommand::set_has_globalscaling() { - _oneof_case_[2] = kGlobalScaling; -} -void LoadUrdfCommand::clear_globalscaling() { - if (has_globalscaling()) { - hasGlobalScaling_.globalscaling_ = 0; - clear_has_hasGlobalScaling(); - } -} -double LoadUrdfCommand::globalscaling() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.LoadUrdfCommand.globalScaling) - if (has_globalscaling()) { - return hasGlobalScaling_.globalscaling_; - } - return 0; -} -void LoadUrdfCommand::set_globalscaling(double value) { - if (!has_globalscaling()) { - clear_hasGlobalScaling(); - set_has_globalscaling(); - } - hasGlobalScaling_.globalscaling_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.LoadUrdfCommand.globalScaling) -} - -bool LoadUrdfCommand::has_hasUseMultiBody() const { - return hasUseMultiBody_case() != HASUSEMULTIBODY_NOT_SET; -} -void LoadUrdfCommand::clear_has_hasUseMultiBody() { - _oneof_case_[0] = HASUSEMULTIBODY_NOT_SET; -} -bool LoadUrdfCommand::has_hasUseFixedBase() const { - return hasUseFixedBase_case() != HASUSEFIXEDBASE_NOT_SET; -} -void LoadUrdfCommand::clear_has_hasUseFixedBase() { - _oneof_case_[1] = HASUSEFIXEDBASE_NOT_SET; -} -bool LoadUrdfCommand::has_hasGlobalScaling() const { - return hasGlobalScaling_case() != HASGLOBALSCALING_NOT_SET; -} -void LoadUrdfCommand::clear_has_hasGlobalScaling() { - _oneof_case_[2] = HASGLOBALSCALING_NOT_SET; -} -LoadUrdfCommand::HasUseMultiBodyCase LoadUrdfCommand::hasUseMultiBody_case() const { - return LoadUrdfCommand::HasUseMultiBodyCase(_oneof_case_[0]); -} -LoadUrdfCommand::HasUseFixedBaseCase LoadUrdfCommand::hasUseFixedBase_case() const { - return LoadUrdfCommand::HasUseFixedBaseCase(_oneof_case_[1]); -} -LoadUrdfCommand::HasGlobalScalingCase LoadUrdfCommand::hasGlobalScaling_case() const { - return LoadUrdfCommand::HasGlobalScalingCase(_oneof_case_[2]); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void LoadUrdfStatus::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int LoadUrdfStatus::kBodyUniqueIdFieldNumber; const int LoadUrdfStatus::kBodyNameFieldNumber; @@ -5663,16 +5692,14 @@ const int LoadUrdfStatus::kFileNameFieldNumber; LoadUrdfStatus::LoadUrdfStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_LoadUrdfStatus.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.LoadUrdfStatus) } LoadUrdfStatus::LoadUrdfStatus(const LoadUrdfStatus& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); bodyname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.bodyname().size() > 0) { @@ -5690,7 +5717,6 @@ void LoadUrdfStatus::SharedCtor() { bodyname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); bodyuniqueid_ = 0; - _cached_size_ = 0; } LoadUrdfStatus::~LoadUrdfStatus() { @@ -5704,33 +5730,29 @@ void LoadUrdfStatus::SharedDtor() { } void LoadUrdfStatus::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* LoadUrdfStatus::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[14].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const LoadUrdfStatus& LoadUrdfStatus::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_LoadUrdfStatus.base); return *internal_default_instance(); } -LoadUrdfStatus* LoadUrdfStatus::New(::google::protobuf::Arena* arena) const { - LoadUrdfStatus* n = new LoadUrdfStatus; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void LoadUrdfStatus::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.LoadUrdfStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + bodyname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); bodyuniqueid_ = 0; + _internal_metadata_.Clear(); } bool LoadUrdfStatus::MergePartialFromCodedStream( @@ -5739,13 +5761,14 @@ bool LoadUrdfStatus::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.LoadUrdfStatus) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 bodyUniqueId = 1; case 1: { - if (tag == 8u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -5758,11 +5781,12 @@ bool LoadUrdfStatus::MergePartialFromCodedStream( // string bodyName = 2; case 2: { - if (tag == 18u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_bodyname())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->bodyname().data(), this->bodyname().length(), + this->bodyname().data(), static_cast(this->bodyname().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "pybullet_grpc.LoadUrdfStatus.bodyName")); } else { @@ -5773,11 +5797,12 @@ bool LoadUrdfStatus::MergePartialFromCodedStream( // string fileName = 3; case 3: { - if (tag == 26u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_filename())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), this->filename().length(), + this->filename().data(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "pybullet_grpc.LoadUrdfStatus.fileName")); } else { @@ -5788,12 +5813,11 @@ bool LoadUrdfStatus::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -5810,6 +5834,9 @@ failure: void LoadUrdfStatus::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.LoadUrdfStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->bodyuniqueid(), output); @@ -5818,7 +5845,7 @@ void LoadUrdfStatus::SerializeWithCachedSizes( // string bodyName = 2; if (this->bodyname().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->bodyname().data(), this->bodyname().length(), + this->bodyname().data(), static_cast(this->bodyname().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.LoadUrdfStatus.bodyName"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( @@ -5828,20 +5855,27 @@ void LoadUrdfStatus::SerializeWithCachedSizes( // string fileName = 3; if (this->filename().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), this->filename().length(), + this->filename().data(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.LoadUrdfStatus.fileName"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 3, this->filename(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.LoadUrdfStatus) } ::google::protobuf::uint8* LoadUrdfStatus::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.LoadUrdfStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->bodyuniqueid(), target); @@ -5850,7 +5884,7 @@ void LoadUrdfStatus::SerializeWithCachedSizes( // string bodyName = 2; if (this->bodyname().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->bodyname().data(), this->bodyname().length(), + this->bodyname().data(), static_cast(this->bodyname().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.LoadUrdfStatus.bodyName"); target = @@ -5861,7 +5895,7 @@ void LoadUrdfStatus::SerializeWithCachedSizes( // string fileName = 3; if (this->filename().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), this->filename().length(), + this->filename().data(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.LoadUrdfStatus.fileName"); target = @@ -5869,6 +5903,10 @@ void LoadUrdfStatus::SerializeWithCachedSizes( 3, this->filename(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.LoadUrdfStatus) return target; } @@ -5877,6 +5915,11 @@ size_t LoadUrdfStatus::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.LoadUrdfStatus) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // string bodyName = 2; if (this->bodyname().size() > 0) { total_size += 1 + @@ -5899,9 +5942,7 @@ size_t LoadUrdfStatus::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -5924,6 +5965,9 @@ void LoadUrdfStatus::MergeFrom(const LoadUrdfStatus& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.LoadUrdfStatus) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.bodyname().size() > 0) { bodyname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bodyname_); @@ -5960,142 +6004,27 @@ void LoadUrdfStatus::Swap(LoadUrdfStatus* other) { InternalSwap(other); } void LoadUrdfStatus::InternalSwap(LoadUrdfStatus* other) { - bodyname_.Swap(&other->bodyname_); - filename_.Swap(&other->filename_); - std::swap(bodyuniqueid_, other->bodyuniqueid_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + bodyname_.Swap(&other->bodyname_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + filename_.Swap(&other->filename_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(bodyuniqueid_, other->bodyuniqueid_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata LoadUrdfStatus::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[14]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// LoadUrdfStatus - -// int32 bodyUniqueId = 1; -void LoadUrdfStatus::clear_bodyuniqueid() { - bodyuniqueid_ = 0; -} -::google::protobuf::int32 LoadUrdfStatus::bodyuniqueid() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.LoadUrdfStatus.bodyUniqueId) - return bodyuniqueid_; -} -void LoadUrdfStatus::set_bodyuniqueid(::google::protobuf::int32 value) { - - bodyuniqueid_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.LoadUrdfStatus.bodyUniqueId) -} - -// string bodyName = 2; -void LoadUrdfStatus::clear_bodyname() { - bodyname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -const ::std::string& LoadUrdfStatus::bodyname() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.LoadUrdfStatus.bodyName) - return bodyname_.GetNoArena(); -} -void LoadUrdfStatus::set_bodyname(const ::std::string& value) { - - bodyname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pybullet_grpc.LoadUrdfStatus.bodyName) -} -#if LANG_CXX11 -void LoadUrdfStatus::set_bodyname(::std::string&& value) { - - bodyname_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:pybullet_grpc.LoadUrdfStatus.bodyName) -} -#endif -void LoadUrdfStatus::set_bodyname(const char* value) { - - bodyname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pybullet_grpc.LoadUrdfStatus.bodyName) -} -void LoadUrdfStatus::set_bodyname(const char* value, size_t size) { - - bodyname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pybullet_grpc.LoadUrdfStatus.bodyName) -} -::std::string* LoadUrdfStatus::mutable_bodyname() { - - // @@protoc_insertion_point(field_mutable:pybullet_grpc.LoadUrdfStatus.bodyName) - return bodyname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* LoadUrdfStatus::release_bodyname() { - // @@protoc_insertion_point(field_release:pybullet_grpc.LoadUrdfStatus.bodyName) - - return bodyname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void LoadUrdfStatus::set_allocated_bodyname(::std::string* bodyname) { - if (bodyname != NULL) { - - } else { - - } - bodyname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), bodyname); - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.LoadUrdfStatus.bodyName) -} - -// string fileName = 3; -void LoadUrdfStatus::clear_filename() { - filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -const ::std::string& LoadUrdfStatus::filename() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.LoadUrdfStatus.fileName) - return filename_.GetNoArena(); -} -void LoadUrdfStatus::set_filename(const ::std::string& value) { - - filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pybullet_grpc.LoadUrdfStatus.fileName) -} -#if LANG_CXX11 -void LoadUrdfStatus::set_filename(::std::string&& value) { - - filename_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:pybullet_grpc.LoadUrdfStatus.fileName) -} -#endif -void LoadUrdfStatus::set_filename(const char* value) { - - filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pybullet_grpc.LoadUrdfStatus.fileName) -} -void LoadUrdfStatus::set_filename(const char* value, size_t size) { - - filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pybullet_grpc.LoadUrdfStatus.fileName) -} -::std::string* LoadUrdfStatus::mutable_filename() { - - // @@protoc_insertion_point(field_mutable:pybullet_grpc.LoadUrdfStatus.fileName) - return filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* LoadUrdfStatus::release_filename() { - // @@protoc_insertion_point(field_release:pybullet_grpc.LoadUrdfStatus.fileName) - - return filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void LoadUrdfStatus::set_allocated_filename(::std::string* filename) { - if (filename != NULL) { - - } else { - - } - filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filename); - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.LoadUrdfStatus.fileName) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void LoadSdfCommand::InitAsDefaultInstance() { + ::pybullet_grpc::_LoadSdfCommand_default_instance_.usemultibody_ = 0; + ::pybullet_grpc::_LoadSdfCommand_default_instance_.globalscaling_ = 0; +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int LoadSdfCommand::kFileNameFieldNumber; const int LoadSdfCommand::kUseMultiBodyFieldNumber; @@ -6104,16 +6033,14 @@ const int LoadSdfCommand::kGlobalScalingFieldNumber; LoadSdfCommand::LoadSdfCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_LoadSdfCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.LoadSdfCommand) } LoadSdfCommand::LoadSdfCommand(const LoadSdfCommand& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.filename().size() > 0) { @@ -6146,7 +6073,6 @@ void LoadSdfCommand::SharedCtor() { filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_hasUseMultiBody(); clear_has_hasGlobalScaling(); - _cached_size_ = 0; } LoadSdfCommand::~LoadSdfCommand() { @@ -6165,27 +6091,18 @@ void LoadSdfCommand::SharedDtor() { } void LoadSdfCommand::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* LoadSdfCommand::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[15].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const LoadSdfCommand& LoadSdfCommand::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_LoadSdfCommand.base); return *internal_default_instance(); } -LoadSdfCommand* LoadSdfCommand::New(::google::protobuf::Arena* arena) const { - LoadSdfCommand* n = new LoadSdfCommand; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void LoadSdfCommand::clear_hasUseMultiBody() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.LoadSdfCommand) @@ -6218,9 +6135,14 @@ void LoadSdfCommand::clear_hasGlobalScaling() { void LoadSdfCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.LoadSdfCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_hasUseMultiBody(); clear_hasGlobalScaling(); + _internal_metadata_.Clear(); } bool LoadSdfCommand::MergePartialFromCodedStream( @@ -6229,17 +6151,18 @@ bool LoadSdfCommand::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.LoadSdfCommand) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string fileName = 1; case 1: { - if (tag == 10u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_filename())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), this->filename().length(), + this->filename().data(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "pybullet_grpc.LoadSdfCommand.fileName")); } else { @@ -6250,7 +6173,8 @@ bool LoadSdfCommand::MergePartialFromCodedStream( // int32 useMultiBody = 2; case 2: { - if (tag == 16u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { clear_hasUseMultiBody(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -6264,7 +6188,8 @@ bool LoadSdfCommand::MergePartialFromCodedStream( // double globalScaling = 3; case 3: { - if (tag == 25u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) { clear_hasGlobalScaling(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -6278,12 +6203,11 @@ bool LoadSdfCommand::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -6300,10 +6224,13 @@ failure: void LoadSdfCommand::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.LoadSdfCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // string fileName = 1; if (this->filename().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), this->filename().length(), + this->filename().data(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.LoadSdfCommand.fileName"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( @@ -6320,17 +6247,24 @@ void LoadSdfCommand::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->globalscaling(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.LoadSdfCommand) } ::google::protobuf::uint8* LoadSdfCommand::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.LoadSdfCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // string fileName = 1; if (this->filename().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), this->filename().length(), + this->filename().data(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.LoadSdfCommand.fileName"); target = @@ -6348,6 +6282,10 @@ void LoadSdfCommand::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->globalscaling(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.LoadSdfCommand) return target; } @@ -6356,6 +6294,11 @@ size_t LoadSdfCommand::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.LoadSdfCommand) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // string fileName = 1; if (this->filename().size() > 0) { total_size += 1 + @@ -6386,9 +6329,7 @@ size_t LoadSdfCommand::ByteSizeLong() const { } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -6411,6 +6352,9 @@ void LoadSdfCommand::MergeFrom(const LoadSdfCommand& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.LoadSdfCommand) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.filename().size() > 0) { filename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_); @@ -6458,177 +6402,46 @@ void LoadSdfCommand::Swap(LoadSdfCommand* other) { InternalSwap(other); } void LoadSdfCommand::InternalSwap(LoadSdfCommand* other) { - filename_.Swap(&other->filename_); - std::swap(hasUseMultiBody_, other->hasUseMultiBody_); - std::swap(_oneof_case_[0], other->_oneof_case_[0]); - std::swap(hasGlobalScaling_, other->hasGlobalScaling_); - std::swap(_oneof_case_[1], other->_oneof_case_[1]); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + filename_.Swap(&other->filename_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(hasUseMultiBody_, other->hasUseMultiBody_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(hasGlobalScaling_, other->hasGlobalScaling_); + swap(_oneof_case_[1], other->_oneof_case_[1]); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata LoadSdfCommand::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[15]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// LoadSdfCommand - -// string fileName = 1; -void LoadSdfCommand::clear_filename() { - filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -const ::std::string& LoadSdfCommand::filename() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.LoadSdfCommand.fileName) - return filename_.GetNoArena(); -} -void LoadSdfCommand::set_filename(const ::std::string& value) { - - filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pybullet_grpc.LoadSdfCommand.fileName) -} -#if LANG_CXX11 -void LoadSdfCommand::set_filename(::std::string&& value) { - - filename_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:pybullet_grpc.LoadSdfCommand.fileName) -} -#endif -void LoadSdfCommand::set_filename(const char* value) { - - filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pybullet_grpc.LoadSdfCommand.fileName) -} -void LoadSdfCommand::set_filename(const char* value, size_t size) { - - filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pybullet_grpc.LoadSdfCommand.fileName) -} -::std::string* LoadSdfCommand::mutable_filename() { - - // @@protoc_insertion_point(field_mutable:pybullet_grpc.LoadSdfCommand.fileName) - return filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* LoadSdfCommand::release_filename() { - // @@protoc_insertion_point(field_release:pybullet_grpc.LoadSdfCommand.fileName) - - return filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void LoadSdfCommand::set_allocated_filename(::std::string* filename) { - if (filename != NULL) { - - } else { - - } - filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filename); - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.LoadSdfCommand.fileName) -} - -// int32 useMultiBody = 2; -bool LoadSdfCommand::has_usemultibody() const { - return hasUseMultiBody_case() == kUseMultiBody; -} -void LoadSdfCommand::set_has_usemultibody() { - _oneof_case_[0] = kUseMultiBody; -} -void LoadSdfCommand::clear_usemultibody() { - if (has_usemultibody()) { - hasUseMultiBody_.usemultibody_ = 0; - clear_has_hasUseMultiBody(); - } -} -::google::protobuf::int32 LoadSdfCommand::usemultibody() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.LoadSdfCommand.useMultiBody) - if (has_usemultibody()) { - return hasUseMultiBody_.usemultibody_; - } - return 0; -} -void LoadSdfCommand::set_usemultibody(::google::protobuf::int32 value) { - if (!has_usemultibody()) { - clear_hasUseMultiBody(); - set_has_usemultibody(); - } - hasUseMultiBody_.usemultibody_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.LoadSdfCommand.useMultiBody) -} - -// double globalScaling = 3; -bool LoadSdfCommand::has_globalscaling() const { - return hasGlobalScaling_case() == kGlobalScaling; -} -void LoadSdfCommand::set_has_globalscaling() { - _oneof_case_[1] = kGlobalScaling; -} -void LoadSdfCommand::clear_globalscaling() { - if (has_globalscaling()) { - hasGlobalScaling_.globalscaling_ = 0; - clear_has_hasGlobalScaling(); - } -} -double LoadSdfCommand::globalscaling() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.LoadSdfCommand.globalScaling) - if (has_globalscaling()) { - return hasGlobalScaling_.globalscaling_; - } - return 0; -} -void LoadSdfCommand::set_globalscaling(double value) { - if (!has_globalscaling()) { - clear_hasGlobalScaling(); - set_has_globalscaling(); - } - hasGlobalScaling_.globalscaling_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.LoadSdfCommand.globalScaling) -} - -bool LoadSdfCommand::has_hasUseMultiBody() const { - return hasUseMultiBody_case() != HASUSEMULTIBODY_NOT_SET; -} -void LoadSdfCommand::clear_has_hasUseMultiBody() { - _oneof_case_[0] = HASUSEMULTIBODY_NOT_SET; -} -bool LoadSdfCommand::has_hasGlobalScaling() const { - return hasGlobalScaling_case() != HASGLOBALSCALING_NOT_SET; -} -void LoadSdfCommand::clear_has_hasGlobalScaling() { - _oneof_case_[1] = HASGLOBALSCALING_NOT_SET; -} -LoadSdfCommand::HasUseMultiBodyCase LoadSdfCommand::hasUseMultiBody_case() const { - return LoadSdfCommand::HasUseMultiBodyCase(_oneof_case_[0]); -} -LoadSdfCommand::HasGlobalScalingCase LoadSdfCommand::hasGlobalScaling_case() const { - return LoadSdfCommand::HasGlobalScalingCase(_oneof_case_[1]); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void SdfLoadedStatus::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int SdfLoadedStatus::kBodyUniqueIdsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SdfLoadedStatus::SdfLoadedStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_SdfLoadedStatus.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.SdfLoadedStatus) } SdfLoadedStatus::SdfLoadedStatus(const SdfLoadedStatus& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), - bodyuniqueids_(from.bodyuniqueids_), - _cached_size_(0) { + bodyuniqueids_(from.bodyuniqueids_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.SdfLoadedStatus) } void SdfLoadedStatus::SharedCtor() { - _cached_size_ = 0; } SdfLoadedStatus::~SdfLoadedStatus() { @@ -6640,31 +6453,27 @@ void SdfLoadedStatus::SharedDtor() { } void SdfLoadedStatus::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* SdfLoadedStatus::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[16].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const SdfLoadedStatus& SdfLoadedStatus::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_SdfLoadedStatus.base); return *internal_default_instance(); } -SdfLoadedStatus* SdfLoadedStatus::New(::google::protobuf::Arena* arena) const { - SdfLoadedStatus* n = new SdfLoadedStatus; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void SdfLoadedStatus::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.SdfLoadedStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + bodyuniqueids_.Clear(); + _internal_metadata_.Clear(); } bool SdfLoadedStatus::MergePartialFromCodedStream( @@ -6673,17 +6482,20 @@ bool SdfLoadedStatus::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.SdfLoadedStatus) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated int32 bodyUniqueIds = 2; case 2: { - if (tag == 18u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, this->mutable_bodyuniqueids()))); - } else if (tag == 16u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( 1, 18u, input, this->mutable_bodyuniqueids()))); @@ -6695,12 +6507,11 @@ bool SdfLoadedStatus::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -6717,23 +6528,34 @@ failure: void SdfLoadedStatus::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.SdfLoadedStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated int32 bodyUniqueIds = 2; if (this->bodyuniqueids_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_bodyuniqueids_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _bodyuniqueids_cached_byte_size_)); } - for (int i = 0; i < this->bodyuniqueids_size(); i++) { + for (int i = 0, n = this->bodyuniqueids_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( this->bodyuniqueids(i), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.SdfLoadedStatus) } ::google::protobuf::uint8* SdfLoadedStatus::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.SdfLoadedStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated int32 bodyUniqueIds = 2; if (this->bodyuniqueids_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( @@ -6741,13 +6563,16 @@ void SdfLoadedStatus::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _bodyuniqueids_cached_byte_size_, target); - } - for (int i = 0; i < this->bodyuniqueids_size(); i++) { + static_cast< ::google::protobuf::int32>( + _bodyuniqueids_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32NoTagToArray(this->bodyuniqueids(i), target); + WriteInt32NoTagToArray(this->bodyuniqueids_, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.SdfLoadedStatus) return target; } @@ -6756,13 +6581,19 @@ size_t SdfLoadedStatus::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.SdfLoadedStatus) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // repeated int32 bodyUniqueIds = 2; { size_t data_size = ::google::protobuf::internal::WireFormatLite:: Int32Size(this->bodyuniqueids_); if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -6772,9 +6603,7 @@ size_t SdfLoadedStatus::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -6797,6 +6626,9 @@ void SdfLoadedStatus::MergeFrom(const SdfLoadedStatus& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.SdfLoadedStatus) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + bodyuniqueids_.MergeFrom(from.bodyuniqueids_); } @@ -6823,52 +6655,21 @@ void SdfLoadedStatus::Swap(SdfLoadedStatus* other) { InternalSwap(other); } void SdfLoadedStatus::InternalSwap(SdfLoadedStatus* other) { - bodyuniqueids_.UnsafeArenaSwap(&other->bodyuniqueids_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + bodyuniqueids_.InternalSwap(&other->bodyuniqueids_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata SdfLoadedStatus::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[16]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SdfLoadedStatus - -// repeated int32 bodyUniqueIds = 2; -int SdfLoadedStatus::bodyuniqueids_size() const { - return bodyuniqueids_.size(); -} -void SdfLoadedStatus::clear_bodyuniqueids() { - bodyuniqueids_.Clear(); -} -::google::protobuf::int32 SdfLoadedStatus::bodyuniqueids(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.SdfLoadedStatus.bodyUniqueIds) - return bodyuniqueids_.Get(index); -} -void SdfLoadedStatus::set_bodyuniqueids(int index, ::google::protobuf::int32 value) { - bodyuniqueids_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.SdfLoadedStatus.bodyUniqueIds) -} -void SdfLoadedStatus::add_bodyuniqueids(::google::protobuf::int32 value) { - bodyuniqueids_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.SdfLoadedStatus.bodyUniqueIds) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -SdfLoadedStatus::bodyuniqueids() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.SdfLoadedStatus.bodyUniqueIds) - return bodyuniqueids_; -} -::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -SdfLoadedStatus::mutable_bodyuniqueids() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.SdfLoadedStatus.bodyUniqueIds) - return &bodyuniqueids_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void LoadMjcfCommand::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int LoadMjcfCommand::kFileNameFieldNumber; const int LoadMjcfCommand::kFlagsFieldNumber; @@ -6876,16 +6677,14 @@ const int LoadMjcfCommand::kFlagsFieldNumber; LoadMjcfCommand::LoadMjcfCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_LoadMjcfCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.LoadMjcfCommand) } LoadMjcfCommand::LoadMjcfCommand(const LoadMjcfCommand& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.filename().size() > 0) { @@ -6898,7 +6697,6 @@ LoadMjcfCommand::LoadMjcfCommand(const LoadMjcfCommand& from) void LoadMjcfCommand::SharedCtor() { filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); flags_ = 0; - _cached_size_ = 0; } LoadMjcfCommand::~LoadMjcfCommand() { @@ -6911,32 +6709,28 @@ void LoadMjcfCommand::SharedDtor() { } void LoadMjcfCommand::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* LoadMjcfCommand::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[17].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const LoadMjcfCommand& LoadMjcfCommand::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_LoadMjcfCommand.base); return *internal_default_instance(); } -LoadMjcfCommand* LoadMjcfCommand::New(::google::protobuf::Arena* arena) const { - LoadMjcfCommand* n = new LoadMjcfCommand; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void LoadMjcfCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.LoadMjcfCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); flags_ = 0; + _internal_metadata_.Clear(); } bool LoadMjcfCommand::MergePartialFromCodedStream( @@ -6945,17 +6739,18 @@ bool LoadMjcfCommand::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.LoadMjcfCommand) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string fileName = 1; case 1: { - if (tag == 10u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_filename())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), this->filename().length(), + this->filename().data(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "pybullet_grpc.LoadMjcfCommand.fileName")); } else { @@ -6966,7 +6761,8 @@ bool LoadMjcfCommand::MergePartialFromCodedStream( // int32 flags = 2; case 2: { - if (tag == 16u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -6979,12 +6775,11 @@ bool LoadMjcfCommand::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -7001,10 +6796,13 @@ failure: void LoadMjcfCommand::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.LoadMjcfCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // string fileName = 1; if (this->filename().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), this->filename().length(), + this->filename().data(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.LoadMjcfCommand.fileName"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( @@ -7016,17 +6814,24 @@ void LoadMjcfCommand::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->flags(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.LoadMjcfCommand) } ::google::protobuf::uint8* LoadMjcfCommand::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.LoadMjcfCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // string fileName = 1; if (this->filename().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), this->filename().length(), + this->filename().data(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.LoadMjcfCommand.fileName"); target = @@ -7039,6 +6844,10 @@ void LoadMjcfCommand::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->flags(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.LoadMjcfCommand) return target; } @@ -7047,6 +6856,11 @@ size_t LoadMjcfCommand::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.LoadMjcfCommand) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // string fileName = 1; if (this->filename().size() > 0) { total_size += 1 + @@ -7062,9 +6876,7 @@ size_t LoadMjcfCommand::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -7087,6 +6899,9 @@ void LoadMjcfCommand::MergeFrom(const LoadMjcfCommand& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.LoadMjcfCommand) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.filename().size() > 0) { filename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_); @@ -7119,112 +6934,43 @@ void LoadMjcfCommand::Swap(LoadMjcfCommand* other) { InternalSwap(other); } void LoadMjcfCommand::InternalSwap(LoadMjcfCommand* other) { - filename_.Swap(&other->filename_); - std::swap(flags_, other->flags_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + filename_.Swap(&other->filename_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(flags_, other->flags_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata LoadMjcfCommand::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[17]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// LoadMjcfCommand - -// string fileName = 1; -void LoadMjcfCommand::clear_filename() { - filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -const ::std::string& LoadMjcfCommand::filename() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.LoadMjcfCommand.fileName) - return filename_.GetNoArena(); -} -void LoadMjcfCommand::set_filename(const ::std::string& value) { - - filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:pybullet_grpc.LoadMjcfCommand.fileName) -} -#if LANG_CXX11 -void LoadMjcfCommand::set_filename(::std::string&& value) { - - filename_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:pybullet_grpc.LoadMjcfCommand.fileName) -} -#endif -void LoadMjcfCommand::set_filename(const char* value) { - - filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:pybullet_grpc.LoadMjcfCommand.fileName) -} -void LoadMjcfCommand::set_filename(const char* value, size_t size) { - - filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:pybullet_grpc.LoadMjcfCommand.fileName) -} -::std::string* LoadMjcfCommand::mutable_filename() { - - // @@protoc_insertion_point(field_mutable:pybullet_grpc.LoadMjcfCommand.fileName) - return filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* LoadMjcfCommand::release_filename() { - // @@protoc_insertion_point(field_release:pybullet_grpc.LoadMjcfCommand.fileName) - - return filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void LoadMjcfCommand::set_allocated_filename(::std::string* filename) { - if (filename != NULL) { - - } else { - - } - filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filename); - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.LoadMjcfCommand.fileName) -} - -// int32 flags = 2; -void LoadMjcfCommand::clear_flags() { - flags_ = 0; -} -::google::protobuf::int32 LoadMjcfCommand::flags() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.LoadMjcfCommand.flags) - return flags_; -} -void LoadMjcfCommand::set_flags(::google::protobuf::int32 value) { - - flags_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.LoadMjcfCommand.flags) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void MjcfLoadedStatus::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int MjcfLoadedStatus::kBodyUniqueIdsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 MjcfLoadedStatus::MjcfLoadedStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_MjcfLoadedStatus.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.MjcfLoadedStatus) } MjcfLoadedStatus::MjcfLoadedStatus(const MjcfLoadedStatus& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), - bodyuniqueids_(from.bodyuniqueids_), - _cached_size_(0) { + bodyuniqueids_(from.bodyuniqueids_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.MjcfLoadedStatus) } void MjcfLoadedStatus::SharedCtor() { - _cached_size_ = 0; } MjcfLoadedStatus::~MjcfLoadedStatus() { @@ -7236,31 +6982,27 @@ void MjcfLoadedStatus::SharedDtor() { } void MjcfLoadedStatus::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* MjcfLoadedStatus::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[18].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const MjcfLoadedStatus& MjcfLoadedStatus::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_MjcfLoadedStatus.base); return *internal_default_instance(); } -MjcfLoadedStatus* MjcfLoadedStatus::New(::google::protobuf::Arena* arena) const { - MjcfLoadedStatus* n = new MjcfLoadedStatus; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void MjcfLoadedStatus::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.MjcfLoadedStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + bodyuniqueids_.Clear(); + _internal_metadata_.Clear(); } bool MjcfLoadedStatus::MergePartialFromCodedStream( @@ -7269,17 +7011,20 @@ bool MjcfLoadedStatus::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.MjcfLoadedStatus) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated int32 bodyUniqueIds = 2; case 2: { - if (tag == 18u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, this->mutable_bodyuniqueids()))); - } else if (tag == 16u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( 1, 18u, input, this->mutable_bodyuniqueids()))); @@ -7291,12 +7036,11 @@ bool MjcfLoadedStatus::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -7313,23 +7057,34 @@ failure: void MjcfLoadedStatus::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.MjcfLoadedStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated int32 bodyUniqueIds = 2; if (this->bodyuniqueids_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_bodyuniqueids_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _bodyuniqueids_cached_byte_size_)); } - for (int i = 0; i < this->bodyuniqueids_size(); i++) { + for (int i = 0, n = this->bodyuniqueids_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( this->bodyuniqueids(i), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.MjcfLoadedStatus) } ::google::protobuf::uint8* MjcfLoadedStatus::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.MjcfLoadedStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated int32 bodyUniqueIds = 2; if (this->bodyuniqueids_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( @@ -7337,13 +7092,16 @@ void MjcfLoadedStatus::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _bodyuniqueids_cached_byte_size_, target); - } - for (int i = 0; i < this->bodyuniqueids_size(); i++) { + static_cast< ::google::protobuf::int32>( + _bodyuniqueids_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32NoTagToArray(this->bodyuniqueids(i), target); + WriteInt32NoTagToArray(this->bodyuniqueids_, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.MjcfLoadedStatus) return target; } @@ -7352,13 +7110,19 @@ size_t MjcfLoadedStatus::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.MjcfLoadedStatus) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // repeated int32 bodyUniqueIds = 2; { size_t data_size = ::google::protobuf::internal::WireFormatLite:: Int32Size(this->bodyuniqueids_); if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -7368,9 +7132,7 @@ size_t MjcfLoadedStatus::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -7393,6 +7155,9 @@ void MjcfLoadedStatus::MergeFrom(const MjcfLoadedStatus& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.MjcfLoadedStatus) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + bodyuniqueids_.MergeFrom(from.bodyuniqueids_); } @@ -7419,52 +7184,50 @@ void MjcfLoadedStatus::Swap(MjcfLoadedStatus* other) { InternalSwap(other); } void MjcfLoadedStatus::InternalSwap(MjcfLoadedStatus* other) { - bodyuniqueids_.UnsafeArenaSwap(&other->bodyuniqueids_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + bodyuniqueids_.InternalSwap(&other->bodyuniqueids_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata MjcfLoadedStatus::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[18]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// MjcfLoadedStatus - -// repeated int32 bodyUniqueIds = 2; -int MjcfLoadedStatus::bodyuniqueids_size() const { - return bodyuniqueids_.size(); -} -void MjcfLoadedStatus::clear_bodyuniqueids() { - bodyuniqueids_.Clear(); -} -::google::protobuf::int32 MjcfLoadedStatus::bodyuniqueids(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.MjcfLoadedStatus.bodyUniqueIds) - return bodyuniqueids_.Get(index); -} -void MjcfLoadedStatus::set_bodyuniqueids(int index, ::google::protobuf::int32 value) { - bodyuniqueids_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.MjcfLoadedStatus.bodyUniqueIds) -} -void MjcfLoadedStatus::add_bodyuniqueids(::google::protobuf::int32 value) { - bodyuniqueids_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.MjcfLoadedStatus.bodyUniqueIds) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -MjcfLoadedStatus::bodyuniqueids() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.MjcfLoadedStatus.bodyUniqueIds) - return bodyuniqueids_; -} -::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -MjcfLoadedStatus::mutable_bodyuniqueids() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.MjcfLoadedStatus.bodyUniqueIds) - return &bodyuniqueids_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void ChangeDynamicsCommand::InitAsDefaultInstance() { + ::pybullet_grpc::_ChangeDynamicsCommand_default_instance_.mass_ = 0; + ::pybullet_grpc::_ChangeDynamicsCommand_default_instance_.lateralfriction_ = 0; + ::pybullet_grpc::_ChangeDynamicsCommand_default_instance_.spinningfriction_ = 0; + ::pybullet_grpc::_ChangeDynamicsCommand_default_instance_.rollingfriction_ = 0; + ::pybullet_grpc::_ChangeDynamicsCommand_default_instance_.restitution_ = 0; + ::pybullet_grpc::_ChangeDynamicsCommand_default_instance_.lineardamping_ = 0; + ::pybullet_grpc::_ChangeDynamicsCommand_default_instance_.angulardamping_ = 0; + ::pybullet_grpc::_ChangeDynamicsCommand_default_instance_.contactstiffness_ = 0; + ::pybullet_grpc::_ChangeDynamicsCommand_default_instance_.contactdamping_ = 0; + ::pybullet_grpc::_ChangeDynamicsCommand_default_instance_.localinertiadiagonal_ = const_cast< ::pybullet_grpc::vec3*>( + ::pybullet_grpc::vec3::internal_default_instance()); + ::pybullet_grpc::_ChangeDynamicsCommand_default_instance_.frictionanchor_ = 0; + ::pybullet_grpc::_ChangeDynamicsCommand_default_instance_.ccdsweptsphereradius_ = 0; + ::pybullet_grpc::_ChangeDynamicsCommand_default_instance_.contactprocessingthreshold_ = 0; + ::pybullet_grpc::_ChangeDynamicsCommand_default_instance_.activationstate_ = 0; +} +void ChangeDynamicsCommand::set_allocated_localinertiadiagonal(::pybullet_grpc::vec3* localinertiadiagonal) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_hasLocalInertiaDiagonal(); + if (localinertiadiagonal) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + localinertiadiagonal = ::google::protobuf::internal::GetOwnedMessage( + message_arena, localinertiadiagonal, submessage_arena); + } + set_has_localinertiadiagonal(); + hasLocalInertiaDiagonal_.localinertiadiagonal_ = localinertiadiagonal; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.ChangeDynamicsCommand.localInertiaDiagonal) +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int ChangeDynamicsCommand::kBodyUniqueIdFieldNumber; const int ChangeDynamicsCommand::kLinkIndexFieldNumber; @@ -7486,20 +7249,18 @@ const int ChangeDynamicsCommand::kActivationStateFieldNumber; ChangeDynamicsCommand::ChangeDynamicsCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_ChangeDynamicsCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.ChangeDynamicsCommand) } ChangeDynamicsCommand::ChangeDynamicsCommand(const ChangeDynamicsCommand& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&bodyuniqueid_, &from.bodyuniqueid_, - reinterpret_cast(&linkindex_) - - reinterpret_cast(&bodyuniqueid_) + sizeof(linkindex_)); + static_cast(reinterpret_cast(&linkindex_) - + reinterpret_cast(&bodyuniqueid_)) + sizeof(linkindex_)); clear_has_hasMass(); switch (from.hasMass_case()) { case kMass: { @@ -7644,8 +7405,9 @@ ChangeDynamicsCommand::ChangeDynamicsCommand(const ChangeDynamicsCommand& from) } void ChangeDynamicsCommand::SharedCtor() { - ::memset(&bodyuniqueid_, 0, reinterpret_cast(&linkindex_) - - reinterpret_cast(&bodyuniqueid_) + sizeof(linkindex_)); + ::memset(&bodyuniqueid_, 0, static_cast( + reinterpret_cast(&linkindex_) - + reinterpret_cast(&bodyuniqueid_)) + sizeof(linkindex_)); clear_has_hasMass(); clear_has_hasLateralFriction(); clear_has_hasSpinningFriction(); @@ -7660,7 +7422,6 @@ void ChangeDynamicsCommand::SharedCtor() { clear_has_hasccdSweptSphereRadius(); clear_has_hasContactProcessingThreshold(); clear_has_hasActivationState(); - _cached_size_ = 0; } ChangeDynamicsCommand::~ChangeDynamicsCommand() { @@ -7714,27 +7475,18 @@ void ChangeDynamicsCommand::SharedDtor() { } void ChangeDynamicsCommand::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* ChangeDynamicsCommand::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[19].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const ChangeDynamicsCommand& ChangeDynamicsCommand::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_ChangeDynamicsCommand.base); return *internal_default_instance(); } -ChangeDynamicsCommand* ChangeDynamicsCommand::New(::google::protobuf::Arena* arena) const { - ChangeDynamicsCommand* n = new ChangeDynamicsCommand; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void ChangeDynamicsCommand::clear_hasMass() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.ChangeDynamicsCommand) @@ -7935,8 +7687,13 @@ void ChangeDynamicsCommand::clear_hasActivationState() { void ChangeDynamicsCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.ChangeDynamicsCommand) - ::memset(&bodyuniqueid_, 0, reinterpret_cast(&linkindex_) - - reinterpret_cast(&bodyuniqueid_) + sizeof(linkindex_)); + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&bodyuniqueid_, 0, static_cast( + reinterpret_cast(&linkindex_) - + reinterpret_cast(&bodyuniqueid_)) + sizeof(linkindex_)); clear_hasMass(); clear_hasLateralFriction(); clear_hasSpinningFriction(); @@ -7951,6 +7708,7 @@ void ChangeDynamicsCommand::Clear() { clear_hasccdSweptSphereRadius(); clear_hasContactProcessingThreshold(); clear_hasActivationState(); + _internal_metadata_.Clear(); } bool ChangeDynamicsCommand::MergePartialFromCodedStream( @@ -7959,13 +7717,14 @@ bool ChangeDynamicsCommand::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.ChangeDynamicsCommand) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 bodyUniqueId = 1; case 1: { - if (tag == 8u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -7978,7 +7737,8 @@ bool ChangeDynamicsCommand::MergePartialFromCodedStream( // int32 linkIndex = 2; case 2: { - if (tag == 16u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -7991,7 +7751,8 @@ bool ChangeDynamicsCommand::MergePartialFromCodedStream( // double mass = 3; case 3: { - if (tag == 25u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) { clear_hasMass(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -8005,7 +7766,8 @@ bool ChangeDynamicsCommand::MergePartialFromCodedStream( // double lateralFriction = 5; case 5: { - if (tag == 41u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) { clear_hasLateralFriction(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -8019,7 +7781,8 @@ bool ChangeDynamicsCommand::MergePartialFromCodedStream( // double spinningFriction = 6; case 6: { - if (tag == 49u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) { clear_hasSpinningFriction(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -8033,7 +7796,8 @@ bool ChangeDynamicsCommand::MergePartialFromCodedStream( // double rollingFriction = 7; case 7: { - if (tag == 57u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) { clear_hasRollingFriction(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -8047,7 +7811,8 @@ bool ChangeDynamicsCommand::MergePartialFromCodedStream( // double restitution = 8; case 8: { - if (tag == 65u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) { clear_hasRestitution(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -8061,7 +7826,8 @@ bool ChangeDynamicsCommand::MergePartialFromCodedStream( // double linearDamping = 9; case 9: { - if (tag == 73u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) { clear_haslinearDamping(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -8075,7 +7841,8 @@ bool ChangeDynamicsCommand::MergePartialFromCodedStream( // double angularDamping = 10; case 10: { - if (tag == 81u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(81u /* 81 & 0xFF */)) { clear_hasangularDamping(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -8089,7 +7856,8 @@ bool ChangeDynamicsCommand::MergePartialFromCodedStream( // double contactStiffness = 11; case 11: { - if (tag == 89u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(89u /* 89 & 0xFF */)) { clear_hasContactStiffness(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -8103,7 +7871,8 @@ bool ChangeDynamicsCommand::MergePartialFromCodedStream( // double contactDamping = 12; case 12: { - if (tag == 97u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(97u /* 97 & 0xFF */)) { clear_hasContactDamping(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -8117,8 +7886,9 @@ bool ChangeDynamicsCommand::MergePartialFromCodedStream( // .pybullet_grpc.vec3 localInertiaDiagonal = 13; case 13: { - if (tag == 106u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_localinertiadiagonal())); } else { goto handle_unusual; @@ -8128,7 +7898,8 @@ bool ChangeDynamicsCommand::MergePartialFromCodedStream( // int32 frictionAnchor = 14; case 14: { - if (tag == 112u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) { clear_hasFrictionAnchor(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -8142,7 +7913,8 @@ bool ChangeDynamicsCommand::MergePartialFromCodedStream( // double ccdSweptSphereRadius = 15; case 15: { - if (tag == 121u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(121u /* 121 & 0xFF */)) { clear_hasccdSweptSphereRadius(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -8156,7 +7928,8 @@ bool ChangeDynamicsCommand::MergePartialFromCodedStream( // double contactProcessingThreshold = 16; case 16: { - if (tag == 129u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(129u /* 129 & 0xFF */)) { clear_hasContactProcessingThreshold(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -8170,7 +7943,8 @@ bool ChangeDynamicsCommand::MergePartialFromCodedStream( // int32 activationState = 17; case 17: { - if (tag == 136u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) { clear_hasActivationState(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -8184,12 +7958,11 @@ bool ChangeDynamicsCommand::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -8206,6 +7979,9 @@ failure: void ChangeDynamicsCommand::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.ChangeDynamicsCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->bodyuniqueid(), output); @@ -8264,7 +8040,7 @@ void ChangeDynamicsCommand::SerializeWithCachedSizes( // .pybullet_grpc.vec3 localInertiaDiagonal = 13; if (has_localinertiadiagonal()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 13, *hasLocalInertiaDiagonal_.localinertiadiagonal_, output); + 13, this->_internal_localinertiadiagonal(), output); } // int32 frictionAnchor = 14; @@ -8287,13 +8063,20 @@ void ChangeDynamicsCommand::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt32(17, this->activationstate(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.ChangeDynamicsCommand) } ::google::protobuf::uint8* ChangeDynamicsCommand::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.ChangeDynamicsCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->bodyuniqueid(), target); @@ -8352,8 +8135,8 @@ void ChangeDynamicsCommand::SerializeWithCachedSizes( // .pybullet_grpc.vec3 localInertiaDiagonal = 13; if (has_localinertiadiagonal()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 13, *hasLocalInertiaDiagonal_.localinertiadiagonal_, false, target); + InternalWriteMessageToArray( + 13, this->_internal_localinertiadiagonal(), deterministic, target); } // int32 frictionAnchor = 14; @@ -8376,6 +8159,10 @@ void ChangeDynamicsCommand::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(17, this->activationstate(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.ChangeDynamicsCommand) return target; } @@ -8384,6 +8171,11 @@ size_t ChangeDynamicsCommand::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.ChangeDynamicsCommand) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { total_size += 1 + @@ -8492,7 +8284,7 @@ size_t ChangeDynamicsCommand::ByteSizeLong() const { // .pybullet_grpc.vec3 localInertiaDiagonal = 13; case kLocalInertiaDiagonal: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *hasLocalInertiaDiagonal_.localinertiadiagonal_); break; } @@ -8545,9 +8337,7 @@ size_t ChangeDynamicsCommand::ByteSizeLong() const { } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -8570,6 +8360,9 @@ void ChangeDynamicsCommand::MergeFrom(const ChangeDynamicsCommand& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.ChangeDynamicsCommand) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.bodyuniqueid() != 0) { set_bodyuniqueid(from.bodyuniqueid()); } @@ -8727,630 +8520,50 @@ void ChangeDynamicsCommand::Swap(ChangeDynamicsCommand* other) { InternalSwap(other); } void ChangeDynamicsCommand::InternalSwap(ChangeDynamicsCommand* other) { - std::swap(bodyuniqueid_, other->bodyuniqueid_); - std::swap(linkindex_, other->linkindex_); - std::swap(hasMass_, other->hasMass_); - std::swap(_oneof_case_[0], other->_oneof_case_[0]); - std::swap(hasLateralFriction_, other->hasLateralFriction_); - std::swap(_oneof_case_[1], other->_oneof_case_[1]); - std::swap(hasSpinningFriction_, other->hasSpinningFriction_); - std::swap(_oneof_case_[2], other->_oneof_case_[2]); - std::swap(hasRollingFriction_, other->hasRollingFriction_); - std::swap(_oneof_case_[3], other->_oneof_case_[3]); - std::swap(hasRestitution_, other->hasRestitution_); - std::swap(_oneof_case_[4], other->_oneof_case_[4]); - std::swap(haslinearDamping_, other->haslinearDamping_); - std::swap(_oneof_case_[5], other->_oneof_case_[5]); - std::swap(hasangularDamping_, other->hasangularDamping_); - std::swap(_oneof_case_[6], other->_oneof_case_[6]); - std::swap(hasContactStiffness_, other->hasContactStiffness_); - std::swap(_oneof_case_[7], other->_oneof_case_[7]); - std::swap(hasContactDamping_, other->hasContactDamping_); - std::swap(_oneof_case_[8], other->_oneof_case_[8]); - std::swap(hasLocalInertiaDiagonal_, other->hasLocalInertiaDiagonal_); - std::swap(_oneof_case_[9], other->_oneof_case_[9]); - std::swap(hasFrictionAnchor_, other->hasFrictionAnchor_); - std::swap(_oneof_case_[10], other->_oneof_case_[10]); - std::swap(hasccdSweptSphereRadius_, other->hasccdSweptSphereRadius_); - std::swap(_oneof_case_[11], other->_oneof_case_[11]); - std::swap(hasContactProcessingThreshold_, other->hasContactProcessingThreshold_); - std::swap(_oneof_case_[12], other->_oneof_case_[12]); - std::swap(hasActivationState_, other->hasActivationState_); - std::swap(_oneof_case_[13], other->_oneof_case_[13]); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + swap(bodyuniqueid_, other->bodyuniqueid_); + swap(linkindex_, other->linkindex_); + swap(hasMass_, other->hasMass_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(hasLateralFriction_, other->hasLateralFriction_); + swap(_oneof_case_[1], other->_oneof_case_[1]); + swap(hasSpinningFriction_, other->hasSpinningFriction_); + swap(_oneof_case_[2], other->_oneof_case_[2]); + swap(hasRollingFriction_, other->hasRollingFriction_); + swap(_oneof_case_[3], other->_oneof_case_[3]); + swap(hasRestitution_, other->hasRestitution_); + swap(_oneof_case_[4], other->_oneof_case_[4]); + swap(haslinearDamping_, other->haslinearDamping_); + swap(_oneof_case_[5], other->_oneof_case_[5]); + swap(hasangularDamping_, other->hasangularDamping_); + swap(_oneof_case_[6], other->_oneof_case_[6]); + swap(hasContactStiffness_, other->hasContactStiffness_); + swap(_oneof_case_[7], other->_oneof_case_[7]); + swap(hasContactDamping_, other->hasContactDamping_); + swap(_oneof_case_[8], other->_oneof_case_[8]); + swap(hasLocalInertiaDiagonal_, other->hasLocalInertiaDiagonal_); + swap(_oneof_case_[9], other->_oneof_case_[9]); + swap(hasFrictionAnchor_, other->hasFrictionAnchor_); + swap(_oneof_case_[10], other->_oneof_case_[10]); + swap(hasccdSweptSphereRadius_, other->hasccdSweptSphereRadius_); + swap(_oneof_case_[11], other->_oneof_case_[11]); + swap(hasContactProcessingThreshold_, other->hasContactProcessingThreshold_); + swap(_oneof_case_[12], other->_oneof_case_[12]); + swap(hasActivationState_, other->hasActivationState_); + swap(_oneof_case_[13], other->_oneof_case_[13]); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata ChangeDynamicsCommand::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[19]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// ChangeDynamicsCommand - -// int32 bodyUniqueId = 1; -void ChangeDynamicsCommand::clear_bodyuniqueid() { - bodyuniqueid_ = 0; -} -::google::protobuf::int32 ChangeDynamicsCommand::bodyuniqueid() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ChangeDynamicsCommand.bodyUniqueId) - return bodyuniqueid_; -} -void ChangeDynamicsCommand::set_bodyuniqueid(::google::protobuf::int32 value) { - - bodyuniqueid_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ChangeDynamicsCommand.bodyUniqueId) -} - -// int32 linkIndex = 2; -void ChangeDynamicsCommand::clear_linkindex() { - linkindex_ = 0; -} -::google::protobuf::int32 ChangeDynamicsCommand::linkindex() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ChangeDynamicsCommand.linkIndex) - return linkindex_; -} -void ChangeDynamicsCommand::set_linkindex(::google::protobuf::int32 value) { - - linkindex_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ChangeDynamicsCommand.linkIndex) -} - -// double mass = 3; -bool ChangeDynamicsCommand::has_mass() const { - return hasMass_case() == kMass; -} -void ChangeDynamicsCommand::set_has_mass() { - _oneof_case_[0] = kMass; -} -void ChangeDynamicsCommand::clear_mass() { - if (has_mass()) { - hasMass_.mass_ = 0; - clear_has_hasMass(); - } -} -double ChangeDynamicsCommand::mass() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ChangeDynamicsCommand.mass) - if (has_mass()) { - return hasMass_.mass_; - } - return 0; -} -void ChangeDynamicsCommand::set_mass(double value) { - if (!has_mass()) { - clear_hasMass(); - set_has_mass(); - } - hasMass_.mass_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ChangeDynamicsCommand.mass) -} - -// double lateralFriction = 5; -bool ChangeDynamicsCommand::has_lateralfriction() const { - return hasLateralFriction_case() == kLateralFriction; -} -void ChangeDynamicsCommand::set_has_lateralfriction() { - _oneof_case_[1] = kLateralFriction; -} -void ChangeDynamicsCommand::clear_lateralfriction() { - if (has_lateralfriction()) { - hasLateralFriction_.lateralfriction_ = 0; - clear_has_hasLateralFriction(); - } -} -double ChangeDynamicsCommand::lateralfriction() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ChangeDynamicsCommand.lateralFriction) - if (has_lateralfriction()) { - return hasLateralFriction_.lateralfriction_; - } - return 0; -} -void ChangeDynamicsCommand::set_lateralfriction(double value) { - if (!has_lateralfriction()) { - clear_hasLateralFriction(); - set_has_lateralfriction(); - } - hasLateralFriction_.lateralfriction_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ChangeDynamicsCommand.lateralFriction) -} - -// double spinningFriction = 6; -bool ChangeDynamicsCommand::has_spinningfriction() const { - return hasSpinningFriction_case() == kSpinningFriction; -} -void ChangeDynamicsCommand::set_has_spinningfriction() { - _oneof_case_[2] = kSpinningFriction; -} -void ChangeDynamicsCommand::clear_spinningfriction() { - if (has_spinningfriction()) { - hasSpinningFriction_.spinningfriction_ = 0; - clear_has_hasSpinningFriction(); - } -} -double ChangeDynamicsCommand::spinningfriction() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ChangeDynamicsCommand.spinningFriction) - if (has_spinningfriction()) { - return hasSpinningFriction_.spinningfriction_; - } - return 0; -} -void ChangeDynamicsCommand::set_spinningfriction(double value) { - if (!has_spinningfriction()) { - clear_hasSpinningFriction(); - set_has_spinningfriction(); - } - hasSpinningFriction_.spinningfriction_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ChangeDynamicsCommand.spinningFriction) -} - -// double rollingFriction = 7; -bool ChangeDynamicsCommand::has_rollingfriction() const { - return hasRollingFriction_case() == kRollingFriction; -} -void ChangeDynamicsCommand::set_has_rollingfriction() { - _oneof_case_[3] = kRollingFriction; -} -void ChangeDynamicsCommand::clear_rollingfriction() { - if (has_rollingfriction()) { - hasRollingFriction_.rollingfriction_ = 0; - clear_has_hasRollingFriction(); - } -} -double ChangeDynamicsCommand::rollingfriction() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ChangeDynamicsCommand.rollingFriction) - if (has_rollingfriction()) { - return hasRollingFriction_.rollingfriction_; - } - return 0; -} -void ChangeDynamicsCommand::set_rollingfriction(double value) { - if (!has_rollingfriction()) { - clear_hasRollingFriction(); - set_has_rollingfriction(); - } - hasRollingFriction_.rollingfriction_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ChangeDynamicsCommand.rollingFriction) -} - -// double restitution = 8; -bool ChangeDynamicsCommand::has_restitution() const { - return hasRestitution_case() == kRestitution; -} -void ChangeDynamicsCommand::set_has_restitution() { - _oneof_case_[4] = kRestitution; -} -void ChangeDynamicsCommand::clear_restitution() { - if (has_restitution()) { - hasRestitution_.restitution_ = 0; - clear_has_hasRestitution(); - } -} -double ChangeDynamicsCommand::restitution() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ChangeDynamicsCommand.restitution) - if (has_restitution()) { - return hasRestitution_.restitution_; - } - return 0; -} -void ChangeDynamicsCommand::set_restitution(double value) { - if (!has_restitution()) { - clear_hasRestitution(); - set_has_restitution(); - } - hasRestitution_.restitution_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ChangeDynamicsCommand.restitution) -} - -// double linearDamping = 9; -bool ChangeDynamicsCommand::has_lineardamping() const { - return haslinearDamping_case() == kLinearDamping; -} -void ChangeDynamicsCommand::set_has_lineardamping() { - _oneof_case_[5] = kLinearDamping; -} -void ChangeDynamicsCommand::clear_lineardamping() { - if (has_lineardamping()) { - haslinearDamping_.lineardamping_ = 0; - clear_has_haslinearDamping(); - } -} -double ChangeDynamicsCommand::lineardamping() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ChangeDynamicsCommand.linearDamping) - if (has_lineardamping()) { - return haslinearDamping_.lineardamping_; - } - return 0; -} -void ChangeDynamicsCommand::set_lineardamping(double value) { - if (!has_lineardamping()) { - clear_haslinearDamping(); - set_has_lineardamping(); - } - haslinearDamping_.lineardamping_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ChangeDynamicsCommand.linearDamping) -} - -// double angularDamping = 10; -bool ChangeDynamicsCommand::has_angulardamping() const { - return hasangularDamping_case() == kAngularDamping; -} -void ChangeDynamicsCommand::set_has_angulardamping() { - _oneof_case_[6] = kAngularDamping; -} -void ChangeDynamicsCommand::clear_angulardamping() { - if (has_angulardamping()) { - hasangularDamping_.angulardamping_ = 0; - clear_has_hasangularDamping(); - } -} -double ChangeDynamicsCommand::angulardamping() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ChangeDynamicsCommand.angularDamping) - if (has_angulardamping()) { - return hasangularDamping_.angulardamping_; - } - return 0; -} -void ChangeDynamicsCommand::set_angulardamping(double value) { - if (!has_angulardamping()) { - clear_hasangularDamping(); - set_has_angulardamping(); - } - hasangularDamping_.angulardamping_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ChangeDynamicsCommand.angularDamping) -} - -// double contactStiffness = 11; -bool ChangeDynamicsCommand::has_contactstiffness() const { - return hasContactStiffness_case() == kContactStiffness; -} -void ChangeDynamicsCommand::set_has_contactstiffness() { - _oneof_case_[7] = kContactStiffness; -} -void ChangeDynamicsCommand::clear_contactstiffness() { - if (has_contactstiffness()) { - hasContactStiffness_.contactstiffness_ = 0; - clear_has_hasContactStiffness(); - } -} -double ChangeDynamicsCommand::contactstiffness() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ChangeDynamicsCommand.contactStiffness) - if (has_contactstiffness()) { - return hasContactStiffness_.contactstiffness_; - } - return 0; -} -void ChangeDynamicsCommand::set_contactstiffness(double value) { - if (!has_contactstiffness()) { - clear_hasContactStiffness(); - set_has_contactstiffness(); - } - hasContactStiffness_.contactstiffness_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ChangeDynamicsCommand.contactStiffness) -} - -// double contactDamping = 12; -bool ChangeDynamicsCommand::has_contactdamping() const { - return hasContactDamping_case() == kContactDamping; -} -void ChangeDynamicsCommand::set_has_contactdamping() { - _oneof_case_[8] = kContactDamping; -} -void ChangeDynamicsCommand::clear_contactdamping() { - if (has_contactdamping()) { - hasContactDamping_.contactdamping_ = 0; - clear_has_hasContactDamping(); - } -} -double ChangeDynamicsCommand::contactdamping() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ChangeDynamicsCommand.contactDamping) - if (has_contactdamping()) { - return hasContactDamping_.contactdamping_; - } - return 0; -} -void ChangeDynamicsCommand::set_contactdamping(double value) { - if (!has_contactdamping()) { - clear_hasContactDamping(); - set_has_contactdamping(); - } - hasContactDamping_.contactdamping_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ChangeDynamicsCommand.contactDamping) -} - -// .pybullet_grpc.vec3 localInertiaDiagonal = 13; -bool ChangeDynamicsCommand::has_localinertiadiagonal() const { - return hasLocalInertiaDiagonal_case() == kLocalInertiaDiagonal; -} -void ChangeDynamicsCommand::set_has_localinertiadiagonal() { - _oneof_case_[9] = kLocalInertiaDiagonal; -} -void ChangeDynamicsCommand::clear_localinertiadiagonal() { - if (has_localinertiadiagonal()) { - delete hasLocalInertiaDiagonal_.localinertiadiagonal_; - clear_has_hasLocalInertiaDiagonal(); - } -} - const ::pybullet_grpc::vec3& ChangeDynamicsCommand::localinertiadiagonal() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ChangeDynamicsCommand.localInertiaDiagonal) - return has_localinertiadiagonal() - ? *hasLocalInertiaDiagonal_.localinertiadiagonal_ - : ::pybullet_grpc::vec3::default_instance(); -} -::pybullet_grpc::vec3* ChangeDynamicsCommand::mutable_localinertiadiagonal() { - if (!has_localinertiadiagonal()) { - clear_hasLocalInertiaDiagonal(); - set_has_localinertiadiagonal(); - hasLocalInertiaDiagonal_.localinertiadiagonal_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.ChangeDynamicsCommand.localInertiaDiagonal) - return hasLocalInertiaDiagonal_.localinertiadiagonal_; -} -::pybullet_grpc::vec3* ChangeDynamicsCommand::release_localinertiadiagonal() { - // @@protoc_insertion_point(field_release:pybullet_grpc.ChangeDynamicsCommand.localInertiaDiagonal) - if (has_localinertiadiagonal()) { - clear_has_hasLocalInertiaDiagonal(); - ::pybullet_grpc::vec3* temp = hasLocalInertiaDiagonal_.localinertiadiagonal_; - hasLocalInertiaDiagonal_.localinertiadiagonal_ = NULL; - return temp; - } else { - return NULL; - } -} -void ChangeDynamicsCommand::set_allocated_localinertiadiagonal(::pybullet_grpc::vec3* localinertiadiagonal) { - clear_hasLocalInertiaDiagonal(); - if (localinertiadiagonal) { - set_has_localinertiadiagonal(); - hasLocalInertiaDiagonal_.localinertiadiagonal_ = localinertiadiagonal; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.ChangeDynamicsCommand.localInertiaDiagonal) -} - -// int32 frictionAnchor = 14; -bool ChangeDynamicsCommand::has_frictionanchor() const { - return hasFrictionAnchor_case() == kFrictionAnchor; -} -void ChangeDynamicsCommand::set_has_frictionanchor() { - _oneof_case_[10] = kFrictionAnchor; -} -void ChangeDynamicsCommand::clear_frictionanchor() { - if (has_frictionanchor()) { - hasFrictionAnchor_.frictionanchor_ = 0; - clear_has_hasFrictionAnchor(); - } -} -::google::protobuf::int32 ChangeDynamicsCommand::frictionanchor() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ChangeDynamicsCommand.frictionAnchor) - if (has_frictionanchor()) { - return hasFrictionAnchor_.frictionanchor_; - } - return 0; -} -void ChangeDynamicsCommand::set_frictionanchor(::google::protobuf::int32 value) { - if (!has_frictionanchor()) { - clear_hasFrictionAnchor(); - set_has_frictionanchor(); - } - hasFrictionAnchor_.frictionanchor_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ChangeDynamicsCommand.frictionAnchor) -} - -// double ccdSweptSphereRadius = 15; -bool ChangeDynamicsCommand::has_ccdsweptsphereradius() const { - return hasccdSweptSphereRadius_case() == kCcdSweptSphereRadius; -} -void ChangeDynamicsCommand::set_has_ccdsweptsphereradius() { - _oneof_case_[11] = kCcdSweptSphereRadius; -} -void ChangeDynamicsCommand::clear_ccdsweptsphereradius() { - if (has_ccdsweptsphereradius()) { - hasccdSweptSphereRadius_.ccdsweptsphereradius_ = 0; - clear_has_hasccdSweptSphereRadius(); - } -} -double ChangeDynamicsCommand::ccdsweptsphereradius() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ChangeDynamicsCommand.ccdSweptSphereRadius) - if (has_ccdsweptsphereradius()) { - return hasccdSweptSphereRadius_.ccdsweptsphereradius_; - } - return 0; -} -void ChangeDynamicsCommand::set_ccdsweptsphereradius(double value) { - if (!has_ccdsweptsphereradius()) { - clear_hasccdSweptSphereRadius(); - set_has_ccdsweptsphereradius(); - } - hasccdSweptSphereRadius_.ccdsweptsphereradius_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ChangeDynamicsCommand.ccdSweptSphereRadius) -} - -// double contactProcessingThreshold = 16; -bool ChangeDynamicsCommand::has_contactprocessingthreshold() const { - return hasContactProcessingThreshold_case() == kContactProcessingThreshold; -} -void ChangeDynamicsCommand::set_has_contactprocessingthreshold() { - _oneof_case_[12] = kContactProcessingThreshold; -} -void ChangeDynamicsCommand::clear_contactprocessingthreshold() { - if (has_contactprocessingthreshold()) { - hasContactProcessingThreshold_.contactprocessingthreshold_ = 0; - clear_has_hasContactProcessingThreshold(); - } -} -double ChangeDynamicsCommand::contactprocessingthreshold() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ChangeDynamicsCommand.contactProcessingThreshold) - if (has_contactprocessingthreshold()) { - return hasContactProcessingThreshold_.contactprocessingthreshold_; - } - return 0; -} -void ChangeDynamicsCommand::set_contactprocessingthreshold(double value) { - if (!has_contactprocessingthreshold()) { - clear_hasContactProcessingThreshold(); - set_has_contactprocessingthreshold(); - } - hasContactProcessingThreshold_.contactprocessingthreshold_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ChangeDynamicsCommand.contactProcessingThreshold) -} - -// int32 activationState = 17; -bool ChangeDynamicsCommand::has_activationstate() const { - return hasActivationState_case() == kActivationState; -} -void ChangeDynamicsCommand::set_has_activationstate() { - _oneof_case_[13] = kActivationState; -} -void ChangeDynamicsCommand::clear_activationstate() { - if (has_activationstate()) { - hasActivationState_.activationstate_ = 0; - clear_has_hasActivationState(); - } -} -::google::protobuf::int32 ChangeDynamicsCommand::activationstate() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ChangeDynamicsCommand.activationState) - if (has_activationstate()) { - return hasActivationState_.activationstate_; - } - return 0; -} -void ChangeDynamicsCommand::set_activationstate(::google::protobuf::int32 value) { - if (!has_activationstate()) { - clear_hasActivationState(); - set_has_activationstate(); - } - hasActivationState_.activationstate_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ChangeDynamicsCommand.activationState) -} - -bool ChangeDynamicsCommand::has_hasMass() const { - return hasMass_case() != HASMASS_NOT_SET; -} -void ChangeDynamicsCommand::clear_has_hasMass() { - _oneof_case_[0] = HASMASS_NOT_SET; -} -bool ChangeDynamicsCommand::has_hasLateralFriction() const { - return hasLateralFriction_case() != HASLATERALFRICTION_NOT_SET; -} -void ChangeDynamicsCommand::clear_has_hasLateralFriction() { - _oneof_case_[1] = HASLATERALFRICTION_NOT_SET; -} -bool ChangeDynamicsCommand::has_hasSpinningFriction() const { - return hasSpinningFriction_case() != HASSPINNINGFRICTION_NOT_SET; -} -void ChangeDynamicsCommand::clear_has_hasSpinningFriction() { - _oneof_case_[2] = HASSPINNINGFRICTION_NOT_SET; -} -bool ChangeDynamicsCommand::has_hasRollingFriction() const { - return hasRollingFriction_case() != HASROLLINGFRICTION_NOT_SET; -} -void ChangeDynamicsCommand::clear_has_hasRollingFriction() { - _oneof_case_[3] = HASROLLINGFRICTION_NOT_SET; -} -bool ChangeDynamicsCommand::has_hasRestitution() const { - return hasRestitution_case() != HASRESTITUTION_NOT_SET; -} -void ChangeDynamicsCommand::clear_has_hasRestitution() { - _oneof_case_[4] = HASRESTITUTION_NOT_SET; -} -bool ChangeDynamicsCommand::has_haslinearDamping() const { - return haslinearDamping_case() != HASLINEARDAMPING_NOT_SET; -} -void ChangeDynamicsCommand::clear_has_haslinearDamping() { - _oneof_case_[5] = HASLINEARDAMPING_NOT_SET; -} -bool ChangeDynamicsCommand::has_hasangularDamping() const { - return hasangularDamping_case() != HASANGULARDAMPING_NOT_SET; -} -void ChangeDynamicsCommand::clear_has_hasangularDamping() { - _oneof_case_[6] = HASANGULARDAMPING_NOT_SET; -} -bool ChangeDynamicsCommand::has_hasContactStiffness() const { - return hasContactStiffness_case() != HASCONTACTSTIFFNESS_NOT_SET; -} -void ChangeDynamicsCommand::clear_has_hasContactStiffness() { - _oneof_case_[7] = HASCONTACTSTIFFNESS_NOT_SET; -} -bool ChangeDynamicsCommand::has_hasContactDamping() const { - return hasContactDamping_case() != HASCONTACTDAMPING_NOT_SET; -} -void ChangeDynamicsCommand::clear_has_hasContactDamping() { - _oneof_case_[8] = HASCONTACTDAMPING_NOT_SET; -} -bool ChangeDynamicsCommand::has_hasLocalInertiaDiagonal() const { - return hasLocalInertiaDiagonal_case() != HASLOCALINERTIADIAGONAL_NOT_SET; -} -void ChangeDynamicsCommand::clear_has_hasLocalInertiaDiagonal() { - _oneof_case_[9] = HASLOCALINERTIADIAGONAL_NOT_SET; -} -bool ChangeDynamicsCommand::has_hasFrictionAnchor() const { - return hasFrictionAnchor_case() != HASFRICTIONANCHOR_NOT_SET; -} -void ChangeDynamicsCommand::clear_has_hasFrictionAnchor() { - _oneof_case_[10] = HASFRICTIONANCHOR_NOT_SET; -} -bool ChangeDynamicsCommand::has_hasccdSweptSphereRadius() const { - return hasccdSweptSphereRadius_case() != HASCCDSWEPTSPHERERADIUS_NOT_SET; -} -void ChangeDynamicsCommand::clear_has_hasccdSweptSphereRadius() { - _oneof_case_[11] = HASCCDSWEPTSPHERERADIUS_NOT_SET; -} -bool ChangeDynamicsCommand::has_hasContactProcessingThreshold() const { - return hasContactProcessingThreshold_case() != HASCONTACTPROCESSINGTHRESHOLD_NOT_SET; -} -void ChangeDynamicsCommand::clear_has_hasContactProcessingThreshold() { - _oneof_case_[12] = HASCONTACTPROCESSINGTHRESHOLD_NOT_SET; -} -bool ChangeDynamicsCommand::has_hasActivationState() const { - return hasActivationState_case() != HASACTIVATIONSTATE_NOT_SET; -} -void ChangeDynamicsCommand::clear_has_hasActivationState() { - _oneof_case_[13] = HASACTIVATIONSTATE_NOT_SET; -} -ChangeDynamicsCommand::HasMassCase ChangeDynamicsCommand::hasMass_case() const { - return ChangeDynamicsCommand::HasMassCase(_oneof_case_[0]); -} -ChangeDynamicsCommand::HasLateralFrictionCase ChangeDynamicsCommand::hasLateralFriction_case() const { - return ChangeDynamicsCommand::HasLateralFrictionCase(_oneof_case_[1]); -} -ChangeDynamicsCommand::HasSpinningFrictionCase ChangeDynamicsCommand::hasSpinningFriction_case() const { - return ChangeDynamicsCommand::HasSpinningFrictionCase(_oneof_case_[2]); -} -ChangeDynamicsCommand::HasRollingFrictionCase ChangeDynamicsCommand::hasRollingFriction_case() const { - return ChangeDynamicsCommand::HasRollingFrictionCase(_oneof_case_[3]); -} -ChangeDynamicsCommand::HasRestitutionCase ChangeDynamicsCommand::hasRestitution_case() const { - return ChangeDynamicsCommand::HasRestitutionCase(_oneof_case_[4]); -} -ChangeDynamicsCommand::HaslinearDampingCase ChangeDynamicsCommand::haslinearDamping_case() const { - return ChangeDynamicsCommand::HaslinearDampingCase(_oneof_case_[5]); -} -ChangeDynamicsCommand::HasangularDampingCase ChangeDynamicsCommand::hasangularDamping_case() const { - return ChangeDynamicsCommand::HasangularDampingCase(_oneof_case_[6]); -} -ChangeDynamicsCommand::HasContactStiffnessCase ChangeDynamicsCommand::hasContactStiffness_case() const { - return ChangeDynamicsCommand::HasContactStiffnessCase(_oneof_case_[7]); -} -ChangeDynamicsCommand::HasContactDampingCase ChangeDynamicsCommand::hasContactDamping_case() const { - return ChangeDynamicsCommand::HasContactDampingCase(_oneof_case_[8]); -} -ChangeDynamicsCommand::HasLocalInertiaDiagonalCase ChangeDynamicsCommand::hasLocalInertiaDiagonal_case() const { - return ChangeDynamicsCommand::HasLocalInertiaDiagonalCase(_oneof_case_[9]); -} -ChangeDynamicsCommand::HasFrictionAnchorCase ChangeDynamicsCommand::hasFrictionAnchor_case() const { - return ChangeDynamicsCommand::HasFrictionAnchorCase(_oneof_case_[10]); -} -ChangeDynamicsCommand::HasccdSweptSphereRadiusCase ChangeDynamicsCommand::hasccdSweptSphereRadius_case() const { - return ChangeDynamicsCommand::HasccdSweptSphereRadiusCase(_oneof_case_[11]); -} -ChangeDynamicsCommand::HasContactProcessingThresholdCase ChangeDynamicsCommand::hasContactProcessingThreshold_case() const { - return ChangeDynamicsCommand::HasContactProcessingThresholdCase(_oneof_case_[12]); -} -ChangeDynamicsCommand::HasActivationStateCase ChangeDynamicsCommand::hasActivationState_case() const { - return ChangeDynamicsCommand::HasActivationStateCase(_oneof_case_[13]); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void GetDynamicsCommand::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int GetDynamicsCommand::kBodyUniqueIdFieldNumber; const int GetDynamicsCommand::kLinkIndexFieldNumber; @@ -9358,27 +8571,25 @@ const int GetDynamicsCommand::kLinkIndexFieldNumber; GetDynamicsCommand::GetDynamicsCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_GetDynamicsCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.GetDynamicsCommand) } GetDynamicsCommand::GetDynamicsCommand(const GetDynamicsCommand& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&bodyuniqueid_, &from.bodyuniqueid_, - reinterpret_cast(&linkindex_) - - reinterpret_cast(&bodyuniqueid_) + sizeof(linkindex_)); + static_cast(reinterpret_cast(&linkindex_) - + reinterpret_cast(&bodyuniqueid_)) + sizeof(linkindex_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.GetDynamicsCommand) } void GetDynamicsCommand::SharedCtor() { - ::memset(&bodyuniqueid_, 0, reinterpret_cast(&linkindex_) - - reinterpret_cast(&bodyuniqueid_) + sizeof(linkindex_)); - _cached_size_ = 0; + ::memset(&bodyuniqueid_, 0, static_cast( + reinterpret_cast(&linkindex_) - + reinterpret_cast(&bodyuniqueid_)) + sizeof(linkindex_)); } GetDynamicsCommand::~GetDynamicsCommand() { @@ -9390,32 +8601,29 @@ void GetDynamicsCommand::SharedDtor() { } void GetDynamicsCommand::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* GetDynamicsCommand::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[20].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const GetDynamicsCommand& GetDynamicsCommand::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_GetDynamicsCommand.base); return *internal_default_instance(); } -GetDynamicsCommand* GetDynamicsCommand::New(::google::protobuf::Arena* arena) const { - GetDynamicsCommand* n = new GetDynamicsCommand; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void GetDynamicsCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.GetDynamicsCommand) - ::memset(&bodyuniqueid_, 0, reinterpret_cast(&linkindex_) - - reinterpret_cast(&bodyuniqueid_) + sizeof(linkindex_)); + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&bodyuniqueid_, 0, static_cast( + reinterpret_cast(&linkindex_) - + reinterpret_cast(&bodyuniqueid_)) + sizeof(linkindex_)); + _internal_metadata_.Clear(); } bool GetDynamicsCommand::MergePartialFromCodedStream( @@ -9424,13 +8632,14 @@ bool GetDynamicsCommand::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.GetDynamicsCommand) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 bodyUniqueId = 1; case 1: { - if (tag == 8u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -9443,7 +8652,8 @@ bool GetDynamicsCommand::MergePartialFromCodedStream( // int32 linkIndex = 2; case 2: { - if (tag == 16u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -9456,12 +8666,11 @@ bool GetDynamicsCommand::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -9478,6 +8687,9 @@ failure: void GetDynamicsCommand::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.GetDynamicsCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->bodyuniqueid(), output); @@ -9488,13 +8700,20 @@ void GetDynamicsCommand::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->linkindex(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.GetDynamicsCommand) } ::google::protobuf::uint8* GetDynamicsCommand::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.GetDynamicsCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->bodyuniqueid(), target); @@ -9505,6 +8724,10 @@ void GetDynamicsCommand::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->linkindex(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.GetDynamicsCommand) return target; } @@ -9513,6 +8736,11 @@ size_t GetDynamicsCommand::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.GetDynamicsCommand) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { total_size += 1 + @@ -9528,9 +8756,7 @@ size_t GetDynamicsCommand::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -9553,6 +8779,9 @@ void GetDynamicsCommand::MergeFrom(const GetDynamicsCommand& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.GetDynamicsCommand) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.bodyuniqueid() != 0) { set_bodyuniqueid(from.bodyuniqueid()); } @@ -9584,51 +8813,24 @@ void GetDynamicsCommand::Swap(GetDynamicsCommand* other) { InternalSwap(other); } void GetDynamicsCommand::InternalSwap(GetDynamicsCommand* other) { - std::swap(bodyuniqueid_, other->bodyuniqueid_); - std::swap(linkindex_, other->linkindex_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + swap(bodyuniqueid_, other->bodyuniqueid_); + swap(linkindex_, other->linkindex_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata GetDynamicsCommand::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[20]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// GetDynamicsCommand - -// int32 bodyUniqueId = 1; -void GetDynamicsCommand::clear_bodyuniqueid() { - bodyuniqueid_ = 0; -} -::google::protobuf::int32 GetDynamicsCommand::bodyuniqueid() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.GetDynamicsCommand.bodyUniqueId) - return bodyuniqueid_; -} -void GetDynamicsCommand::set_bodyuniqueid(::google::protobuf::int32 value) { - - bodyuniqueid_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.GetDynamicsCommand.bodyUniqueId) -} - -// int32 linkIndex = 2; -void GetDynamicsCommand::clear_linkindex() { - linkindex_ = 0; -} -::google::protobuf::int32 GetDynamicsCommand::linkindex() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.GetDynamicsCommand.linkIndex) - return linkindex_; -} -void GetDynamicsCommand::set_linkindex(::google::protobuf::int32 value) { - - linkindex_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.GetDynamicsCommand.linkIndex) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void GetDynamicsStatus::InitAsDefaultInstance() { + ::pybullet_grpc::_GetDynamicsStatus_default_instance_._instance.get_mutable()->localinertiadiagonal_ = const_cast< ::pybullet_grpc::vec3*>( + ::pybullet_grpc::vec3::internal_default_instance()); +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int GetDynamicsStatus::kMassFieldNumber; const int GetDynamicsStatus::kLateralFrictionFieldNumber; @@ -9648,16 +8850,14 @@ const int GetDynamicsStatus::kActivationStateFieldNumber; GetDynamicsStatus::GetDynamicsStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_GetDynamicsStatus.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.GetDynamicsStatus) } GetDynamicsStatus::GetDynamicsStatus(const GetDynamicsStatus& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_localinertiadiagonal()) { localinertiadiagonal_ = new ::pybullet_grpc::vec3(*from.localinertiadiagonal_); @@ -9665,15 +8865,15 @@ GetDynamicsStatus::GetDynamicsStatus(const GetDynamicsStatus& from) localinertiadiagonal_ = NULL; } ::memcpy(&mass_, &from.mass_, - reinterpret_cast(&contactprocessingthreshold_) - - reinterpret_cast(&mass_) + sizeof(contactprocessingthreshold_)); + static_cast(reinterpret_cast(&contactprocessingthreshold_) - + reinterpret_cast(&mass_)) + sizeof(contactprocessingthreshold_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.GetDynamicsStatus) } void GetDynamicsStatus::SharedCtor() { - ::memset(&localinertiadiagonal_, 0, reinterpret_cast(&contactprocessingthreshold_) - - reinterpret_cast(&localinertiadiagonal_) + sizeof(contactprocessingthreshold_)); - _cached_size_ = 0; + ::memset(&localinertiadiagonal_, 0, static_cast( + reinterpret_cast(&contactprocessingthreshold_) - + reinterpret_cast(&localinertiadiagonal_)) + sizeof(contactprocessingthreshold_)); } GetDynamicsStatus::~GetDynamicsStatus() { @@ -9682,42 +8882,37 @@ GetDynamicsStatus::~GetDynamicsStatus() { } void GetDynamicsStatus::SharedDtor() { - if (this != internal_default_instance()) { - delete localinertiadiagonal_; - } + if (this != internal_default_instance()) delete localinertiadiagonal_; } void GetDynamicsStatus::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* GetDynamicsStatus::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[21].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const GetDynamicsStatus& GetDynamicsStatus::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_GetDynamicsStatus.base); return *internal_default_instance(); } -GetDynamicsStatus* GetDynamicsStatus::New(::google::protobuf::Arena* arena) const { - GetDynamicsStatus* n = new GetDynamicsStatus; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void GetDynamicsStatus::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.GetDynamicsStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + if (GetArenaNoVirtual() == NULL && localinertiadiagonal_ != NULL) { delete localinertiadiagonal_; } localinertiadiagonal_ = NULL; - ::memset(&mass_, 0, reinterpret_cast(&contactprocessingthreshold_) - - reinterpret_cast(&mass_) + sizeof(contactprocessingthreshold_)); + ::memset(&mass_, 0, static_cast( + reinterpret_cast(&contactprocessingthreshold_) - + reinterpret_cast(&mass_)) + sizeof(contactprocessingthreshold_)); + _internal_metadata_.Clear(); } bool GetDynamicsStatus::MergePartialFromCodedStream( @@ -9726,13 +8921,14 @@ bool GetDynamicsStatus::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.GetDynamicsStatus) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // double mass = 3; case 3: { - if (tag == 25u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -9745,7 +8941,8 @@ bool GetDynamicsStatus::MergePartialFromCodedStream( // double lateralFriction = 5; case 5: { - if (tag == 41u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -9758,7 +8955,8 @@ bool GetDynamicsStatus::MergePartialFromCodedStream( // double spinningFriction = 6; case 6: { - if (tag == 49u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -9771,7 +8969,8 @@ bool GetDynamicsStatus::MergePartialFromCodedStream( // double rollingFriction = 7; case 7: { - if (tag == 57u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -9784,7 +8983,8 @@ bool GetDynamicsStatus::MergePartialFromCodedStream( // double restitution = 8; case 8: { - if (tag == 65u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -9797,7 +8997,8 @@ bool GetDynamicsStatus::MergePartialFromCodedStream( // double linearDamping = 9; case 9: { - if (tag == 73u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -9810,7 +9011,8 @@ bool GetDynamicsStatus::MergePartialFromCodedStream( // double angularDamping = 10; case 10: { - if (tag == 81u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(81u /* 81 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -9823,7 +9025,8 @@ bool GetDynamicsStatus::MergePartialFromCodedStream( // double contactStiffness = 11; case 11: { - if (tag == 89u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(89u /* 89 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -9836,7 +9039,8 @@ bool GetDynamicsStatus::MergePartialFromCodedStream( // double contactDamping = 12; case 12: { - if (tag == 97u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(97u /* 97 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -9849,8 +9053,9 @@ bool GetDynamicsStatus::MergePartialFromCodedStream( // .pybullet_grpc.vec3 localInertiaDiagonal = 13; case 13: { - if (tag == 106u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_localinertiadiagonal())); } else { goto handle_unusual; @@ -9860,7 +9065,8 @@ bool GetDynamicsStatus::MergePartialFromCodedStream( // int32 frictionAnchor = 14; case 14: { - if (tag == 112u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -9873,7 +9079,8 @@ bool GetDynamicsStatus::MergePartialFromCodedStream( // double ccdSweptSphereRadius = 15; case 15: { - if (tag == 121u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(121u /* 121 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -9886,7 +9093,8 @@ bool GetDynamicsStatus::MergePartialFromCodedStream( // double contactProcessingThreshold = 16; case 16: { - if (tag == 129u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(129u /* 129 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -9899,7 +9107,8 @@ bool GetDynamicsStatus::MergePartialFromCodedStream( // int32 activationState = 17; case 17: { - if (tag == 136u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -9912,12 +9121,11 @@ bool GetDynamicsStatus::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -9934,6 +9142,9 @@ failure: void GetDynamicsStatus::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.GetDynamicsStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // double mass = 3; if (this->mass() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->mass(), output); @@ -9982,7 +9193,7 @@ void GetDynamicsStatus::SerializeWithCachedSizes( // .pybullet_grpc.vec3 localInertiaDiagonal = 13; if (this->has_localinertiadiagonal()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 13, *this->localinertiadiagonal_, output); + 13, this->_internal_localinertiadiagonal(), output); } // int32 frictionAnchor = 14; @@ -10005,13 +9216,20 @@ void GetDynamicsStatus::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt32(17, this->activationstate(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.GetDynamicsStatus) } ::google::protobuf::uint8* GetDynamicsStatus::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.GetDynamicsStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // double mass = 3; if (this->mass() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->mass(), target); @@ -10060,8 +9278,8 @@ void GetDynamicsStatus::SerializeWithCachedSizes( // .pybullet_grpc.vec3 localInertiaDiagonal = 13; if (this->has_localinertiadiagonal()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 13, *this->localinertiadiagonal_, false, target); + InternalWriteMessageToArray( + 13, this->_internal_localinertiadiagonal(), deterministic, target); } // int32 frictionAnchor = 14; @@ -10084,6 +9302,10 @@ void GetDynamicsStatus::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(17, this->activationstate(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.GetDynamicsStatus) return target; } @@ -10092,11 +9314,16 @@ size_t GetDynamicsStatus::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.GetDynamicsStatus) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // .pybullet_grpc.vec3 localInertiaDiagonal = 13; if (this->has_localinertiadiagonal()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->localinertiadiagonal_); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *localinertiadiagonal_); } // double mass = 3; @@ -10169,9 +9396,7 @@ size_t GetDynamicsStatus::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -10194,6 +9419,9 @@ void GetDynamicsStatus::MergeFrom(const GetDynamicsStatus& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.GetDynamicsStatus) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.has_localinertiadiagonal()) { mutable_localinertiadiagonal()->::pybullet_grpc::vec3::MergeFrom(from.localinertiadiagonal()); } @@ -10261,256 +9489,34 @@ void GetDynamicsStatus::Swap(GetDynamicsStatus* other) { InternalSwap(other); } void GetDynamicsStatus::InternalSwap(GetDynamicsStatus* other) { - std::swap(localinertiadiagonal_, other->localinertiadiagonal_); - std::swap(mass_, other->mass_); - std::swap(lateralfriction_, other->lateralfriction_); - std::swap(spinningfriction_, other->spinningfriction_); - std::swap(rollingfriction_, other->rollingfriction_); - std::swap(restitution_, other->restitution_); - std::swap(lineardamping_, other->lineardamping_); - std::swap(angulardamping_, other->angulardamping_); - std::swap(contactstiffness_, other->contactstiffness_); - std::swap(contactdamping_, other->contactdamping_); - std::swap(ccdsweptsphereradius_, other->ccdsweptsphereradius_); - std::swap(frictionanchor_, other->frictionanchor_); - std::swap(activationstate_, other->activationstate_); - std::swap(contactprocessingthreshold_, other->contactprocessingthreshold_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + swap(localinertiadiagonal_, other->localinertiadiagonal_); + swap(mass_, other->mass_); + swap(lateralfriction_, other->lateralfriction_); + swap(spinningfriction_, other->spinningfriction_); + swap(rollingfriction_, other->rollingfriction_); + swap(restitution_, other->restitution_); + swap(lineardamping_, other->lineardamping_); + swap(angulardamping_, other->angulardamping_); + swap(contactstiffness_, other->contactstiffness_); + swap(contactdamping_, other->contactdamping_); + swap(ccdsweptsphereradius_, other->ccdsweptsphereradius_); + swap(frictionanchor_, other->frictionanchor_); + swap(activationstate_, other->activationstate_); + swap(contactprocessingthreshold_, other->contactprocessingthreshold_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata GetDynamicsStatus::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[21]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// GetDynamicsStatus - -// double mass = 3; -void GetDynamicsStatus::clear_mass() { - mass_ = 0; -} -double GetDynamicsStatus::mass() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.GetDynamicsStatus.mass) - return mass_; -} -void GetDynamicsStatus::set_mass(double value) { - - mass_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.GetDynamicsStatus.mass) -} - -// double lateralFriction = 5; -void GetDynamicsStatus::clear_lateralfriction() { - lateralfriction_ = 0; -} -double GetDynamicsStatus::lateralfriction() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.GetDynamicsStatus.lateralFriction) - return lateralfriction_; -} -void GetDynamicsStatus::set_lateralfriction(double value) { - - lateralfriction_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.GetDynamicsStatus.lateralFriction) -} - -// double spinningFriction = 6; -void GetDynamicsStatus::clear_spinningfriction() { - spinningfriction_ = 0; -} -double GetDynamicsStatus::spinningfriction() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.GetDynamicsStatus.spinningFriction) - return spinningfriction_; -} -void GetDynamicsStatus::set_spinningfriction(double value) { - - spinningfriction_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.GetDynamicsStatus.spinningFriction) -} - -// double rollingFriction = 7; -void GetDynamicsStatus::clear_rollingfriction() { - rollingfriction_ = 0; -} -double GetDynamicsStatus::rollingfriction() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.GetDynamicsStatus.rollingFriction) - return rollingfriction_; -} -void GetDynamicsStatus::set_rollingfriction(double value) { - - rollingfriction_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.GetDynamicsStatus.rollingFriction) -} - -// double restitution = 8; -void GetDynamicsStatus::clear_restitution() { - restitution_ = 0; -} -double GetDynamicsStatus::restitution() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.GetDynamicsStatus.restitution) - return restitution_; -} -void GetDynamicsStatus::set_restitution(double value) { - - restitution_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.GetDynamicsStatus.restitution) -} - -// double linearDamping = 9; -void GetDynamicsStatus::clear_lineardamping() { - lineardamping_ = 0; -} -double GetDynamicsStatus::lineardamping() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.GetDynamicsStatus.linearDamping) - return lineardamping_; -} -void GetDynamicsStatus::set_lineardamping(double value) { - - lineardamping_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.GetDynamicsStatus.linearDamping) -} - -// double angularDamping = 10; -void GetDynamicsStatus::clear_angulardamping() { - angulardamping_ = 0; -} -double GetDynamicsStatus::angulardamping() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.GetDynamicsStatus.angularDamping) - return angulardamping_; -} -void GetDynamicsStatus::set_angulardamping(double value) { - - angulardamping_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.GetDynamicsStatus.angularDamping) -} - -// double contactStiffness = 11; -void GetDynamicsStatus::clear_contactstiffness() { - contactstiffness_ = 0; -} -double GetDynamicsStatus::contactstiffness() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.GetDynamicsStatus.contactStiffness) - return contactstiffness_; -} -void GetDynamicsStatus::set_contactstiffness(double value) { - - contactstiffness_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.GetDynamicsStatus.contactStiffness) -} - -// double contactDamping = 12; -void GetDynamicsStatus::clear_contactdamping() { - contactdamping_ = 0; -} -double GetDynamicsStatus::contactdamping() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.GetDynamicsStatus.contactDamping) - return contactdamping_; -} -void GetDynamicsStatus::set_contactdamping(double value) { - - contactdamping_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.GetDynamicsStatus.contactDamping) -} - -// .pybullet_grpc.vec3 localInertiaDiagonal = 13; -bool GetDynamicsStatus::has_localinertiadiagonal() const { - return this != internal_default_instance() && localinertiadiagonal_ != NULL; -} -void GetDynamicsStatus::clear_localinertiadiagonal() { - if (GetArenaNoVirtual() == NULL && localinertiadiagonal_ != NULL) delete localinertiadiagonal_; - localinertiadiagonal_ = NULL; -} -const ::pybullet_grpc::vec3& GetDynamicsStatus::localinertiadiagonal() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.GetDynamicsStatus.localInertiaDiagonal) - return localinertiadiagonal_ != NULL ? *localinertiadiagonal_ - : *::pybullet_grpc::vec3::internal_default_instance(); -} -::pybullet_grpc::vec3* GetDynamicsStatus::mutable_localinertiadiagonal() { - - if (localinertiadiagonal_ == NULL) { - localinertiadiagonal_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.GetDynamicsStatus.localInertiaDiagonal) - return localinertiadiagonal_; -} -::pybullet_grpc::vec3* GetDynamicsStatus::release_localinertiadiagonal() { - // @@protoc_insertion_point(field_release:pybullet_grpc.GetDynamicsStatus.localInertiaDiagonal) - - ::pybullet_grpc::vec3* temp = localinertiadiagonal_; - localinertiadiagonal_ = NULL; - return temp; -} -void GetDynamicsStatus::set_allocated_localinertiadiagonal(::pybullet_grpc::vec3* localinertiadiagonal) { - delete localinertiadiagonal_; - localinertiadiagonal_ = localinertiadiagonal; - if (localinertiadiagonal) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.GetDynamicsStatus.localInertiaDiagonal) -} - -// int32 frictionAnchor = 14; -void GetDynamicsStatus::clear_frictionanchor() { - frictionanchor_ = 0; -} -::google::protobuf::int32 GetDynamicsStatus::frictionanchor() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.GetDynamicsStatus.frictionAnchor) - return frictionanchor_; -} -void GetDynamicsStatus::set_frictionanchor(::google::protobuf::int32 value) { - - frictionanchor_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.GetDynamicsStatus.frictionAnchor) -} - -// double ccdSweptSphereRadius = 15; -void GetDynamicsStatus::clear_ccdsweptsphereradius() { - ccdsweptsphereradius_ = 0; -} -double GetDynamicsStatus::ccdsweptsphereradius() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.GetDynamicsStatus.ccdSweptSphereRadius) - return ccdsweptsphereradius_; -} -void GetDynamicsStatus::set_ccdsweptsphereradius(double value) { - - ccdsweptsphereradius_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.GetDynamicsStatus.ccdSweptSphereRadius) -} - -// double contactProcessingThreshold = 16; -void GetDynamicsStatus::clear_contactprocessingthreshold() { - contactprocessingthreshold_ = 0; -} -double GetDynamicsStatus::contactprocessingthreshold() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.GetDynamicsStatus.contactProcessingThreshold) - return contactprocessingthreshold_; -} -void GetDynamicsStatus::set_contactprocessingthreshold(double value) { - - contactprocessingthreshold_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.GetDynamicsStatus.contactProcessingThreshold) -} - -// int32 activationState = 17; -void GetDynamicsStatus::clear_activationstate() { - activationstate_ = 0; -} -::google::protobuf::int32 GetDynamicsStatus::activationstate() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.GetDynamicsStatus.activationState) - return activationstate_; -} -void GetDynamicsStatus::set_activationstate(::google::protobuf::int32 value) { - - activationstate_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.GetDynamicsStatus.activationState) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void InitPoseCommand::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int InitPoseCommand::kBodyUniqueIdFieldNumber; const int InitPoseCommand::kUpdateflagsFieldNumber; @@ -10522,9 +9528,8 @@ const int InitPoseCommand::kInitialStateQdotFieldNumber; InitPoseCommand::InitPoseCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_InitPoseCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.InitPoseCommand) } @@ -10534,19 +9539,18 @@ InitPoseCommand::InitPoseCommand(const InitPoseCommand& from) hasinitialstateq_(from.hasinitialstateq_), initialstateq_(from.initialstateq_), hasinitialstateqdot_(from.hasinitialstateqdot_), - initialstateqdot_(from.initialstateqdot_), - _cached_size_(0) { + initialstateqdot_(from.initialstateqdot_) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&bodyuniqueid_, &from.bodyuniqueid_, - reinterpret_cast(&updateflags_) - - reinterpret_cast(&bodyuniqueid_) + sizeof(updateflags_)); + static_cast(reinterpret_cast(&updateflags_) - + reinterpret_cast(&bodyuniqueid_)) + sizeof(updateflags_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.InitPoseCommand) } void InitPoseCommand::SharedCtor() { - ::memset(&bodyuniqueid_, 0, reinterpret_cast(&updateflags_) - - reinterpret_cast(&bodyuniqueid_) + sizeof(updateflags_)); - _cached_size_ = 0; + ::memset(&bodyuniqueid_, 0, static_cast( + reinterpret_cast(&updateflags_) - + reinterpret_cast(&bodyuniqueid_)) + sizeof(updateflags_)); } InitPoseCommand::~InitPoseCommand() { @@ -10558,36 +9562,33 @@ void InitPoseCommand::SharedDtor() { } void InitPoseCommand::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* InitPoseCommand::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[22].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const InitPoseCommand& InitPoseCommand::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_InitPoseCommand.base); return *internal_default_instance(); } -InitPoseCommand* InitPoseCommand::New(::google::protobuf::Arena* arena) const { - InitPoseCommand* n = new InitPoseCommand; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void InitPoseCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.InitPoseCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + hasinitialstateq_.Clear(); initialstateq_.Clear(); hasinitialstateqdot_.Clear(); initialstateqdot_.Clear(); - ::memset(&bodyuniqueid_, 0, reinterpret_cast(&updateflags_) - - reinterpret_cast(&bodyuniqueid_) + sizeof(updateflags_)); + ::memset(&bodyuniqueid_, 0, static_cast( + reinterpret_cast(&updateflags_) - + reinterpret_cast(&bodyuniqueid_)) + sizeof(updateflags_)); + _internal_metadata_.Clear(); } bool InitPoseCommand::MergePartialFromCodedStream( @@ -10596,13 +9597,14 @@ bool InitPoseCommand::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.InitPoseCommand) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 bodyUniqueId = 1; case 1: { - if (tag == 8u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -10615,7 +9617,8 @@ bool InitPoseCommand::MergePartialFromCodedStream( // int32 updateflags = 2; case 2: { - if (tag == 16u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -10628,11 +9631,14 @@ bool InitPoseCommand::MergePartialFromCodedStream( // repeated int32 hasInitialStateQ = 3; case 3: { - if (tag == 26u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, this->mutable_hasinitialstateq()))); - } else if (tag == 24u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( 1, 26u, input, this->mutable_hasinitialstateq()))); @@ -10644,11 +9650,14 @@ bool InitPoseCommand::MergePartialFromCodedStream( // repeated double initialStateQ = 4; case 4: { - if (tag == 34u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, this->mutable_initialstateq()))); - } else if (tag == 33u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 1, 34u, input, this->mutable_initialstateq()))); @@ -10660,11 +9669,14 @@ bool InitPoseCommand::MergePartialFromCodedStream( // repeated int32 hasInitialStateQdot = 5; case 5: { - if (tag == 42u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, this->mutable_hasinitialstateqdot()))); - } else if (tag == 40u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( 1, 42u, input, this->mutable_hasinitialstateqdot()))); @@ -10676,11 +9688,14 @@ bool InitPoseCommand::MergePartialFromCodedStream( // repeated double initialStateQdot = 6; case 6: { - if (tag == 50u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, this->mutable_initialstateqdot()))); - } else if (tag == 49u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 1, 50u, input, this->mutable_initialstateqdot()))); @@ -10692,12 +9707,11 @@ bool InitPoseCommand::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -10714,6 +9728,9 @@ failure: void InitPoseCommand::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.InitPoseCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->bodyuniqueid(), output); @@ -10727,9 +9744,10 @@ void InitPoseCommand::SerializeWithCachedSizes( // repeated int32 hasInitialStateQ = 3; if (this->hasinitialstateq_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_hasinitialstateq_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _hasinitialstateq_cached_byte_size_)); } - for (int i = 0; i < this->hasinitialstateq_size(); i++) { + for (int i = 0, n = this->hasinitialstateq_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( this->hasinitialstateq(i), output); } @@ -10737,7 +9755,8 @@ void InitPoseCommand::SerializeWithCachedSizes( // repeated double initialStateQ = 4; if (this->initialstateq_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_initialstateq_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _initialstateq_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->initialstateq().data(), this->initialstateq_size(), output); } @@ -10745,9 +9764,10 @@ void InitPoseCommand::SerializeWithCachedSizes( // repeated int32 hasInitialStateQdot = 5; if (this->hasinitialstateqdot_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_hasinitialstateqdot_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _hasinitialstateqdot_cached_byte_size_)); } - for (int i = 0; i < this->hasinitialstateqdot_size(); i++) { + for (int i = 0, n = this->hasinitialstateqdot_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( this->hasinitialstateqdot(i), output); } @@ -10755,18 +9775,26 @@ void InitPoseCommand::SerializeWithCachedSizes( // repeated double initialStateQdot = 6; if (this->initialstateqdot_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_initialstateqdot_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _initialstateqdot_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->initialstateqdot().data(), this->initialstateqdot_size(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.InitPoseCommand) } ::google::protobuf::uint8* InitPoseCommand::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.InitPoseCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->bodyuniqueid(), target); @@ -10784,11 +9812,10 @@ void InitPoseCommand::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _hasinitialstateq_cached_byte_size_, target); - } - for (int i = 0; i < this->hasinitialstateq_size(); i++) { + static_cast< ::google::protobuf::int32>( + _hasinitialstateq_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32NoTagToArray(this->hasinitialstateq(i), target); + WriteInt32NoTagToArray(this->hasinitialstateq_, target); } // repeated double initialStateQ = 4; @@ -10798,11 +9825,10 @@ void InitPoseCommand::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _initialstateq_cached_byte_size_, target); - } - for (int i = 0; i < this->initialstateq_size(); i++) { + static_cast< ::google::protobuf::int32>( + _initialstateq_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->initialstateq(i), target); + WriteDoubleNoTagToArray(this->initialstateq_, target); } // repeated int32 hasInitialStateQdot = 5; @@ -10812,11 +9838,10 @@ void InitPoseCommand::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _hasinitialstateqdot_cached_byte_size_, target); - } - for (int i = 0; i < this->hasinitialstateqdot_size(); i++) { + static_cast< ::google::protobuf::int32>( + _hasinitialstateqdot_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32NoTagToArray(this->hasinitialstateqdot(i), target); + WriteInt32NoTagToArray(this->hasinitialstateqdot_, target); } // repeated double initialStateQdot = 6; @@ -10826,13 +9851,16 @@ void InitPoseCommand::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _initialstateqdot_cached_byte_size_, target); - } - for (int i = 0; i < this->initialstateqdot_size(); i++) { + static_cast< ::google::protobuf::int32>( + _initialstateqdot_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->initialstateqdot(i), target); + WriteDoubleNoTagToArray(this->initialstateqdot_, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.InitPoseCommand) return target; } @@ -10841,13 +9869,19 @@ size_t InitPoseCommand::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.InitPoseCommand) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // repeated int32 hasInitialStateQ = 3; { size_t data_size = ::google::protobuf::internal::WireFormatLite:: Int32Size(this->hasinitialstateq_); if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -10858,11 +9892,12 @@ size_t InitPoseCommand::ByteSizeLong() const { // repeated double initialStateQ = 4; { - unsigned int count = this->initialstateq_size(); + unsigned int count = static_cast(this->initialstateq_size()); size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -10877,7 +9912,8 @@ size_t InitPoseCommand::ByteSizeLong() const { Int32Size(this->hasinitialstateqdot_); if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -10888,11 +9924,12 @@ size_t InitPoseCommand::ByteSizeLong() const { // repeated double initialStateQdot = 6; { - unsigned int count = this->initialstateqdot_size(); + unsigned int count = static_cast(this->initialstateqdot_size()); size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -10916,9 +9953,7 @@ size_t InitPoseCommand::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -10941,6 +9976,9 @@ void InitPoseCommand::MergeFrom(const InitPoseCommand& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.InitPoseCommand) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + hasinitialstateq_.MergeFrom(from.hasinitialstateq_); initialstateq_.MergeFrom(from.initialstateq_); hasinitialstateqdot_.MergeFrom(from.hasinitialstateqdot_); @@ -10976,175 +10014,26 @@ void InitPoseCommand::Swap(InitPoseCommand* other) { InternalSwap(other); } void InitPoseCommand::InternalSwap(InitPoseCommand* other) { - hasinitialstateq_.UnsafeArenaSwap(&other->hasinitialstateq_); - initialstateq_.UnsafeArenaSwap(&other->initialstateq_); - hasinitialstateqdot_.UnsafeArenaSwap(&other->hasinitialstateqdot_); - initialstateqdot_.UnsafeArenaSwap(&other->initialstateqdot_); - std::swap(bodyuniqueid_, other->bodyuniqueid_); - std::swap(updateflags_, other->updateflags_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + hasinitialstateq_.InternalSwap(&other->hasinitialstateq_); + initialstateq_.InternalSwap(&other->initialstateq_); + hasinitialstateqdot_.InternalSwap(&other->hasinitialstateqdot_); + initialstateqdot_.InternalSwap(&other->initialstateqdot_); + swap(bodyuniqueid_, other->bodyuniqueid_); + swap(updateflags_, other->updateflags_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata InitPoseCommand::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[22]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// InitPoseCommand - -// int32 bodyUniqueId = 1; -void InitPoseCommand::clear_bodyuniqueid() { - bodyuniqueid_ = 0; -} -::google::protobuf::int32 InitPoseCommand::bodyuniqueid() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.InitPoseCommand.bodyUniqueId) - return bodyuniqueid_; -} -void InitPoseCommand::set_bodyuniqueid(::google::protobuf::int32 value) { - - bodyuniqueid_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.InitPoseCommand.bodyUniqueId) -} - -// int32 updateflags = 2; -void InitPoseCommand::clear_updateflags() { - updateflags_ = 0; -} -::google::protobuf::int32 InitPoseCommand::updateflags() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.InitPoseCommand.updateflags) - return updateflags_; -} -void InitPoseCommand::set_updateflags(::google::protobuf::int32 value) { - - updateflags_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.InitPoseCommand.updateflags) -} - -// repeated int32 hasInitialStateQ = 3; -int InitPoseCommand::hasinitialstateq_size() const { - return hasinitialstateq_.size(); -} -void InitPoseCommand::clear_hasinitialstateq() { - hasinitialstateq_.Clear(); -} -::google::protobuf::int32 InitPoseCommand::hasinitialstateq(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.InitPoseCommand.hasInitialStateQ) - return hasinitialstateq_.Get(index); -} -void InitPoseCommand::set_hasinitialstateq(int index, ::google::protobuf::int32 value) { - hasinitialstateq_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.InitPoseCommand.hasInitialStateQ) -} -void InitPoseCommand::add_hasinitialstateq(::google::protobuf::int32 value) { - hasinitialstateq_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.InitPoseCommand.hasInitialStateQ) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -InitPoseCommand::hasinitialstateq() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.InitPoseCommand.hasInitialStateQ) - return hasinitialstateq_; -} -::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -InitPoseCommand::mutable_hasinitialstateq() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.InitPoseCommand.hasInitialStateQ) - return &hasinitialstateq_; -} - -// repeated double initialStateQ = 4; -int InitPoseCommand::initialstateq_size() const { - return initialstateq_.size(); -} -void InitPoseCommand::clear_initialstateq() { - initialstateq_.Clear(); -} -double InitPoseCommand::initialstateq(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.InitPoseCommand.initialStateQ) - return initialstateq_.Get(index); -} -void InitPoseCommand::set_initialstateq(int index, double value) { - initialstateq_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.InitPoseCommand.initialStateQ) -} -void InitPoseCommand::add_initialstateq(double value) { - initialstateq_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.InitPoseCommand.initialStateQ) -} -const ::google::protobuf::RepeatedField< double >& -InitPoseCommand::initialstateq() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.InitPoseCommand.initialStateQ) - return initialstateq_; -} -::google::protobuf::RepeatedField< double >* -InitPoseCommand::mutable_initialstateq() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.InitPoseCommand.initialStateQ) - return &initialstateq_; -} - -// repeated int32 hasInitialStateQdot = 5; -int InitPoseCommand::hasinitialstateqdot_size() const { - return hasinitialstateqdot_.size(); -} -void InitPoseCommand::clear_hasinitialstateqdot() { - hasinitialstateqdot_.Clear(); -} -::google::protobuf::int32 InitPoseCommand::hasinitialstateqdot(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.InitPoseCommand.hasInitialStateQdot) - return hasinitialstateqdot_.Get(index); -} -void InitPoseCommand::set_hasinitialstateqdot(int index, ::google::protobuf::int32 value) { - hasinitialstateqdot_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.InitPoseCommand.hasInitialStateQdot) -} -void InitPoseCommand::add_hasinitialstateqdot(::google::protobuf::int32 value) { - hasinitialstateqdot_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.InitPoseCommand.hasInitialStateQdot) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -InitPoseCommand::hasinitialstateqdot() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.InitPoseCommand.hasInitialStateQdot) - return hasinitialstateqdot_; -} -::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -InitPoseCommand::mutable_hasinitialstateqdot() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.InitPoseCommand.hasInitialStateQdot) - return &hasinitialstateqdot_; -} - -// repeated double initialStateQdot = 6; -int InitPoseCommand::initialstateqdot_size() const { - return initialstateqdot_.size(); -} -void InitPoseCommand::clear_initialstateqdot() { - initialstateqdot_.Clear(); -} -double InitPoseCommand::initialstateqdot(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.InitPoseCommand.initialStateQdot) - return initialstateqdot_.Get(index); -} -void InitPoseCommand::set_initialstateqdot(int index, double value) { - initialstateqdot_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.InitPoseCommand.initialStateQdot) -} -void InitPoseCommand::add_initialstateqdot(double value) { - initialstateqdot_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.InitPoseCommand.initialStateQdot) -} -const ::google::protobuf::RepeatedField< double >& -InitPoseCommand::initialstateqdot() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.InitPoseCommand.initialStateQdot) - return initialstateqdot_; -} -::google::protobuf::RepeatedField< double >* -InitPoseCommand::mutable_initialstateqdot() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.InitPoseCommand.initialStateQdot) - return &initialstateqdot_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void RequestActualStateCommand::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int RequestActualStateCommand::kBodyUniqueIdFieldNumber; const int RequestActualStateCommand::kComputeForwardKinematicsFieldNumber; @@ -11153,27 +10042,25 @@ const int RequestActualStateCommand::kComputeLinkVelocitiesFieldNumber; RequestActualStateCommand::RequestActualStateCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_RequestActualStateCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.RequestActualStateCommand) } RequestActualStateCommand::RequestActualStateCommand(const RequestActualStateCommand& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&bodyuniqueid_, &from.bodyuniqueid_, - reinterpret_cast(&computelinkvelocities_) - - reinterpret_cast(&bodyuniqueid_) + sizeof(computelinkvelocities_)); + static_cast(reinterpret_cast(&computelinkvelocities_) - + reinterpret_cast(&bodyuniqueid_)) + sizeof(computelinkvelocities_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.RequestActualStateCommand) } void RequestActualStateCommand::SharedCtor() { - ::memset(&bodyuniqueid_, 0, reinterpret_cast(&computelinkvelocities_) - - reinterpret_cast(&bodyuniqueid_) + sizeof(computelinkvelocities_)); - _cached_size_ = 0; + ::memset(&bodyuniqueid_, 0, static_cast( + reinterpret_cast(&computelinkvelocities_) - + reinterpret_cast(&bodyuniqueid_)) + sizeof(computelinkvelocities_)); } RequestActualStateCommand::~RequestActualStateCommand() { @@ -11185,32 +10072,29 @@ void RequestActualStateCommand::SharedDtor() { } void RequestActualStateCommand::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* RequestActualStateCommand::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[23].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const RequestActualStateCommand& RequestActualStateCommand::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_RequestActualStateCommand.base); return *internal_default_instance(); } -RequestActualStateCommand* RequestActualStateCommand::New(::google::protobuf::Arena* arena) const { - RequestActualStateCommand* n = new RequestActualStateCommand; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void RequestActualStateCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.RequestActualStateCommand) - ::memset(&bodyuniqueid_, 0, reinterpret_cast(&computelinkvelocities_) - - reinterpret_cast(&bodyuniqueid_) + sizeof(computelinkvelocities_)); + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&bodyuniqueid_, 0, static_cast( + reinterpret_cast(&computelinkvelocities_) - + reinterpret_cast(&bodyuniqueid_)) + sizeof(computelinkvelocities_)); + _internal_metadata_.Clear(); } bool RequestActualStateCommand::MergePartialFromCodedStream( @@ -11219,13 +10103,14 @@ bool RequestActualStateCommand::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.RequestActualStateCommand) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 bodyUniqueId = 1; case 1: { - if (tag == 8u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -11238,7 +10123,8 @@ bool RequestActualStateCommand::MergePartialFromCodedStream( // bool computeForwardKinematics = 2; case 2: { - if (tag == 16u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( @@ -11251,7 +10137,8 @@ bool RequestActualStateCommand::MergePartialFromCodedStream( // bool computeLinkVelocities = 3; case 3: { - if (tag == 24u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( @@ -11264,12 +10151,11 @@ bool RequestActualStateCommand::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -11286,6 +10172,9 @@ failure: void RequestActualStateCommand::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.RequestActualStateCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->bodyuniqueid(), output); @@ -11301,13 +10190,20 @@ void RequestActualStateCommand::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->computelinkvelocities(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.RequestActualStateCommand) } ::google::protobuf::uint8* RequestActualStateCommand::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.RequestActualStateCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->bodyuniqueid(), target); @@ -11323,6 +10219,10 @@ void RequestActualStateCommand::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->computelinkvelocities(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.RequestActualStateCommand) return target; } @@ -11331,6 +10231,11 @@ size_t RequestActualStateCommand::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.RequestActualStateCommand) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { total_size += 1 + @@ -11349,9 +10254,7 @@ size_t RequestActualStateCommand::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -11374,6 +10277,9 @@ void RequestActualStateCommand::MergeFrom(const RequestActualStateCommand& from) // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.RequestActualStateCommand) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.bodyuniqueid() != 0) { set_bodyuniqueid(from.bodyuniqueid()); } @@ -11408,66 +10314,23 @@ void RequestActualStateCommand::Swap(RequestActualStateCommand* other) { InternalSwap(other); } void RequestActualStateCommand::InternalSwap(RequestActualStateCommand* other) { - std::swap(bodyuniqueid_, other->bodyuniqueid_); - std::swap(computeforwardkinematics_, other->computeforwardkinematics_); - std::swap(computelinkvelocities_, other->computelinkvelocities_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + swap(bodyuniqueid_, other->bodyuniqueid_); + swap(computeforwardkinematics_, other->computeforwardkinematics_); + swap(computelinkvelocities_, other->computelinkvelocities_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata RequestActualStateCommand::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[23]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// RequestActualStateCommand - -// int32 bodyUniqueId = 1; -void RequestActualStateCommand::clear_bodyuniqueid() { - bodyuniqueid_ = 0; -} -::google::protobuf::int32 RequestActualStateCommand::bodyuniqueid() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestActualStateCommand.bodyUniqueId) - return bodyuniqueid_; -} -void RequestActualStateCommand::set_bodyuniqueid(::google::protobuf::int32 value) { - - bodyuniqueid_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestActualStateCommand.bodyUniqueId) -} - -// bool computeForwardKinematics = 2; -void RequestActualStateCommand::clear_computeforwardkinematics() { - computeforwardkinematics_ = false; -} -bool RequestActualStateCommand::computeforwardkinematics() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestActualStateCommand.computeForwardKinematics) - return computeforwardkinematics_; -} -void RequestActualStateCommand::set_computeforwardkinematics(bool value) { - - computeforwardkinematics_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestActualStateCommand.computeForwardKinematics) -} - -// bool computeLinkVelocities = 3; -void RequestActualStateCommand::clear_computelinkvelocities() { - computelinkvelocities_ = false; -} -bool RequestActualStateCommand::computelinkvelocities() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestActualStateCommand.computeLinkVelocities) - return computelinkvelocities_; -} -void RequestActualStateCommand::set_computelinkvelocities(bool value) { - - computelinkvelocities_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestActualStateCommand.computeLinkVelocities) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void SendActualStateStatus::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int SendActualStateStatus::kBodyUniqueIdFieldNumber; const int SendActualStateStatus::kNumLinksFieldNumber; @@ -11485,9 +10348,8 @@ const int SendActualStateStatus::kLinkLocalInertialFramesFieldNumber; SendActualStateStatus::SendActualStateStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_SendActualStateStatus.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.SendActualStateStatus) } @@ -11501,19 +10363,18 @@ SendActualStateStatus::SendActualStateStatus(const SendActualStateStatus& from) jointmotorforce_(from.jointmotorforce_), linkstate_(from.linkstate_), linkworldvelocities_(from.linkworldvelocities_), - linklocalinertialframes_(from.linklocalinertialframes_), - _cached_size_(0) { + linklocalinertialframes_(from.linklocalinertialframes_) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&bodyuniqueid_, &from.bodyuniqueid_, - reinterpret_cast(&numdegreeoffreedomu_) - - reinterpret_cast(&bodyuniqueid_) + sizeof(numdegreeoffreedomu_)); + static_cast(reinterpret_cast(&numdegreeoffreedomu_) - + reinterpret_cast(&bodyuniqueid_)) + sizeof(numdegreeoffreedomu_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.SendActualStateStatus) } void SendActualStateStatus::SharedCtor() { - ::memset(&bodyuniqueid_, 0, reinterpret_cast(&numdegreeoffreedomu_) - - reinterpret_cast(&bodyuniqueid_) + sizeof(numdegreeoffreedomu_)); - _cached_size_ = 0; + ::memset(&bodyuniqueid_, 0, static_cast( + reinterpret_cast(&numdegreeoffreedomu_) - + reinterpret_cast(&bodyuniqueid_)) + sizeof(numdegreeoffreedomu_)); } SendActualStateStatus::~SendActualStateStatus() { @@ -11525,30 +10386,25 @@ void SendActualStateStatus::SharedDtor() { } void SendActualStateStatus::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* SendActualStateStatus::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[24].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const SendActualStateStatus& SendActualStateStatus::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_SendActualStateStatus.base); return *internal_default_instance(); } -SendActualStateStatus* SendActualStateStatus::New(::google::protobuf::Arena* arena) const { - SendActualStateStatus* n = new SendActualStateStatus; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void SendActualStateStatus::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.SendActualStateStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + rootlocalinertialframe_.Clear(); actualstateq_.Clear(); actualstateqdot_.Clear(); @@ -11557,8 +10413,10 @@ void SendActualStateStatus::Clear() { linkstate_.Clear(); linkworldvelocities_.Clear(); linklocalinertialframes_.Clear(); - ::memset(&bodyuniqueid_, 0, reinterpret_cast(&numdegreeoffreedomu_) - - reinterpret_cast(&bodyuniqueid_) + sizeof(numdegreeoffreedomu_)); + ::memset(&bodyuniqueid_, 0, static_cast( + reinterpret_cast(&numdegreeoffreedomu_) - + reinterpret_cast(&bodyuniqueid_)) + sizeof(numdegreeoffreedomu_)); + _internal_metadata_.Clear(); } bool SendActualStateStatus::MergePartialFromCodedStream( @@ -11567,13 +10425,14 @@ bool SendActualStateStatus::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.SendActualStateStatus) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 bodyUniqueId = 1; case 1: { - if (tag == 8u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -11586,7 +10445,8 @@ bool SendActualStateStatus::MergePartialFromCodedStream( // int32 numLinks = 2; case 2: { - if (tag == 16u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -11599,7 +10459,8 @@ bool SendActualStateStatus::MergePartialFromCodedStream( // int32 numDegreeOfFreedomQ = 3; case 3: { - if (tag == 24u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -11612,7 +10473,8 @@ bool SendActualStateStatus::MergePartialFromCodedStream( // int32 numDegreeOfFreedomU = 4; case 4: { - if (tag == 32u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -11625,11 +10487,14 @@ bool SendActualStateStatus::MergePartialFromCodedStream( // repeated double rootLocalInertialFrame = 5; case 5: { - if (tag == 42u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, this->mutable_rootlocalinertialframe()))); - } else if (tag == 41u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 1, 42u, input, this->mutable_rootlocalinertialframe()))); @@ -11641,11 +10506,14 @@ bool SendActualStateStatus::MergePartialFromCodedStream( // repeated double actualStateQ = 6; case 6: { - if (tag == 50u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, this->mutable_actualstateq()))); - } else if (tag == 49u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 1, 50u, input, this->mutable_actualstateq()))); @@ -11657,11 +10525,14 @@ bool SendActualStateStatus::MergePartialFromCodedStream( // repeated double actualStateQdot = 7; case 7: { - if (tag == 58u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, this->mutable_actualstateqdot()))); - } else if (tag == 57u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 1, 58u, input, this->mutable_actualstateqdot()))); @@ -11673,11 +10544,14 @@ bool SendActualStateStatus::MergePartialFromCodedStream( // repeated double jointReactionForces = 8; case 8: { - if (tag == 66u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, this->mutable_jointreactionforces()))); - } else if (tag == 65u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 1, 66u, input, this->mutable_jointreactionforces()))); @@ -11689,11 +10563,14 @@ bool SendActualStateStatus::MergePartialFromCodedStream( // repeated double jointMotorForce = 9; case 9: { - if (tag == 74u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, this->mutable_jointmotorforce()))); - } else if (tag == 73u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 1, 74u, input, this->mutable_jointmotorforce()))); @@ -11705,11 +10582,14 @@ bool SendActualStateStatus::MergePartialFromCodedStream( // repeated double linkState = 10; case 10: { - if (tag == 82u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, this->mutable_linkstate()))); - } else if (tag == 81u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(81u /* 81 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 1, 82u, input, this->mutable_linkstate()))); @@ -11721,11 +10601,14 @@ bool SendActualStateStatus::MergePartialFromCodedStream( // repeated double linkWorldVelocities = 11; case 11: { - if (tag == 90u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, this->mutable_linkworldvelocities()))); - } else if (tag == 89u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(89u /* 89 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 1, 90u, input, this->mutable_linkworldvelocities()))); @@ -11737,11 +10620,14 @@ bool SendActualStateStatus::MergePartialFromCodedStream( // repeated double linkLocalInertialFrames = 12; case 12: { - if (tag == 98u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, this->mutable_linklocalinertialframes()))); - } else if (tag == 97u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(97u /* 97 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 1, 98u, input, this->mutable_linklocalinertialframes()))); @@ -11753,12 +10639,11 @@ bool SendActualStateStatus::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -11775,6 +10660,9 @@ failure: void SendActualStateStatus::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.SendActualStateStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->bodyuniqueid(), output); @@ -11798,7 +10686,8 @@ void SendActualStateStatus::SerializeWithCachedSizes( // repeated double rootLocalInertialFrame = 5; if (this->rootlocalinertialframe_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_rootlocalinertialframe_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _rootlocalinertialframe_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->rootlocalinertialframe().data(), this->rootlocalinertialframe_size(), output); } @@ -11806,7 +10695,8 @@ void SendActualStateStatus::SerializeWithCachedSizes( // repeated double actualStateQ = 6; if (this->actualstateq_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_actualstateq_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _actualstateq_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->actualstateq().data(), this->actualstateq_size(), output); } @@ -11814,7 +10704,8 @@ void SendActualStateStatus::SerializeWithCachedSizes( // repeated double actualStateQdot = 7; if (this->actualstateqdot_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(7, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_actualstateqdot_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _actualstateqdot_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->actualstateqdot().data(), this->actualstateqdot_size(), output); } @@ -11822,7 +10713,8 @@ void SendActualStateStatus::SerializeWithCachedSizes( // repeated double jointReactionForces = 8; if (this->jointreactionforces_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(8, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_jointreactionforces_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _jointreactionforces_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->jointreactionforces().data(), this->jointreactionforces_size(), output); } @@ -11830,7 +10722,8 @@ void SendActualStateStatus::SerializeWithCachedSizes( // repeated double jointMotorForce = 9; if (this->jointmotorforce_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(9, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_jointmotorforce_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _jointmotorforce_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->jointmotorforce().data(), this->jointmotorforce_size(), output); } @@ -11838,7 +10731,8 @@ void SendActualStateStatus::SerializeWithCachedSizes( // repeated double linkState = 10; if (this->linkstate_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(10, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_linkstate_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _linkstate_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->linkstate().data(), this->linkstate_size(), output); } @@ -11846,7 +10740,8 @@ void SendActualStateStatus::SerializeWithCachedSizes( // repeated double linkWorldVelocities = 11; if (this->linkworldvelocities_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(11, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_linkworldvelocities_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _linkworldvelocities_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->linkworldvelocities().data(), this->linkworldvelocities_size(), output); } @@ -11854,18 +10749,26 @@ void SendActualStateStatus::SerializeWithCachedSizes( // repeated double linkLocalInertialFrames = 12; if (this->linklocalinertialframes_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(12, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_linklocalinertialframes_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _linklocalinertialframes_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->linklocalinertialframes().data(), this->linklocalinertialframes_size(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.SendActualStateStatus) } ::google::protobuf::uint8* SendActualStateStatus::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.SendActualStateStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->bodyuniqueid(), target); @@ -11893,11 +10796,10 @@ void SendActualStateStatus::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _rootlocalinertialframe_cached_byte_size_, target); - } - for (int i = 0; i < this->rootlocalinertialframe_size(); i++) { + static_cast< ::google::protobuf::int32>( + _rootlocalinertialframe_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->rootlocalinertialframe(i), target); + WriteDoubleNoTagToArray(this->rootlocalinertialframe_, target); } // repeated double actualStateQ = 6; @@ -11907,11 +10809,10 @@ void SendActualStateStatus::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _actualstateq_cached_byte_size_, target); - } - for (int i = 0; i < this->actualstateq_size(); i++) { + static_cast< ::google::protobuf::int32>( + _actualstateq_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->actualstateq(i), target); + WriteDoubleNoTagToArray(this->actualstateq_, target); } // repeated double actualStateQdot = 7; @@ -11921,11 +10822,10 @@ void SendActualStateStatus::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _actualstateqdot_cached_byte_size_, target); - } - for (int i = 0; i < this->actualstateqdot_size(); i++) { + static_cast< ::google::protobuf::int32>( + _actualstateqdot_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->actualstateqdot(i), target); + WriteDoubleNoTagToArray(this->actualstateqdot_, target); } // repeated double jointReactionForces = 8; @@ -11935,11 +10835,10 @@ void SendActualStateStatus::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _jointreactionforces_cached_byte_size_, target); - } - for (int i = 0; i < this->jointreactionforces_size(); i++) { + static_cast< ::google::protobuf::int32>( + _jointreactionforces_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->jointreactionforces(i), target); + WriteDoubleNoTagToArray(this->jointreactionforces_, target); } // repeated double jointMotorForce = 9; @@ -11949,11 +10848,10 @@ void SendActualStateStatus::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _jointmotorforce_cached_byte_size_, target); - } - for (int i = 0; i < this->jointmotorforce_size(); i++) { + static_cast< ::google::protobuf::int32>( + _jointmotorforce_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->jointmotorforce(i), target); + WriteDoubleNoTagToArray(this->jointmotorforce_, target); } // repeated double linkState = 10; @@ -11963,11 +10861,10 @@ void SendActualStateStatus::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _linkstate_cached_byte_size_, target); - } - for (int i = 0; i < this->linkstate_size(); i++) { + static_cast< ::google::protobuf::int32>( + _linkstate_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->linkstate(i), target); + WriteDoubleNoTagToArray(this->linkstate_, target); } // repeated double linkWorldVelocities = 11; @@ -11977,11 +10874,10 @@ void SendActualStateStatus::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _linkworldvelocities_cached_byte_size_, target); - } - for (int i = 0; i < this->linkworldvelocities_size(); i++) { + static_cast< ::google::protobuf::int32>( + _linkworldvelocities_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->linkworldvelocities(i), target); + WriteDoubleNoTagToArray(this->linkworldvelocities_, target); } // repeated double linkLocalInertialFrames = 12; @@ -11991,13 +10887,16 @@ void SendActualStateStatus::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _linklocalinertialframes_cached_byte_size_, target); - } - for (int i = 0; i < this->linklocalinertialframes_size(); i++) { + static_cast< ::google::protobuf::int32>( + _linklocalinertialframes_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->linklocalinertialframes(i), target); + WriteDoubleNoTagToArray(this->linklocalinertialframes_, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.SendActualStateStatus) return target; } @@ -12006,13 +10905,19 @@ size_t SendActualStateStatus::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.SendActualStateStatus) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // repeated double rootLocalInertialFrame = 5; { - unsigned int count = this->rootlocalinertialframe_size(); + unsigned int count = static_cast(this->rootlocalinertialframe_size()); size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -12023,11 +10928,12 @@ size_t SendActualStateStatus::ByteSizeLong() const { // repeated double actualStateQ = 6; { - unsigned int count = this->actualstateq_size(); + unsigned int count = static_cast(this->actualstateq_size()); size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -12038,11 +10944,12 @@ size_t SendActualStateStatus::ByteSizeLong() const { // repeated double actualStateQdot = 7; { - unsigned int count = this->actualstateqdot_size(); + unsigned int count = static_cast(this->actualstateqdot_size()); size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -12053,11 +10960,12 @@ size_t SendActualStateStatus::ByteSizeLong() const { // repeated double jointReactionForces = 8; { - unsigned int count = this->jointreactionforces_size(); + unsigned int count = static_cast(this->jointreactionforces_size()); size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -12068,11 +10976,12 @@ size_t SendActualStateStatus::ByteSizeLong() const { // repeated double jointMotorForce = 9; { - unsigned int count = this->jointmotorforce_size(); + unsigned int count = static_cast(this->jointmotorforce_size()); size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -12083,11 +10992,12 @@ size_t SendActualStateStatus::ByteSizeLong() const { // repeated double linkState = 10; { - unsigned int count = this->linkstate_size(); + unsigned int count = static_cast(this->linkstate_size()); size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -12098,11 +11008,12 @@ size_t SendActualStateStatus::ByteSizeLong() const { // repeated double linkWorldVelocities = 11; { - unsigned int count = this->linkworldvelocities_size(); + unsigned int count = static_cast(this->linkworldvelocities_size()); size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -12113,11 +11024,12 @@ size_t SendActualStateStatus::ByteSizeLong() const { // repeated double linkLocalInertialFrames = 12; { - unsigned int count = this->linklocalinertialframes_size(); + unsigned int count = static_cast(this->linklocalinertialframes_size()); size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -12155,9 +11067,7 @@ size_t SendActualStateStatus::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -12180,6 +11090,9 @@ void SendActualStateStatus::MergeFrom(const SendActualStateStatus& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.SendActualStateStatus) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + rootlocalinertialframe_.MergeFrom(from.rootlocalinertialframe_); actualstateq_.MergeFrom(from.actualstateq_); actualstateqdot_.MergeFrom(from.actualstateqdot_); @@ -12225,329 +11138,34 @@ void SendActualStateStatus::Swap(SendActualStateStatus* other) { InternalSwap(other); } void SendActualStateStatus::InternalSwap(SendActualStateStatus* other) { - rootlocalinertialframe_.UnsafeArenaSwap(&other->rootlocalinertialframe_); - actualstateq_.UnsafeArenaSwap(&other->actualstateq_); - actualstateqdot_.UnsafeArenaSwap(&other->actualstateqdot_); - jointreactionforces_.UnsafeArenaSwap(&other->jointreactionforces_); - jointmotorforce_.UnsafeArenaSwap(&other->jointmotorforce_); - linkstate_.UnsafeArenaSwap(&other->linkstate_); - linkworldvelocities_.UnsafeArenaSwap(&other->linkworldvelocities_); - linklocalinertialframes_.UnsafeArenaSwap(&other->linklocalinertialframes_); - std::swap(bodyuniqueid_, other->bodyuniqueid_); - std::swap(numlinks_, other->numlinks_); - std::swap(numdegreeoffreedomq_, other->numdegreeoffreedomq_); - std::swap(numdegreeoffreedomu_, other->numdegreeoffreedomu_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + rootlocalinertialframe_.InternalSwap(&other->rootlocalinertialframe_); + actualstateq_.InternalSwap(&other->actualstateq_); + actualstateqdot_.InternalSwap(&other->actualstateqdot_); + jointreactionforces_.InternalSwap(&other->jointreactionforces_); + jointmotorforce_.InternalSwap(&other->jointmotorforce_); + linkstate_.InternalSwap(&other->linkstate_); + linkworldvelocities_.InternalSwap(&other->linkworldvelocities_); + linklocalinertialframes_.InternalSwap(&other->linklocalinertialframes_); + swap(bodyuniqueid_, other->bodyuniqueid_); + swap(numlinks_, other->numlinks_); + swap(numdegreeoffreedomq_, other->numdegreeoffreedomq_); + swap(numdegreeoffreedomu_, other->numdegreeoffreedomu_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata SendActualStateStatus::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[24]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// SendActualStateStatus - -// int32 bodyUniqueId = 1; -void SendActualStateStatus::clear_bodyuniqueid() { - bodyuniqueid_ = 0; -} -::google::protobuf::int32 SendActualStateStatus::bodyuniqueid() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.SendActualStateStatus.bodyUniqueId) - return bodyuniqueid_; -} -void SendActualStateStatus::set_bodyuniqueid(::google::protobuf::int32 value) { - - bodyuniqueid_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.SendActualStateStatus.bodyUniqueId) -} - -// int32 numLinks = 2; -void SendActualStateStatus::clear_numlinks() { - numlinks_ = 0; -} -::google::protobuf::int32 SendActualStateStatus::numlinks() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.SendActualStateStatus.numLinks) - return numlinks_; -} -void SendActualStateStatus::set_numlinks(::google::protobuf::int32 value) { - - numlinks_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.SendActualStateStatus.numLinks) -} - -// int32 numDegreeOfFreedomQ = 3; -void SendActualStateStatus::clear_numdegreeoffreedomq() { - numdegreeoffreedomq_ = 0; -} -::google::protobuf::int32 SendActualStateStatus::numdegreeoffreedomq() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.SendActualStateStatus.numDegreeOfFreedomQ) - return numdegreeoffreedomq_; -} -void SendActualStateStatus::set_numdegreeoffreedomq(::google::protobuf::int32 value) { - - numdegreeoffreedomq_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.SendActualStateStatus.numDegreeOfFreedomQ) -} - -// int32 numDegreeOfFreedomU = 4; -void SendActualStateStatus::clear_numdegreeoffreedomu() { - numdegreeoffreedomu_ = 0; -} -::google::protobuf::int32 SendActualStateStatus::numdegreeoffreedomu() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.SendActualStateStatus.numDegreeOfFreedomU) - return numdegreeoffreedomu_; -} -void SendActualStateStatus::set_numdegreeoffreedomu(::google::protobuf::int32 value) { - - numdegreeoffreedomu_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.SendActualStateStatus.numDegreeOfFreedomU) -} - -// repeated double rootLocalInertialFrame = 5; -int SendActualStateStatus::rootlocalinertialframe_size() const { - return rootlocalinertialframe_.size(); -} -void SendActualStateStatus::clear_rootlocalinertialframe() { - rootlocalinertialframe_.Clear(); -} -double SendActualStateStatus::rootlocalinertialframe(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.SendActualStateStatus.rootLocalInertialFrame) - return rootlocalinertialframe_.Get(index); -} -void SendActualStateStatus::set_rootlocalinertialframe(int index, double value) { - rootlocalinertialframe_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.SendActualStateStatus.rootLocalInertialFrame) -} -void SendActualStateStatus::add_rootlocalinertialframe(double value) { - rootlocalinertialframe_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.SendActualStateStatus.rootLocalInertialFrame) -} -const ::google::protobuf::RepeatedField< double >& -SendActualStateStatus::rootlocalinertialframe() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.SendActualStateStatus.rootLocalInertialFrame) - return rootlocalinertialframe_; -} -::google::protobuf::RepeatedField< double >* -SendActualStateStatus::mutable_rootlocalinertialframe() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.SendActualStateStatus.rootLocalInertialFrame) - return &rootlocalinertialframe_; -} - -// repeated double actualStateQ = 6; -int SendActualStateStatus::actualstateq_size() const { - return actualstateq_.size(); -} -void SendActualStateStatus::clear_actualstateq() { - actualstateq_.Clear(); -} -double SendActualStateStatus::actualstateq(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.SendActualStateStatus.actualStateQ) - return actualstateq_.Get(index); -} -void SendActualStateStatus::set_actualstateq(int index, double value) { - actualstateq_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.SendActualStateStatus.actualStateQ) -} -void SendActualStateStatus::add_actualstateq(double value) { - actualstateq_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.SendActualStateStatus.actualStateQ) -} -const ::google::protobuf::RepeatedField< double >& -SendActualStateStatus::actualstateq() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.SendActualStateStatus.actualStateQ) - return actualstateq_; -} -::google::protobuf::RepeatedField< double >* -SendActualStateStatus::mutable_actualstateq() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.SendActualStateStatus.actualStateQ) - return &actualstateq_; -} - -// repeated double actualStateQdot = 7; -int SendActualStateStatus::actualstateqdot_size() const { - return actualstateqdot_.size(); -} -void SendActualStateStatus::clear_actualstateqdot() { - actualstateqdot_.Clear(); -} -double SendActualStateStatus::actualstateqdot(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.SendActualStateStatus.actualStateQdot) - return actualstateqdot_.Get(index); -} -void SendActualStateStatus::set_actualstateqdot(int index, double value) { - actualstateqdot_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.SendActualStateStatus.actualStateQdot) -} -void SendActualStateStatus::add_actualstateqdot(double value) { - actualstateqdot_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.SendActualStateStatus.actualStateQdot) -} -const ::google::protobuf::RepeatedField< double >& -SendActualStateStatus::actualstateqdot() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.SendActualStateStatus.actualStateQdot) - return actualstateqdot_; -} -::google::protobuf::RepeatedField< double >* -SendActualStateStatus::mutable_actualstateqdot() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.SendActualStateStatus.actualStateQdot) - return &actualstateqdot_; -} - -// repeated double jointReactionForces = 8; -int SendActualStateStatus::jointreactionforces_size() const { - return jointreactionforces_.size(); -} -void SendActualStateStatus::clear_jointreactionforces() { - jointreactionforces_.Clear(); -} -double SendActualStateStatus::jointreactionforces(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.SendActualStateStatus.jointReactionForces) - return jointreactionforces_.Get(index); -} -void SendActualStateStatus::set_jointreactionforces(int index, double value) { - jointreactionforces_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.SendActualStateStatus.jointReactionForces) -} -void SendActualStateStatus::add_jointreactionforces(double value) { - jointreactionforces_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.SendActualStateStatus.jointReactionForces) -} -const ::google::protobuf::RepeatedField< double >& -SendActualStateStatus::jointreactionforces() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.SendActualStateStatus.jointReactionForces) - return jointreactionforces_; -} -::google::protobuf::RepeatedField< double >* -SendActualStateStatus::mutable_jointreactionforces() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.SendActualStateStatus.jointReactionForces) - return &jointreactionforces_; -} - -// repeated double jointMotorForce = 9; -int SendActualStateStatus::jointmotorforce_size() const { - return jointmotorforce_.size(); -} -void SendActualStateStatus::clear_jointmotorforce() { - jointmotorforce_.Clear(); -} -double SendActualStateStatus::jointmotorforce(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.SendActualStateStatus.jointMotorForce) - return jointmotorforce_.Get(index); -} -void SendActualStateStatus::set_jointmotorforce(int index, double value) { - jointmotorforce_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.SendActualStateStatus.jointMotorForce) -} -void SendActualStateStatus::add_jointmotorforce(double value) { - jointmotorforce_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.SendActualStateStatus.jointMotorForce) -} -const ::google::protobuf::RepeatedField< double >& -SendActualStateStatus::jointmotorforce() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.SendActualStateStatus.jointMotorForce) - return jointmotorforce_; -} -::google::protobuf::RepeatedField< double >* -SendActualStateStatus::mutable_jointmotorforce() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.SendActualStateStatus.jointMotorForce) - return &jointmotorforce_; -} - -// repeated double linkState = 10; -int SendActualStateStatus::linkstate_size() const { - return linkstate_.size(); -} -void SendActualStateStatus::clear_linkstate() { - linkstate_.Clear(); -} -double SendActualStateStatus::linkstate(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.SendActualStateStatus.linkState) - return linkstate_.Get(index); -} -void SendActualStateStatus::set_linkstate(int index, double value) { - linkstate_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.SendActualStateStatus.linkState) -} -void SendActualStateStatus::add_linkstate(double value) { - linkstate_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.SendActualStateStatus.linkState) -} -const ::google::protobuf::RepeatedField< double >& -SendActualStateStatus::linkstate() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.SendActualStateStatus.linkState) - return linkstate_; -} -::google::protobuf::RepeatedField< double >* -SendActualStateStatus::mutable_linkstate() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.SendActualStateStatus.linkState) - return &linkstate_; -} - -// repeated double linkWorldVelocities = 11; -int SendActualStateStatus::linkworldvelocities_size() const { - return linkworldvelocities_.size(); -} -void SendActualStateStatus::clear_linkworldvelocities() { - linkworldvelocities_.Clear(); -} -double SendActualStateStatus::linkworldvelocities(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.SendActualStateStatus.linkWorldVelocities) - return linkworldvelocities_.Get(index); -} -void SendActualStateStatus::set_linkworldvelocities(int index, double value) { - linkworldvelocities_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.SendActualStateStatus.linkWorldVelocities) -} -void SendActualStateStatus::add_linkworldvelocities(double value) { - linkworldvelocities_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.SendActualStateStatus.linkWorldVelocities) -} -const ::google::protobuf::RepeatedField< double >& -SendActualStateStatus::linkworldvelocities() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.SendActualStateStatus.linkWorldVelocities) - return linkworldvelocities_; -} -::google::protobuf::RepeatedField< double >* -SendActualStateStatus::mutable_linkworldvelocities() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.SendActualStateStatus.linkWorldVelocities) - return &linkworldvelocities_; -} - -// repeated double linkLocalInertialFrames = 12; -int SendActualStateStatus::linklocalinertialframes_size() const { - return linklocalinertialframes_.size(); -} -void SendActualStateStatus::clear_linklocalinertialframes() { - linklocalinertialframes_.Clear(); -} -double SendActualStateStatus::linklocalinertialframes(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.SendActualStateStatus.linkLocalInertialFrames) - return linklocalinertialframes_.Get(index); -} -void SendActualStateStatus::set_linklocalinertialframes(int index, double value) { - linklocalinertialframes_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.SendActualStateStatus.linkLocalInertialFrames) -} -void SendActualStateStatus::add_linklocalinertialframes(double value) { - linklocalinertialframes_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.SendActualStateStatus.linkLocalInertialFrames) -} -const ::google::protobuf::RepeatedField< double >& -SendActualStateStatus::linklocalinertialframes() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.SendActualStateStatus.linkLocalInertialFrames) - return linklocalinertialframes_; -} -::google::protobuf::RepeatedField< double >* -SendActualStateStatus::mutable_linklocalinertialframes() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.SendActualStateStatus.linkLocalInertialFrames) - return &linklocalinertialframes_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void ConfigureOpenGLVisualizerCommand::InitAsDefaultInstance() { + ::pybullet_grpc::_ConfigureOpenGLVisualizerCommand_default_instance_._instance.get_mutable()->cameratargetposition_ = const_cast< ::pybullet_grpc::vec3*>( + ::pybullet_grpc::vec3::internal_default_instance()); +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int ConfigureOpenGLVisualizerCommand::kUpdateFlagsFieldNumber; const int ConfigureOpenGLVisualizerCommand::kCameraDistanceFieldNumber; @@ -12560,16 +11178,14 @@ const int ConfigureOpenGLVisualizerCommand::kSetEnabledFieldNumber; ConfigureOpenGLVisualizerCommand::ConfigureOpenGLVisualizerCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_ConfigureOpenGLVisualizerCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.ConfigureOpenGLVisualizerCommand) } ConfigureOpenGLVisualizerCommand::ConfigureOpenGLVisualizerCommand(const ConfigureOpenGLVisualizerCommand& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_cameratargetposition()) { cameratargetposition_ = new ::pybullet_grpc::vec3(*from.cameratargetposition_); @@ -12577,15 +11193,15 @@ ConfigureOpenGLVisualizerCommand::ConfigureOpenGLVisualizerCommand(const Configu cameratargetposition_ = NULL; } ::memcpy(&cameradistance_, &from.cameradistance_, - reinterpret_cast(&setenabled_) - - reinterpret_cast(&cameradistance_) + sizeof(setenabled_)); + static_cast(reinterpret_cast(&setenabled_) - + reinterpret_cast(&cameradistance_)) + sizeof(setenabled_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.ConfigureOpenGLVisualizerCommand) } void ConfigureOpenGLVisualizerCommand::SharedCtor() { - ::memset(&cameratargetposition_, 0, reinterpret_cast(&setenabled_) - - reinterpret_cast(&cameratargetposition_) + sizeof(setenabled_)); - _cached_size_ = 0; + ::memset(&cameratargetposition_, 0, static_cast( + reinterpret_cast(&setenabled_) - + reinterpret_cast(&cameratargetposition_)) + sizeof(setenabled_)); } ConfigureOpenGLVisualizerCommand::~ConfigureOpenGLVisualizerCommand() { @@ -12594,42 +11210,37 @@ ConfigureOpenGLVisualizerCommand::~ConfigureOpenGLVisualizerCommand() { } void ConfigureOpenGLVisualizerCommand::SharedDtor() { - if (this != internal_default_instance()) { - delete cameratargetposition_; - } + if (this != internal_default_instance()) delete cameratargetposition_; } void ConfigureOpenGLVisualizerCommand::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* ConfigureOpenGLVisualizerCommand::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[25].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const ConfigureOpenGLVisualizerCommand& ConfigureOpenGLVisualizerCommand::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_ConfigureOpenGLVisualizerCommand.base); return *internal_default_instance(); } -ConfigureOpenGLVisualizerCommand* ConfigureOpenGLVisualizerCommand::New(::google::protobuf::Arena* arena) const { - ConfigureOpenGLVisualizerCommand* n = new ConfigureOpenGLVisualizerCommand; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void ConfigureOpenGLVisualizerCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.ConfigureOpenGLVisualizerCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + if (GetArenaNoVirtual() == NULL && cameratargetposition_ != NULL) { delete cameratargetposition_; } cameratargetposition_ = NULL; - ::memset(&cameradistance_, 0, reinterpret_cast(&setenabled_) - - reinterpret_cast(&cameradistance_) + sizeof(setenabled_)); + ::memset(&cameradistance_, 0, static_cast( + reinterpret_cast(&setenabled_) - + reinterpret_cast(&cameradistance_)) + sizeof(setenabled_)); + _internal_metadata_.Clear(); } bool ConfigureOpenGLVisualizerCommand::MergePartialFromCodedStream( @@ -12638,13 +11249,14 @@ bool ConfigureOpenGLVisualizerCommand::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.ConfigureOpenGLVisualizerCommand) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 updateFlags = 1; case 1: { - if (tag == 8u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -12657,7 +11269,8 @@ bool ConfigureOpenGLVisualizerCommand::MergePartialFromCodedStream( // double cameraDistance = 2; case 2: { - if (tag == 17u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -12670,7 +11283,8 @@ bool ConfigureOpenGLVisualizerCommand::MergePartialFromCodedStream( // double cameraPitch = 3; case 3: { - if (tag == 25u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -12683,7 +11297,8 @@ bool ConfigureOpenGLVisualizerCommand::MergePartialFromCodedStream( // double cameraYaw = 4; case 4: { - if (tag == 33u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -12696,8 +11311,9 @@ bool ConfigureOpenGLVisualizerCommand::MergePartialFromCodedStream( // .pybullet_grpc.vec3 cameraTargetPosition = 5; case 5: { - if (tag == 42u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_cameratargetposition())); } else { goto handle_unusual; @@ -12707,7 +11323,8 @@ bool ConfigureOpenGLVisualizerCommand::MergePartialFromCodedStream( // int32 setFlag = 6; case 6: { - if (tag == 48u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -12720,7 +11337,8 @@ bool ConfigureOpenGLVisualizerCommand::MergePartialFromCodedStream( // int32 setEnabled = 7; case 7: { - if (tag == 56u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -12733,12 +11351,11 @@ bool ConfigureOpenGLVisualizerCommand::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -12755,6 +11372,9 @@ failure: void ConfigureOpenGLVisualizerCommand::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.ConfigureOpenGLVisualizerCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 updateFlags = 1; if (this->updateflags() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->updateflags(), output); @@ -12778,7 +11398,7 @@ void ConfigureOpenGLVisualizerCommand::SerializeWithCachedSizes( // .pybullet_grpc.vec3 cameraTargetPosition = 5; if (this->has_cameratargetposition()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, *this->cameratargetposition_, output); + 5, this->_internal_cameratargetposition(), output); } // int32 setFlag = 6; @@ -12791,13 +11411,20 @@ void ConfigureOpenGLVisualizerCommand::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->setenabled(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.ConfigureOpenGLVisualizerCommand) } ::google::protobuf::uint8* ConfigureOpenGLVisualizerCommand::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.ConfigureOpenGLVisualizerCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 updateFlags = 1; if (this->updateflags() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->updateflags(), target); @@ -12821,8 +11448,8 @@ void ConfigureOpenGLVisualizerCommand::SerializeWithCachedSizes( // .pybullet_grpc.vec3 cameraTargetPosition = 5; if (this->has_cameratargetposition()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 5, *this->cameratargetposition_, false, target); + InternalWriteMessageToArray( + 5, this->_internal_cameratargetposition(), deterministic, target); } // int32 setFlag = 6; @@ -12835,6 +11462,10 @@ void ConfigureOpenGLVisualizerCommand::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->setenabled(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.ConfigureOpenGLVisualizerCommand) return target; } @@ -12843,11 +11474,16 @@ size_t ConfigureOpenGLVisualizerCommand::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.ConfigureOpenGLVisualizerCommand) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // .pybullet_grpc.vec3 cameraTargetPosition = 5; if (this->has_cameratargetposition()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->cameratargetposition_); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *cameratargetposition_); } // double cameraDistance = 2; @@ -12887,9 +11523,7 @@ size_t ConfigureOpenGLVisualizerCommand::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -12912,6 +11546,9 @@ void ConfigureOpenGLVisualizerCommand::MergeFrom(const ConfigureOpenGLVisualizer // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.ConfigureOpenGLVisualizerCommand) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.has_cameratargetposition()) { mutable_cameratargetposition()->::pybullet_grpc::vec3::MergeFrom(from.cameratargetposition()); } @@ -12958,151 +11595,29 @@ void ConfigureOpenGLVisualizerCommand::Swap(ConfigureOpenGLVisualizerCommand* ot InternalSwap(other); } void ConfigureOpenGLVisualizerCommand::InternalSwap(ConfigureOpenGLVisualizerCommand* other) { - std::swap(cameratargetposition_, other->cameratargetposition_); - std::swap(cameradistance_, other->cameradistance_); - std::swap(camerapitch_, other->camerapitch_); - std::swap(updateflags_, other->updateflags_); - std::swap(setflag_, other->setflag_); - std::swap(camerayaw_, other->camerayaw_); - std::swap(setenabled_, other->setenabled_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + swap(cameratargetposition_, other->cameratargetposition_); + swap(cameradistance_, other->cameradistance_); + swap(camerapitch_, other->camerapitch_); + swap(updateflags_, other->updateflags_); + swap(setflag_, other->setflag_); + swap(camerayaw_, other->camerayaw_); + swap(setenabled_, other->setenabled_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata ConfigureOpenGLVisualizerCommand::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[25]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// ConfigureOpenGLVisualizerCommand - -// int32 updateFlags = 1; -void ConfigureOpenGLVisualizerCommand::clear_updateflags() { - updateflags_ = 0; -} -::google::protobuf::int32 ConfigureOpenGLVisualizerCommand::updateflags() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ConfigureOpenGLVisualizerCommand.updateFlags) - return updateflags_; -} -void ConfigureOpenGLVisualizerCommand::set_updateflags(::google::protobuf::int32 value) { - - updateflags_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ConfigureOpenGLVisualizerCommand.updateFlags) -} - -// double cameraDistance = 2; -void ConfigureOpenGLVisualizerCommand::clear_cameradistance() { - cameradistance_ = 0; -} -double ConfigureOpenGLVisualizerCommand::cameradistance() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ConfigureOpenGLVisualizerCommand.cameraDistance) - return cameradistance_; -} -void ConfigureOpenGLVisualizerCommand::set_cameradistance(double value) { - - cameradistance_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ConfigureOpenGLVisualizerCommand.cameraDistance) -} - -// double cameraPitch = 3; -void ConfigureOpenGLVisualizerCommand::clear_camerapitch() { - camerapitch_ = 0; -} -double ConfigureOpenGLVisualizerCommand::camerapitch() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ConfigureOpenGLVisualizerCommand.cameraPitch) - return camerapitch_; -} -void ConfigureOpenGLVisualizerCommand::set_camerapitch(double value) { - - camerapitch_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ConfigureOpenGLVisualizerCommand.cameraPitch) -} - -// double cameraYaw = 4; -void ConfigureOpenGLVisualizerCommand::clear_camerayaw() { - camerayaw_ = 0; -} -double ConfigureOpenGLVisualizerCommand::camerayaw() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ConfigureOpenGLVisualizerCommand.cameraYaw) - return camerayaw_; -} -void ConfigureOpenGLVisualizerCommand::set_camerayaw(double value) { - - camerayaw_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ConfigureOpenGLVisualizerCommand.cameraYaw) -} - -// .pybullet_grpc.vec3 cameraTargetPosition = 5; -bool ConfigureOpenGLVisualizerCommand::has_cameratargetposition() const { - return this != internal_default_instance() && cameratargetposition_ != NULL; -} -void ConfigureOpenGLVisualizerCommand::clear_cameratargetposition() { - if (GetArenaNoVirtual() == NULL && cameratargetposition_ != NULL) delete cameratargetposition_; - cameratargetposition_ = NULL; -} -const ::pybullet_grpc::vec3& ConfigureOpenGLVisualizerCommand::cameratargetposition() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ConfigureOpenGLVisualizerCommand.cameraTargetPosition) - return cameratargetposition_ != NULL ? *cameratargetposition_ - : *::pybullet_grpc::vec3::internal_default_instance(); -} -::pybullet_grpc::vec3* ConfigureOpenGLVisualizerCommand::mutable_cameratargetposition() { - - if (cameratargetposition_ == NULL) { - cameratargetposition_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.ConfigureOpenGLVisualizerCommand.cameraTargetPosition) - return cameratargetposition_; -} -::pybullet_grpc::vec3* ConfigureOpenGLVisualizerCommand::release_cameratargetposition() { - // @@protoc_insertion_point(field_release:pybullet_grpc.ConfigureOpenGLVisualizerCommand.cameraTargetPosition) - - ::pybullet_grpc::vec3* temp = cameratargetposition_; - cameratargetposition_ = NULL; - return temp; -} -void ConfigureOpenGLVisualizerCommand::set_allocated_cameratargetposition(::pybullet_grpc::vec3* cameratargetposition) { - delete cameratargetposition_; - cameratargetposition_ = cameratargetposition; - if (cameratargetposition) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.ConfigureOpenGLVisualizerCommand.cameraTargetPosition) -} - -// int32 setFlag = 6; -void ConfigureOpenGLVisualizerCommand::clear_setflag() { - setflag_ = 0; -} -::google::protobuf::int32 ConfigureOpenGLVisualizerCommand::setflag() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ConfigureOpenGLVisualizerCommand.setFlag) - return setflag_; -} -void ConfigureOpenGLVisualizerCommand::set_setflag(::google::protobuf::int32 value) { - - setflag_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ConfigureOpenGLVisualizerCommand.setFlag) -} - -// int32 setEnabled = 7; -void ConfigureOpenGLVisualizerCommand::clear_setenabled() { - setenabled_ = 0; -} -::google::protobuf::int32 ConfigureOpenGLVisualizerCommand::setenabled() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ConfigureOpenGLVisualizerCommand.setEnabled) - return setenabled_; -} -void ConfigureOpenGLVisualizerCommand::set_setenabled(::google::protobuf::int32 value) { - - setenabled_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.ConfigureOpenGLVisualizerCommand.setEnabled) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void PhysicsSimulationParameters::InitAsDefaultInstance() { + ::pybullet_grpc::_PhysicsSimulationParameters_default_instance_._instance.get_mutable()->gravityacceleration_ = const_cast< ::pybullet_grpc::vec3*>( + ::pybullet_grpc::vec3::internal_default_instance()); +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int PhysicsSimulationParameters::kDeltaTimeFieldNumber; const int PhysicsSimulationParameters::kGravityAccelerationFieldNumber; @@ -13134,16 +11649,14 @@ const int PhysicsSimulationParameters::kMinimumSolverIslandSizeFieldNumber; PhysicsSimulationParameters::PhysicsSimulationParameters() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_PhysicsSimulationParameters.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.PhysicsSimulationParameters) } PhysicsSimulationParameters::PhysicsSimulationParameters(const PhysicsSimulationParameters& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_gravityacceleration()) { gravityacceleration_ = new ::pybullet_grpc::vec3(*from.gravityacceleration_); @@ -13151,15 +11664,15 @@ PhysicsSimulationParameters::PhysicsSimulationParameters(const PhysicsSimulation gravityacceleration_ = NULL; } ::memcpy(&deltatime_, &from.deltatime_, - reinterpret_cast(&minimumsolverislandsize_) - - reinterpret_cast(&deltatime_) + sizeof(minimumsolverislandsize_)); + static_cast(reinterpret_cast(&minimumsolverislandsize_) - + reinterpret_cast(&deltatime_)) + sizeof(minimumsolverislandsize_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.PhysicsSimulationParameters) } void PhysicsSimulationParameters::SharedCtor() { - ::memset(&gravityacceleration_, 0, reinterpret_cast(&minimumsolverislandsize_) - - reinterpret_cast(&gravityacceleration_) + sizeof(minimumsolverislandsize_)); - _cached_size_ = 0; + ::memset(&gravityacceleration_, 0, static_cast( + reinterpret_cast(&minimumsolverislandsize_) - + reinterpret_cast(&gravityacceleration_)) + sizeof(minimumsolverislandsize_)); } PhysicsSimulationParameters::~PhysicsSimulationParameters() { @@ -13168,42 +11681,37 @@ PhysicsSimulationParameters::~PhysicsSimulationParameters() { } void PhysicsSimulationParameters::SharedDtor() { - if (this != internal_default_instance()) { - delete gravityacceleration_; - } + if (this != internal_default_instance()) delete gravityacceleration_; } void PhysicsSimulationParameters::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* PhysicsSimulationParameters::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[26].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const PhysicsSimulationParameters& PhysicsSimulationParameters::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_PhysicsSimulationParameters.base); return *internal_default_instance(); } -PhysicsSimulationParameters* PhysicsSimulationParameters::New(::google::protobuf::Arena* arena) const { - PhysicsSimulationParameters* n = new PhysicsSimulationParameters; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void PhysicsSimulationParameters::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.PhysicsSimulationParameters) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + if (GetArenaNoVirtual() == NULL && gravityacceleration_ != NULL) { delete gravityacceleration_; } gravityacceleration_ = NULL; - ::memset(&deltatime_, 0, reinterpret_cast(&minimumsolverislandsize_) - - reinterpret_cast(&deltatime_) + sizeof(minimumsolverislandsize_)); + ::memset(&deltatime_, 0, static_cast( + reinterpret_cast(&minimumsolverislandsize_) - + reinterpret_cast(&deltatime_)) + sizeof(minimumsolverislandsize_)); + _internal_metadata_.Clear(); } bool PhysicsSimulationParameters::MergePartialFromCodedStream( @@ -13212,13 +11720,14 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.PhysicsSimulationParameters) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // double deltaTime = 1; case 1: { - if (tag == 9u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -13231,8 +11740,9 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // .pybullet_grpc.vec3 gravityAcceleration = 2; case 2: { - if (tag == 18u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_gravityacceleration())); } else { goto handle_unusual; @@ -13242,7 +11752,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // int32 numSimulationSubSteps = 3; case 3: { - if (tag == 24u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -13255,7 +11766,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // int32 numSolverIterations = 4; case 4: { - if (tag == 32u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -13268,7 +11780,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // int32 useRealTimeSimulation = 5; case 5: { - if (tag == 40u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -13281,7 +11794,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // int32 useSplitImpulse = 6; case 6: { - if (tag == 48u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -13294,7 +11808,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // double splitImpulsePenetrationThreshold = 7; case 7: { - if (tag == 57u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -13307,7 +11822,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // double contactBreakingThreshold = 8; case 8: { - if (tag == 65u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -13320,7 +11836,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // int32 internalSimFlags = 9; case 9: { - if (tag == 72u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -13333,7 +11850,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // double defaultContactERP = 10; case 10: { - if (tag == 81u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(81u /* 81 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -13346,7 +11864,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // int32 collisionFilterMode = 11; case 11: { - if (tag == 88u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -13359,7 +11878,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // int32 enableFileCaching = 12; case 12: { - if (tag == 96u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -13372,7 +11892,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // double restitutionVelocityThreshold = 13; case 13: { - if (tag == 105u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(105u /* 105 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -13385,7 +11906,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // double defaultNonContactERP = 14; case 14: { - if (tag == 113u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(113u /* 113 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -13398,7 +11920,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // double frictionERP = 15; case 15: { - if (tag == 121u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(121u /* 121 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -13411,7 +11934,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // double defaultGlobalCFM = 16; case 16: { - if (tag == 129u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(129u /* 129 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -13424,7 +11948,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // double frictionCFM = 17; case 17: { - if (tag == 137u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(137u /* 137 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -13437,7 +11962,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // int32 enableConeFriction = 18; case 18: { - if (tag == 144u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(144u /* 144 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -13450,7 +11976,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // int32 deterministicOverlappingPairs = 19; case 19: { - if (tag == 152u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(152u /* 152 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -13463,7 +11990,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // double allowedCcdPenetration = 20; case 20: { - if (tag == 161u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(161u /* 161 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -13476,7 +12004,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // int32 jointFeedbackMode = 21; case 21: { - if (tag == 168u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(168u /* 168 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -13489,7 +12018,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // double solverResidualThreshold = 22; case 22: { - if (tag == 177u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(177u /* 177 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -13502,7 +12032,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // double contactSlop = 23; case 23: { - if (tag == 185u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(185u /* 185 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -13515,7 +12046,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // int32 enableSAT = 24; case 24: { - if (tag == 192u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(192u /* 192 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -13528,7 +12060,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // int32 constraintSolverType = 25; case 25: { - if (tag == 200u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(200u /* 200 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -13541,7 +12074,8 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( // int32 minimumSolverIslandSize = 26; case 26: { - if (tag == 208u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(208u /* 208 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -13554,12 +12088,11 @@ bool PhysicsSimulationParameters::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -13576,6 +12109,9 @@ failure: void PhysicsSimulationParameters::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.PhysicsSimulationParameters) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // double deltaTime = 1; if (this->deltatime() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->deltatime(), output); @@ -13584,7 +12120,7 @@ void PhysicsSimulationParameters::SerializeWithCachedSizes( // .pybullet_grpc.vec3 gravityAcceleration = 2; if (this->has_gravityacceleration()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->gravityacceleration_, output); + 2, this->_internal_gravityacceleration(), output); } // int32 numSimulationSubSteps = 3; @@ -13707,13 +12243,20 @@ void PhysicsSimulationParameters::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt32(26, this->minimumsolverislandsize(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.PhysicsSimulationParameters) } ::google::protobuf::uint8* PhysicsSimulationParameters::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.PhysicsSimulationParameters) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // double deltaTime = 1; if (this->deltatime() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->deltatime(), target); @@ -13722,8 +12265,8 @@ void PhysicsSimulationParameters::SerializeWithCachedSizes( // .pybullet_grpc.vec3 gravityAcceleration = 2; if (this->has_gravityacceleration()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->gravityacceleration_, false, target); + InternalWriteMessageToArray( + 2, this->_internal_gravityacceleration(), deterministic, target); } // int32 numSimulationSubSteps = 3; @@ -13846,6 +12389,10 @@ void PhysicsSimulationParameters::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(26, this->minimumsolverislandsize(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.PhysicsSimulationParameters) return target; } @@ -13854,11 +12401,16 @@ size_t PhysicsSimulationParameters::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.PhysicsSimulationParameters) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // .pybullet_grpc.vec3 gravityAcceleration = 2; if (this->has_gravityacceleration()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->gravityacceleration_); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *gravityacceleration_); } // double deltaTime = 1; @@ -14013,9 +12565,7 @@ size_t PhysicsSimulationParameters::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -14038,6 +12588,9 @@ void PhysicsSimulationParameters::MergeFrom(const PhysicsSimulationParameters& f // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.PhysicsSimulationParameters) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.has_gravityacceleration()) { mutable_gravityacceleration()->::pybullet_grpc::vec3::MergeFrom(from.gravityacceleration()); } @@ -14141,436 +12694,48 @@ void PhysicsSimulationParameters::Swap(PhysicsSimulationParameters* other) { InternalSwap(other); } void PhysicsSimulationParameters::InternalSwap(PhysicsSimulationParameters* other) { - std::swap(gravityacceleration_, other->gravityacceleration_); - std::swap(deltatime_, other->deltatime_); - std::swap(numsimulationsubsteps_, other->numsimulationsubsteps_); - std::swap(numsolveriterations_, other->numsolveriterations_); - std::swap(userealtimesimulation_, other->userealtimesimulation_); - std::swap(usesplitimpulse_, other->usesplitimpulse_); - std::swap(splitimpulsepenetrationthreshold_, other->splitimpulsepenetrationthreshold_); - std::swap(contactbreakingthreshold_, other->contactbreakingthreshold_); - std::swap(defaultcontacterp_, other->defaultcontacterp_); - std::swap(internalsimflags_, other->internalsimflags_); - std::swap(collisionfiltermode_, other->collisionfiltermode_); - std::swap(restitutionvelocitythreshold_, other->restitutionvelocitythreshold_); - std::swap(defaultnoncontacterp_, other->defaultnoncontacterp_); - std::swap(frictionerp_, other->frictionerp_); - std::swap(enablefilecaching_, other->enablefilecaching_); - std::swap(enableconefriction_, other->enableconefriction_); - std::swap(defaultglobalcfm_, other->defaultglobalcfm_); - std::swap(frictioncfm_, other->frictioncfm_); - std::swap(allowedccdpenetration_, other->allowedccdpenetration_); - std::swap(deterministicoverlappingpairs_, other->deterministicoverlappingpairs_); - std::swap(jointfeedbackmode_, other->jointfeedbackmode_); - std::swap(solverresidualthreshold_, other->solverresidualthreshold_); - std::swap(contactslop_, other->contactslop_); - std::swap(enablesat_, other->enablesat_); - std::swap(constraintsolvertype_, other->constraintsolvertype_); - std::swap(minimumsolverislandsize_, other->minimumsolverislandsize_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + swap(gravityacceleration_, other->gravityacceleration_); + swap(deltatime_, other->deltatime_); + swap(numsimulationsubsteps_, other->numsimulationsubsteps_); + swap(numsolveriterations_, other->numsolveriterations_); + swap(userealtimesimulation_, other->userealtimesimulation_); + swap(usesplitimpulse_, other->usesplitimpulse_); + swap(splitimpulsepenetrationthreshold_, other->splitimpulsepenetrationthreshold_); + swap(contactbreakingthreshold_, other->contactbreakingthreshold_); + swap(defaultcontacterp_, other->defaultcontacterp_); + swap(internalsimflags_, other->internalsimflags_); + swap(collisionfiltermode_, other->collisionfiltermode_); + swap(restitutionvelocitythreshold_, other->restitutionvelocitythreshold_); + swap(defaultnoncontacterp_, other->defaultnoncontacterp_); + swap(frictionerp_, other->frictionerp_); + swap(enablefilecaching_, other->enablefilecaching_); + swap(enableconefriction_, other->enableconefriction_); + swap(defaultglobalcfm_, other->defaultglobalcfm_); + swap(frictioncfm_, other->frictioncfm_); + swap(allowedccdpenetration_, other->allowedccdpenetration_); + swap(deterministicoverlappingpairs_, other->deterministicoverlappingpairs_); + swap(jointfeedbackmode_, other->jointfeedbackmode_); + swap(solverresidualthreshold_, other->solverresidualthreshold_); + swap(contactslop_, other->contactslop_); + swap(enablesat_, other->enablesat_); + swap(constraintsolvertype_, other->constraintsolvertype_); + swap(minimumsolverislandsize_, other->minimumsolverislandsize_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata PhysicsSimulationParameters::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[26]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// PhysicsSimulationParameters - -// double deltaTime = 1; -void PhysicsSimulationParameters::clear_deltatime() { - deltatime_ = 0; -} -double PhysicsSimulationParameters::deltatime() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.deltaTime) - return deltatime_; -} -void PhysicsSimulationParameters::set_deltatime(double value) { - - deltatime_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.deltaTime) -} - -// .pybullet_grpc.vec3 gravityAcceleration = 2; -bool PhysicsSimulationParameters::has_gravityacceleration() const { - return this != internal_default_instance() && gravityacceleration_ != NULL; -} -void PhysicsSimulationParameters::clear_gravityacceleration() { - if (GetArenaNoVirtual() == NULL && gravityacceleration_ != NULL) delete gravityacceleration_; - gravityacceleration_ = NULL; -} -const ::pybullet_grpc::vec3& PhysicsSimulationParameters::gravityacceleration() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.gravityAcceleration) - return gravityacceleration_ != NULL ? *gravityacceleration_ - : *::pybullet_grpc::vec3::internal_default_instance(); -} -::pybullet_grpc::vec3* PhysicsSimulationParameters::mutable_gravityacceleration() { - - if (gravityacceleration_ == NULL) { - gravityacceleration_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PhysicsSimulationParameters.gravityAcceleration) - return gravityacceleration_; -} -::pybullet_grpc::vec3* PhysicsSimulationParameters::release_gravityacceleration() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PhysicsSimulationParameters.gravityAcceleration) - - ::pybullet_grpc::vec3* temp = gravityacceleration_; - gravityacceleration_ = NULL; - return temp; -} -void PhysicsSimulationParameters::set_allocated_gravityacceleration(::pybullet_grpc::vec3* gravityacceleration) { - delete gravityacceleration_; - gravityacceleration_ = gravityacceleration; - if (gravityacceleration) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PhysicsSimulationParameters.gravityAcceleration) -} - -// int32 numSimulationSubSteps = 3; -void PhysicsSimulationParameters::clear_numsimulationsubsteps() { - numsimulationsubsteps_ = 0; -} -::google::protobuf::int32 PhysicsSimulationParameters::numsimulationsubsteps() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.numSimulationSubSteps) - return numsimulationsubsteps_; -} -void PhysicsSimulationParameters::set_numsimulationsubsteps(::google::protobuf::int32 value) { - - numsimulationsubsteps_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.numSimulationSubSteps) -} - -// int32 numSolverIterations = 4; -void PhysicsSimulationParameters::clear_numsolveriterations() { - numsolveriterations_ = 0; -} -::google::protobuf::int32 PhysicsSimulationParameters::numsolveriterations() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.numSolverIterations) - return numsolveriterations_; -} -void PhysicsSimulationParameters::set_numsolveriterations(::google::protobuf::int32 value) { - - numsolveriterations_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.numSolverIterations) -} - -// int32 useRealTimeSimulation = 5; -void PhysicsSimulationParameters::clear_userealtimesimulation() { - userealtimesimulation_ = 0; -} -::google::protobuf::int32 PhysicsSimulationParameters::userealtimesimulation() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.useRealTimeSimulation) - return userealtimesimulation_; -} -void PhysicsSimulationParameters::set_userealtimesimulation(::google::protobuf::int32 value) { - - userealtimesimulation_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.useRealTimeSimulation) -} - -// int32 useSplitImpulse = 6; -void PhysicsSimulationParameters::clear_usesplitimpulse() { - usesplitimpulse_ = 0; -} -::google::protobuf::int32 PhysicsSimulationParameters::usesplitimpulse() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.useSplitImpulse) - return usesplitimpulse_; -} -void PhysicsSimulationParameters::set_usesplitimpulse(::google::protobuf::int32 value) { - - usesplitimpulse_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.useSplitImpulse) -} - -// double splitImpulsePenetrationThreshold = 7; -void PhysicsSimulationParameters::clear_splitimpulsepenetrationthreshold() { - splitimpulsepenetrationthreshold_ = 0; -} -double PhysicsSimulationParameters::splitimpulsepenetrationthreshold() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.splitImpulsePenetrationThreshold) - return splitimpulsepenetrationthreshold_; -} -void PhysicsSimulationParameters::set_splitimpulsepenetrationthreshold(double value) { - - splitimpulsepenetrationthreshold_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.splitImpulsePenetrationThreshold) -} - -// double contactBreakingThreshold = 8; -void PhysicsSimulationParameters::clear_contactbreakingthreshold() { - contactbreakingthreshold_ = 0; -} -double PhysicsSimulationParameters::contactbreakingthreshold() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.contactBreakingThreshold) - return contactbreakingthreshold_; -} -void PhysicsSimulationParameters::set_contactbreakingthreshold(double value) { - - contactbreakingthreshold_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.contactBreakingThreshold) -} - -// int32 internalSimFlags = 9; -void PhysicsSimulationParameters::clear_internalsimflags() { - internalsimflags_ = 0; -} -::google::protobuf::int32 PhysicsSimulationParameters::internalsimflags() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.internalSimFlags) - return internalsimflags_; -} -void PhysicsSimulationParameters::set_internalsimflags(::google::protobuf::int32 value) { - - internalsimflags_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.internalSimFlags) -} - -// double defaultContactERP = 10; -void PhysicsSimulationParameters::clear_defaultcontacterp() { - defaultcontacterp_ = 0; -} -double PhysicsSimulationParameters::defaultcontacterp() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.defaultContactERP) - return defaultcontacterp_; -} -void PhysicsSimulationParameters::set_defaultcontacterp(double value) { - - defaultcontacterp_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.defaultContactERP) -} - -// int32 collisionFilterMode = 11; -void PhysicsSimulationParameters::clear_collisionfiltermode() { - collisionfiltermode_ = 0; -} -::google::protobuf::int32 PhysicsSimulationParameters::collisionfiltermode() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.collisionFilterMode) - return collisionfiltermode_; -} -void PhysicsSimulationParameters::set_collisionfiltermode(::google::protobuf::int32 value) { - - collisionfiltermode_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.collisionFilterMode) -} - -// int32 enableFileCaching = 12; -void PhysicsSimulationParameters::clear_enablefilecaching() { - enablefilecaching_ = 0; -} -::google::protobuf::int32 PhysicsSimulationParameters::enablefilecaching() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.enableFileCaching) - return enablefilecaching_; -} -void PhysicsSimulationParameters::set_enablefilecaching(::google::protobuf::int32 value) { - - enablefilecaching_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.enableFileCaching) -} - -// double restitutionVelocityThreshold = 13; -void PhysicsSimulationParameters::clear_restitutionvelocitythreshold() { - restitutionvelocitythreshold_ = 0; -} -double PhysicsSimulationParameters::restitutionvelocitythreshold() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.restitutionVelocityThreshold) - return restitutionvelocitythreshold_; -} -void PhysicsSimulationParameters::set_restitutionvelocitythreshold(double value) { - - restitutionvelocitythreshold_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.restitutionVelocityThreshold) -} - -// double defaultNonContactERP = 14; -void PhysicsSimulationParameters::clear_defaultnoncontacterp() { - defaultnoncontacterp_ = 0; -} -double PhysicsSimulationParameters::defaultnoncontacterp() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.defaultNonContactERP) - return defaultnoncontacterp_; -} -void PhysicsSimulationParameters::set_defaultnoncontacterp(double value) { - - defaultnoncontacterp_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.defaultNonContactERP) -} - -// double frictionERP = 15; -void PhysicsSimulationParameters::clear_frictionerp() { - frictionerp_ = 0; -} -double PhysicsSimulationParameters::frictionerp() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.frictionERP) - return frictionerp_; -} -void PhysicsSimulationParameters::set_frictionerp(double value) { - - frictionerp_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.frictionERP) -} - -// double defaultGlobalCFM = 16; -void PhysicsSimulationParameters::clear_defaultglobalcfm() { - defaultglobalcfm_ = 0; -} -double PhysicsSimulationParameters::defaultglobalcfm() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.defaultGlobalCFM) - return defaultglobalcfm_; -} -void PhysicsSimulationParameters::set_defaultglobalcfm(double value) { - - defaultglobalcfm_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.defaultGlobalCFM) -} - -// double frictionCFM = 17; -void PhysicsSimulationParameters::clear_frictioncfm() { - frictioncfm_ = 0; -} -double PhysicsSimulationParameters::frictioncfm() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.frictionCFM) - return frictioncfm_; -} -void PhysicsSimulationParameters::set_frictioncfm(double value) { - - frictioncfm_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.frictionCFM) -} - -// int32 enableConeFriction = 18; -void PhysicsSimulationParameters::clear_enableconefriction() { - enableconefriction_ = 0; -} -::google::protobuf::int32 PhysicsSimulationParameters::enableconefriction() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.enableConeFriction) - return enableconefriction_; -} -void PhysicsSimulationParameters::set_enableconefriction(::google::protobuf::int32 value) { - - enableconefriction_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.enableConeFriction) -} - -// int32 deterministicOverlappingPairs = 19; -void PhysicsSimulationParameters::clear_deterministicoverlappingpairs() { - deterministicoverlappingpairs_ = 0; -} -::google::protobuf::int32 PhysicsSimulationParameters::deterministicoverlappingpairs() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.deterministicOverlappingPairs) - return deterministicoverlappingpairs_; -} -void PhysicsSimulationParameters::set_deterministicoverlappingpairs(::google::protobuf::int32 value) { - - deterministicoverlappingpairs_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.deterministicOverlappingPairs) -} - -// double allowedCcdPenetration = 20; -void PhysicsSimulationParameters::clear_allowedccdpenetration() { - allowedccdpenetration_ = 0; -} -double PhysicsSimulationParameters::allowedccdpenetration() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.allowedCcdPenetration) - return allowedccdpenetration_; -} -void PhysicsSimulationParameters::set_allowedccdpenetration(double value) { - - allowedccdpenetration_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.allowedCcdPenetration) -} - -// int32 jointFeedbackMode = 21; -void PhysicsSimulationParameters::clear_jointfeedbackmode() { - jointfeedbackmode_ = 0; -} -::google::protobuf::int32 PhysicsSimulationParameters::jointfeedbackmode() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.jointFeedbackMode) - return jointfeedbackmode_; -} -void PhysicsSimulationParameters::set_jointfeedbackmode(::google::protobuf::int32 value) { - - jointfeedbackmode_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.jointFeedbackMode) -} - -// double solverResidualThreshold = 22; -void PhysicsSimulationParameters::clear_solverresidualthreshold() { - solverresidualthreshold_ = 0; -} -double PhysicsSimulationParameters::solverresidualthreshold() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.solverResidualThreshold) - return solverresidualthreshold_; -} -void PhysicsSimulationParameters::set_solverresidualthreshold(double value) { - - solverresidualthreshold_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.solverResidualThreshold) -} - -// double contactSlop = 23; -void PhysicsSimulationParameters::clear_contactslop() { - contactslop_ = 0; -} -double PhysicsSimulationParameters::contactslop() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.contactSlop) - return contactslop_; -} -void PhysicsSimulationParameters::set_contactslop(double value) { - - contactslop_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.contactSlop) -} - -// int32 enableSAT = 24; -void PhysicsSimulationParameters::clear_enablesat() { - enablesat_ = 0; -} -::google::protobuf::int32 PhysicsSimulationParameters::enablesat() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.enableSAT) - return enablesat_; -} -void PhysicsSimulationParameters::set_enablesat(::google::protobuf::int32 value) { - - enablesat_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.enableSAT) -} - -// int32 constraintSolverType = 25; -void PhysicsSimulationParameters::clear_constraintsolvertype() { - constraintsolvertype_ = 0; -} -::google::protobuf::int32 PhysicsSimulationParameters::constraintsolvertype() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.constraintSolverType) - return constraintsolvertype_; -} -void PhysicsSimulationParameters::set_constraintsolvertype(::google::protobuf::int32 value) { - - constraintsolvertype_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.constraintSolverType) -} - -// int32 minimumSolverIslandSize = 26; -void PhysicsSimulationParameters::clear_minimumsolverislandsize() { - minimumsolverislandsize_ = 0; -} -::google::protobuf::int32 PhysicsSimulationParameters::minimumsolverislandsize() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.minimumSolverIslandSize) - return minimumsolverislandsize_; -} -void PhysicsSimulationParameters::set_minimumsolverislandsize(::google::protobuf::int32 value) { - - minimumsolverislandsize_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParameters.minimumSolverIslandSize) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void PhysicsSimulationParametersCommand::InitAsDefaultInstance() { + ::pybullet_grpc::_PhysicsSimulationParametersCommand_default_instance_._instance.get_mutable()->params_ = const_cast< ::pybullet_grpc::PhysicsSimulationParameters*>( + ::pybullet_grpc::PhysicsSimulationParameters::internal_default_instance()); +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int PhysicsSimulationParametersCommand::kUpdateFlagsFieldNumber; const int PhysicsSimulationParametersCommand::kParamsFieldNumber; @@ -14578,16 +12743,14 @@ const int PhysicsSimulationParametersCommand::kParamsFieldNumber; PhysicsSimulationParametersCommand::PhysicsSimulationParametersCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_PhysicsSimulationParametersCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.PhysicsSimulationParametersCommand) } PhysicsSimulationParametersCommand::PhysicsSimulationParametersCommand(const PhysicsSimulationParametersCommand& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_params()) { params_ = new ::pybullet_grpc::PhysicsSimulationParameters(*from.params_); @@ -14599,9 +12762,9 @@ PhysicsSimulationParametersCommand::PhysicsSimulationParametersCommand(const Phy } void PhysicsSimulationParametersCommand::SharedCtor() { - ::memset(¶ms_, 0, reinterpret_cast(&updateflags_) - - reinterpret_cast(¶ms_) + sizeof(updateflags_)); - _cached_size_ = 0; + ::memset(¶ms_, 0, static_cast( + reinterpret_cast(&updateflags_) - + reinterpret_cast(¶ms_)) + sizeof(updateflags_)); } PhysicsSimulationParametersCommand::~PhysicsSimulationParametersCommand() { @@ -14610,41 +12773,35 @@ PhysicsSimulationParametersCommand::~PhysicsSimulationParametersCommand() { } void PhysicsSimulationParametersCommand::SharedDtor() { - if (this != internal_default_instance()) { - delete params_; - } + if (this != internal_default_instance()) delete params_; } void PhysicsSimulationParametersCommand::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* PhysicsSimulationParametersCommand::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[27].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const PhysicsSimulationParametersCommand& PhysicsSimulationParametersCommand::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_PhysicsSimulationParametersCommand.base); return *internal_default_instance(); } -PhysicsSimulationParametersCommand* PhysicsSimulationParametersCommand::New(::google::protobuf::Arena* arena) const { - PhysicsSimulationParametersCommand* n = new PhysicsSimulationParametersCommand; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void PhysicsSimulationParametersCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.PhysicsSimulationParametersCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + if (GetArenaNoVirtual() == NULL && params_ != NULL) { delete params_; } params_ = NULL; updateflags_ = 0; + _internal_metadata_.Clear(); } bool PhysicsSimulationParametersCommand::MergePartialFromCodedStream( @@ -14653,13 +12810,14 @@ bool PhysicsSimulationParametersCommand::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.PhysicsSimulationParametersCommand) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 updateFlags = 1; case 1: { - if (tag == 8u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -14672,8 +12830,9 @@ bool PhysicsSimulationParametersCommand::MergePartialFromCodedStream( // .pybullet_grpc.PhysicsSimulationParameters params = 2; case 2: { - if (tag == 18u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_params())); } else { goto handle_unusual; @@ -14683,12 +12842,11 @@ bool PhysicsSimulationParametersCommand::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -14705,6 +12863,9 @@ failure: void PhysicsSimulationParametersCommand::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.PhysicsSimulationParametersCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 updateFlags = 1; if (this->updateflags() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->updateflags(), output); @@ -14713,16 +12874,23 @@ void PhysicsSimulationParametersCommand::SerializeWithCachedSizes( // .pybullet_grpc.PhysicsSimulationParameters params = 2; if (this->has_params()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->params_, output); + 2, this->_internal_params(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.PhysicsSimulationParametersCommand) } ::google::protobuf::uint8* PhysicsSimulationParametersCommand::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.PhysicsSimulationParametersCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 updateFlags = 1; if (this->updateflags() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->updateflags(), target); @@ -14731,10 +12899,14 @@ void PhysicsSimulationParametersCommand::SerializeWithCachedSizes( // .pybullet_grpc.PhysicsSimulationParameters params = 2; if (this->has_params()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->params_, false, target); + InternalWriteMessageToArray( + 2, this->_internal_params(), deterministic, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.PhysicsSimulationParametersCommand) return target; } @@ -14743,11 +12915,16 @@ size_t PhysicsSimulationParametersCommand::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.PhysicsSimulationParametersCommand) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // .pybullet_grpc.PhysicsSimulationParameters params = 2; if (this->has_params()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->params_); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *params_); } // int32 updateFlags = 1; @@ -14758,9 +12935,7 @@ size_t PhysicsSimulationParametersCommand::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -14783,6 +12958,9 @@ void PhysicsSimulationParametersCommand::MergeFrom(const PhysicsSimulationParame // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.PhysicsSimulationParametersCommand) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.has_params()) { mutable_params()->::pybullet_grpc::PhysicsSimulationParameters::MergeFrom(from.params()); } @@ -14814,76 +12992,22 @@ void PhysicsSimulationParametersCommand::Swap(PhysicsSimulationParametersCommand InternalSwap(other); } void PhysicsSimulationParametersCommand::InternalSwap(PhysicsSimulationParametersCommand* other) { - std::swap(params_, other->params_); - std::swap(updateflags_, other->updateflags_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + swap(params_, other->params_); + swap(updateflags_, other->updateflags_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata PhysicsSimulationParametersCommand::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[27]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// PhysicsSimulationParametersCommand - -// int32 updateFlags = 1; -void PhysicsSimulationParametersCommand::clear_updateflags() { - updateflags_ = 0; -} -::google::protobuf::int32 PhysicsSimulationParametersCommand::updateflags() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParametersCommand.updateFlags) - return updateflags_; -} -void PhysicsSimulationParametersCommand::set_updateflags(::google::protobuf::int32 value) { - - updateflags_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PhysicsSimulationParametersCommand.updateFlags) -} - -// .pybullet_grpc.PhysicsSimulationParameters params = 2; -bool PhysicsSimulationParametersCommand::has_params() const { - return this != internal_default_instance() && params_ != NULL; -} -void PhysicsSimulationParametersCommand::clear_params() { - if (GetArenaNoVirtual() == NULL && params_ != NULL) delete params_; - params_ = NULL; -} -const ::pybullet_grpc::PhysicsSimulationParameters& PhysicsSimulationParametersCommand::params() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParametersCommand.params) - return params_ != NULL ? *params_ - : *::pybullet_grpc::PhysicsSimulationParameters::internal_default_instance(); -} -::pybullet_grpc::PhysicsSimulationParameters* PhysicsSimulationParametersCommand::mutable_params() { - - if (params_ == NULL) { - params_ = new ::pybullet_grpc::PhysicsSimulationParameters; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PhysicsSimulationParametersCommand.params) - return params_; -} -::pybullet_grpc::PhysicsSimulationParameters* PhysicsSimulationParametersCommand::release_params() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PhysicsSimulationParametersCommand.params) - - ::pybullet_grpc::PhysicsSimulationParameters* temp = params_; - params_ = NULL; - return temp; -} -void PhysicsSimulationParametersCommand::set_allocated_params(::pybullet_grpc::PhysicsSimulationParameters* params) { - delete params_; - params_ = params; - if (params) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PhysicsSimulationParametersCommand.params) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void JointMotorControlCommand::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int JointMotorControlCommand::kBodyUniqueIdFieldNumber; const int JointMotorControlCommand::kControlModeFieldNumber; @@ -14899,9 +13023,8 @@ const int JointMotorControlCommand::kDesiredStateForceTorqueFieldNumber; JointMotorControlCommand::JointMotorControlCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_JointMotorControlCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.JointMotorControlCommand) } @@ -14914,19 +13037,18 @@ JointMotorControlCommand::JointMotorControlCommand(const JointMotorControlComman hasdesiredstateflags_(from.hasdesiredstateflags_), desiredstateq_(from.desiredstateq_), desiredstateqdot_(from.desiredstateqdot_), - desiredstateforcetorque_(from.desiredstateforcetorque_), - _cached_size_(0) { + desiredstateforcetorque_(from.desiredstateforcetorque_) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&bodyuniqueid_, &from.bodyuniqueid_, - reinterpret_cast(&updateflags_) - - reinterpret_cast(&bodyuniqueid_) + sizeof(updateflags_)); + static_cast(reinterpret_cast(&updateflags_) - + reinterpret_cast(&bodyuniqueid_)) + sizeof(updateflags_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.JointMotorControlCommand) } void JointMotorControlCommand::SharedCtor() { - ::memset(&bodyuniqueid_, 0, reinterpret_cast(&updateflags_) - - reinterpret_cast(&bodyuniqueid_) + sizeof(updateflags_)); - _cached_size_ = 0; + ::memset(&bodyuniqueid_, 0, static_cast( + reinterpret_cast(&updateflags_) - + reinterpret_cast(&bodyuniqueid_)) + sizeof(updateflags_)); } JointMotorControlCommand::~JointMotorControlCommand() { @@ -14938,30 +13060,25 @@ void JointMotorControlCommand::SharedDtor() { } void JointMotorControlCommand::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* JointMotorControlCommand::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[28].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const JointMotorControlCommand& JointMotorControlCommand::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_JointMotorControlCommand.base); return *internal_default_instance(); } -JointMotorControlCommand* JointMotorControlCommand::New(::google::protobuf::Arena* arena) const { - JointMotorControlCommand* n = new JointMotorControlCommand; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void JointMotorControlCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.JointMotorControlCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + kp_.Clear(); kd_.Clear(); maxvelocity_.Clear(); @@ -14969,8 +13086,10 @@ void JointMotorControlCommand::Clear() { desiredstateq_.Clear(); desiredstateqdot_.Clear(); desiredstateforcetorque_.Clear(); - ::memset(&bodyuniqueid_, 0, reinterpret_cast(&updateflags_) - - reinterpret_cast(&bodyuniqueid_) + sizeof(updateflags_)); + ::memset(&bodyuniqueid_, 0, static_cast( + reinterpret_cast(&updateflags_) - + reinterpret_cast(&bodyuniqueid_)) + sizeof(updateflags_)); + _internal_metadata_.Clear(); } bool JointMotorControlCommand::MergePartialFromCodedStream( @@ -14979,13 +13098,14 @@ bool JointMotorControlCommand::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.JointMotorControlCommand) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 bodyUniqueId = 1; case 1: { - if (tag == 8u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -14998,7 +13118,8 @@ bool JointMotorControlCommand::MergePartialFromCodedStream( // int32 controlMode = 2; case 2: { - if (tag == 16u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -15011,7 +13132,8 @@ bool JointMotorControlCommand::MergePartialFromCodedStream( // int32 updateFlags = 3; case 3: { - if (tag == 24u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -15024,11 +13146,14 @@ bool JointMotorControlCommand::MergePartialFromCodedStream( // repeated double Kp = 4; case 4: { - if (tag == 34u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, this->mutable_kp()))); - } else if (tag == 33u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 1, 34u, input, this->mutable_kp()))); @@ -15040,11 +13165,14 @@ bool JointMotorControlCommand::MergePartialFromCodedStream( // repeated double Kd = 5; case 5: { - if (tag == 42u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, this->mutable_kd()))); - } else if (tag == 41u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 1, 42u, input, this->mutable_kd()))); @@ -15056,11 +13184,14 @@ bool JointMotorControlCommand::MergePartialFromCodedStream( // repeated double maxVelocity = 6; case 6: { - if (tag == 50u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, this->mutable_maxvelocity()))); - } else if (tag == 49u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 1, 50u, input, this->mutable_maxvelocity()))); @@ -15072,11 +13203,14 @@ bool JointMotorControlCommand::MergePartialFromCodedStream( // repeated int32 hasDesiredStateFlags = 7; case 7: { - if (tag == 58u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, this->mutable_hasdesiredstateflags()))); - } else if (tag == 56u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( 1, 58u, input, this->mutable_hasdesiredstateflags()))); @@ -15088,11 +13222,14 @@ bool JointMotorControlCommand::MergePartialFromCodedStream( // repeated double desiredStateQ = 8; case 8: { - if (tag == 66u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, this->mutable_desiredstateq()))); - } else if (tag == 65u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 1, 66u, input, this->mutable_desiredstateq()))); @@ -15104,11 +13241,14 @@ bool JointMotorControlCommand::MergePartialFromCodedStream( // repeated double desiredStateQdot = 9; case 9: { - if (tag == 74u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, this->mutable_desiredstateqdot()))); - } else if (tag == 73u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 1, 74u, input, this->mutable_desiredstateqdot()))); @@ -15120,11 +13260,14 @@ bool JointMotorControlCommand::MergePartialFromCodedStream( // repeated double desiredStateForceTorque = 10; case 10: { - if (tag == 82u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, this->mutable_desiredstateforcetorque()))); - } else if (tag == 81u) { + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(81u /* 81 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 1, 82u, input, this->mutable_desiredstateforcetorque()))); @@ -15136,12 +13279,11 @@ bool JointMotorControlCommand::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -15158,6 +13300,9 @@ failure: void JointMotorControlCommand::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.JointMotorControlCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->bodyuniqueid(), output); @@ -15176,7 +13321,8 @@ void JointMotorControlCommand::SerializeWithCachedSizes( // repeated double Kp = 4; if (this->kp_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_kp_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _kp_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->kp().data(), this->kp_size(), output); } @@ -15184,7 +13330,8 @@ void JointMotorControlCommand::SerializeWithCachedSizes( // repeated double Kd = 5; if (this->kd_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_kd_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _kd_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->kd().data(), this->kd_size(), output); } @@ -15192,7 +13339,8 @@ void JointMotorControlCommand::SerializeWithCachedSizes( // repeated double maxVelocity = 6; if (this->maxvelocity_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_maxvelocity_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _maxvelocity_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->maxvelocity().data(), this->maxvelocity_size(), output); } @@ -15200,9 +13348,10 @@ void JointMotorControlCommand::SerializeWithCachedSizes( // repeated int32 hasDesiredStateFlags = 7; if (this->hasdesiredstateflags_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(7, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_hasdesiredstateflags_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _hasdesiredstateflags_cached_byte_size_)); } - for (int i = 0; i < this->hasdesiredstateflags_size(); i++) { + for (int i = 0, n = this->hasdesiredstateflags_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( this->hasdesiredstateflags(i), output); } @@ -15210,7 +13359,8 @@ void JointMotorControlCommand::SerializeWithCachedSizes( // repeated double desiredStateQ = 8; if (this->desiredstateq_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(8, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_desiredstateq_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _desiredstateq_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->desiredstateq().data(), this->desiredstateq_size(), output); } @@ -15218,7 +13368,8 @@ void JointMotorControlCommand::SerializeWithCachedSizes( // repeated double desiredStateQdot = 9; if (this->desiredstateqdot_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(9, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_desiredstateqdot_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _desiredstateqdot_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->desiredstateqdot().data(), this->desiredstateqdot_size(), output); } @@ -15226,18 +13377,26 @@ void JointMotorControlCommand::SerializeWithCachedSizes( // repeated double desiredStateForceTorque = 10; if (this->desiredstateforcetorque_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(10, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_desiredstateforcetorque_cached_byte_size_); + output->WriteVarint32(static_cast< ::google::protobuf::uint32>( + _desiredstateforcetorque_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->desiredstateforcetorque().data(), this->desiredstateforcetorque_size(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.JointMotorControlCommand) } ::google::protobuf::uint8* JointMotorControlCommand::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.JointMotorControlCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->bodyuniqueid(), target); @@ -15260,11 +13419,10 @@ void JointMotorControlCommand::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _kp_cached_byte_size_, target); - } - for (int i = 0; i < this->kp_size(); i++) { + static_cast< ::google::protobuf::int32>( + _kp_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->kp(i), target); + WriteDoubleNoTagToArray(this->kp_, target); } // repeated double Kd = 5; @@ -15274,11 +13432,10 @@ void JointMotorControlCommand::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _kd_cached_byte_size_, target); - } - for (int i = 0; i < this->kd_size(); i++) { + static_cast< ::google::protobuf::int32>( + _kd_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->kd(i), target); + WriteDoubleNoTagToArray(this->kd_, target); } // repeated double maxVelocity = 6; @@ -15288,11 +13445,10 @@ void JointMotorControlCommand::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _maxvelocity_cached_byte_size_, target); - } - for (int i = 0; i < this->maxvelocity_size(); i++) { + static_cast< ::google::protobuf::int32>( + _maxvelocity_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->maxvelocity(i), target); + WriteDoubleNoTagToArray(this->maxvelocity_, target); } // repeated int32 hasDesiredStateFlags = 7; @@ -15302,11 +13458,10 @@ void JointMotorControlCommand::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _hasdesiredstateflags_cached_byte_size_, target); - } - for (int i = 0; i < this->hasdesiredstateflags_size(); i++) { + static_cast< ::google::protobuf::int32>( + _hasdesiredstateflags_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32NoTagToArray(this->hasdesiredstateflags(i), target); + WriteInt32NoTagToArray(this->hasdesiredstateflags_, target); } // repeated double desiredStateQ = 8; @@ -15316,11 +13471,10 @@ void JointMotorControlCommand::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _desiredstateq_cached_byte_size_, target); - } - for (int i = 0; i < this->desiredstateq_size(); i++) { + static_cast< ::google::protobuf::int32>( + _desiredstateq_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->desiredstateq(i), target); + WriteDoubleNoTagToArray(this->desiredstateq_, target); } // repeated double desiredStateQdot = 9; @@ -15330,11 +13484,10 @@ void JointMotorControlCommand::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _desiredstateqdot_cached_byte_size_, target); - } - for (int i = 0; i < this->desiredstateqdot_size(); i++) { + static_cast< ::google::protobuf::int32>( + _desiredstateqdot_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->desiredstateqdot(i), target); + WriteDoubleNoTagToArray(this->desiredstateqdot_, target); } // repeated double desiredStateForceTorque = 10; @@ -15344,13 +13497,16 @@ void JointMotorControlCommand::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( - _desiredstateforcetorque_cached_byte_size_, target); - } - for (int i = 0; i < this->desiredstateforcetorque_size(); i++) { + static_cast< ::google::protobuf::int32>( + _desiredstateforcetorque_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: - WriteDoubleNoTagToArray(this->desiredstateforcetorque(i), target); + WriteDoubleNoTagToArray(this->desiredstateforcetorque_, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.JointMotorControlCommand) return target; } @@ -15359,13 +13515,19 @@ size_t JointMotorControlCommand::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.JointMotorControlCommand) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // repeated double Kp = 4; { - unsigned int count = this->kp_size(); + unsigned int count = static_cast(this->kp_size()); size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -15376,11 +13538,12 @@ size_t JointMotorControlCommand::ByteSizeLong() const { // repeated double Kd = 5; { - unsigned int count = this->kd_size(); + unsigned int count = static_cast(this->kd_size()); size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -15391,11 +13554,12 @@ size_t JointMotorControlCommand::ByteSizeLong() const { // repeated double maxVelocity = 6; { - unsigned int count = this->maxvelocity_size(); + unsigned int count = static_cast(this->maxvelocity_size()); size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -15410,7 +13574,8 @@ size_t JointMotorControlCommand::ByteSizeLong() const { Int32Size(this->hasdesiredstateflags_); if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -15421,11 +13586,12 @@ size_t JointMotorControlCommand::ByteSizeLong() const { // repeated double desiredStateQ = 8; { - unsigned int count = this->desiredstateq_size(); + unsigned int count = static_cast(this->desiredstateq_size()); size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -15436,11 +13602,12 @@ size_t JointMotorControlCommand::ByteSizeLong() const { // repeated double desiredStateQdot = 9; { - unsigned int count = this->desiredstateqdot_size(); + unsigned int count = static_cast(this->desiredstateqdot_size()); size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -15451,11 +13618,12 @@ size_t JointMotorControlCommand::ByteSizeLong() const { // repeated double desiredStateForceTorque = 10; { - unsigned int count = this->desiredstateforcetorque_size(); + unsigned int count = static_cast(this->desiredstateforcetorque_size()); size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); @@ -15486,9 +13654,7 @@ size_t JointMotorControlCommand::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -15511,6 +13677,9 @@ void JointMotorControlCommand::MergeFrom(const JointMotorControlCommand& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.JointMotorControlCommand) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + kp_.MergeFrom(from.kp_); kd_.MergeFrom(from.kd_); maxvelocity_.MergeFrom(from.maxvelocity_); @@ -15552,283 +13721,36 @@ void JointMotorControlCommand::Swap(JointMotorControlCommand* other) { InternalSwap(other); } void JointMotorControlCommand::InternalSwap(JointMotorControlCommand* other) { - kp_.UnsafeArenaSwap(&other->kp_); - kd_.UnsafeArenaSwap(&other->kd_); - maxvelocity_.UnsafeArenaSwap(&other->maxvelocity_); - hasdesiredstateflags_.UnsafeArenaSwap(&other->hasdesiredstateflags_); - desiredstateq_.UnsafeArenaSwap(&other->desiredstateq_); - desiredstateqdot_.UnsafeArenaSwap(&other->desiredstateqdot_); - desiredstateforcetorque_.UnsafeArenaSwap(&other->desiredstateforcetorque_); - std::swap(bodyuniqueid_, other->bodyuniqueid_); - std::swap(controlmode_, other->controlmode_); - std::swap(updateflags_, other->updateflags_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + kp_.InternalSwap(&other->kp_); + kd_.InternalSwap(&other->kd_); + maxvelocity_.InternalSwap(&other->maxvelocity_); + hasdesiredstateflags_.InternalSwap(&other->hasdesiredstateflags_); + desiredstateq_.InternalSwap(&other->desiredstateq_); + desiredstateqdot_.InternalSwap(&other->desiredstateqdot_); + desiredstateforcetorque_.InternalSwap(&other->desiredstateforcetorque_); + swap(bodyuniqueid_, other->bodyuniqueid_); + swap(controlmode_, other->controlmode_); + swap(updateflags_, other->updateflags_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata JointMotorControlCommand::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[28]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// JointMotorControlCommand - -// int32 bodyUniqueId = 1; -void JointMotorControlCommand::clear_bodyuniqueid() { - bodyuniqueid_ = 0; -} -::google::protobuf::int32 JointMotorControlCommand::bodyuniqueid() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.JointMotorControlCommand.bodyUniqueId) - return bodyuniqueid_; -} -void JointMotorControlCommand::set_bodyuniqueid(::google::protobuf::int32 value) { - - bodyuniqueid_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.JointMotorControlCommand.bodyUniqueId) -} - -// int32 controlMode = 2; -void JointMotorControlCommand::clear_controlmode() { - controlmode_ = 0; -} -::google::protobuf::int32 JointMotorControlCommand::controlmode() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.JointMotorControlCommand.controlMode) - return controlmode_; -} -void JointMotorControlCommand::set_controlmode(::google::protobuf::int32 value) { - - controlmode_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.JointMotorControlCommand.controlMode) -} - -// int32 updateFlags = 3; -void JointMotorControlCommand::clear_updateflags() { - updateflags_ = 0; -} -::google::protobuf::int32 JointMotorControlCommand::updateflags() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.JointMotorControlCommand.updateFlags) - return updateflags_; -} -void JointMotorControlCommand::set_updateflags(::google::protobuf::int32 value) { - - updateflags_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.JointMotorControlCommand.updateFlags) -} - -// repeated double Kp = 4; -int JointMotorControlCommand::kp_size() const { - return kp_.size(); -} -void JointMotorControlCommand::clear_kp() { - kp_.Clear(); -} -double JointMotorControlCommand::kp(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.JointMotorControlCommand.Kp) - return kp_.Get(index); -} -void JointMotorControlCommand::set_kp(int index, double value) { - kp_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.JointMotorControlCommand.Kp) -} -void JointMotorControlCommand::add_kp(double value) { - kp_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.JointMotorControlCommand.Kp) -} -const ::google::protobuf::RepeatedField< double >& -JointMotorControlCommand::kp() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.JointMotorControlCommand.Kp) - return kp_; -} -::google::protobuf::RepeatedField< double >* -JointMotorControlCommand::mutable_kp() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.JointMotorControlCommand.Kp) - return &kp_; -} - -// repeated double Kd = 5; -int JointMotorControlCommand::kd_size() const { - return kd_.size(); -} -void JointMotorControlCommand::clear_kd() { - kd_.Clear(); -} -double JointMotorControlCommand::kd(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.JointMotorControlCommand.Kd) - return kd_.Get(index); -} -void JointMotorControlCommand::set_kd(int index, double value) { - kd_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.JointMotorControlCommand.Kd) -} -void JointMotorControlCommand::add_kd(double value) { - kd_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.JointMotorControlCommand.Kd) -} -const ::google::protobuf::RepeatedField< double >& -JointMotorControlCommand::kd() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.JointMotorControlCommand.Kd) - return kd_; -} -::google::protobuf::RepeatedField< double >* -JointMotorControlCommand::mutable_kd() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.JointMotorControlCommand.Kd) - return &kd_; -} - -// repeated double maxVelocity = 6; -int JointMotorControlCommand::maxvelocity_size() const { - return maxvelocity_.size(); -} -void JointMotorControlCommand::clear_maxvelocity() { - maxvelocity_.Clear(); -} -double JointMotorControlCommand::maxvelocity(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.JointMotorControlCommand.maxVelocity) - return maxvelocity_.Get(index); -} -void JointMotorControlCommand::set_maxvelocity(int index, double value) { - maxvelocity_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.JointMotorControlCommand.maxVelocity) -} -void JointMotorControlCommand::add_maxvelocity(double value) { - maxvelocity_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.JointMotorControlCommand.maxVelocity) -} -const ::google::protobuf::RepeatedField< double >& -JointMotorControlCommand::maxvelocity() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.JointMotorControlCommand.maxVelocity) - return maxvelocity_; -} -::google::protobuf::RepeatedField< double >* -JointMotorControlCommand::mutable_maxvelocity() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.JointMotorControlCommand.maxVelocity) - return &maxvelocity_; -} - -// repeated int32 hasDesiredStateFlags = 7; -int JointMotorControlCommand::hasdesiredstateflags_size() const { - return hasdesiredstateflags_.size(); -} -void JointMotorControlCommand::clear_hasdesiredstateflags() { - hasdesiredstateflags_.Clear(); -} -::google::protobuf::int32 JointMotorControlCommand::hasdesiredstateflags(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.JointMotorControlCommand.hasDesiredStateFlags) - return hasdesiredstateflags_.Get(index); -} -void JointMotorControlCommand::set_hasdesiredstateflags(int index, ::google::protobuf::int32 value) { - hasdesiredstateflags_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.JointMotorControlCommand.hasDesiredStateFlags) -} -void JointMotorControlCommand::add_hasdesiredstateflags(::google::protobuf::int32 value) { - hasdesiredstateflags_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.JointMotorControlCommand.hasDesiredStateFlags) -} -const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -JointMotorControlCommand::hasdesiredstateflags() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.JointMotorControlCommand.hasDesiredStateFlags) - return hasdesiredstateflags_; -} -::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -JointMotorControlCommand::mutable_hasdesiredstateflags() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.JointMotorControlCommand.hasDesiredStateFlags) - return &hasdesiredstateflags_; -} - -// repeated double desiredStateQ = 8; -int JointMotorControlCommand::desiredstateq_size() const { - return desiredstateq_.size(); -} -void JointMotorControlCommand::clear_desiredstateq() { - desiredstateq_.Clear(); -} -double JointMotorControlCommand::desiredstateq(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.JointMotorControlCommand.desiredStateQ) - return desiredstateq_.Get(index); -} -void JointMotorControlCommand::set_desiredstateq(int index, double value) { - desiredstateq_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.JointMotorControlCommand.desiredStateQ) -} -void JointMotorControlCommand::add_desiredstateq(double value) { - desiredstateq_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.JointMotorControlCommand.desiredStateQ) -} -const ::google::protobuf::RepeatedField< double >& -JointMotorControlCommand::desiredstateq() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.JointMotorControlCommand.desiredStateQ) - return desiredstateq_; -} -::google::protobuf::RepeatedField< double >* -JointMotorControlCommand::mutable_desiredstateq() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.JointMotorControlCommand.desiredStateQ) - return &desiredstateq_; -} - -// repeated double desiredStateQdot = 9; -int JointMotorControlCommand::desiredstateqdot_size() const { - return desiredstateqdot_.size(); -} -void JointMotorControlCommand::clear_desiredstateqdot() { - desiredstateqdot_.Clear(); -} -double JointMotorControlCommand::desiredstateqdot(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.JointMotorControlCommand.desiredStateQdot) - return desiredstateqdot_.Get(index); -} -void JointMotorControlCommand::set_desiredstateqdot(int index, double value) { - desiredstateqdot_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.JointMotorControlCommand.desiredStateQdot) -} -void JointMotorControlCommand::add_desiredstateqdot(double value) { - desiredstateqdot_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.JointMotorControlCommand.desiredStateQdot) -} -const ::google::protobuf::RepeatedField< double >& -JointMotorControlCommand::desiredstateqdot() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.JointMotorControlCommand.desiredStateQdot) - return desiredstateqdot_; -} -::google::protobuf::RepeatedField< double >* -JointMotorControlCommand::mutable_desiredstateqdot() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.JointMotorControlCommand.desiredStateQdot) - return &desiredstateqdot_; -} - -// repeated double desiredStateForceTorque = 10; -int JointMotorControlCommand::desiredstateforcetorque_size() const { - return desiredstateforcetorque_.size(); -} -void JointMotorControlCommand::clear_desiredstateforcetorque() { - desiredstateforcetorque_.Clear(); -} -double JointMotorControlCommand::desiredstateforcetorque(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.JointMotorControlCommand.desiredStateForceTorque) - return desiredstateforcetorque_.Get(index); -} -void JointMotorControlCommand::set_desiredstateforcetorque(int index, double value) { - desiredstateforcetorque_.Set(index, value); - // @@protoc_insertion_point(field_set:pybullet_grpc.JointMotorControlCommand.desiredStateForceTorque) -} -void JointMotorControlCommand::add_desiredstateforcetorque(double value) { - desiredstateforcetorque_.Add(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.JointMotorControlCommand.desiredStateForceTorque) -} -const ::google::protobuf::RepeatedField< double >& -JointMotorControlCommand::desiredstateforcetorque() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.JointMotorControlCommand.desiredStateForceTorque) - return desiredstateforcetorque_; -} -::google::protobuf::RepeatedField< double >* -JointMotorControlCommand::mutable_desiredstateforcetorque() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.JointMotorControlCommand.desiredStateForceTorque) - return &desiredstateforcetorque_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void UserConstraintCommand::InitAsDefaultInstance() { + ::pybullet_grpc::_UserConstraintCommand_default_instance_._instance.get_mutable()->parentframe_ = const_cast< ::pybullet_grpc::transform*>( + ::pybullet_grpc::transform::internal_default_instance()); + ::pybullet_grpc::_UserConstraintCommand_default_instance_._instance.get_mutable()->childframe_ = const_cast< ::pybullet_grpc::transform*>( + ::pybullet_grpc::transform::internal_default_instance()); + ::pybullet_grpc::_UserConstraintCommand_default_instance_._instance.get_mutable()->jointaxis_ = const_cast< ::pybullet_grpc::vec3*>( + ::pybullet_grpc::vec3::internal_default_instance()); +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int UserConstraintCommand::kParentBodyIndexFieldNumber; const int UserConstraintCommand::kParentJointIndexFieldNumber; @@ -15849,16 +13771,14 @@ const int UserConstraintCommand::kUpdateFlagsFieldNumber; UserConstraintCommand::UserConstraintCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_UserConstraintCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.UserConstraintCommand) } UserConstraintCommand::UserConstraintCommand(const UserConstraintCommand& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_parentframe()) { parentframe_ = new ::pybullet_grpc::transform(*from.parentframe_); @@ -15876,15 +13796,15 @@ UserConstraintCommand::UserConstraintCommand(const UserConstraintCommand& from) jointaxis_ = NULL; } ::memcpy(&parentbodyindex_, &from.parentbodyindex_, - reinterpret_cast(&erp_) - - reinterpret_cast(&parentbodyindex_) + sizeof(erp_)); + static_cast(reinterpret_cast(&erp_) - + reinterpret_cast(&parentbodyindex_)) + sizeof(erp_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.UserConstraintCommand) } void UserConstraintCommand::SharedCtor() { - ::memset(&parentframe_, 0, reinterpret_cast(&erp_) - - reinterpret_cast(&parentframe_) + sizeof(erp_)); - _cached_size_ = 0; + ::memset(&parentframe_, 0, static_cast( + reinterpret_cast(&erp_) - + reinterpret_cast(&parentframe_)) + sizeof(erp_)); } UserConstraintCommand::~UserConstraintCommand() { @@ -15893,42 +13813,31 @@ UserConstraintCommand::~UserConstraintCommand() { } void UserConstraintCommand::SharedDtor() { - if (this != internal_default_instance()) { - delete parentframe_; - } - if (this != internal_default_instance()) { - delete childframe_; - } - if (this != internal_default_instance()) { - delete jointaxis_; - } + if (this != internal_default_instance()) delete parentframe_; + if (this != internal_default_instance()) delete childframe_; + if (this != internal_default_instance()) delete jointaxis_; } void UserConstraintCommand::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* UserConstraintCommand::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[29].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const UserConstraintCommand& UserConstraintCommand::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_UserConstraintCommand.base); return *internal_default_instance(); } -UserConstraintCommand* UserConstraintCommand::New(::google::protobuf::Arena* arena) const { - UserConstraintCommand* n = new UserConstraintCommand; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void UserConstraintCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.UserConstraintCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + if (GetArenaNoVirtual() == NULL && parentframe_ != NULL) { delete parentframe_; } @@ -15941,8 +13850,10 @@ void UserConstraintCommand::Clear() { delete jointaxis_; } jointaxis_ = NULL; - ::memset(&parentbodyindex_, 0, reinterpret_cast(&erp_) - - reinterpret_cast(&parentbodyindex_) + sizeof(erp_)); + ::memset(&parentbodyindex_, 0, static_cast( + reinterpret_cast(&erp_) - + reinterpret_cast(&parentbodyindex_)) + sizeof(erp_)); + _internal_metadata_.Clear(); } bool UserConstraintCommand::MergePartialFromCodedStream( @@ -15951,13 +13862,14 @@ bool UserConstraintCommand::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.UserConstraintCommand) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 parentBodyIndex = 1; case 1: { - if (tag == 8u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -15970,7 +13882,8 @@ bool UserConstraintCommand::MergePartialFromCodedStream( // int32 parentJointIndex = 2; case 2: { - if (tag == 16u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -15983,7 +13896,8 @@ bool UserConstraintCommand::MergePartialFromCodedStream( // int32 childBodyIndex = 3; case 3: { - if (tag == 24u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -15996,7 +13910,8 @@ bool UserConstraintCommand::MergePartialFromCodedStream( // int32 childJointIndex = 4; case 4: { - if (tag == 32u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -16009,8 +13924,9 @@ bool UserConstraintCommand::MergePartialFromCodedStream( // .pybullet_grpc.transform parentFrame = 5; case 5: { - if (tag == 42u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_parentframe())); } else { goto handle_unusual; @@ -16020,8 +13936,9 @@ bool UserConstraintCommand::MergePartialFromCodedStream( // .pybullet_grpc.transform childFrame = 6; case 6: { - if (tag == 50u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_childframe())); } else { goto handle_unusual; @@ -16031,8 +13948,9 @@ bool UserConstraintCommand::MergePartialFromCodedStream( // .pybullet_grpc.vec3 jointAxis = 7; case 7: { - if (tag == 58u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_jointaxis())); } else { goto handle_unusual; @@ -16042,7 +13960,8 @@ bool UserConstraintCommand::MergePartialFromCodedStream( // int32 jointType = 8; case 8: { - if (tag == 64u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -16055,7 +13974,8 @@ bool UserConstraintCommand::MergePartialFromCodedStream( // double maxAppliedForce = 9; case 9: { - if (tag == 73u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -16068,7 +13988,8 @@ bool UserConstraintCommand::MergePartialFromCodedStream( // int32 userConstraintUniqueId = 10; case 10: { - if (tag == 80u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -16081,7 +14002,8 @@ bool UserConstraintCommand::MergePartialFromCodedStream( // double gearRatio = 11; case 11: { - if (tag == 89u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(89u /* 89 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -16094,7 +14016,8 @@ bool UserConstraintCommand::MergePartialFromCodedStream( // int32 gearAuxLink = 12; case 12: { - if (tag == 96u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -16107,7 +14030,8 @@ bool UserConstraintCommand::MergePartialFromCodedStream( // double relativePositionTarget = 13; case 13: { - if (tag == 105u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(105u /* 105 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -16120,7 +14044,8 @@ bool UserConstraintCommand::MergePartialFromCodedStream( // double erp = 14; case 14: { - if (tag == 113u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(113u /* 113 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -16133,7 +14058,8 @@ bool UserConstraintCommand::MergePartialFromCodedStream( // int32 updateFlags = 15; case 15: { - if (tag == 120u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -16146,12 +14072,11 @@ bool UserConstraintCommand::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -16168,6 +14093,9 @@ failure: void UserConstraintCommand::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.UserConstraintCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 parentBodyIndex = 1; if (this->parentbodyindex() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->parentbodyindex(), output); @@ -16191,19 +14119,19 @@ void UserConstraintCommand::SerializeWithCachedSizes( // .pybullet_grpc.transform parentFrame = 5; if (this->has_parentframe()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, *this->parentframe_, output); + 5, this->_internal_parentframe(), output); } // .pybullet_grpc.transform childFrame = 6; if (this->has_childframe()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, *this->childframe_, output); + 6, this->_internal_childframe(), output); } // .pybullet_grpc.vec3 jointAxis = 7; if (this->has_jointaxis()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, *this->jointaxis_, output); + 7, this->_internal_jointaxis(), output); } // int32 jointType = 8; @@ -16246,13 +14174,20 @@ void UserConstraintCommand::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt32(15, this->updateflags(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.UserConstraintCommand) } ::google::protobuf::uint8* UserConstraintCommand::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.UserConstraintCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 parentBodyIndex = 1; if (this->parentbodyindex() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->parentbodyindex(), target); @@ -16276,22 +14211,22 @@ void UserConstraintCommand::SerializeWithCachedSizes( // .pybullet_grpc.transform parentFrame = 5; if (this->has_parentframe()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 5, *this->parentframe_, false, target); + InternalWriteMessageToArray( + 5, this->_internal_parentframe(), deterministic, target); } // .pybullet_grpc.transform childFrame = 6; if (this->has_childframe()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 6, *this->childframe_, false, target); + InternalWriteMessageToArray( + 6, this->_internal_childframe(), deterministic, target); } // .pybullet_grpc.vec3 jointAxis = 7; if (this->has_jointaxis()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 7, *this->jointaxis_, false, target); + InternalWriteMessageToArray( + 7, this->_internal_jointaxis(), deterministic, target); } // int32 jointType = 8; @@ -16334,6 +14269,10 @@ void UserConstraintCommand::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(15, this->updateflags(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.UserConstraintCommand) return target; } @@ -16342,25 +14281,30 @@ size_t UserConstraintCommand::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.UserConstraintCommand) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // .pybullet_grpc.transform parentFrame = 5; if (this->has_parentframe()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->parentframe_); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *parentframe_); } // .pybullet_grpc.transform childFrame = 6; if (this->has_childframe()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->childframe_); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *childframe_); } // .pybullet_grpc.vec3 jointAxis = 7; if (this->has_jointaxis()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->jointaxis_); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *jointaxis_); } // int32 parentBodyIndex = 1; @@ -16440,9 +14384,7 @@ size_t UserConstraintCommand::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -16465,6 +14407,9 @@ void UserConstraintCommand::MergeFrom(const UserConstraintCommand& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.UserConstraintCommand) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.has_parentframe()) { mutable_parentframe()->::pybullet_grpc::transform::MergeFrom(from.parentframe()); } @@ -16535,321 +14480,35 @@ void UserConstraintCommand::Swap(UserConstraintCommand* other) { InternalSwap(other); } void UserConstraintCommand::InternalSwap(UserConstraintCommand* other) { - std::swap(parentframe_, other->parentframe_); - std::swap(childframe_, other->childframe_); - std::swap(jointaxis_, other->jointaxis_); - std::swap(parentbodyindex_, other->parentbodyindex_); - std::swap(parentjointindex_, other->parentjointindex_); - std::swap(childbodyindex_, other->childbodyindex_); - std::swap(childjointindex_, other->childjointindex_); - std::swap(maxappliedforce_, other->maxappliedforce_); - std::swap(jointtype_, other->jointtype_); - std::swap(userconstraintuniqueid_, other->userconstraintuniqueid_); - std::swap(gearratio_, other->gearratio_); - std::swap(relativepositiontarget_, other->relativepositiontarget_); - std::swap(gearauxlink_, other->gearauxlink_); - std::swap(updateflags_, other->updateflags_); - std::swap(erp_, other->erp_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + swap(parentframe_, other->parentframe_); + swap(childframe_, other->childframe_); + swap(jointaxis_, other->jointaxis_); + swap(parentbodyindex_, other->parentbodyindex_); + swap(parentjointindex_, other->parentjointindex_); + swap(childbodyindex_, other->childbodyindex_); + swap(childjointindex_, other->childjointindex_); + swap(maxappliedforce_, other->maxappliedforce_); + swap(jointtype_, other->jointtype_); + swap(userconstraintuniqueid_, other->userconstraintuniqueid_); + swap(gearratio_, other->gearratio_); + swap(relativepositiontarget_, other->relativepositiontarget_); + swap(gearauxlink_, other->gearauxlink_); + swap(updateflags_, other->updateflags_); + swap(erp_, other->erp_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata UserConstraintCommand::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[29]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// UserConstraintCommand - -// int32 parentBodyIndex = 1; -void UserConstraintCommand::clear_parentbodyindex() { - parentbodyindex_ = 0; -} -::google::protobuf::int32 UserConstraintCommand::parentbodyindex() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.parentBodyIndex) - return parentbodyindex_; -} -void UserConstraintCommand::set_parentbodyindex(::google::protobuf::int32 value) { - - parentbodyindex_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.UserConstraintCommand.parentBodyIndex) -} - -// int32 parentJointIndex = 2; -void UserConstraintCommand::clear_parentjointindex() { - parentjointindex_ = 0; -} -::google::protobuf::int32 UserConstraintCommand::parentjointindex() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.parentJointIndex) - return parentjointindex_; -} -void UserConstraintCommand::set_parentjointindex(::google::protobuf::int32 value) { - - parentjointindex_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.UserConstraintCommand.parentJointIndex) -} - -// int32 childBodyIndex = 3; -void UserConstraintCommand::clear_childbodyindex() { - childbodyindex_ = 0; -} -::google::protobuf::int32 UserConstraintCommand::childbodyindex() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.childBodyIndex) - return childbodyindex_; -} -void UserConstraintCommand::set_childbodyindex(::google::protobuf::int32 value) { - - childbodyindex_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.UserConstraintCommand.childBodyIndex) -} - -// int32 childJointIndex = 4; -void UserConstraintCommand::clear_childjointindex() { - childjointindex_ = 0; -} -::google::protobuf::int32 UserConstraintCommand::childjointindex() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.childJointIndex) - return childjointindex_; -} -void UserConstraintCommand::set_childjointindex(::google::protobuf::int32 value) { - - childjointindex_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.UserConstraintCommand.childJointIndex) -} - -// .pybullet_grpc.transform parentFrame = 5; -bool UserConstraintCommand::has_parentframe() const { - return this != internal_default_instance() && parentframe_ != NULL; -} -void UserConstraintCommand::clear_parentframe() { - if (GetArenaNoVirtual() == NULL && parentframe_ != NULL) delete parentframe_; - parentframe_ = NULL; -} -const ::pybullet_grpc::transform& UserConstraintCommand::parentframe() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.parentFrame) - return parentframe_ != NULL ? *parentframe_ - : *::pybullet_grpc::transform::internal_default_instance(); -} -::pybullet_grpc::transform* UserConstraintCommand::mutable_parentframe() { - - if (parentframe_ == NULL) { - parentframe_ = new ::pybullet_grpc::transform; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.UserConstraintCommand.parentFrame) - return parentframe_; -} -::pybullet_grpc::transform* UserConstraintCommand::release_parentframe() { - // @@protoc_insertion_point(field_release:pybullet_grpc.UserConstraintCommand.parentFrame) - - ::pybullet_grpc::transform* temp = parentframe_; - parentframe_ = NULL; - return temp; -} -void UserConstraintCommand::set_allocated_parentframe(::pybullet_grpc::transform* parentframe) { - delete parentframe_; - parentframe_ = parentframe; - if (parentframe) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.UserConstraintCommand.parentFrame) -} - -// .pybullet_grpc.transform childFrame = 6; -bool UserConstraintCommand::has_childframe() const { - return this != internal_default_instance() && childframe_ != NULL; -} -void UserConstraintCommand::clear_childframe() { - if (GetArenaNoVirtual() == NULL && childframe_ != NULL) delete childframe_; - childframe_ = NULL; -} -const ::pybullet_grpc::transform& UserConstraintCommand::childframe() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.childFrame) - return childframe_ != NULL ? *childframe_ - : *::pybullet_grpc::transform::internal_default_instance(); -} -::pybullet_grpc::transform* UserConstraintCommand::mutable_childframe() { - - if (childframe_ == NULL) { - childframe_ = new ::pybullet_grpc::transform; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.UserConstraintCommand.childFrame) - return childframe_; -} -::pybullet_grpc::transform* UserConstraintCommand::release_childframe() { - // @@protoc_insertion_point(field_release:pybullet_grpc.UserConstraintCommand.childFrame) - - ::pybullet_grpc::transform* temp = childframe_; - childframe_ = NULL; - return temp; -} -void UserConstraintCommand::set_allocated_childframe(::pybullet_grpc::transform* childframe) { - delete childframe_; - childframe_ = childframe; - if (childframe) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.UserConstraintCommand.childFrame) -} - -// .pybullet_grpc.vec3 jointAxis = 7; -bool UserConstraintCommand::has_jointaxis() const { - return this != internal_default_instance() && jointaxis_ != NULL; -} -void UserConstraintCommand::clear_jointaxis() { - if (GetArenaNoVirtual() == NULL && jointaxis_ != NULL) delete jointaxis_; - jointaxis_ = NULL; -} -const ::pybullet_grpc::vec3& UserConstraintCommand::jointaxis() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.jointAxis) - return jointaxis_ != NULL ? *jointaxis_ - : *::pybullet_grpc::vec3::internal_default_instance(); -} -::pybullet_grpc::vec3* UserConstraintCommand::mutable_jointaxis() { - - if (jointaxis_ == NULL) { - jointaxis_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.UserConstraintCommand.jointAxis) - return jointaxis_; -} -::pybullet_grpc::vec3* UserConstraintCommand::release_jointaxis() { - // @@protoc_insertion_point(field_release:pybullet_grpc.UserConstraintCommand.jointAxis) - - ::pybullet_grpc::vec3* temp = jointaxis_; - jointaxis_ = NULL; - return temp; -} -void UserConstraintCommand::set_allocated_jointaxis(::pybullet_grpc::vec3* jointaxis) { - delete jointaxis_; - jointaxis_ = jointaxis; - if (jointaxis) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.UserConstraintCommand.jointAxis) -} - -// int32 jointType = 8; -void UserConstraintCommand::clear_jointtype() { - jointtype_ = 0; -} -::google::protobuf::int32 UserConstraintCommand::jointtype() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.jointType) - return jointtype_; -} -void UserConstraintCommand::set_jointtype(::google::protobuf::int32 value) { - - jointtype_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.UserConstraintCommand.jointType) -} - -// double maxAppliedForce = 9; -void UserConstraintCommand::clear_maxappliedforce() { - maxappliedforce_ = 0; -} -double UserConstraintCommand::maxappliedforce() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.maxAppliedForce) - return maxappliedforce_; -} -void UserConstraintCommand::set_maxappliedforce(double value) { - - maxappliedforce_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.UserConstraintCommand.maxAppliedForce) -} - -// int32 userConstraintUniqueId = 10; -void UserConstraintCommand::clear_userconstraintuniqueid() { - userconstraintuniqueid_ = 0; -} -::google::protobuf::int32 UserConstraintCommand::userconstraintuniqueid() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.userConstraintUniqueId) - return userconstraintuniqueid_; -} -void UserConstraintCommand::set_userconstraintuniqueid(::google::protobuf::int32 value) { - - userconstraintuniqueid_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.UserConstraintCommand.userConstraintUniqueId) -} - -// double gearRatio = 11; -void UserConstraintCommand::clear_gearratio() { - gearratio_ = 0; -} -double UserConstraintCommand::gearratio() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.gearRatio) - return gearratio_; -} -void UserConstraintCommand::set_gearratio(double value) { - - gearratio_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.UserConstraintCommand.gearRatio) -} - -// int32 gearAuxLink = 12; -void UserConstraintCommand::clear_gearauxlink() { - gearauxlink_ = 0; -} -::google::protobuf::int32 UserConstraintCommand::gearauxlink() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.gearAuxLink) - return gearauxlink_; -} -void UserConstraintCommand::set_gearauxlink(::google::protobuf::int32 value) { - - gearauxlink_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.UserConstraintCommand.gearAuxLink) -} - -// double relativePositionTarget = 13; -void UserConstraintCommand::clear_relativepositiontarget() { - relativepositiontarget_ = 0; -} -double UserConstraintCommand::relativepositiontarget() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.relativePositionTarget) - return relativepositiontarget_; -} -void UserConstraintCommand::set_relativepositiontarget(double value) { - - relativepositiontarget_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.UserConstraintCommand.relativePositionTarget) -} - -// double erp = 14; -void UserConstraintCommand::clear_erp() { - erp_ = 0; -} -double UserConstraintCommand::erp() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.erp) - return erp_; -} -void UserConstraintCommand::set_erp(double value) { - - erp_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.UserConstraintCommand.erp) -} - -// int32 updateFlags = 15; -void UserConstraintCommand::clear_updateflags() { - updateflags_ = 0; -} -::google::protobuf::int32 UserConstraintCommand::updateflags() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.updateFlags) - return updateflags_; -} -void UserConstraintCommand::set_updateflags(::google::protobuf::int32 value) { - - updateflags_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.UserConstraintCommand.updateFlags) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void UserConstraintStatus::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int UserConstraintStatus::kMaxAppliedForceFieldNumber; const int UserConstraintStatus::kUserConstraintUniqueIdFieldNumber; @@ -16857,27 +14516,25 @@ const int UserConstraintStatus::kUserConstraintUniqueIdFieldNumber; UserConstraintStatus::UserConstraintStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_UserConstraintStatus.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.UserConstraintStatus) } UserConstraintStatus::UserConstraintStatus(const UserConstraintStatus& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&maxappliedforce_, &from.maxappliedforce_, - reinterpret_cast(&userconstraintuniqueid_) - - reinterpret_cast(&maxappliedforce_) + sizeof(userconstraintuniqueid_)); + ::memcpy(&userconstraintuniqueid_, &from.userconstraintuniqueid_, + static_cast(reinterpret_cast(&maxappliedforce_) - + reinterpret_cast(&userconstraintuniqueid_)) + sizeof(maxappliedforce_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.UserConstraintStatus) } void UserConstraintStatus::SharedCtor() { - ::memset(&maxappliedforce_, 0, reinterpret_cast(&userconstraintuniqueid_) - - reinterpret_cast(&maxappliedforce_) + sizeof(userconstraintuniqueid_)); - _cached_size_ = 0; + ::memset(&userconstraintuniqueid_, 0, static_cast( + reinterpret_cast(&maxappliedforce_) - + reinterpret_cast(&userconstraintuniqueid_)) + sizeof(maxappliedforce_)); } UserConstraintStatus::~UserConstraintStatus() { @@ -16889,32 +14546,29 @@ void UserConstraintStatus::SharedDtor() { } void UserConstraintStatus::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* UserConstraintStatus::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[30].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const UserConstraintStatus& UserConstraintStatus::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_UserConstraintStatus.base); return *internal_default_instance(); } -UserConstraintStatus* UserConstraintStatus::New(::google::protobuf::Arena* arena) const { - UserConstraintStatus* n = new UserConstraintStatus; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void UserConstraintStatus::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.UserConstraintStatus) - ::memset(&maxappliedforce_, 0, reinterpret_cast(&userconstraintuniqueid_) - - reinterpret_cast(&maxappliedforce_) + sizeof(userconstraintuniqueid_)); + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&userconstraintuniqueid_, 0, static_cast( + reinterpret_cast(&maxappliedforce_) - + reinterpret_cast(&userconstraintuniqueid_)) + sizeof(maxappliedforce_)); + _internal_metadata_.Clear(); } bool UserConstraintStatus::MergePartialFromCodedStream( @@ -16923,13 +14577,14 @@ bool UserConstraintStatus::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.UserConstraintStatus) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // double maxAppliedForce = 9; case 9: { - if (tag == 73u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -16942,7 +14597,8 @@ bool UserConstraintStatus::MergePartialFromCodedStream( // int32 userConstraintUniqueId = 10; case 10: { - if (tag == 80u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -16955,12 +14611,11 @@ bool UserConstraintStatus::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -16977,6 +14632,9 @@ failure: void UserConstraintStatus::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.UserConstraintStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // double maxAppliedForce = 9; if (this->maxappliedforce() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(9, this->maxappliedforce(), output); @@ -16987,13 +14645,20 @@ void UserConstraintStatus::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->userconstraintuniqueid(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.UserConstraintStatus) } ::google::protobuf::uint8* UserConstraintStatus::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.UserConstraintStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // double maxAppliedForce = 9; if (this->maxappliedforce() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(9, this->maxappliedforce(), target); @@ -17004,6 +14669,10 @@ void UserConstraintStatus::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->userconstraintuniqueid(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.UserConstraintStatus) return target; } @@ -17012,11 +14681,11 @@ size_t UserConstraintStatus::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.UserConstraintStatus) size_t total_size = 0; - // double maxAppliedForce = 9; - if (this->maxappliedforce() != 0) { - total_size += 1 + 8; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } - // int32 userConstraintUniqueId = 10; if (this->userconstraintuniqueid() != 0) { total_size += 1 + @@ -17024,10 +14693,13 @@ size_t UserConstraintStatus::ByteSizeLong() const { this->userconstraintuniqueid()); } + // double maxAppliedForce = 9; + if (this->maxappliedforce() != 0) { + total_size += 1 + 8; + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -17050,12 +14722,15 @@ void UserConstraintStatus::MergeFrom(const UserConstraintStatus& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.UserConstraintStatus) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.maxappliedforce() != 0) { - set_maxappliedforce(from.maxappliedforce()); - } + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.userconstraintuniqueid() != 0) { set_userconstraintuniqueid(from.userconstraintuniqueid()); } + if (from.maxappliedforce() != 0) { + set_maxappliedforce(from.maxappliedforce()); + } } void UserConstraintStatus::CopyFrom(const ::google::protobuf::Message& from) { @@ -17081,51 +14756,26 @@ void UserConstraintStatus::Swap(UserConstraintStatus* other) { InternalSwap(other); } void UserConstraintStatus::InternalSwap(UserConstraintStatus* other) { - std::swap(maxappliedforce_, other->maxappliedforce_); - std::swap(userconstraintuniqueid_, other->userconstraintuniqueid_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + swap(userconstraintuniqueid_, other->userconstraintuniqueid_); + swap(maxappliedforce_, other->maxappliedforce_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata UserConstraintStatus::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[30]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// UserConstraintStatus - -// double maxAppliedForce = 9; -void UserConstraintStatus::clear_maxappliedforce() { - maxappliedforce_ = 0; -} -double UserConstraintStatus::maxappliedforce() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintStatus.maxAppliedForce) - return maxappliedforce_; -} -void UserConstraintStatus::set_maxappliedforce(double value) { - - maxappliedforce_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.UserConstraintStatus.maxAppliedForce) -} - -// int32 userConstraintUniqueId = 10; -void UserConstraintStatus::clear_userconstraintuniqueid() { - userconstraintuniqueid_ = 0; -} -::google::protobuf::int32 UserConstraintStatus::userconstraintuniqueid() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintStatus.userConstraintUniqueId) - return userconstraintuniqueid_; -} -void UserConstraintStatus::set_userconstraintuniqueid(::google::protobuf::int32 value) { - - userconstraintuniqueid_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.UserConstraintStatus.userConstraintUniqueId) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void UserConstraintStateStatus::InitAsDefaultInstance() { + ::pybullet_grpc::_UserConstraintStateStatus_default_instance_._instance.get_mutable()->appliedconstraintforceslinear_ = const_cast< ::pybullet_grpc::vec3*>( + ::pybullet_grpc::vec3::internal_default_instance()); + ::pybullet_grpc::_UserConstraintStateStatus_default_instance_._instance.get_mutable()->appliedconstraintforcesangular_ = const_cast< ::pybullet_grpc::vec3*>( + ::pybullet_grpc::vec3::internal_default_instance()); +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int UserConstraintStateStatus::kAppliedConstraintForcesLinearFieldNumber; const int UserConstraintStateStatus::kAppliedConstraintForcesAngularFieldNumber; @@ -17134,16 +14784,14 @@ const int UserConstraintStateStatus::kNumDofsFieldNumber; UserConstraintStateStatus::UserConstraintStateStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_UserConstraintStateStatus.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.UserConstraintStateStatus) } UserConstraintStateStatus::UserConstraintStateStatus(const UserConstraintStateStatus& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_appliedconstraintforceslinear()) { appliedconstraintforceslinear_ = new ::pybullet_grpc::vec3(*from.appliedconstraintforceslinear_); @@ -17160,9 +14808,9 @@ UserConstraintStateStatus::UserConstraintStateStatus(const UserConstraintStateSt } void UserConstraintStateStatus::SharedCtor() { - ::memset(&appliedconstraintforceslinear_, 0, reinterpret_cast(&numdofs_) - - reinterpret_cast(&appliedconstraintforceslinear_) + sizeof(numdofs_)); - _cached_size_ = 0; + ::memset(&appliedconstraintforceslinear_, 0, static_cast( + reinterpret_cast(&numdofs_) - + reinterpret_cast(&appliedconstraintforceslinear_)) + sizeof(numdofs_)); } UserConstraintStateStatus::~UserConstraintStateStatus() { @@ -17171,39 +14819,30 @@ UserConstraintStateStatus::~UserConstraintStateStatus() { } void UserConstraintStateStatus::SharedDtor() { - if (this != internal_default_instance()) { - delete appliedconstraintforceslinear_; - } - if (this != internal_default_instance()) { - delete appliedconstraintforcesangular_; - } + if (this != internal_default_instance()) delete appliedconstraintforceslinear_; + if (this != internal_default_instance()) delete appliedconstraintforcesangular_; } void UserConstraintStateStatus::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* UserConstraintStateStatus::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[31].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const UserConstraintStateStatus& UserConstraintStateStatus::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_UserConstraintStateStatus.base); return *internal_default_instance(); } -UserConstraintStateStatus* UserConstraintStateStatus::New(::google::protobuf::Arena* arena) const { - UserConstraintStateStatus* n = new UserConstraintStateStatus; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void UserConstraintStateStatus::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.UserConstraintStateStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + if (GetArenaNoVirtual() == NULL && appliedconstraintforceslinear_ != NULL) { delete appliedconstraintforceslinear_; } @@ -17213,6 +14852,7 @@ void UserConstraintStateStatus::Clear() { } appliedconstraintforcesangular_ = NULL; numdofs_ = 0; + _internal_metadata_.Clear(); } bool UserConstraintStateStatus::MergePartialFromCodedStream( @@ -17221,14 +14861,15 @@ bool UserConstraintStateStatus::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.UserConstraintStateStatus) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .pybullet_grpc.vec3 appliedConstraintForcesLinear = 1; case 1: { - if (tag == 10u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_appliedconstraintforceslinear())); } else { goto handle_unusual; @@ -17238,8 +14879,9 @@ bool UserConstraintStateStatus::MergePartialFromCodedStream( // .pybullet_grpc.vec3 appliedConstraintForcesAngular = 2; case 2: { - if (tag == 18u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_appliedconstraintforcesangular())); } else { goto handle_unusual; @@ -17249,7 +14891,8 @@ bool UserConstraintStateStatus::MergePartialFromCodedStream( // int32 numDofs = 3; case 3: { - if (tag == 24u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -17262,12 +14905,11 @@ bool UserConstraintStateStatus::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -17284,16 +14926,19 @@ failure: void UserConstraintStateStatus::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.UserConstraintStateStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // .pybullet_grpc.vec3 appliedConstraintForcesLinear = 1; if (this->has_appliedconstraintforceslinear()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, *this->appliedconstraintforceslinear_, output); + 1, this->_internal_appliedconstraintforceslinear(), output); } // .pybullet_grpc.vec3 appliedConstraintForcesAngular = 2; if (this->has_appliedconstraintforcesangular()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, *this->appliedconstraintforcesangular_, output); + 2, this->_internal_appliedconstraintforcesangular(), output); } // int32 numDofs = 3; @@ -17301,25 +14946,32 @@ void UserConstraintStateStatus::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->numdofs(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.UserConstraintStateStatus) } ::google::protobuf::uint8* UserConstraintStateStatus::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.UserConstraintStateStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // .pybullet_grpc.vec3 appliedConstraintForcesLinear = 1; if (this->has_appliedconstraintforceslinear()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, *this->appliedconstraintforceslinear_, false, target); + InternalWriteMessageToArray( + 1, this->_internal_appliedconstraintforceslinear(), deterministic, target); } // .pybullet_grpc.vec3 appliedConstraintForcesAngular = 2; if (this->has_appliedconstraintforcesangular()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 2, *this->appliedconstraintforcesangular_, false, target); + InternalWriteMessageToArray( + 2, this->_internal_appliedconstraintforcesangular(), deterministic, target); } // int32 numDofs = 3; @@ -17327,6 +14979,10 @@ void UserConstraintStateStatus::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->numdofs(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.UserConstraintStateStatus) return target; } @@ -17335,18 +14991,23 @@ size_t UserConstraintStateStatus::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.UserConstraintStateStatus) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // .pybullet_grpc.vec3 appliedConstraintForcesLinear = 1; if (this->has_appliedconstraintforceslinear()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->appliedconstraintforceslinear_); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *appliedconstraintforceslinear_); } // .pybullet_grpc.vec3 appliedConstraintForcesAngular = 2; if (this->has_appliedconstraintforcesangular()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->appliedconstraintforcesangular_); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *appliedconstraintforcesangular_); } // int32 numDofs = 3; @@ -17357,9 +15018,7 @@ size_t UserConstraintStateStatus::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -17382,6 +15041,9 @@ void UserConstraintStateStatus::MergeFrom(const UserConstraintStateStatus& from) // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.UserConstraintStateStatus) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.has_appliedconstraintforceslinear()) { mutable_appliedconstraintforceslinear()->::pybullet_grpc::vec3::MergeFrom(from.appliedconstraintforceslinear()); } @@ -17416,137 +15078,41 @@ void UserConstraintStateStatus::Swap(UserConstraintStateStatus* other) { InternalSwap(other); } void UserConstraintStateStatus::InternalSwap(UserConstraintStateStatus* other) { - std::swap(appliedconstraintforceslinear_, other->appliedconstraintforceslinear_); - std::swap(appliedconstraintforcesangular_, other->appliedconstraintforcesangular_); - std::swap(numdofs_, other->numdofs_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + swap(appliedconstraintforceslinear_, other->appliedconstraintforceslinear_); + swap(appliedconstraintforcesangular_, other->appliedconstraintforcesangular_); + swap(numdofs_, other->numdofs_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata UserConstraintStateStatus::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[31]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// UserConstraintStateStatus - -// .pybullet_grpc.vec3 appliedConstraintForcesLinear = 1; -bool UserConstraintStateStatus::has_appliedconstraintforceslinear() const { - return this != internal_default_instance() && appliedconstraintforceslinear_ != NULL; -} -void UserConstraintStateStatus::clear_appliedconstraintforceslinear() { - if (GetArenaNoVirtual() == NULL && appliedconstraintforceslinear_ != NULL) delete appliedconstraintforceslinear_; - appliedconstraintforceslinear_ = NULL; -} -const ::pybullet_grpc::vec3& UserConstraintStateStatus::appliedconstraintforceslinear() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintStateStatus.appliedConstraintForcesLinear) - return appliedconstraintforceslinear_ != NULL ? *appliedconstraintforceslinear_ - : *::pybullet_grpc::vec3::internal_default_instance(); -} -::pybullet_grpc::vec3* UserConstraintStateStatus::mutable_appliedconstraintforceslinear() { - - if (appliedconstraintforceslinear_ == NULL) { - appliedconstraintforceslinear_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.UserConstraintStateStatus.appliedConstraintForcesLinear) - return appliedconstraintforceslinear_; -} -::pybullet_grpc::vec3* UserConstraintStateStatus::release_appliedconstraintforceslinear() { - // @@protoc_insertion_point(field_release:pybullet_grpc.UserConstraintStateStatus.appliedConstraintForcesLinear) - - ::pybullet_grpc::vec3* temp = appliedconstraintforceslinear_; - appliedconstraintforceslinear_ = NULL; - return temp; -} -void UserConstraintStateStatus::set_allocated_appliedconstraintforceslinear(::pybullet_grpc::vec3* appliedconstraintforceslinear) { - delete appliedconstraintforceslinear_; - appliedconstraintforceslinear_ = appliedconstraintforceslinear; - if (appliedconstraintforceslinear) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.UserConstraintStateStatus.appliedConstraintForcesLinear) -} - -// .pybullet_grpc.vec3 appliedConstraintForcesAngular = 2; -bool UserConstraintStateStatus::has_appliedconstraintforcesangular() const { - return this != internal_default_instance() && appliedconstraintforcesangular_ != NULL; -} -void UserConstraintStateStatus::clear_appliedconstraintforcesangular() { - if (GetArenaNoVirtual() == NULL && appliedconstraintforcesangular_ != NULL) delete appliedconstraintforcesangular_; - appliedconstraintforcesangular_ = NULL; -} -const ::pybullet_grpc::vec3& UserConstraintStateStatus::appliedconstraintforcesangular() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintStateStatus.appliedConstraintForcesAngular) - return appliedconstraintforcesangular_ != NULL ? *appliedconstraintforcesangular_ - : *::pybullet_grpc::vec3::internal_default_instance(); -} -::pybullet_grpc::vec3* UserConstraintStateStatus::mutable_appliedconstraintforcesangular() { - - if (appliedconstraintforcesangular_ == NULL) { - appliedconstraintforcesangular_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.UserConstraintStateStatus.appliedConstraintForcesAngular) - return appliedconstraintforcesangular_; -} -::pybullet_grpc::vec3* UserConstraintStateStatus::release_appliedconstraintforcesangular() { - // @@protoc_insertion_point(field_release:pybullet_grpc.UserConstraintStateStatus.appliedConstraintForcesAngular) - - ::pybullet_grpc::vec3* temp = appliedconstraintforcesangular_; - appliedconstraintforcesangular_ = NULL; - return temp; -} -void UserConstraintStateStatus::set_allocated_appliedconstraintforcesangular(::pybullet_grpc::vec3* appliedconstraintforcesangular) { - delete appliedconstraintforcesangular_; - appliedconstraintforcesangular_ = appliedconstraintforcesangular; - if (appliedconstraintforcesangular) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.UserConstraintStateStatus.appliedConstraintForcesAngular) -} - -// int32 numDofs = 3; -void UserConstraintStateStatus::clear_numdofs() { - numdofs_ = 0; -} -::google::protobuf::int32 UserConstraintStateStatus::numdofs() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintStateStatus.numDofs) - return numdofs_; -} -void UserConstraintStateStatus::set_numdofs(::google::protobuf::int32 value) { - - numdofs_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.UserConstraintStateStatus.numDofs) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void RequestKeyboardEventsCommand::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 RequestKeyboardEventsCommand::RequestKeyboardEventsCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_RequestKeyboardEventsCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.RequestKeyboardEventsCommand) } RequestKeyboardEventsCommand::RequestKeyboardEventsCommand(const RequestKeyboardEventsCommand& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.RequestKeyboardEventsCommand) } void RequestKeyboardEventsCommand::SharedCtor() { - _cached_size_ = 0; } RequestKeyboardEventsCommand::~RequestKeyboardEventsCommand() { @@ -17558,30 +15124,26 @@ void RequestKeyboardEventsCommand::SharedDtor() { } void RequestKeyboardEventsCommand::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* RequestKeyboardEventsCommand::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[32].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const RequestKeyboardEventsCommand& RequestKeyboardEventsCommand::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_RequestKeyboardEventsCommand.base); return *internal_default_instance(); } -RequestKeyboardEventsCommand* RequestKeyboardEventsCommand::New(::google::protobuf::Arena* arena) const { - RequestKeyboardEventsCommand* n = new RequestKeyboardEventsCommand; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void RequestKeyboardEventsCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.RequestKeyboardEventsCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); } bool RequestKeyboardEventsCommand::MergePartialFromCodedStream( @@ -17590,16 +15152,15 @@ bool RequestKeyboardEventsCommand::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.RequestKeyboardEventsCommand) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.RequestKeyboardEventsCommand) @@ -17613,13 +15174,27 @@ failure: void RequestKeyboardEventsCommand::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.RequestKeyboardEventsCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.RequestKeyboardEventsCommand) } ::google::protobuf::uint8* RequestKeyboardEventsCommand::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.RequestKeyboardEventsCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.RequestKeyboardEventsCommand) return target; } @@ -17628,10 +15203,13 @@ size_t RequestKeyboardEventsCommand::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.RequestKeyboardEventsCommand) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -17654,6 +15232,9 @@ void RequestKeyboardEventsCommand::MergeFrom(const RequestKeyboardEventsCommand& // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.RequestKeyboardEventsCommand) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + } void RequestKeyboardEventsCommand::CopyFrom(const ::google::protobuf::Message& from) { @@ -17679,21 +15260,20 @@ void RequestKeyboardEventsCommand::Swap(RequestKeyboardEventsCommand* other) { InternalSwap(other); } void RequestKeyboardEventsCommand::InternalSwap(RequestKeyboardEventsCommand* other) { - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata RequestKeyboardEventsCommand::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[32]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// RequestKeyboardEventsCommand - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void KeyboardEvent::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int KeyboardEvent::kKeyCodeFieldNumber; const int KeyboardEvent::kKeyStateFieldNumber; @@ -17701,27 +15281,25 @@ const int KeyboardEvent::kKeyStateFieldNumber; KeyboardEvent::KeyboardEvent() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_KeyboardEvent.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.KeyboardEvent) } KeyboardEvent::KeyboardEvent(const KeyboardEvent& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&keycode_, &from.keycode_, - reinterpret_cast(&keystate_) - - reinterpret_cast(&keycode_) + sizeof(keystate_)); + static_cast(reinterpret_cast(&keystate_) - + reinterpret_cast(&keycode_)) + sizeof(keystate_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.KeyboardEvent) } void KeyboardEvent::SharedCtor() { - ::memset(&keycode_, 0, reinterpret_cast(&keystate_) - - reinterpret_cast(&keycode_) + sizeof(keystate_)); - _cached_size_ = 0; + ::memset(&keycode_, 0, static_cast( + reinterpret_cast(&keystate_) - + reinterpret_cast(&keycode_)) + sizeof(keystate_)); } KeyboardEvent::~KeyboardEvent() { @@ -17733,32 +15311,29 @@ void KeyboardEvent::SharedDtor() { } void KeyboardEvent::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* KeyboardEvent::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[33].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const KeyboardEvent& KeyboardEvent::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_KeyboardEvent.base); return *internal_default_instance(); } -KeyboardEvent* KeyboardEvent::New(::google::protobuf::Arena* arena) const { - KeyboardEvent* n = new KeyboardEvent; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void KeyboardEvent::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.KeyboardEvent) - ::memset(&keycode_, 0, reinterpret_cast(&keystate_) - - reinterpret_cast(&keycode_) + sizeof(keystate_)); + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&keycode_, 0, static_cast( + reinterpret_cast(&keystate_) - + reinterpret_cast(&keycode_)) + sizeof(keystate_)); + _internal_metadata_.Clear(); } bool KeyboardEvent::MergePartialFromCodedStream( @@ -17767,13 +15342,14 @@ bool KeyboardEvent::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.KeyboardEvent) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 keyCode = 1; case 1: { - if (tag == 8u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -17786,7 +15362,8 @@ bool KeyboardEvent::MergePartialFromCodedStream( // int32 keyState = 2; case 2: { - if (tag == 16u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -17799,12 +15376,11 @@ bool KeyboardEvent::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -17821,6 +15397,9 @@ failure: void KeyboardEvent::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.KeyboardEvent) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 keyCode = 1; if (this->keycode() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->keycode(), output); @@ -17831,13 +15410,20 @@ void KeyboardEvent::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->keystate(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.KeyboardEvent) } ::google::protobuf::uint8* KeyboardEvent::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.KeyboardEvent) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 keyCode = 1; if (this->keycode() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->keycode(), target); @@ -17848,6 +15434,10 @@ void KeyboardEvent::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->keystate(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.KeyboardEvent) return target; } @@ -17856,6 +15446,11 @@ size_t KeyboardEvent::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.KeyboardEvent) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // int32 keyCode = 1; if (this->keycode() != 0) { total_size += 1 + @@ -17871,9 +15466,7 @@ size_t KeyboardEvent::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -17896,6 +15489,9 @@ void KeyboardEvent::MergeFrom(const KeyboardEvent& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.KeyboardEvent) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.keycode() != 0) { set_keycode(from.keycode()); } @@ -17927,74 +15523,42 @@ void KeyboardEvent::Swap(KeyboardEvent* other) { InternalSwap(other); } void KeyboardEvent::InternalSwap(KeyboardEvent* other) { - std::swap(keycode_, other->keycode_); - std::swap(keystate_, other->keystate_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + swap(keycode_, other->keycode_); + swap(keystate_, other->keystate_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata KeyboardEvent::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[33]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// KeyboardEvent - -// int32 keyCode = 1; -void KeyboardEvent::clear_keycode() { - keycode_ = 0; -} -::google::protobuf::int32 KeyboardEvent::keycode() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.KeyboardEvent.keyCode) - return keycode_; -} -void KeyboardEvent::set_keycode(::google::protobuf::int32 value) { - - keycode_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.KeyboardEvent.keyCode) -} - -// int32 keyState = 2; -void KeyboardEvent::clear_keystate() { - keystate_ = 0; -} -::google::protobuf::int32 KeyboardEvent::keystate() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.KeyboardEvent.keyState) - return keystate_; -} -void KeyboardEvent::set_keystate(::google::protobuf::int32 value) { - - keystate_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.KeyboardEvent.keyState) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void KeyboardEventsStatus::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int KeyboardEventsStatus::kKeyboardEventsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 KeyboardEventsStatus::KeyboardEventsStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_KeyboardEventsStatus.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.KeyboardEventsStatus) } KeyboardEventsStatus::KeyboardEventsStatus(const KeyboardEventsStatus& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), - keyboardevents_(from.keyboardevents_), - _cached_size_(0) { + keyboardevents_(from.keyboardevents_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.KeyboardEventsStatus) } void KeyboardEventsStatus::SharedCtor() { - _cached_size_ = 0; } KeyboardEventsStatus::~KeyboardEventsStatus() { @@ -18006,31 +15570,27 @@ void KeyboardEventsStatus::SharedDtor() { } void KeyboardEventsStatus::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* KeyboardEventsStatus::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[34].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const KeyboardEventsStatus& KeyboardEventsStatus::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_KeyboardEventsStatus.base); return *internal_default_instance(); } -KeyboardEventsStatus* KeyboardEventsStatus::New(::google::protobuf::Arena* arena) const { - KeyboardEventsStatus* n = new KeyboardEventsStatus; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void KeyboardEventsStatus::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.KeyboardEventsStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + keyboardevents_.Clear(); + _internal_metadata_.Clear(); } bool KeyboardEventsStatus::MergePartialFromCodedStream( @@ -18039,31 +15599,29 @@ bool KeyboardEventsStatus::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.KeyboardEventsStatus) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .pybullet_grpc.KeyboardEvent keyboardEvents = 1; case 1: { - if (tag == 10u) { - DO_(input->IncrementRecursionDepth()); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, add_keyboardevents())); } else { goto handle_unusual; } - input->UnsafeDecrementRecursionDepth(); break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -18080,26 +15638,44 @@ failure: void KeyboardEventsStatus::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.KeyboardEventsStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated .pybullet_grpc.KeyboardEvent keyboardEvents = 1; - for (unsigned int i = 0, n = this->keyboardevents_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->keyboardevents_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->keyboardevents(i), output); + 1, + this->keyboardevents(static_cast(i)), + output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.KeyboardEventsStatus) } ::google::protobuf::uint8* KeyboardEventsStatus::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.KeyboardEventsStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // repeated .pybullet_grpc.KeyboardEvent keyboardEvents = 1; - for (unsigned int i = 0, n = this->keyboardevents_size(); i < n; i++) { + for (unsigned int i = 0, + n = static_cast(this->keyboardevents_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 1, this->keyboardevents(i), false, target); + InternalWriteMessageToArray( + 1, this->keyboardevents(static_cast(i)), deterministic, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.KeyboardEventsStatus) return target; } @@ -18108,21 +15684,24 @@ size_t KeyboardEventsStatus::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.KeyboardEventsStatus) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // repeated .pybullet_grpc.KeyboardEvent keyboardEvents = 1; { - unsigned int count = this->keyboardevents_size(); + unsigned int count = static_cast(this->keyboardevents_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->keyboardevents(i)); + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->keyboardevents(static_cast(i))); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -18145,6 +15724,9 @@ void KeyboardEventsStatus::MergeFrom(const KeyboardEventsStatus& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.KeyboardEventsStatus) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + keyboardevents_.MergeFrom(from.keyboardevents_); } @@ -18171,52 +15753,33 @@ void KeyboardEventsStatus::Swap(KeyboardEventsStatus* other) { InternalSwap(other); } void KeyboardEventsStatus::InternalSwap(KeyboardEventsStatus* other) { - keyboardevents_.UnsafeArenaSwap(&other->keyboardevents_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + CastToBase(&keyboardevents_)->InternalSwap(CastToBase(&other->keyboardevents_)); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata KeyboardEventsStatus::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[34]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// KeyboardEventsStatus - -// repeated .pybullet_grpc.KeyboardEvent keyboardEvents = 1; -int KeyboardEventsStatus::keyboardevents_size() const { - return keyboardevents_.size(); -} -void KeyboardEventsStatus::clear_keyboardevents() { - keyboardevents_.Clear(); -} -const ::pybullet_grpc::KeyboardEvent& KeyboardEventsStatus::keyboardevents(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.KeyboardEventsStatus.keyboardEvents) - return keyboardevents_.Get(index); -} -::pybullet_grpc::KeyboardEvent* KeyboardEventsStatus::mutable_keyboardevents(int index) { - // @@protoc_insertion_point(field_mutable:pybullet_grpc.KeyboardEventsStatus.keyboardEvents) - return keyboardevents_.Mutable(index); -} -::pybullet_grpc::KeyboardEvent* KeyboardEventsStatus::add_keyboardevents() { - // @@protoc_insertion_point(field_add:pybullet_grpc.KeyboardEventsStatus.keyboardEvents) - return keyboardevents_.Add(); -} -::google::protobuf::RepeatedPtrField< ::pybullet_grpc::KeyboardEvent >* -KeyboardEventsStatus::mutable_keyboardevents() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.KeyboardEventsStatus.keyboardEvents) - return &keyboardevents_; -} -const ::google::protobuf::RepeatedPtrField< ::pybullet_grpc::KeyboardEvent >& -KeyboardEventsStatus::keyboardevents() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.KeyboardEventsStatus.keyboardEvents) - return keyboardevents_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void RequestCameraImageCommand::InitAsDefaultInstance() { + ::pybullet_grpc::_RequestCameraImageCommand_default_instance_._instance.get_mutable()->viewmatrix_ = const_cast< ::pybullet_grpc::matrix4x4*>( + ::pybullet_grpc::matrix4x4::internal_default_instance()); + ::pybullet_grpc::_RequestCameraImageCommand_default_instance_._instance.get_mutable()->projectionmatrix_ = const_cast< ::pybullet_grpc::matrix4x4*>( + ::pybullet_grpc::matrix4x4::internal_default_instance()); + ::pybullet_grpc::_RequestCameraImageCommand_default_instance_._instance.get_mutable()->lightdirection_ = const_cast< ::pybullet_grpc::vec3*>( + ::pybullet_grpc::vec3::internal_default_instance()); + ::pybullet_grpc::_RequestCameraImageCommand_default_instance_._instance.get_mutable()->lightcolor_ = const_cast< ::pybullet_grpc::vec3*>( + ::pybullet_grpc::vec3::internal_default_instance()); + ::pybullet_grpc::_RequestCameraImageCommand_default_instance_._instance.get_mutable()->projectivetextureviewmatrix_ = const_cast< ::pybullet_grpc::matrix4x4*>( + ::pybullet_grpc::matrix4x4::internal_default_instance()); + ::pybullet_grpc::_RequestCameraImageCommand_default_instance_._instance.get_mutable()->projectivetextureprojectionmatrix_ = const_cast< ::pybullet_grpc::matrix4x4*>( + ::pybullet_grpc::matrix4x4::internal_default_instance()); +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int RequestCameraImageCommand::kUpdateFlagsFieldNumber; const int RequestCameraImageCommand::kCameraFlagsFieldNumber; @@ -18238,16 +15801,14 @@ const int RequestCameraImageCommand::kProjectiveTextureProjectionMatrixFieldNumb RequestCameraImageCommand::RequestCameraImageCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_RequestCameraImageCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.RequestCameraImageCommand) } RequestCameraImageCommand::RequestCameraImageCommand(const RequestCameraImageCommand& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_viewmatrix()) { viewmatrix_ = new ::pybullet_grpc::matrix4x4(*from.viewmatrix_); @@ -18280,15 +15841,15 @@ RequestCameraImageCommand::RequestCameraImageCommand(const RequestCameraImageCom projectivetextureprojectionmatrix_ = NULL; } ::memcpy(&updateflags_, &from.updateflags_, - reinterpret_cast(&lightspecularcoeff_) - - reinterpret_cast(&updateflags_) + sizeof(lightspecularcoeff_)); + static_cast(reinterpret_cast(&lightspecularcoeff_) - + reinterpret_cast(&updateflags_)) + sizeof(lightspecularcoeff_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.RequestCameraImageCommand) } void RequestCameraImageCommand::SharedCtor() { - ::memset(&viewmatrix_, 0, reinterpret_cast(&lightspecularcoeff_) - - reinterpret_cast(&viewmatrix_) + sizeof(lightspecularcoeff_)); - _cached_size_ = 0; + ::memset(&viewmatrix_, 0, static_cast( + reinterpret_cast(&lightspecularcoeff_) - + reinterpret_cast(&viewmatrix_)) + sizeof(lightspecularcoeff_)); } RequestCameraImageCommand::~RequestCameraImageCommand() { @@ -18297,51 +15858,34 @@ RequestCameraImageCommand::~RequestCameraImageCommand() { } void RequestCameraImageCommand::SharedDtor() { - if (this != internal_default_instance()) { - delete viewmatrix_; - } - if (this != internal_default_instance()) { - delete projectionmatrix_; - } - if (this != internal_default_instance()) { - delete lightdirection_; - } - if (this != internal_default_instance()) { - delete lightcolor_; - } - if (this != internal_default_instance()) { - delete projectivetextureviewmatrix_; - } - if (this != internal_default_instance()) { - delete projectivetextureprojectionmatrix_; - } + if (this != internal_default_instance()) delete viewmatrix_; + if (this != internal_default_instance()) delete projectionmatrix_; + if (this != internal_default_instance()) delete lightdirection_; + if (this != internal_default_instance()) delete lightcolor_; + if (this != internal_default_instance()) delete projectivetextureviewmatrix_; + if (this != internal_default_instance()) delete projectivetextureprojectionmatrix_; } void RequestCameraImageCommand::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* RequestCameraImageCommand::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[35].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const RequestCameraImageCommand& RequestCameraImageCommand::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_RequestCameraImageCommand.base); return *internal_default_instance(); } -RequestCameraImageCommand* RequestCameraImageCommand::New(::google::protobuf::Arena* arena) const { - RequestCameraImageCommand* n = new RequestCameraImageCommand; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void RequestCameraImageCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.RequestCameraImageCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + if (GetArenaNoVirtual() == NULL && viewmatrix_ != NULL) { delete viewmatrix_; } @@ -18366,8 +15910,10 @@ void RequestCameraImageCommand::Clear() { delete projectivetextureprojectionmatrix_; } projectivetextureprojectionmatrix_ = NULL; - ::memset(&updateflags_, 0, reinterpret_cast(&lightspecularcoeff_) - - reinterpret_cast(&updateflags_) + sizeof(lightspecularcoeff_)); + ::memset(&updateflags_, 0, static_cast( + reinterpret_cast(&lightspecularcoeff_) - + reinterpret_cast(&updateflags_)) + sizeof(lightspecularcoeff_)); + _internal_metadata_.Clear(); } bool RequestCameraImageCommand::MergePartialFromCodedStream( @@ -18376,13 +15922,14 @@ bool RequestCameraImageCommand::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.RequestCameraImageCommand) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 updateFlags = 1; case 1: { - if (tag == 8u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -18395,7 +15942,8 @@ bool RequestCameraImageCommand::MergePartialFromCodedStream( // int32 cameraFlags = 2; case 2: { - if (tag == 16u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -18408,8 +15956,9 @@ bool RequestCameraImageCommand::MergePartialFromCodedStream( // .pybullet_grpc.matrix4x4 viewMatrix = 3; case 3: { - if (tag == 26u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_viewmatrix())); } else { goto handle_unusual; @@ -18419,8 +15968,9 @@ bool RequestCameraImageCommand::MergePartialFromCodedStream( // .pybullet_grpc.matrix4x4 projectionMatrix = 4; case 4: { - if (tag == 34u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_projectionmatrix())); } else { goto handle_unusual; @@ -18430,7 +15980,8 @@ bool RequestCameraImageCommand::MergePartialFromCodedStream( // int32 startPixelIndex = 5; case 5: { - if (tag == 40u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -18443,7 +15994,8 @@ bool RequestCameraImageCommand::MergePartialFromCodedStream( // int32 pixelWidth = 6; case 6: { - if (tag == 48u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -18456,7 +16008,8 @@ bool RequestCameraImageCommand::MergePartialFromCodedStream( // int32 pixelHeight = 7; case 7: { - if (tag == 56u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -18469,8 +16022,9 @@ bool RequestCameraImageCommand::MergePartialFromCodedStream( // .pybullet_grpc.vec3 lightDirection = 8; case 8: { - if (tag == 66u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_lightdirection())); } else { goto handle_unusual; @@ -18480,8 +16034,9 @@ bool RequestCameraImageCommand::MergePartialFromCodedStream( // .pybullet_grpc.vec3 lightColor = 9; case 9: { - if (tag == 74u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_lightcolor())); } else { goto handle_unusual; @@ -18491,7 +16046,8 @@ bool RequestCameraImageCommand::MergePartialFromCodedStream( // double lightDistance = 10; case 10: { - if (tag == 81u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(81u /* 81 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -18504,7 +16060,8 @@ bool RequestCameraImageCommand::MergePartialFromCodedStream( // double lightAmbientCoeff = 11; case 11: { - if (tag == 89u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(89u /* 89 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -18517,7 +16074,8 @@ bool RequestCameraImageCommand::MergePartialFromCodedStream( // double lightDiffuseCoeff = 12; case 12: { - if (tag == 97u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(97u /* 97 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -18530,7 +16088,8 @@ bool RequestCameraImageCommand::MergePartialFromCodedStream( // double lightSpecularCoeff = 13; case 13: { - if (tag == 105u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(105u /* 105 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( @@ -18543,7 +16102,8 @@ bool RequestCameraImageCommand::MergePartialFromCodedStream( // int32 hasShadow = 14; case 14: { - if (tag == 112u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -18556,8 +16116,9 @@ bool RequestCameraImageCommand::MergePartialFromCodedStream( // .pybullet_grpc.matrix4x4 projectiveTextureViewMatrix = 15; case 15: { - if (tag == 122u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_projectivetextureviewmatrix())); } else { goto handle_unusual; @@ -18567,8 +16128,9 @@ bool RequestCameraImageCommand::MergePartialFromCodedStream( // .pybullet_grpc.matrix4x4 projectiveTextureProjectionMatrix = 16; case 16: { - if (tag == 130u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_projectivetextureprojectionmatrix())); } else { goto handle_unusual; @@ -18578,12 +16140,11 @@ bool RequestCameraImageCommand::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -18600,6 +16161,9 @@ failure: void RequestCameraImageCommand::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.RequestCameraImageCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 updateFlags = 1; if (this->updateflags() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->updateflags(), output); @@ -18613,13 +16177,13 @@ void RequestCameraImageCommand::SerializeWithCachedSizes( // .pybullet_grpc.matrix4x4 viewMatrix = 3; if (this->has_viewmatrix()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, *this->viewmatrix_, output); + 3, this->_internal_viewmatrix(), output); } // .pybullet_grpc.matrix4x4 projectionMatrix = 4; if (this->has_projectionmatrix()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, *this->projectionmatrix_, output); + 4, this->_internal_projectionmatrix(), output); } // int32 startPixelIndex = 5; @@ -18640,13 +16204,13 @@ void RequestCameraImageCommand::SerializeWithCachedSizes( // .pybullet_grpc.vec3 lightDirection = 8; if (this->has_lightdirection()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, *this->lightdirection_, output); + 8, this->_internal_lightdirection(), output); } // .pybullet_grpc.vec3 lightColor = 9; if (this->has_lightcolor()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, *this->lightcolor_, output); + 9, this->_internal_lightcolor(), output); } // double lightDistance = 10; @@ -18677,22 +16241,29 @@ void RequestCameraImageCommand::SerializeWithCachedSizes( // .pybullet_grpc.matrix4x4 projectiveTextureViewMatrix = 15; if (this->has_projectivetextureviewmatrix()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 15, *this->projectivetextureviewmatrix_, output); + 15, this->_internal_projectivetextureviewmatrix(), output); } // .pybullet_grpc.matrix4x4 projectiveTextureProjectionMatrix = 16; if (this->has_projectivetextureprojectionmatrix()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 16, *this->projectivetextureprojectionmatrix_, output); + 16, this->_internal_projectivetextureprojectionmatrix(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.RequestCameraImageCommand) } ::google::protobuf::uint8* RequestCameraImageCommand::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.RequestCameraImageCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 updateFlags = 1; if (this->updateflags() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->updateflags(), target); @@ -18706,15 +16277,15 @@ void RequestCameraImageCommand::SerializeWithCachedSizes( // .pybullet_grpc.matrix4x4 viewMatrix = 3; if (this->has_viewmatrix()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 3, *this->viewmatrix_, false, target); + InternalWriteMessageToArray( + 3, this->_internal_viewmatrix(), deterministic, target); } // .pybullet_grpc.matrix4x4 projectionMatrix = 4; if (this->has_projectionmatrix()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, *this->projectionmatrix_, false, target); + InternalWriteMessageToArray( + 4, this->_internal_projectionmatrix(), deterministic, target); } // int32 startPixelIndex = 5; @@ -18735,15 +16306,15 @@ void RequestCameraImageCommand::SerializeWithCachedSizes( // .pybullet_grpc.vec3 lightDirection = 8; if (this->has_lightdirection()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 8, *this->lightdirection_, false, target); + InternalWriteMessageToArray( + 8, this->_internal_lightdirection(), deterministic, target); } // .pybullet_grpc.vec3 lightColor = 9; if (this->has_lightcolor()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 9, *this->lightcolor_, false, target); + InternalWriteMessageToArray( + 9, this->_internal_lightcolor(), deterministic, target); } // double lightDistance = 10; @@ -18774,17 +16345,21 @@ void RequestCameraImageCommand::SerializeWithCachedSizes( // .pybullet_grpc.matrix4x4 projectiveTextureViewMatrix = 15; if (this->has_projectivetextureviewmatrix()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 15, *this->projectivetextureviewmatrix_, false, target); + InternalWriteMessageToArray( + 15, this->_internal_projectivetextureviewmatrix(), deterministic, target); } // .pybullet_grpc.matrix4x4 projectiveTextureProjectionMatrix = 16; if (this->has_projectivetextureprojectionmatrix()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 16, *this->projectivetextureprojectionmatrix_, false, target); + InternalWriteMessageToArray( + 16, this->_internal_projectivetextureprojectionmatrix(), deterministic, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.RequestCameraImageCommand) return target; } @@ -18793,46 +16368,51 @@ size_t RequestCameraImageCommand::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.RequestCameraImageCommand) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // .pybullet_grpc.matrix4x4 viewMatrix = 3; if (this->has_viewmatrix()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->viewmatrix_); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *viewmatrix_); } // .pybullet_grpc.matrix4x4 projectionMatrix = 4; if (this->has_projectionmatrix()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->projectionmatrix_); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *projectionmatrix_); } // .pybullet_grpc.vec3 lightDirection = 8; if (this->has_lightdirection()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->lightdirection_); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *lightdirection_); } // .pybullet_grpc.vec3 lightColor = 9; if (this->has_lightcolor()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->lightcolor_); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *lightcolor_); } // .pybullet_grpc.matrix4x4 projectiveTextureViewMatrix = 15; if (this->has_projectivetextureviewmatrix()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->projectivetextureviewmatrix_); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *projectivetextureviewmatrix_); } // .pybullet_grpc.matrix4x4 projectiveTextureProjectionMatrix = 16; if (this->has_projectivetextureprojectionmatrix()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - *this->projectivetextureprojectionmatrix_); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *projectivetextureprojectionmatrix_); } // int32 updateFlags = 1; @@ -18898,9 +16478,7 @@ size_t RequestCameraImageCommand::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -18923,6 +16501,9 @@ void RequestCameraImageCommand::MergeFrom(const RequestCameraImageCommand& from) // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.RequestCameraImageCommand) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.has_viewmatrix()) { mutable_viewmatrix()->::pybullet_grpc::matrix4x4::MergeFrom(from.viewmatrix()); } @@ -18996,411 +16577,36 @@ void RequestCameraImageCommand::Swap(RequestCameraImageCommand* other) { InternalSwap(other); } void RequestCameraImageCommand::InternalSwap(RequestCameraImageCommand* other) { - std::swap(viewmatrix_, other->viewmatrix_); - std::swap(projectionmatrix_, other->projectionmatrix_); - std::swap(lightdirection_, other->lightdirection_); - std::swap(lightcolor_, other->lightcolor_); - std::swap(projectivetextureviewmatrix_, other->projectivetextureviewmatrix_); - std::swap(projectivetextureprojectionmatrix_, other->projectivetextureprojectionmatrix_); - std::swap(updateflags_, other->updateflags_); - std::swap(cameraflags_, other->cameraflags_); - std::swap(startpixelindex_, other->startpixelindex_); - std::swap(pixelwidth_, other->pixelwidth_); - std::swap(lightdistance_, other->lightdistance_); - std::swap(pixelheight_, other->pixelheight_); - std::swap(hasshadow_, other->hasshadow_); - std::swap(lightambientcoeff_, other->lightambientcoeff_); - std::swap(lightdiffusecoeff_, other->lightdiffusecoeff_); - std::swap(lightspecularcoeff_, other->lightspecularcoeff_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + swap(viewmatrix_, other->viewmatrix_); + swap(projectionmatrix_, other->projectionmatrix_); + swap(lightdirection_, other->lightdirection_); + swap(lightcolor_, other->lightcolor_); + swap(projectivetextureviewmatrix_, other->projectivetextureviewmatrix_); + swap(projectivetextureprojectionmatrix_, other->projectivetextureprojectionmatrix_); + swap(updateflags_, other->updateflags_); + swap(cameraflags_, other->cameraflags_); + swap(startpixelindex_, other->startpixelindex_); + swap(pixelwidth_, other->pixelwidth_); + swap(lightdistance_, other->lightdistance_); + swap(pixelheight_, other->pixelheight_); + swap(hasshadow_, other->hasshadow_); + swap(lightambientcoeff_, other->lightambientcoeff_); + swap(lightdiffusecoeff_, other->lightdiffusecoeff_); + swap(lightspecularcoeff_, other->lightspecularcoeff_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata RequestCameraImageCommand::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[35]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// RequestCameraImageCommand - -// int32 updateFlags = 1; -void RequestCameraImageCommand::clear_updateflags() { - updateflags_ = 0; -} -::google::protobuf::int32 RequestCameraImageCommand::updateflags() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.updateFlags) - return updateflags_; -} -void RequestCameraImageCommand::set_updateflags(::google::protobuf::int32 value) { - - updateflags_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestCameraImageCommand.updateFlags) -} - -// int32 cameraFlags = 2; -void RequestCameraImageCommand::clear_cameraflags() { - cameraflags_ = 0; -} -::google::protobuf::int32 RequestCameraImageCommand::cameraflags() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.cameraFlags) - return cameraflags_; -} -void RequestCameraImageCommand::set_cameraflags(::google::protobuf::int32 value) { - - cameraflags_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestCameraImageCommand.cameraFlags) -} - -// .pybullet_grpc.matrix4x4 viewMatrix = 3; -bool RequestCameraImageCommand::has_viewmatrix() const { - return this != internal_default_instance() && viewmatrix_ != NULL; -} -void RequestCameraImageCommand::clear_viewmatrix() { - if (GetArenaNoVirtual() == NULL && viewmatrix_ != NULL) delete viewmatrix_; - viewmatrix_ = NULL; -} -const ::pybullet_grpc::matrix4x4& RequestCameraImageCommand::viewmatrix() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.viewMatrix) - return viewmatrix_ != NULL ? *viewmatrix_ - : *::pybullet_grpc::matrix4x4::internal_default_instance(); -} -::pybullet_grpc::matrix4x4* RequestCameraImageCommand::mutable_viewmatrix() { - - if (viewmatrix_ == NULL) { - viewmatrix_ = new ::pybullet_grpc::matrix4x4; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.RequestCameraImageCommand.viewMatrix) - return viewmatrix_; -} -::pybullet_grpc::matrix4x4* RequestCameraImageCommand::release_viewmatrix() { - // @@protoc_insertion_point(field_release:pybullet_grpc.RequestCameraImageCommand.viewMatrix) - - ::pybullet_grpc::matrix4x4* temp = viewmatrix_; - viewmatrix_ = NULL; - return temp; -} -void RequestCameraImageCommand::set_allocated_viewmatrix(::pybullet_grpc::matrix4x4* viewmatrix) { - delete viewmatrix_; - viewmatrix_ = viewmatrix; - if (viewmatrix) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.RequestCameraImageCommand.viewMatrix) -} - -// .pybullet_grpc.matrix4x4 projectionMatrix = 4; -bool RequestCameraImageCommand::has_projectionmatrix() const { - return this != internal_default_instance() && projectionmatrix_ != NULL; -} -void RequestCameraImageCommand::clear_projectionmatrix() { - if (GetArenaNoVirtual() == NULL && projectionmatrix_ != NULL) delete projectionmatrix_; - projectionmatrix_ = NULL; -} -const ::pybullet_grpc::matrix4x4& RequestCameraImageCommand::projectionmatrix() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.projectionMatrix) - return projectionmatrix_ != NULL ? *projectionmatrix_ - : *::pybullet_grpc::matrix4x4::internal_default_instance(); -} -::pybullet_grpc::matrix4x4* RequestCameraImageCommand::mutable_projectionmatrix() { - - if (projectionmatrix_ == NULL) { - projectionmatrix_ = new ::pybullet_grpc::matrix4x4; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.RequestCameraImageCommand.projectionMatrix) - return projectionmatrix_; -} -::pybullet_grpc::matrix4x4* RequestCameraImageCommand::release_projectionmatrix() { - // @@protoc_insertion_point(field_release:pybullet_grpc.RequestCameraImageCommand.projectionMatrix) - - ::pybullet_grpc::matrix4x4* temp = projectionmatrix_; - projectionmatrix_ = NULL; - return temp; -} -void RequestCameraImageCommand::set_allocated_projectionmatrix(::pybullet_grpc::matrix4x4* projectionmatrix) { - delete projectionmatrix_; - projectionmatrix_ = projectionmatrix; - if (projectionmatrix) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.RequestCameraImageCommand.projectionMatrix) -} - -// int32 startPixelIndex = 5; -void RequestCameraImageCommand::clear_startpixelindex() { - startpixelindex_ = 0; -} -::google::protobuf::int32 RequestCameraImageCommand::startpixelindex() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.startPixelIndex) - return startpixelindex_; -} -void RequestCameraImageCommand::set_startpixelindex(::google::protobuf::int32 value) { - - startpixelindex_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestCameraImageCommand.startPixelIndex) -} - -// int32 pixelWidth = 6; -void RequestCameraImageCommand::clear_pixelwidth() { - pixelwidth_ = 0; -} -::google::protobuf::int32 RequestCameraImageCommand::pixelwidth() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.pixelWidth) - return pixelwidth_; -} -void RequestCameraImageCommand::set_pixelwidth(::google::protobuf::int32 value) { - - pixelwidth_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestCameraImageCommand.pixelWidth) -} - -// int32 pixelHeight = 7; -void RequestCameraImageCommand::clear_pixelheight() { - pixelheight_ = 0; -} -::google::protobuf::int32 RequestCameraImageCommand::pixelheight() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.pixelHeight) - return pixelheight_; -} -void RequestCameraImageCommand::set_pixelheight(::google::protobuf::int32 value) { - - pixelheight_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestCameraImageCommand.pixelHeight) -} - -// .pybullet_grpc.vec3 lightDirection = 8; -bool RequestCameraImageCommand::has_lightdirection() const { - return this != internal_default_instance() && lightdirection_ != NULL; -} -void RequestCameraImageCommand::clear_lightdirection() { - if (GetArenaNoVirtual() == NULL && lightdirection_ != NULL) delete lightdirection_; - lightdirection_ = NULL; -} -const ::pybullet_grpc::vec3& RequestCameraImageCommand::lightdirection() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.lightDirection) - return lightdirection_ != NULL ? *lightdirection_ - : *::pybullet_grpc::vec3::internal_default_instance(); -} -::pybullet_grpc::vec3* RequestCameraImageCommand::mutable_lightdirection() { - - if (lightdirection_ == NULL) { - lightdirection_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.RequestCameraImageCommand.lightDirection) - return lightdirection_; -} -::pybullet_grpc::vec3* RequestCameraImageCommand::release_lightdirection() { - // @@protoc_insertion_point(field_release:pybullet_grpc.RequestCameraImageCommand.lightDirection) - - ::pybullet_grpc::vec3* temp = lightdirection_; - lightdirection_ = NULL; - return temp; -} -void RequestCameraImageCommand::set_allocated_lightdirection(::pybullet_grpc::vec3* lightdirection) { - delete lightdirection_; - lightdirection_ = lightdirection; - if (lightdirection) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.RequestCameraImageCommand.lightDirection) -} - -// .pybullet_grpc.vec3 lightColor = 9; -bool RequestCameraImageCommand::has_lightcolor() const { - return this != internal_default_instance() && lightcolor_ != NULL; -} -void RequestCameraImageCommand::clear_lightcolor() { - if (GetArenaNoVirtual() == NULL && lightcolor_ != NULL) delete lightcolor_; - lightcolor_ = NULL; -} -const ::pybullet_grpc::vec3& RequestCameraImageCommand::lightcolor() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.lightColor) - return lightcolor_ != NULL ? *lightcolor_ - : *::pybullet_grpc::vec3::internal_default_instance(); -} -::pybullet_grpc::vec3* RequestCameraImageCommand::mutable_lightcolor() { - - if (lightcolor_ == NULL) { - lightcolor_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.RequestCameraImageCommand.lightColor) - return lightcolor_; -} -::pybullet_grpc::vec3* RequestCameraImageCommand::release_lightcolor() { - // @@protoc_insertion_point(field_release:pybullet_grpc.RequestCameraImageCommand.lightColor) - - ::pybullet_grpc::vec3* temp = lightcolor_; - lightcolor_ = NULL; - return temp; -} -void RequestCameraImageCommand::set_allocated_lightcolor(::pybullet_grpc::vec3* lightcolor) { - delete lightcolor_; - lightcolor_ = lightcolor; - if (lightcolor) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.RequestCameraImageCommand.lightColor) -} - -// double lightDistance = 10; -void RequestCameraImageCommand::clear_lightdistance() { - lightdistance_ = 0; -} -double RequestCameraImageCommand::lightdistance() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.lightDistance) - return lightdistance_; -} -void RequestCameraImageCommand::set_lightdistance(double value) { - - lightdistance_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestCameraImageCommand.lightDistance) -} - -// double lightAmbientCoeff = 11; -void RequestCameraImageCommand::clear_lightambientcoeff() { - lightambientcoeff_ = 0; -} -double RequestCameraImageCommand::lightambientcoeff() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.lightAmbientCoeff) - return lightambientcoeff_; -} -void RequestCameraImageCommand::set_lightambientcoeff(double value) { - - lightambientcoeff_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestCameraImageCommand.lightAmbientCoeff) -} - -// double lightDiffuseCoeff = 12; -void RequestCameraImageCommand::clear_lightdiffusecoeff() { - lightdiffusecoeff_ = 0; -} -double RequestCameraImageCommand::lightdiffusecoeff() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.lightDiffuseCoeff) - return lightdiffusecoeff_; -} -void RequestCameraImageCommand::set_lightdiffusecoeff(double value) { - - lightdiffusecoeff_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestCameraImageCommand.lightDiffuseCoeff) -} - -// double lightSpecularCoeff = 13; -void RequestCameraImageCommand::clear_lightspecularcoeff() { - lightspecularcoeff_ = 0; -} -double RequestCameraImageCommand::lightspecularcoeff() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.lightSpecularCoeff) - return lightspecularcoeff_; -} -void RequestCameraImageCommand::set_lightspecularcoeff(double value) { - - lightspecularcoeff_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestCameraImageCommand.lightSpecularCoeff) -} - -// int32 hasShadow = 14; -void RequestCameraImageCommand::clear_hasshadow() { - hasshadow_ = 0; -} -::google::protobuf::int32 RequestCameraImageCommand::hasshadow() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.hasShadow) - return hasshadow_; -} -void RequestCameraImageCommand::set_hasshadow(::google::protobuf::int32 value) { - - hasshadow_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestCameraImageCommand.hasShadow) -} - -// .pybullet_grpc.matrix4x4 projectiveTextureViewMatrix = 15; -bool RequestCameraImageCommand::has_projectivetextureviewmatrix() const { - return this != internal_default_instance() && projectivetextureviewmatrix_ != NULL; -} -void RequestCameraImageCommand::clear_projectivetextureviewmatrix() { - if (GetArenaNoVirtual() == NULL && projectivetextureviewmatrix_ != NULL) delete projectivetextureviewmatrix_; - projectivetextureviewmatrix_ = NULL; -} -const ::pybullet_grpc::matrix4x4& RequestCameraImageCommand::projectivetextureviewmatrix() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.projectiveTextureViewMatrix) - return projectivetextureviewmatrix_ != NULL ? *projectivetextureviewmatrix_ - : *::pybullet_grpc::matrix4x4::internal_default_instance(); -} -::pybullet_grpc::matrix4x4* RequestCameraImageCommand::mutable_projectivetextureviewmatrix() { - - if (projectivetextureviewmatrix_ == NULL) { - projectivetextureviewmatrix_ = new ::pybullet_grpc::matrix4x4; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.RequestCameraImageCommand.projectiveTextureViewMatrix) - return projectivetextureviewmatrix_; -} -::pybullet_grpc::matrix4x4* RequestCameraImageCommand::release_projectivetextureviewmatrix() { - // @@protoc_insertion_point(field_release:pybullet_grpc.RequestCameraImageCommand.projectiveTextureViewMatrix) - - ::pybullet_grpc::matrix4x4* temp = projectivetextureviewmatrix_; - projectivetextureviewmatrix_ = NULL; - return temp; -} -void RequestCameraImageCommand::set_allocated_projectivetextureviewmatrix(::pybullet_grpc::matrix4x4* projectivetextureviewmatrix) { - delete projectivetextureviewmatrix_; - projectivetextureviewmatrix_ = projectivetextureviewmatrix; - if (projectivetextureviewmatrix) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.RequestCameraImageCommand.projectiveTextureViewMatrix) -} - -// .pybullet_grpc.matrix4x4 projectiveTextureProjectionMatrix = 16; -bool RequestCameraImageCommand::has_projectivetextureprojectionmatrix() const { - return this != internal_default_instance() && projectivetextureprojectionmatrix_ != NULL; -} -void RequestCameraImageCommand::clear_projectivetextureprojectionmatrix() { - if (GetArenaNoVirtual() == NULL && projectivetextureprojectionmatrix_ != NULL) delete projectivetextureprojectionmatrix_; - projectivetextureprojectionmatrix_ = NULL; -} -const ::pybullet_grpc::matrix4x4& RequestCameraImageCommand::projectivetextureprojectionmatrix() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.projectiveTextureProjectionMatrix) - return projectivetextureprojectionmatrix_ != NULL ? *projectivetextureprojectionmatrix_ - : *::pybullet_grpc::matrix4x4::internal_default_instance(); -} -::pybullet_grpc::matrix4x4* RequestCameraImageCommand::mutable_projectivetextureprojectionmatrix() { - - if (projectivetextureprojectionmatrix_ == NULL) { - projectivetextureprojectionmatrix_ = new ::pybullet_grpc::matrix4x4; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.RequestCameraImageCommand.projectiveTextureProjectionMatrix) - return projectivetextureprojectionmatrix_; -} -::pybullet_grpc::matrix4x4* RequestCameraImageCommand::release_projectivetextureprojectionmatrix() { - // @@protoc_insertion_point(field_release:pybullet_grpc.RequestCameraImageCommand.projectiveTextureProjectionMatrix) - - ::pybullet_grpc::matrix4x4* temp = projectivetextureprojectionmatrix_; - projectivetextureprojectionmatrix_ = NULL; - return temp; -} -void RequestCameraImageCommand::set_allocated_projectivetextureprojectionmatrix(::pybullet_grpc::matrix4x4* projectivetextureprojectionmatrix) { - delete projectivetextureprojectionmatrix_; - projectivetextureprojectionmatrix_ = projectivetextureprojectionmatrix; - if (projectivetextureprojectionmatrix) { - - } else { - - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.RequestCameraImageCommand.projectiveTextureProjectionMatrix) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void RequestCameraImageStatus::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int RequestCameraImageStatus::kImageWidthFieldNumber; const int RequestCameraImageStatus::kImageHeightFieldNumber; @@ -19411,27 +16617,25 @@ const int RequestCameraImageStatus::kNumRemainingPixelsFieldNumber; RequestCameraImageStatus::RequestCameraImageStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_RequestCameraImageStatus.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.RequestCameraImageStatus) } RequestCameraImageStatus::RequestCameraImageStatus(const RequestCameraImageStatus& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&imagewidth_, &from.imagewidth_, - reinterpret_cast(&numremainingpixels_) - - reinterpret_cast(&imagewidth_) + sizeof(numremainingpixels_)); + static_cast(reinterpret_cast(&numremainingpixels_) - + reinterpret_cast(&imagewidth_)) + sizeof(numremainingpixels_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.RequestCameraImageStatus) } void RequestCameraImageStatus::SharedCtor() { - ::memset(&imagewidth_, 0, reinterpret_cast(&numremainingpixels_) - - reinterpret_cast(&imagewidth_) + sizeof(numremainingpixels_)); - _cached_size_ = 0; + ::memset(&imagewidth_, 0, static_cast( + reinterpret_cast(&numremainingpixels_) - + reinterpret_cast(&imagewidth_)) + sizeof(numremainingpixels_)); } RequestCameraImageStatus::~RequestCameraImageStatus() { @@ -19443,32 +16647,29 @@ void RequestCameraImageStatus::SharedDtor() { } void RequestCameraImageStatus::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* RequestCameraImageStatus::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[36].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const RequestCameraImageStatus& RequestCameraImageStatus::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_RequestCameraImageStatus.base); return *internal_default_instance(); } -RequestCameraImageStatus* RequestCameraImageStatus::New(::google::protobuf::Arena* arena) const { - RequestCameraImageStatus* n = new RequestCameraImageStatus; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void RequestCameraImageStatus::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.RequestCameraImageStatus) - ::memset(&imagewidth_, 0, reinterpret_cast(&numremainingpixels_) - - reinterpret_cast(&imagewidth_) + sizeof(numremainingpixels_)); + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&imagewidth_, 0, static_cast( + reinterpret_cast(&numremainingpixels_) - + reinterpret_cast(&imagewidth_)) + sizeof(numremainingpixels_)); + _internal_metadata_.Clear(); } bool RequestCameraImageStatus::MergePartialFromCodedStream( @@ -19477,13 +16678,14 @@ bool RequestCameraImageStatus::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.RequestCameraImageStatus) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 imageWidth = 1; case 1: { - if (tag == 8u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -19496,7 +16698,8 @@ bool RequestCameraImageStatus::MergePartialFromCodedStream( // int32 imageHeight = 2; case 2: { - if (tag == 16u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -19509,7 +16712,8 @@ bool RequestCameraImageStatus::MergePartialFromCodedStream( // int32 startingPixelIndex = 3; case 3: { - if (tag == 24u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -19522,7 +16726,8 @@ bool RequestCameraImageStatus::MergePartialFromCodedStream( // int32 numPixelsCopied = 4; case 4: { - if (tag == 32u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -19535,7 +16740,8 @@ bool RequestCameraImageStatus::MergePartialFromCodedStream( // int32 numRemainingPixels = 5; case 5: { - if (tag == 40u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -19548,12 +16754,11 @@ bool RequestCameraImageStatus::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -19570,6 +16775,9 @@ failure: void RequestCameraImageStatus::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.RequestCameraImageStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 imageWidth = 1; if (this->imagewidth() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->imagewidth(), output); @@ -19595,13 +16803,20 @@ void RequestCameraImageStatus::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->numremainingpixels(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.RequestCameraImageStatus) } ::google::protobuf::uint8* RequestCameraImageStatus::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.RequestCameraImageStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 imageWidth = 1; if (this->imagewidth() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->imagewidth(), target); @@ -19627,6 +16842,10 @@ void RequestCameraImageStatus::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->numremainingpixels(), target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.RequestCameraImageStatus) return target; } @@ -19635,6 +16854,11 @@ size_t RequestCameraImageStatus::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.RequestCameraImageStatus) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // int32 imageWidth = 1; if (this->imagewidth() != 0) { total_size += 1 + @@ -19671,9 +16895,7 @@ size_t RequestCameraImageStatus::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -19696,6 +16918,9 @@ void RequestCameraImageStatus::MergeFrom(const RequestCameraImageStatus& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.RequestCameraImageStatus) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + if (from.imagewidth() != 0) { set_imagewidth(from.imagewidth()); } @@ -19736,96 +16961,313 @@ void RequestCameraImageStatus::Swap(RequestCameraImageStatus* other) { InternalSwap(other); } void RequestCameraImageStatus::InternalSwap(RequestCameraImageStatus* other) { - std::swap(imagewidth_, other->imagewidth_); - std::swap(imageheight_, other->imageheight_); - std::swap(startingpixelindex_, other->startingpixelindex_); - std::swap(numpixelscopied_, other->numpixelscopied_); - std::swap(numremainingpixels_, other->numremainingpixels_); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + swap(imagewidth_, other->imagewidth_); + swap(imageheight_, other->imageheight_); + swap(startingpixelindex_, other->startingpixelindex_); + swap(numpixelscopied_, other->numpixelscopied_); + swap(numremainingpixels_, other->numremainingpixels_); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata RequestCameraImageStatus::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[36]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// RequestCameraImageStatus - -// int32 imageWidth = 1; -void RequestCameraImageStatus::clear_imagewidth() { - imagewidth_ = 0; -} -::google::protobuf::int32 RequestCameraImageStatus::imagewidth() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageStatus.imageWidth) - return imagewidth_; -} -void RequestCameraImageStatus::set_imagewidth(::google::protobuf::int32 value) { - - imagewidth_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestCameraImageStatus.imageWidth) -} - -// int32 imageHeight = 2; -void RequestCameraImageStatus::clear_imageheight() { - imageheight_ = 0; -} -::google::protobuf::int32 RequestCameraImageStatus::imageheight() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageStatus.imageHeight) - return imageheight_; -} -void RequestCameraImageStatus::set_imageheight(::google::protobuf::int32 value) { - - imageheight_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestCameraImageStatus.imageHeight) -} - -// int32 startingPixelIndex = 3; -void RequestCameraImageStatus::clear_startingpixelindex() { - startingpixelindex_ = 0; -} -::google::protobuf::int32 RequestCameraImageStatus::startingpixelindex() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageStatus.startingPixelIndex) - return startingpixelindex_; -} -void RequestCameraImageStatus::set_startingpixelindex(::google::protobuf::int32 value) { - - startingpixelindex_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestCameraImageStatus.startingPixelIndex) -} - -// int32 numPixelsCopied = 4; -void RequestCameraImageStatus::clear_numpixelscopied() { - numpixelscopied_ = 0; -} -::google::protobuf::int32 RequestCameraImageStatus::numpixelscopied() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageStatus.numPixelsCopied) - return numpixelscopied_; -} -void RequestCameraImageStatus::set_numpixelscopied(::google::protobuf::int32 value) { - - numpixelscopied_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestCameraImageStatus.numPixelsCopied) -} - -// int32 numRemainingPixels = 5; -void RequestCameraImageStatus::clear_numremainingpixels() { - numremainingpixels_ = 0; -} -::google::protobuf::int32 RequestCameraImageStatus::numremainingpixels() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageStatus.numRemainingPixels) - return numremainingpixels_; -} -void RequestCameraImageStatus::set_numremainingpixels(::google::protobuf::int32 value) { - - numremainingpixels_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.RequestCameraImageStatus.numRemainingPixels) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void PyBulletCommand::InitAsDefaultInstance() { + ::pybullet_grpc::_PyBulletCommand_default_instance_.loadurdfcommand_ = const_cast< ::pybullet_grpc::LoadUrdfCommand*>( + ::pybullet_grpc::LoadUrdfCommand::internal_default_instance()); + ::pybullet_grpc::_PyBulletCommand_default_instance_.terminateservercommand_ = const_cast< ::pybullet_grpc::TerminateServerCommand*>( + ::pybullet_grpc::TerminateServerCommand::internal_default_instance()); + ::pybullet_grpc::_PyBulletCommand_default_instance_.stepsimulationcommand_ = const_cast< ::pybullet_grpc::StepSimulationCommand*>( + ::pybullet_grpc::StepSimulationCommand::internal_default_instance()); + ::pybullet_grpc::_PyBulletCommand_default_instance_.loadsdfcommand_ = const_cast< ::pybullet_grpc::LoadSdfCommand*>( + ::pybullet_grpc::LoadSdfCommand::internal_default_instance()); + ::pybullet_grpc::_PyBulletCommand_default_instance_.loadmjcfcommand_ = const_cast< ::pybullet_grpc::LoadMjcfCommand*>( + ::pybullet_grpc::LoadMjcfCommand::internal_default_instance()); + ::pybullet_grpc::_PyBulletCommand_default_instance_.changedynamicscommand_ = const_cast< ::pybullet_grpc::ChangeDynamicsCommand*>( + ::pybullet_grpc::ChangeDynamicsCommand::internal_default_instance()); + ::pybullet_grpc::_PyBulletCommand_default_instance_.getdynamicscommand_ = const_cast< ::pybullet_grpc::GetDynamicsCommand*>( + ::pybullet_grpc::GetDynamicsCommand::internal_default_instance()); + ::pybullet_grpc::_PyBulletCommand_default_instance_.initposecommand_ = const_cast< ::pybullet_grpc::InitPoseCommand*>( + ::pybullet_grpc::InitPoseCommand::internal_default_instance()); + ::pybullet_grpc::_PyBulletCommand_default_instance_.requestactualstatecommand_ = const_cast< ::pybullet_grpc::RequestActualStateCommand*>( + ::pybullet_grpc::RequestActualStateCommand::internal_default_instance()); + ::pybullet_grpc::_PyBulletCommand_default_instance_.configureopenglvisualizercommand_ = const_cast< ::pybullet_grpc::ConfigureOpenGLVisualizerCommand*>( + ::pybullet_grpc::ConfigureOpenGLVisualizerCommand::internal_default_instance()); + ::pybullet_grpc::_PyBulletCommand_default_instance_.syncbodiescommand_ = const_cast< ::pybullet_grpc::SyncBodiesCommand*>( + ::pybullet_grpc::SyncBodiesCommand::internal_default_instance()); + ::pybullet_grpc::_PyBulletCommand_default_instance_.requestbodyinfocommand_ = const_cast< ::pybullet_grpc::RequestBodyInfoCommand*>( + ::pybullet_grpc::RequestBodyInfoCommand::internal_default_instance()); + ::pybullet_grpc::_PyBulletCommand_default_instance_.setphysicssimulationparameterscommand_ = const_cast< ::pybullet_grpc::PhysicsSimulationParametersCommand*>( + ::pybullet_grpc::PhysicsSimulationParametersCommand::internal_default_instance()); + ::pybullet_grpc::_PyBulletCommand_default_instance_.jointmotorcontrolcommand_ = const_cast< ::pybullet_grpc::JointMotorControlCommand*>( + ::pybullet_grpc::JointMotorControlCommand::internal_default_instance()); + ::pybullet_grpc::_PyBulletCommand_default_instance_.userconstraintcommand_ = const_cast< ::pybullet_grpc::UserConstraintCommand*>( + ::pybullet_grpc::UserConstraintCommand::internal_default_instance()); + ::pybullet_grpc::_PyBulletCommand_default_instance_.checkversioncommand_ = const_cast< ::pybullet_grpc::CheckVersionCommand*>( + ::pybullet_grpc::CheckVersionCommand::internal_default_instance()); + ::pybullet_grpc::_PyBulletCommand_default_instance_.requestkeyboardeventscommand_ = const_cast< ::pybullet_grpc::RequestKeyboardEventsCommand*>( + ::pybullet_grpc::RequestKeyboardEventsCommand::internal_default_instance()); + ::pybullet_grpc::_PyBulletCommand_default_instance_.requestcameraimagecommand_ = const_cast< ::pybullet_grpc::RequestCameraImageCommand*>( + ::pybullet_grpc::RequestCameraImageCommand::internal_default_instance()); +} +void PyBulletCommand::set_allocated_loadurdfcommand(::pybullet_grpc::LoadUrdfCommand* loadurdfcommand) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_commands(); + if (loadurdfcommand) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + loadurdfcommand = ::google::protobuf::internal::GetOwnedMessage( + message_arena, loadurdfcommand, submessage_arena); + } + set_has_loadurdfcommand(); + commands_.loadurdfcommand_ = loadurdfcommand; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.loadUrdfCommand) +} +void PyBulletCommand::set_allocated_terminateservercommand(::pybullet_grpc::TerminateServerCommand* terminateservercommand) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_commands(); + if (terminateservercommand) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + terminateservercommand = ::google::protobuf::internal::GetOwnedMessage( + message_arena, terminateservercommand, submessage_arena); + } + set_has_terminateservercommand(); + commands_.terminateservercommand_ = terminateservercommand; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.terminateServerCommand) +} +void PyBulletCommand::set_allocated_stepsimulationcommand(::pybullet_grpc::StepSimulationCommand* stepsimulationcommand) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_commands(); + if (stepsimulationcommand) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + stepsimulationcommand = ::google::protobuf::internal::GetOwnedMessage( + message_arena, stepsimulationcommand, submessage_arena); + } + set_has_stepsimulationcommand(); + commands_.stepsimulationcommand_ = stepsimulationcommand; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.stepSimulationCommand) +} +void PyBulletCommand::set_allocated_loadsdfcommand(::pybullet_grpc::LoadSdfCommand* loadsdfcommand) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_commands(); + if (loadsdfcommand) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + loadsdfcommand = ::google::protobuf::internal::GetOwnedMessage( + message_arena, loadsdfcommand, submessage_arena); + } + set_has_loadsdfcommand(); + commands_.loadsdfcommand_ = loadsdfcommand; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.loadSdfCommand) +} +void PyBulletCommand::set_allocated_loadmjcfcommand(::pybullet_grpc::LoadMjcfCommand* loadmjcfcommand) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_commands(); + if (loadmjcfcommand) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + loadmjcfcommand = ::google::protobuf::internal::GetOwnedMessage( + message_arena, loadmjcfcommand, submessage_arena); + } + set_has_loadmjcfcommand(); + commands_.loadmjcfcommand_ = loadmjcfcommand; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.loadMjcfCommand) +} +void PyBulletCommand::set_allocated_changedynamicscommand(::pybullet_grpc::ChangeDynamicsCommand* changedynamicscommand) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_commands(); + if (changedynamicscommand) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + changedynamicscommand = ::google::protobuf::internal::GetOwnedMessage( + message_arena, changedynamicscommand, submessage_arena); + } + set_has_changedynamicscommand(); + commands_.changedynamicscommand_ = changedynamicscommand; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.changeDynamicsCommand) +} +void PyBulletCommand::set_allocated_getdynamicscommand(::pybullet_grpc::GetDynamicsCommand* getdynamicscommand) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_commands(); + if (getdynamicscommand) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + getdynamicscommand = ::google::protobuf::internal::GetOwnedMessage( + message_arena, getdynamicscommand, submessage_arena); + } + set_has_getdynamicscommand(); + commands_.getdynamicscommand_ = getdynamicscommand; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.getDynamicsCommand) +} +void PyBulletCommand::set_allocated_initposecommand(::pybullet_grpc::InitPoseCommand* initposecommand) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_commands(); + if (initposecommand) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + initposecommand = ::google::protobuf::internal::GetOwnedMessage( + message_arena, initposecommand, submessage_arena); + } + set_has_initposecommand(); + commands_.initposecommand_ = initposecommand; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.initPoseCommand) +} +void PyBulletCommand::set_allocated_requestactualstatecommand(::pybullet_grpc::RequestActualStateCommand* requestactualstatecommand) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_commands(); + if (requestactualstatecommand) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + requestactualstatecommand = ::google::protobuf::internal::GetOwnedMessage( + message_arena, requestactualstatecommand, submessage_arena); + } + set_has_requestactualstatecommand(); + commands_.requestactualstatecommand_ = requestactualstatecommand; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.requestActualStateCommand) +} +void PyBulletCommand::set_allocated_configureopenglvisualizercommand(::pybullet_grpc::ConfigureOpenGLVisualizerCommand* configureopenglvisualizercommand) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_commands(); + if (configureopenglvisualizercommand) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + configureopenglvisualizercommand = ::google::protobuf::internal::GetOwnedMessage( + message_arena, configureopenglvisualizercommand, submessage_arena); + } + set_has_configureopenglvisualizercommand(); + commands_.configureopenglvisualizercommand_ = configureopenglvisualizercommand; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.configureOpenGLVisualizerCommand) +} +void PyBulletCommand::set_allocated_syncbodiescommand(::pybullet_grpc::SyncBodiesCommand* syncbodiescommand) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_commands(); + if (syncbodiescommand) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + syncbodiescommand = ::google::protobuf::internal::GetOwnedMessage( + message_arena, syncbodiescommand, submessage_arena); + } + set_has_syncbodiescommand(); + commands_.syncbodiescommand_ = syncbodiescommand; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.syncBodiesCommand) +} +void PyBulletCommand::set_allocated_requestbodyinfocommand(::pybullet_grpc::RequestBodyInfoCommand* requestbodyinfocommand) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_commands(); + if (requestbodyinfocommand) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + requestbodyinfocommand = ::google::protobuf::internal::GetOwnedMessage( + message_arena, requestbodyinfocommand, submessage_arena); + } + set_has_requestbodyinfocommand(); + commands_.requestbodyinfocommand_ = requestbodyinfocommand; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.requestBodyInfoCommand) +} +void PyBulletCommand::set_allocated_setphysicssimulationparameterscommand(::pybullet_grpc::PhysicsSimulationParametersCommand* setphysicssimulationparameterscommand) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_commands(); + if (setphysicssimulationparameterscommand) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + setphysicssimulationparameterscommand = ::google::protobuf::internal::GetOwnedMessage( + message_arena, setphysicssimulationparameterscommand, submessage_arena); + } + set_has_setphysicssimulationparameterscommand(); + commands_.setphysicssimulationparameterscommand_ = setphysicssimulationparameterscommand; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.setPhysicsSimulationParametersCommand) +} +void PyBulletCommand::set_allocated_jointmotorcontrolcommand(::pybullet_grpc::JointMotorControlCommand* jointmotorcontrolcommand) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_commands(); + if (jointmotorcontrolcommand) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + jointmotorcontrolcommand = ::google::protobuf::internal::GetOwnedMessage( + message_arena, jointmotorcontrolcommand, submessage_arena); + } + set_has_jointmotorcontrolcommand(); + commands_.jointmotorcontrolcommand_ = jointmotorcontrolcommand; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.jointMotorControlCommand) +} +void PyBulletCommand::set_allocated_userconstraintcommand(::pybullet_grpc::UserConstraintCommand* userconstraintcommand) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_commands(); + if (userconstraintcommand) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + userconstraintcommand = ::google::protobuf::internal::GetOwnedMessage( + message_arena, userconstraintcommand, submessage_arena); + } + set_has_userconstraintcommand(); + commands_.userconstraintcommand_ = userconstraintcommand; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.userConstraintCommand) +} +void PyBulletCommand::set_allocated_checkversioncommand(::pybullet_grpc::CheckVersionCommand* checkversioncommand) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_commands(); + if (checkversioncommand) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + checkversioncommand = ::google::protobuf::internal::GetOwnedMessage( + message_arena, checkversioncommand, submessage_arena); + } + set_has_checkversioncommand(); + commands_.checkversioncommand_ = checkversioncommand; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.checkVersionCommand) +} +void PyBulletCommand::set_allocated_requestkeyboardeventscommand(::pybullet_grpc::RequestKeyboardEventsCommand* requestkeyboardeventscommand) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_commands(); + if (requestkeyboardeventscommand) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + requestkeyboardeventscommand = ::google::protobuf::internal::GetOwnedMessage( + message_arena, requestkeyboardeventscommand, submessage_arena); + } + set_has_requestkeyboardeventscommand(); + commands_.requestkeyboardeventscommand_ = requestkeyboardeventscommand; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.requestKeyboardEventsCommand) +} +void PyBulletCommand::set_allocated_requestcameraimagecommand(::pybullet_grpc::RequestCameraImageCommand* requestcameraimagecommand) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_commands(); + if (requestcameraimagecommand) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + requestcameraimagecommand = ::google::protobuf::internal::GetOwnedMessage( + message_arena, requestcameraimagecommand, submessage_arena); + } + set_has_requestcameraimagecommand(); + commands_.requestcameraimagecommand_ = requestcameraimagecommand; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.requestCameraImageCommand) +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int PyBulletCommand::kCommandTypeFieldNumber; const int PyBulletCommand::kBinaryBlobFieldNumber; @@ -19852,9 +17294,8 @@ const int PyBulletCommand::kRequestCameraImageCommandFieldNumber; PyBulletCommand::PyBulletCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_PyBulletCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.PyBulletCommand) } @@ -19862,8 +17303,7 @@ PyBulletCommand::PyBulletCommand(const PyBulletCommand& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), binaryblob_(from.binaryblob_), - unknowncommandbinaryblob_(from.unknowncommandbinaryblob_), - _cached_size_(0) { + unknowncommandbinaryblob_(from.unknowncommandbinaryblob_) { _internal_metadata_.MergeFrom(from._internal_metadata_); commandtype_ = from.commandtype_; clear_has_commands(); @@ -19950,7 +17390,6 @@ PyBulletCommand::PyBulletCommand(const PyBulletCommand& from) void PyBulletCommand::SharedCtor() { commandtype_ = 0; clear_has_commands(); - _cached_size_ = 0; } PyBulletCommand::~PyBulletCommand() { @@ -19965,27 +17404,18 @@ void PyBulletCommand::SharedDtor() { } void PyBulletCommand::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* PyBulletCommand::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[37].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const PyBulletCommand& PyBulletCommand::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_PyBulletCommand.base); return *internal_default_instance(); } -PyBulletCommand* PyBulletCommand::New(::google::protobuf::Arena* arena) const { - PyBulletCommand* n = new PyBulletCommand; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void PyBulletCommand::clear_commands() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.PyBulletCommand) @@ -20072,10 +17502,15 @@ void PyBulletCommand::clear_commands() { void PyBulletCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.PyBulletCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + binaryblob_.Clear(); unknowncommandbinaryblob_.Clear(); commandtype_ = 0; clear_commands(); + _internal_metadata_.Clear(); } bool PyBulletCommand::MergePartialFromCodedStream( @@ -20084,13 +17519,14 @@ bool PyBulletCommand::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.PyBulletCommand) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 commandType = 1; case 1: { - if (tag == 8u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -20103,7 +17539,8 @@ bool PyBulletCommand::MergePartialFromCodedStream( // repeated bytes binaryBlob = 2; case 2: { - if (tag == 18u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( input, this->add_binaryblob())); } else { @@ -20114,7 +17551,8 @@ bool PyBulletCommand::MergePartialFromCodedStream( // repeated bytes unknownCommandBinaryBlob = 3; case 3: { - if (tag == 26u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( input, this->add_unknowncommandbinaryblob())); } else { @@ -20125,8 +17563,9 @@ bool PyBulletCommand::MergePartialFromCodedStream( // .pybullet_grpc.LoadUrdfCommand loadUrdfCommand = 4; case 4: { - if (tag == 34u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_loadurdfcommand())); } else { goto handle_unusual; @@ -20136,8 +17575,9 @@ bool PyBulletCommand::MergePartialFromCodedStream( // .pybullet_grpc.TerminateServerCommand terminateServerCommand = 5; case 5: { - if (tag == 42u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_terminateservercommand())); } else { goto handle_unusual; @@ -20147,8 +17587,9 @@ bool PyBulletCommand::MergePartialFromCodedStream( // .pybullet_grpc.StepSimulationCommand stepSimulationCommand = 6; case 6: { - if (tag == 50u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_stepsimulationcommand())); } else { goto handle_unusual; @@ -20158,8 +17599,9 @@ bool PyBulletCommand::MergePartialFromCodedStream( // .pybullet_grpc.LoadSdfCommand loadSdfCommand = 7; case 7: { - if (tag == 58u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_loadsdfcommand())); } else { goto handle_unusual; @@ -20169,8 +17611,9 @@ bool PyBulletCommand::MergePartialFromCodedStream( // .pybullet_grpc.LoadMjcfCommand loadMjcfCommand = 8; case 8: { - if (tag == 66u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_loadmjcfcommand())); } else { goto handle_unusual; @@ -20180,8 +17623,9 @@ bool PyBulletCommand::MergePartialFromCodedStream( // .pybullet_grpc.ChangeDynamicsCommand changeDynamicsCommand = 9; case 9: { - if (tag == 74u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_changedynamicscommand())); } else { goto handle_unusual; @@ -20191,8 +17635,9 @@ bool PyBulletCommand::MergePartialFromCodedStream( // .pybullet_grpc.GetDynamicsCommand getDynamicsCommand = 10; case 10: { - if (tag == 82u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_getdynamicscommand())); } else { goto handle_unusual; @@ -20202,8 +17647,9 @@ bool PyBulletCommand::MergePartialFromCodedStream( // .pybullet_grpc.InitPoseCommand initPoseCommand = 11; case 11: { - if (tag == 90u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_initposecommand())); } else { goto handle_unusual; @@ -20213,8 +17659,9 @@ bool PyBulletCommand::MergePartialFromCodedStream( // .pybullet_grpc.RequestActualStateCommand requestActualStateCommand = 12; case 12: { - if (tag == 98u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_requestactualstatecommand())); } else { goto handle_unusual; @@ -20224,8 +17671,9 @@ bool PyBulletCommand::MergePartialFromCodedStream( // .pybullet_grpc.ConfigureOpenGLVisualizerCommand configureOpenGLVisualizerCommand = 13; case 13: { - if (tag == 106u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_configureopenglvisualizercommand())); } else { goto handle_unusual; @@ -20235,8 +17683,9 @@ bool PyBulletCommand::MergePartialFromCodedStream( // .pybullet_grpc.SyncBodiesCommand syncBodiesCommand = 14; case 14: { - if (tag == 114u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_syncbodiescommand())); } else { goto handle_unusual; @@ -20246,8 +17695,9 @@ bool PyBulletCommand::MergePartialFromCodedStream( // .pybullet_grpc.RequestBodyInfoCommand requestBodyInfoCommand = 15; case 15: { - if (tag == 122u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_requestbodyinfocommand())); } else { goto handle_unusual; @@ -20257,8 +17707,9 @@ bool PyBulletCommand::MergePartialFromCodedStream( // .pybullet_grpc.PhysicsSimulationParametersCommand setPhysicsSimulationParametersCommand = 16; case 16: { - if (tag == 130u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_setphysicssimulationparameterscommand())); } else { goto handle_unusual; @@ -20268,8 +17719,9 @@ bool PyBulletCommand::MergePartialFromCodedStream( // .pybullet_grpc.JointMotorControlCommand jointMotorControlCommand = 17; case 17: { - if (tag == 138u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_jointmotorcontrolcommand())); } else { goto handle_unusual; @@ -20279,8 +17731,9 @@ bool PyBulletCommand::MergePartialFromCodedStream( // .pybullet_grpc.UserConstraintCommand userConstraintCommand = 18; case 18: { - if (tag == 146u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_userconstraintcommand())); } else { goto handle_unusual; @@ -20290,8 +17743,9 @@ bool PyBulletCommand::MergePartialFromCodedStream( // .pybullet_grpc.CheckVersionCommand checkVersionCommand = 19; case 19: { - if (tag == 154u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(154u /* 154 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_checkversioncommand())); } else { goto handle_unusual; @@ -20301,8 +17755,9 @@ bool PyBulletCommand::MergePartialFromCodedStream( // .pybullet_grpc.RequestKeyboardEventsCommand requestKeyboardEventsCommand = 20; case 20: { - if (tag == 162u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(162u /* 162 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_requestkeyboardeventscommand())); } else { goto handle_unusual; @@ -20312,8 +17767,9 @@ bool PyBulletCommand::MergePartialFromCodedStream( // .pybullet_grpc.RequestCameraImageCommand requestCameraImageCommand = 21; case 21: { - if (tag == 170u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_requestcameraimagecommand())); } else { goto handle_unusual; @@ -20323,12 +17779,11 @@ bool PyBulletCommand::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -20345,19 +17800,22 @@ failure: void PyBulletCommand::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.PyBulletCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 commandType = 1; if (this->commandtype() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->commandtype(), output); } // repeated bytes binaryBlob = 2; - for (int i = 0; i < this->binaryblob_size(); i++) { + for (int i = 0, n = this->binaryblob_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteBytes( 2, this->binaryblob(i), output); } // repeated bytes unknownCommandBinaryBlob = 3; - for (int i = 0; i < this->unknowncommandbinaryblob_size(); i++) { + for (int i = 0, n = this->unknowncommandbinaryblob_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteBytes( 3, this->unknowncommandbinaryblob(i), output); } @@ -20365,131 +17823,138 @@ void PyBulletCommand::SerializeWithCachedSizes( // .pybullet_grpc.LoadUrdfCommand loadUrdfCommand = 4; if (has_loadurdfcommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, *commands_.loadurdfcommand_, output); + 4, this->_internal_loadurdfcommand(), output); } // .pybullet_grpc.TerminateServerCommand terminateServerCommand = 5; if (has_terminateservercommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, *commands_.terminateservercommand_, output); + 5, this->_internal_terminateservercommand(), output); } // .pybullet_grpc.StepSimulationCommand stepSimulationCommand = 6; if (has_stepsimulationcommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, *commands_.stepsimulationcommand_, output); + 6, this->_internal_stepsimulationcommand(), output); } // .pybullet_grpc.LoadSdfCommand loadSdfCommand = 7; if (has_loadsdfcommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, *commands_.loadsdfcommand_, output); + 7, this->_internal_loadsdfcommand(), output); } // .pybullet_grpc.LoadMjcfCommand loadMjcfCommand = 8; if (has_loadmjcfcommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, *commands_.loadmjcfcommand_, output); + 8, this->_internal_loadmjcfcommand(), output); } // .pybullet_grpc.ChangeDynamicsCommand changeDynamicsCommand = 9; if (has_changedynamicscommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, *commands_.changedynamicscommand_, output); + 9, this->_internal_changedynamicscommand(), output); } // .pybullet_grpc.GetDynamicsCommand getDynamicsCommand = 10; if (has_getdynamicscommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, *commands_.getdynamicscommand_, output); + 10, this->_internal_getdynamicscommand(), output); } // .pybullet_grpc.InitPoseCommand initPoseCommand = 11; if (has_initposecommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 11, *commands_.initposecommand_, output); + 11, this->_internal_initposecommand(), output); } // .pybullet_grpc.RequestActualStateCommand requestActualStateCommand = 12; if (has_requestactualstatecommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 12, *commands_.requestactualstatecommand_, output); + 12, this->_internal_requestactualstatecommand(), output); } // .pybullet_grpc.ConfigureOpenGLVisualizerCommand configureOpenGLVisualizerCommand = 13; if (has_configureopenglvisualizercommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 13, *commands_.configureopenglvisualizercommand_, output); + 13, this->_internal_configureopenglvisualizercommand(), output); } // .pybullet_grpc.SyncBodiesCommand syncBodiesCommand = 14; if (has_syncbodiescommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 14, *commands_.syncbodiescommand_, output); + 14, this->_internal_syncbodiescommand(), output); } // .pybullet_grpc.RequestBodyInfoCommand requestBodyInfoCommand = 15; if (has_requestbodyinfocommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 15, *commands_.requestbodyinfocommand_, output); + 15, this->_internal_requestbodyinfocommand(), output); } // .pybullet_grpc.PhysicsSimulationParametersCommand setPhysicsSimulationParametersCommand = 16; if (has_setphysicssimulationparameterscommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 16, *commands_.setphysicssimulationparameterscommand_, output); + 16, this->_internal_setphysicssimulationparameterscommand(), output); } // .pybullet_grpc.JointMotorControlCommand jointMotorControlCommand = 17; if (has_jointmotorcontrolcommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 17, *commands_.jointmotorcontrolcommand_, output); + 17, this->_internal_jointmotorcontrolcommand(), output); } // .pybullet_grpc.UserConstraintCommand userConstraintCommand = 18; if (has_userconstraintcommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 18, *commands_.userconstraintcommand_, output); + 18, this->_internal_userconstraintcommand(), output); } // .pybullet_grpc.CheckVersionCommand checkVersionCommand = 19; if (has_checkversioncommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 19, *commands_.checkversioncommand_, output); + 19, this->_internal_checkversioncommand(), output); } // .pybullet_grpc.RequestKeyboardEventsCommand requestKeyboardEventsCommand = 20; if (has_requestkeyboardeventscommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 20, *commands_.requestkeyboardeventscommand_, output); + 20, this->_internal_requestkeyboardeventscommand(), output); } // .pybullet_grpc.RequestCameraImageCommand requestCameraImageCommand = 21; if (has_requestcameraimagecommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 21, *commands_.requestcameraimagecommand_, output); + 21, this->_internal_requestcameraimagecommand(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.PyBulletCommand) } ::google::protobuf::uint8* PyBulletCommand::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.PyBulletCommand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 commandType = 1; if (this->commandtype() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->commandtype(), target); } // repeated bytes binaryBlob = 2; - for (int i = 0; i < this->binaryblob_size(); i++) { + for (int i = 0, n = this->binaryblob_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteBytesToArray(2, this->binaryblob(i), target); } // repeated bytes unknownCommandBinaryBlob = 3; - for (int i = 0; i < this->unknowncommandbinaryblob_size(); i++) { + for (int i = 0, n = this->unknowncommandbinaryblob_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteBytesToArray(3, this->unknowncommandbinaryblob(i), target); } @@ -20497,129 +17962,133 @@ void PyBulletCommand::SerializeWithCachedSizes( // .pybullet_grpc.LoadUrdfCommand loadUrdfCommand = 4; if (has_loadurdfcommand()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, *commands_.loadurdfcommand_, false, target); + InternalWriteMessageToArray( + 4, this->_internal_loadurdfcommand(), deterministic, target); } // .pybullet_grpc.TerminateServerCommand terminateServerCommand = 5; if (has_terminateservercommand()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 5, *commands_.terminateservercommand_, false, target); + InternalWriteMessageToArray( + 5, this->_internal_terminateservercommand(), deterministic, target); } // .pybullet_grpc.StepSimulationCommand stepSimulationCommand = 6; if (has_stepsimulationcommand()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 6, *commands_.stepsimulationcommand_, false, target); + InternalWriteMessageToArray( + 6, this->_internal_stepsimulationcommand(), deterministic, target); } // .pybullet_grpc.LoadSdfCommand loadSdfCommand = 7; if (has_loadsdfcommand()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 7, *commands_.loadsdfcommand_, false, target); + InternalWriteMessageToArray( + 7, this->_internal_loadsdfcommand(), deterministic, target); } // .pybullet_grpc.LoadMjcfCommand loadMjcfCommand = 8; if (has_loadmjcfcommand()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 8, *commands_.loadmjcfcommand_, false, target); + InternalWriteMessageToArray( + 8, this->_internal_loadmjcfcommand(), deterministic, target); } // .pybullet_grpc.ChangeDynamicsCommand changeDynamicsCommand = 9; if (has_changedynamicscommand()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 9, *commands_.changedynamicscommand_, false, target); + InternalWriteMessageToArray( + 9, this->_internal_changedynamicscommand(), deterministic, target); } // .pybullet_grpc.GetDynamicsCommand getDynamicsCommand = 10; if (has_getdynamicscommand()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 10, *commands_.getdynamicscommand_, false, target); + InternalWriteMessageToArray( + 10, this->_internal_getdynamicscommand(), deterministic, target); } // .pybullet_grpc.InitPoseCommand initPoseCommand = 11; if (has_initposecommand()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 11, *commands_.initposecommand_, false, target); + InternalWriteMessageToArray( + 11, this->_internal_initposecommand(), deterministic, target); } // .pybullet_grpc.RequestActualStateCommand requestActualStateCommand = 12; if (has_requestactualstatecommand()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 12, *commands_.requestactualstatecommand_, false, target); + InternalWriteMessageToArray( + 12, this->_internal_requestactualstatecommand(), deterministic, target); } // .pybullet_grpc.ConfigureOpenGLVisualizerCommand configureOpenGLVisualizerCommand = 13; if (has_configureopenglvisualizercommand()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 13, *commands_.configureopenglvisualizercommand_, false, target); + InternalWriteMessageToArray( + 13, this->_internal_configureopenglvisualizercommand(), deterministic, target); } // .pybullet_grpc.SyncBodiesCommand syncBodiesCommand = 14; if (has_syncbodiescommand()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 14, *commands_.syncbodiescommand_, false, target); + InternalWriteMessageToArray( + 14, this->_internal_syncbodiescommand(), deterministic, target); } // .pybullet_grpc.RequestBodyInfoCommand requestBodyInfoCommand = 15; if (has_requestbodyinfocommand()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 15, *commands_.requestbodyinfocommand_, false, target); + InternalWriteMessageToArray( + 15, this->_internal_requestbodyinfocommand(), deterministic, target); } // .pybullet_grpc.PhysicsSimulationParametersCommand setPhysicsSimulationParametersCommand = 16; if (has_setphysicssimulationparameterscommand()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 16, *commands_.setphysicssimulationparameterscommand_, false, target); + InternalWriteMessageToArray( + 16, this->_internal_setphysicssimulationparameterscommand(), deterministic, target); } // .pybullet_grpc.JointMotorControlCommand jointMotorControlCommand = 17; if (has_jointmotorcontrolcommand()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 17, *commands_.jointmotorcontrolcommand_, false, target); + InternalWriteMessageToArray( + 17, this->_internal_jointmotorcontrolcommand(), deterministic, target); } // .pybullet_grpc.UserConstraintCommand userConstraintCommand = 18; if (has_userconstraintcommand()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 18, *commands_.userconstraintcommand_, false, target); + InternalWriteMessageToArray( + 18, this->_internal_userconstraintcommand(), deterministic, target); } // .pybullet_grpc.CheckVersionCommand checkVersionCommand = 19; if (has_checkversioncommand()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 19, *commands_.checkversioncommand_, false, target); + InternalWriteMessageToArray( + 19, this->_internal_checkversioncommand(), deterministic, target); } // .pybullet_grpc.RequestKeyboardEventsCommand requestKeyboardEventsCommand = 20; if (has_requestkeyboardeventscommand()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 20, *commands_.requestkeyboardeventscommand_, false, target); + InternalWriteMessageToArray( + 20, this->_internal_requestkeyboardeventscommand(), deterministic, target); } // .pybullet_grpc.RequestCameraImageCommand requestCameraImageCommand = 21; if (has_requestcameraimagecommand()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 21, *commands_.requestcameraimagecommand_, false, target); + InternalWriteMessageToArray( + 21, this->_internal_requestcameraimagecommand(), deterministic, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.PyBulletCommand) return target; } @@ -20628,10 +18097,15 @@ size_t PyBulletCommand::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.PyBulletCommand) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // repeated bytes binaryBlob = 2; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->binaryblob_size()); - for (int i = 0; i < this->binaryblob_size(); i++) { + for (int i = 0, n = this->binaryblob_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( this->binaryblob(i)); } @@ -20639,7 +18113,7 @@ size_t PyBulletCommand::ByteSizeLong() const { // repeated bytes unknownCommandBinaryBlob = 3; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->unknowncommandbinaryblob_size()); - for (int i = 0; i < this->unknowncommandbinaryblob_size(); i++) { + for (int i = 0, n = this->unknowncommandbinaryblob_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( this->unknowncommandbinaryblob(i)); } @@ -20655,126 +18129,126 @@ size_t PyBulletCommand::ByteSizeLong() const { // .pybullet_grpc.LoadUrdfCommand loadUrdfCommand = 4; case kLoadUrdfCommand: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.loadurdfcommand_); break; } // .pybullet_grpc.TerminateServerCommand terminateServerCommand = 5; case kTerminateServerCommand: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.terminateservercommand_); break; } // .pybullet_grpc.StepSimulationCommand stepSimulationCommand = 6; case kStepSimulationCommand: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.stepsimulationcommand_); break; } // .pybullet_grpc.LoadSdfCommand loadSdfCommand = 7; case kLoadSdfCommand: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.loadsdfcommand_); break; } // .pybullet_grpc.LoadMjcfCommand loadMjcfCommand = 8; case kLoadMjcfCommand: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.loadmjcfcommand_); break; } // .pybullet_grpc.ChangeDynamicsCommand changeDynamicsCommand = 9; case kChangeDynamicsCommand: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.changedynamicscommand_); break; } // .pybullet_grpc.GetDynamicsCommand getDynamicsCommand = 10; case kGetDynamicsCommand: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.getdynamicscommand_); break; } // .pybullet_grpc.InitPoseCommand initPoseCommand = 11; case kInitPoseCommand: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.initposecommand_); break; } // .pybullet_grpc.RequestActualStateCommand requestActualStateCommand = 12; case kRequestActualStateCommand: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.requestactualstatecommand_); break; } // .pybullet_grpc.ConfigureOpenGLVisualizerCommand configureOpenGLVisualizerCommand = 13; case kConfigureOpenGLVisualizerCommand: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.configureopenglvisualizercommand_); break; } // .pybullet_grpc.SyncBodiesCommand syncBodiesCommand = 14; case kSyncBodiesCommand: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.syncbodiescommand_); break; } // .pybullet_grpc.RequestBodyInfoCommand requestBodyInfoCommand = 15; case kRequestBodyInfoCommand: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.requestbodyinfocommand_); break; } // .pybullet_grpc.PhysicsSimulationParametersCommand setPhysicsSimulationParametersCommand = 16; case kSetPhysicsSimulationParametersCommand: { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.setphysicssimulationparameterscommand_); break; } // .pybullet_grpc.JointMotorControlCommand jointMotorControlCommand = 17; case kJointMotorControlCommand: { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.jointmotorcontrolcommand_); break; } // .pybullet_grpc.UserConstraintCommand userConstraintCommand = 18; case kUserConstraintCommand: { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.userconstraintcommand_); break; } // .pybullet_grpc.CheckVersionCommand checkVersionCommand = 19; case kCheckVersionCommand: { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.checkversioncommand_); break; } // .pybullet_grpc.RequestKeyboardEventsCommand requestKeyboardEventsCommand = 20; case kRequestKeyboardEventsCommand: { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.requestkeyboardeventscommand_); break; } // .pybullet_grpc.RequestCameraImageCommand requestCameraImageCommand = 21; case kRequestCameraImageCommand: { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.requestcameraimagecommand_); break; } @@ -20783,9 +18257,7 @@ size_t PyBulletCommand::ByteSizeLong() const { } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -20808,6 +18280,9 @@ void PyBulletCommand::MergeFrom(const PyBulletCommand& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.PyBulletCommand) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + binaryblob_.MergeFrom(from.binaryblob_); unknowncommandbinaryblob_.MergeFrom(from.unknowncommandbinaryblob_); if (from.commandtype() != 0) { @@ -20915,1023 +18390,233 @@ void PyBulletCommand::Swap(PyBulletCommand* other) { InternalSwap(other); } void PyBulletCommand::InternalSwap(PyBulletCommand* other) { - binaryblob_.UnsafeArenaSwap(&other->binaryblob_); - unknowncommandbinaryblob_.UnsafeArenaSwap(&other->unknowncommandbinaryblob_); - std::swap(commandtype_, other->commandtype_); - std::swap(commands_, other->commands_); - std::swap(_oneof_case_[0], other->_oneof_case_[0]); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + binaryblob_.InternalSwap(CastToBase(&other->binaryblob_)); + unknowncommandbinaryblob_.InternalSwap(CastToBase(&other->unknowncommandbinaryblob_)); + swap(commandtype_, other->commandtype_); + swap(commands_, other->commands_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata PyBulletCommand::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[37]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// PyBulletCommand - -// int32 commandType = 1; -void PyBulletCommand::clear_commandtype() { - commandtype_ = 0; -} -::google::protobuf::int32 PyBulletCommand::commandtype() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.commandType) - return commandtype_; -} -void PyBulletCommand::set_commandtype(::google::protobuf::int32 value) { - - commandtype_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PyBulletCommand.commandType) -} - -// repeated bytes binaryBlob = 2; -int PyBulletCommand::binaryblob_size() const { - return binaryblob_.size(); -} -void PyBulletCommand::clear_binaryblob() { - binaryblob_.Clear(); -} -const ::std::string& PyBulletCommand::binaryblob(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.binaryBlob) - return binaryblob_.Get(index); -} -::std::string* PyBulletCommand::mutable_binaryblob(int index) { - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.binaryBlob) - return binaryblob_.Mutable(index); -} -void PyBulletCommand::set_binaryblob(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:pybullet_grpc.PyBulletCommand.binaryBlob) - binaryblob_.Mutable(index)->assign(value); -} -void PyBulletCommand::set_binaryblob(int index, const char* value) { - binaryblob_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:pybullet_grpc.PyBulletCommand.binaryBlob) -} -void PyBulletCommand::set_binaryblob(int index, const void* value, size_t size) { - binaryblob_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:pybullet_grpc.PyBulletCommand.binaryBlob) -} -::std::string* PyBulletCommand::add_binaryblob() { - // @@protoc_insertion_point(field_add_mutable:pybullet_grpc.PyBulletCommand.binaryBlob) - return binaryblob_.Add(); -} -void PyBulletCommand::add_binaryblob(const ::std::string& value) { - binaryblob_.Add()->assign(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.PyBulletCommand.binaryBlob) -} -void PyBulletCommand::add_binaryblob(const char* value) { - binaryblob_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:pybullet_grpc.PyBulletCommand.binaryBlob) -} -void PyBulletCommand::add_binaryblob(const void* value, size_t size) { - binaryblob_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:pybullet_grpc.PyBulletCommand.binaryBlob) -} -const ::google::protobuf::RepeatedPtrField< ::std::string>& -PyBulletCommand::binaryblob() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.PyBulletCommand.binaryBlob) - return binaryblob_; -} -::google::protobuf::RepeatedPtrField< ::std::string>* -PyBulletCommand::mutable_binaryblob() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.PyBulletCommand.binaryBlob) - return &binaryblob_; -} - -// repeated bytes unknownCommandBinaryBlob = 3; -int PyBulletCommand::unknowncommandbinaryblob_size() const { - return unknowncommandbinaryblob_.size(); -} -void PyBulletCommand::clear_unknowncommandbinaryblob() { - unknowncommandbinaryblob_.Clear(); -} -const ::std::string& PyBulletCommand::unknowncommandbinaryblob(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.unknownCommandBinaryBlob) - return unknowncommandbinaryblob_.Get(index); -} -::std::string* PyBulletCommand::mutable_unknowncommandbinaryblob(int index) { - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.unknownCommandBinaryBlob) - return unknowncommandbinaryblob_.Mutable(index); -} -void PyBulletCommand::set_unknowncommandbinaryblob(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:pybullet_grpc.PyBulletCommand.unknownCommandBinaryBlob) - unknowncommandbinaryblob_.Mutable(index)->assign(value); -} -void PyBulletCommand::set_unknowncommandbinaryblob(int index, const char* value) { - unknowncommandbinaryblob_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:pybullet_grpc.PyBulletCommand.unknownCommandBinaryBlob) -} -void PyBulletCommand::set_unknowncommandbinaryblob(int index, const void* value, size_t size) { - unknowncommandbinaryblob_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:pybullet_grpc.PyBulletCommand.unknownCommandBinaryBlob) -} -::std::string* PyBulletCommand::add_unknowncommandbinaryblob() { - // @@protoc_insertion_point(field_add_mutable:pybullet_grpc.PyBulletCommand.unknownCommandBinaryBlob) - return unknowncommandbinaryblob_.Add(); -} -void PyBulletCommand::add_unknowncommandbinaryblob(const ::std::string& value) { - unknowncommandbinaryblob_.Add()->assign(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.PyBulletCommand.unknownCommandBinaryBlob) -} -void PyBulletCommand::add_unknowncommandbinaryblob(const char* value) { - unknowncommandbinaryblob_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:pybullet_grpc.PyBulletCommand.unknownCommandBinaryBlob) -} -void PyBulletCommand::add_unknowncommandbinaryblob(const void* value, size_t size) { - unknowncommandbinaryblob_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:pybullet_grpc.PyBulletCommand.unknownCommandBinaryBlob) -} -const ::google::protobuf::RepeatedPtrField< ::std::string>& -PyBulletCommand::unknowncommandbinaryblob() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.PyBulletCommand.unknownCommandBinaryBlob) - return unknowncommandbinaryblob_; -} -::google::protobuf::RepeatedPtrField< ::std::string>* -PyBulletCommand::mutable_unknowncommandbinaryblob() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.PyBulletCommand.unknownCommandBinaryBlob) - return &unknowncommandbinaryblob_; -} - -// .pybullet_grpc.LoadUrdfCommand loadUrdfCommand = 4; -bool PyBulletCommand::has_loadurdfcommand() const { - return commands_case() == kLoadUrdfCommand; -} -void PyBulletCommand::set_has_loadurdfcommand() { - _oneof_case_[0] = kLoadUrdfCommand; -} -void PyBulletCommand::clear_loadurdfcommand() { - if (has_loadurdfcommand()) { - delete commands_.loadurdfcommand_; - clear_has_commands(); - } -} - const ::pybullet_grpc::LoadUrdfCommand& PyBulletCommand::loadurdfcommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.loadUrdfCommand) - return has_loadurdfcommand() - ? *commands_.loadurdfcommand_ - : ::pybullet_grpc::LoadUrdfCommand::default_instance(); -} -::pybullet_grpc::LoadUrdfCommand* PyBulletCommand::mutable_loadurdfcommand() { - if (!has_loadurdfcommand()) { - clear_commands(); - set_has_loadurdfcommand(); - commands_.loadurdfcommand_ = new ::pybullet_grpc::LoadUrdfCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.loadUrdfCommand) - return commands_.loadurdfcommand_; -} -::pybullet_grpc::LoadUrdfCommand* PyBulletCommand::release_loadurdfcommand() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.loadUrdfCommand) - if (has_loadurdfcommand()) { - clear_has_commands(); - ::pybullet_grpc::LoadUrdfCommand* temp = commands_.loadurdfcommand_; - commands_.loadurdfcommand_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletCommand::set_allocated_loadurdfcommand(::pybullet_grpc::LoadUrdfCommand* loadurdfcommand) { - clear_commands(); - if (loadurdfcommand) { - set_has_loadurdfcommand(); - commands_.loadurdfcommand_ = loadurdfcommand; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.loadUrdfCommand) -} - -// .pybullet_grpc.TerminateServerCommand terminateServerCommand = 5; -bool PyBulletCommand::has_terminateservercommand() const { - return commands_case() == kTerminateServerCommand; -} -void PyBulletCommand::set_has_terminateservercommand() { - _oneof_case_[0] = kTerminateServerCommand; -} -void PyBulletCommand::clear_terminateservercommand() { - if (has_terminateservercommand()) { - delete commands_.terminateservercommand_; - clear_has_commands(); - } -} - const ::pybullet_grpc::TerminateServerCommand& PyBulletCommand::terminateservercommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.terminateServerCommand) - return has_terminateservercommand() - ? *commands_.terminateservercommand_ - : ::pybullet_grpc::TerminateServerCommand::default_instance(); -} -::pybullet_grpc::TerminateServerCommand* PyBulletCommand::mutable_terminateservercommand() { - if (!has_terminateservercommand()) { - clear_commands(); - set_has_terminateservercommand(); - commands_.terminateservercommand_ = new ::pybullet_grpc::TerminateServerCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.terminateServerCommand) - return commands_.terminateservercommand_; -} -::pybullet_grpc::TerminateServerCommand* PyBulletCommand::release_terminateservercommand() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.terminateServerCommand) - if (has_terminateservercommand()) { - clear_has_commands(); - ::pybullet_grpc::TerminateServerCommand* temp = commands_.terminateservercommand_; - commands_.terminateservercommand_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletCommand::set_allocated_terminateservercommand(::pybullet_grpc::TerminateServerCommand* terminateservercommand) { - clear_commands(); - if (terminateservercommand) { - set_has_terminateservercommand(); - commands_.terminateservercommand_ = terminateservercommand; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.terminateServerCommand) -} - -// .pybullet_grpc.StepSimulationCommand stepSimulationCommand = 6; -bool PyBulletCommand::has_stepsimulationcommand() const { - return commands_case() == kStepSimulationCommand; -} -void PyBulletCommand::set_has_stepsimulationcommand() { - _oneof_case_[0] = kStepSimulationCommand; -} -void PyBulletCommand::clear_stepsimulationcommand() { - if (has_stepsimulationcommand()) { - delete commands_.stepsimulationcommand_; - clear_has_commands(); - } -} - const ::pybullet_grpc::StepSimulationCommand& PyBulletCommand::stepsimulationcommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.stepSimulationCommand) - return has_stepsimulationcommand() - ? *commands_.stepsimulationcommand_ - : ::pybullet_grpc::StepSimulationCommand::default_instance(); -} -::pybullet_grpc::StepSimulationCommand* PyBulletCommand::mutable_stepsimulationcommand() { - if (!has_stepsimulationcommand()) { - clear_commands(); - set_has_stepsimulationcommand(); - commands_.stepsimulationcommand_ = new ::pybullet_grpc::StepSimulationCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.stepSimulationCommand) - return commands_.stepsimulationcommand_; -} -::pybullet_grpc::StepSimulationCommand* PyBulletCommand::release_stepsimulationcommand() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.stepSimulationCommand) - if (has_stepsimulationcommand()) { - clear_has_commands(); - ::pybullet_grpc::StepSimulationCommand* temp = commands_.stepsimulationcommand_; - commands_.stepsimulationcommand_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletCommand::set_allocated_stepsimulationcommand(::pybullet_grpc::StepSimulationCommand* stepsimulationcommand) { - clear_commands(); - if (stepsimulationcommand) { - set_has_stepsimulationcommand(); - commands_.stepsimulationcommand_ = stepsimulationcommand; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.stepSimulationCommand) -} - -// .pybullet_grpc.LoadSdfCommand loadSdfCommand = 7; -bool PyBulletCommand::has_loadsdfcommand() const { - return commands_case() == kLoadSdfCommand; -} -void PyBulletCommand::set_has_loadsdfcommand() { - _oneof_case_[0] = kLoadSdfCommand; -} -void PyBulletCommand::clear_loadsdfcommand() { - if (has_loadsdfcommand()) { - delete commands_.loadsdfcommand_; - clear_has_commands(); - } -} - const ::pybullet_grpc::LoadSdfCommand& PyBulletCommand::loadsdfcommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.loadSdfCommand) - return has_loadsdfcommand() - ? *commands_.loadsdfcommand_ - : ::pybullet_grpc::LoadSdfCommand::default_instance(); -} -::pybullet_grpc::LoadSdfCommand* PyBulletCommand::mutable_loadsdfcommand() { - if (!has_loadsdfcommand()) { - clear_commands(); - set_has_loadsdfcommand(); - commands_.loadsdfcommand_ = new ::pybullet_grpc::LoadSdfCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.loadSdfCommand) - return commands_.loadsdfcommand_; -} -::pybullet_grpc::LoadSdfCommand* PyBulletCommand::release_loadsdfcommand() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.loadSdfCommand) - if (has_loadsdfcommand()) { - clear_has_commands(); - ::pybullet_grpc::LoadSdfCommand* temp = commands_.loadsdfcommand_; - commands_.loadsdfcommand_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletCommand::set_allocated_loadsdfcommand(::pybullet_grpc::LoadSdfCommand* loadsdfcommand) { - clear_commands(); - if (loadsdfcommand) { - set_has_loadsdfcommand(); - commands_.loadsdfcommand_ = loadsdfcommand; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.loadSdfCommand) -} - -// .pybullet_grpc.LoadMjcfCommand loadMjcfCommand = 8; -bool PyBulletCommand::has_loadmjcfcommand() const { - return commands_case() == kLoadMjcfCommand; -} -void PyBulletCommand::set_has_loadmjcfcommand() { - _oneof_case_[0] = kLoadMjcfCommand; -} -void PyBulletCommand::clear_loadmjcfcommand() { - if (has_loadmjcfcommand()) { - delete commands_.loadmjcfcommand_; - clear_has_commands(); - } -} - const ::pybullet_grpc::LoadMjcfCommand& PyBulletCommand::loadmjcfcommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.loadMjcfCommand) - return has_loadmjcfcommand() - ? *commands_.loadmjcfcommand_ - : ::pybullet_grpc::LoadMjcfCommand::default_instance(); -} -::pybullet_grpc::LoadMjcfCommand* PyBulletCommand::mutable_loadmjcfcommand() { - if (!has_loadmjcfcommand()) { - clear_commands(); - set_has_loadmjcfcommand(); - commands_.loadmjcfcommand_ = new ::pybullet_grpc::LoadMjcfCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.loadMjcfCommand) - return commands_.loadmjcfcommand_; -} -::pybullet_grpc::LoadMjcfCommand* PyBulletCommand::release_loadmjcfcommand() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.loadMjcfCommand) - if (has_loadmjcfcommand()) { - clear_has_commands(); - ::pybullet_grpc::LoadMjcfCommand* temp = commands_.loadmjcfcommand_; - commands_.loadmjcfcommand_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletCommand::set_allocated_loadmjcfcommand(::pybullet_grpc::LoadMjcfCommand* loadmjcfcommand) { - clear_commands(); - if (loadmjcfcommand) { - set_has_loadmjcfcommand(); - commands_.loadmjcfcommand_ = loadmjcfcommand; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.loadMjcfCommand) -} - -// .pybullet_grpc.ChangeDynamicsCommand changeDynamicsCommand = 9; -bool PyBulletCommand::has_changedynamicscommand() const { - return commands_case() == kChangeDynamicsCommand; -} -void PyBulletCommand::set_has_changedynamicscommand() { - _oneof_case_[0] = kChangeDynamicsCommand; -} -void PyBulletCommand::clear_changedynamicscommand() { - if (has_changedynamicscommand()) { - delete commands_.changedynamicscommand_; - clear_has_commands(); - } -} - const ::pybullet_grpc::ChangeDynamicsCommand& PyBulletCommand::changedynamicscommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.changeDynamicsCommand) - return has_changedynamicscommand() - ? *commands_.changedynamicscommand_ - : ::pybullet_grpc::ChangeDynamicsCommand::default_instance(); -} -::pybullet_grpc::ChangeDynamicsCommand* PyBulletCommand::mutable_changedynamicscommand() { - if (!has_changedynamicscommand()) { - clear_commands(); - set_has_changedynamicscommand(); - commands_.changedynamicscommand_ = new ::pybullet_grpc::ChangeDynamicsCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.changeDynamicsCommand) - return commands_.changedynamicscommand_; -} -::pybullet_grpc::ChangeDynamicsCommand* PyBulletCommand::release_changedynamicscommand() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.changeDynamicsCommand) - if (has_changedynamicscommand()) { - clear_has_commands(); - ::pybullet_grpc::ChangeDynamicsCommand* temp = commands_.changedynamicscommand_; - commands_.changedynamicscommand_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletCommand::set_allocated_changedynamicscommand(::pybullet_grpc::ChangeDynamicsCommand* changedynamicscommand) { - clear_commands(); - if (changedynamicscommand) { - set_has_changedynamicscommand(); - commands_.changedynamicscommand_ = changedynamicscommand; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.changeDynamicsCommand) -} - -// .pybullet_grpc.GetDynamicsCommand getDynamicsCommand = 10; -bool PyBulletCommand::has_getdynamicscommand() const { - return commands_case() == kGetDynamicsCommand; -} -void PyBulletCommand::set_has_getdynamicscommand() { - _oneof_case_[0] = kGetDynamicsCommand; -} -void PyBulletCommand::clear_getdynamicscommand() { - if (has_getdynamicscommand()) { - delete commands_.getdynamicscommand_; - clear_has_commands(); - } -} - const ::pybullet_grpc::GetDynamicsCommand& PyBulletCommand::getdynamicscommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.getDynamicsCommand) - return has_getdynamicscommand() - ? *commands_.getdynamicscommand_ - : ::pybullet_grpc::GetDynamicsCommand::default_instance(); -} -::pybullet_grpc::GetDynamicsCommand* PyBulletCommand::mutable_getdynamicscommand() { - if (!has_getdynamicscommand()) { - clear_commands(); - set_has_getdynamicscommand(); - commands_.getdynamicscommand_ = new ::pybullet_grpc::GetDynamicsCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.getDynamicsCommand) - return commands_.getdynamicscommand_; -} -::pybullet_grpc::GetDynamicsCommand* PyBulletCommand::release_getdynamicscommand() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.getDynamicsCommand) - if (has_getdynamicscommand()) { - clear_has_commands(); - ::pybullet_grpc::GetDynamicsCommand* temp = commands_.getdynamicscommand_; - commands_.getdynamicscommand_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletCommand::set_allocated_getdynamicscommand(::pybullet_grpc::GetDynamicsCommand* getdynamicscommand) { - clear_commands(); - if (getdynamicscommand) { - set_has_getdynamicscommand(); - commands_.getdynamicscommand_ = getdynamicscommand; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.getDynamicsCommand) -} - -// .pybullet_grpc.InitPoseCommand initPoseCommand = 11; -bool PyBulletCommand::has_initposecommand() const { - return commands_case() == kInitPoseCommand; -} -void PyBulletCommand::set_has_initposecommand() { - _oneof_case_[0] = kInitPoseCommand; -} -void PyBulletCommand::clear_initposecommand() { - if (has_initposecommand()) { - delete commands_.initposecommand_; - clear_has_commands(); - } -} - const ::pybullet_grpc::InitPoseCommand& PyBulletCommand::initposecommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.initPoseCommand) - return has_initposecommand() - ? *commands_.initposecommand_ - : ::pybullet_grpc::InitPoseCommand::default_instance(); -} -::pybullet_grpc::InitPoseCommand* PyBulletCommand::mutable_initposecommand() { - if (!has_initposecommand()) { - clear_commands(); - set_has_initposecommand(); - commands_.initposecommand_ = new ::pybullet_grpc::InitPoseCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.initPoseCommand) - return commands_.initposecommand_; -} -::pybullet_grpc::InitPoseCommand* PyBulletCommand::release_initposecommand() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.initPoseCommand) - if (has_initposecommand()) { - clear_has_commands(); - ::pybullet_grpc::InitPoseCommand* temp = commands_.initposecommand_; - commands_.initposecommand_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletCommand::set_allocated_initposecommand(::pybullet_grpc::InitPoseCommand* initposecommand) { - clear_commands(); - if (initposecommand) { - set_has_initposecommand(); - commands_.initposecommand_ = initposecommand; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.initPoseCommand) -} - -// .pybullet_grpc.RequestActualStateCommand requestActualStateCommand = 12; -bool PyBulletCommand::has_requestactualstatecommand() const { - return commands_case() == kRequestActualStateCommand; -} -void PyBulletCommand::set_has_requestactualstatecommand() { - _oneof_case_[0] = kRequestActualStateCommand; -} -void PyBulletCommand::clear_requestactualstatecommand() { - if (has_requestactualstatecommand()) { - delete commands_.requestactualstatecommand_; - clear_has_commands(); - } -} - const ::pybullet_grpc::RequestActualStateCommand& PyBulletCommand::requestactualstatecommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.requestActualStateCommand) - return has_requestactualstatecommand() - ? *commands_.requestactualstatecommand_ - : ::pybullet_grpc::RequestActualStateCommand::default_instance(); -} -::pybullet_grpc::RequestActualStateCommand* PyBulletCommand::mutable_requestactualstatecommand() { - if (!has_requestactualstatecommand()) { - clear_commands(); - set_has_requestactualstatecommand(); - commands_.requestactualstatecommand_ = new ::pybullet_grpc::RequestActualStateCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.requestActualStateCommand) - return commands_.requestactualstatecommand_; -} -::pybullet_grpc::RequestActualStateCommand* PyBulletCommand::release_requestactualstatecommand() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.requestActualStateCommand) - if (has_requestactualstatecommand()) { - clear_has_commands(); - ::pybullet_grpc::RequestActualStateCommand* temp = commands_.requestactualstatecommand_; - commands_.requestactualstatecommand_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletCommand::set_allocated_requestactualstatecommand(::pybullet_grpc::RequestActualStateCommand* requestactualstatecommand) { - clear_commands(); - if (requestactualstatecommand) { - set_has_requestactualstatecommand(); - commands_.requestactualstatecommand_ = requestactualstatecommand; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.requestActualStateCommand) -} - -// .pybullet_grpc.ConfigureOpenGLVisualizerCommand configureOpenGLVisualizerCommand = 13; -bool PyBulletCommand::has_configureopenglvisualizercommand() const { - return commands_case() == kConfigureOpenGLVisualizerCommand; -} -void PyBulletCommand::set_has_configureopenglvisualizercommand() { - _oneof_case_[0] = kConfigureOpenGLVisualizerCommand; -} -void PyBulletCommand::clear_configureopenglvisualizercommand() { - if (has_configureopenglvisualizercommand()) { - delete commands_.configureopenglvisualizercommand_; - clear_has_commands(); - } -} - const ::pybullet_grpc::ConfigureOpenGLVisualizerCommand& PyBulletCommand::configureopenglvisualizercommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.configureOpenGLVisualizerCommand) - return has_configureopenglvisualizercommand() - ? *commands_.configureopenglvisualizercommand_ - : ::pybullet_grpc::ConfigureOpenGLVisualizerCommand::default_instance(); -} -::pybullet_grpc::ConfigureOpenGLVisualizerCommand* PyBulletCommand::mutable_configureopenglvisualizercommand() { - if (!has_configureopenglvisualizercommand()) { - clear_commands(); - set_has_configureopenglvisualizercommand(); - commands_.configureopenglvisualizercommand_ = new ::pybullet_grpc::ConfigureOpenGLVisualizerCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.configureOpenGLVisualizerCommand) - return commands_.configureopenglvisualizercommand_; -} -::pybullet_grpc::ConfigureOpenGLVisualizerCommand* PyBulletCommand::release_configureopenglvisualizercommand() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.configureOpenGLVisualizerCommand) - if (has_configureopenglvisualizercommand()) { - clear_has_commands(); - ::pybullet_grpc::ConfigureOpenGLVisualizerCommand* temp = commands_.configureopenglvisualizercommand_; - commands_.configureopenglvisualizercommand_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletCommand::set_allocated_configureopenglvisualizercommand(::pybullet_grpc::ConfigureOpenGLVisualizerCommand* configureopenglvisualizercommand) { - clear_commands(); - if (configureopenglvisualizercommand) { - set_has_configureopenglvisualizercommand(); - commands_.configureopenglvisualizercommand_ = configureopenglvisualizercommand; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.configureOpenGLVisualizerCommand) -} - -// .pybullet_grpc.SyncBodiesCommand syncBodiesCommand = 14; -bool PyBulletCommand::has_syncbodiescommand() const { - return commands_case() == kSyncBodiesCommand; -} -void PyBulletCommand::set_has_syncbodiescommand() { - _oneof_case_[0] = kSyncBodiesCommand; -} -void PyBulletCommand::clear_syncbodiescommand() { - if (has_syncbodiescommand()) { - delete commands_.syncbodiescommand_; - clear_has_commands(); - } -} - const ::pybullet_grpc::SyncBodiesCommand& PyBulletCommand::syncbodiescommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.syncBodiesCommand) - return has_syncbodiescommand() - ? *commands_.syncbodiescommand_ - : ::pybullet_grpc::SyncBodiesCommand::default_instance(); -} -::pybullet_grpc::SyncBodiesCommand* PyBulletCommand::mutable_syncbodiescommand() { - if (!has_syncbodiescommand()) { - clear_commands(); - set_has_syncbodiescommand(); - commands_.syncbodiescommand_ = new ::pybullet_grpc::SyncBodiesCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.syncBodiesCommand) - return commands_.syncbodiescommand_; -} -::pybullet_grpc::SyncBodiesCommand* PyBulletCommand::release_syncbodiescommand() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.syncBodiesCommand) - if (has_syncbodiescommand()) { - clear_has_commands(); - ::pybullet_grpc::SyncBodiesCommand* temp = commands_.syncbodiescommand_; - commands_.syncbodiescommand_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletCommand::set_allocated_syncbodiescommand(::pybullet_grpc::SyncBodiesCommand* syncbodiescommand) { - clear_commands(); - if (syncbodiescommand) { - set_has_syncbodiescommand(); - commands_.syncbodiescommand_ = syncbodiescommand; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.syncBodiesCommand) -} - -// .pybullet_grpc.RequestBodyInfoCommand requestBodyInfoCommand = 15; -bool PyBulletCommand::has_requestbodyinfocommand() const { - return commands_case() == kRequestBodyInfoCommand; -} -void PyBulletCommand::set_has_requestbodyinfocommand() { - _oneof_case_[0] = kRequestBodyInfoCommand; -} -void PyBulletCommand::clear_requestbodyinfocommand() { - if (has_requestbodyinfocommand()) { - delete commands_.requestbodyinfocommand_; - clear_has_commands(); - } -} - const ::pybullet_grpc::RequestBodyInfoCommand& PyBulletCommand::requestbodyinfocommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.requestBodyInfoCommand) - return has_requestbodyinfocommand() - ? *commands_.requestbodyinfocommand_ - : ::pybullet_grpc::RequestBodyInfoCommand::default_instance(); -} -::pybullet_grpc::RequestBodyInfoCommand* PyBulletCommand::mutable_requestbodyinfocommand() { - if (!has_requestbodyinfocommand()) { - clear_commands(); - set_has_requestbodyinfocommand(); - commands_.requestbodyinfocommand_ = new ::pybullet_grpc::RequestBodyInfoCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.requestBodyInfoCommand) - return commands_.requestbodyinfocommand_; -} -::pybullet_grpc::RequestBodyInfoCommand* PyBulletCommand::release_requestbodyinfocommand() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.requestBodyInfoCommand) - if (has_requestbodyinfocommand()) { - clear_has_commands(); - ::pybullet_grpc::RequestBodyInfoCommand* temp = commands_.requestbodyinfocommand_; - commands_.requestbodyinfocommand_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletCommand::set_allocated_requestbodyinfocommand(::pybullet_grpc::RequestBodyInfoCommand* requestbodyinfocommand) { - clear_commands(); - if (requestbodyinfocommand) { - set_has_requestbodyinfocommand(); - commands_.requestbodyinfocommand_ = requestbodyinfocommand; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.requestBodyInfoCommand) -} - -// .pybullet_grpc.PhysicsSimulationParametersCommand setPhysicsSimulationParametersCommand = 16; -bool PyBulletCommand::has_setphysicssimulationparameterscommand() const { - return commands_case() == kSetPhysicsSimulationParametersCommand; -} -void PyBulletCommand::set_has_setphysicssimulationparameterscommand() { - _oneof_case_[0] = kSetPhysicsSimulationParametersCommand; -} -void PyBulletCommand::clear_setphysicssimulationparameterscommand() { - if (has_setphysicssimulationparameterscommand()) { - delete commands_.setphysicssimulationparameterscommand_; - clear_has_commands(); - } -} - const ::pybullet_grpc::PhysicsSimulationParametersCommand& PyBulletCommand::setphysicssimulationparameterscommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.setPhysicsSimulationParametersCommand) - return has_setphysicssimulationparameterscommand() - ? *commands_.setphysicssimulationparameterscommand_ - : ::pybullet_grpc::PhysicsSimulationParametersCommand::default_instance(); -} -::pybullet_grpc::PhysicsSimulationParametersCommand* PyBulletCommand::mutable_setphysicssimulationparameterscommand() { - if (!has_setphysicssimulationparameterscommand()) { - clear_commands(); - set_has_setphysicssimulationparameterscommand(); - commands_.setphysicssimulationparameterscommand_ = new ::pybullet_grpc::PhysicsSimulationParametersCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.setPhysicsSimulationParametersCommand) - return commands_.setphysicssimulationparameterscommand_; -} -::pybullet_grpc::PhysicsSimulationParametersCommand* PyBulletCommand::release_setphysicssimulationparameterscommand() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.setPhysicsSimulationParametersCommand) - if (has_setphysicssimulationparameterscommand()) { - clear_has_commands(); - ::pybullet_grpc::PhysicsSimulationParametersCommand* temp = commands_.setphysicssimulationparameterscommand_; - commands_.setphysicssimulationparameterscommand_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletCommand::set_allocated_setphysicssimulationparameterscommand(::pybullet_grpc::PhysicsSimulationParametersCommand* setphysicssimulationparameterscommand) { - clear_commands(); - if (setphysicssimulationparameterscommand) { - set_has_setphysicssimulationparameterscommand(); - commands_.setphysicssimulationparameterscommand_ = setphysicssimulationparameterscommand; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.setPhysicsSimulationParametersCommand) -} - -// .pybullet_grpc.JointMotorControlCommand jointMotorControlCommand = 17; -bool PyBulletCommand::has_jointmotorcontrolcommand() const { - return commands_case() == kJointMotorControlCommand; -} -void PyBulletCommand::set_has_jointmotorcontrolcommand() { - _oneof_case_[0] = kJointMotorControlCommand; -} -void PyBulletCommand::clear_jointmotorcontrolcommand() { - if (has_jointmotorcontrolcommand()) { - delete commands_.jointmotorcontrolcommand_; - clear_has_commands(); - } -} - const ::pybullet_grpc::JointMotorControlCommand& PyBulletCommand::jointmotorcontrolcommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.jointMotorControlCommand) - return has_jointmotorcontrolcommand() - ? *commands_.jointmotorcontrolcommand_ - : ::pybullet_grpc::JointMotorControlCommand::default_instance(); -} -::pybullet_grpc::JointMotorControlCommand* PyBulletCommand::mutable_jointmotorcontrolcommand() { - if (!has_jointmotorcontrolcommand()) { - clear_commands(); - set_has_jointmotorcontrolcommand(); - commands_.jointmotorcontrolcommand_ = new ::pybullet_grpc::JointMotorControlCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.jointMotorControlCommand) - return commands_.jointmotorcontrolcommand_; -} -::pybullet_grpc::JointMotorControlCommand* PyBulletCommand::release_jointmotorcontrolcommand() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.jointMotorControlCommand) - if (has_jointmotorcontrolcommand()) { - clear_has_commands(); - ::pybullet_grpc::JointMotorControlCommand* temp = commands_.jointmotorcontrolcommand_; - commands_.jointmotorcontrolcommand_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletCommand::set_allocated_jointmotorcontrolcommand(::pybullet_grpc::JointMotorControlCommand* jointmotorcontrolcommand) { - clear_commands(); - if (jointmotorcontrolcommand) { - set_has_jointmotorcontrolcommand(); - commands_.jointmotorcontrolcommand_ = jointmotorcontrolcommand; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.jointMotorControlCommand) -} - -// .pybullet_grpc.UserConstraintCommand userConstraintCommand = 18; -bool PyBulletCommand::has_userconstraintcommand() const { - return commands_case() == kUserConstraintCommand; -} -void PyBulletCommand::set_has_userconstraintcommand() { - _oneof_case_[0] = kUserConstraintCommand; -} -void PyBulletCommand::clear_userconstraintcommand() { - if (has_userconstraintcommand()) { - delete commands_.userconstraintcommand_; - clear_has_commands(); - } -} - const ::pybullet_grpc::UserConstraintCommand& PyBulletCommand::userconstraintcommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.userConstraintCommand) - return has_userconstraintcommand() - ? *commands_.userconstraintcommand_ - : ::pybullet_grpc::UserConstraintCommand::default_instance(); -} -::pybullet_grpc::UserConstraintCommand* PyBulletCommand::mutable_userconstraintcommand() { - if (!has_userconstraintcommand()) { - clear_commands(); - set_has_userconstraintcommand(); - commands_.userconstraintcommand_ = new ::pybullet_grpc::UserConstraintCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.userConstraintCommand) - return commands_.userconstraintcommand_; -} -::pybullet_grpc::UserConstraintCommand* PyBulletCommand::release_userconstraintcommand() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.userConstraintCommand) - if (has_userconstraintcommand()) { - clear_has_commands(); - ::pybullet_grpc::UserConstraintCommand* temp = commands_.userconstraintcommand_; - commands_.userconstraintcommand_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletCommand::set_allocated_userconstraintcommand(::pybullet_grpc::UserConstraintCommand* userconstraintcommand) { - clear_commands(); - if (userconstraintcommand) { - set_has_userconstraintcommand(); - commands_.userconstraintcommand_ = userconstraintcommand; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.userConstraintCommand) -} - -// .pybullet_grpc.CheckVersionCommand checkVersionCommand = 19; -bool PyBulletCommand::has_checkversioncommand() const { - return commands_case() == kCheckVersionCommand; -} -void PyBulletCommand::set_has_checkversioncommand() { - _oneof_case_[0] = kCheckVersionCommand; -} -void PyBulletCommand::clear_checkversioncommand() { - if (has_checkversioncommand()) { - delete commands_.checkversioncommand_; - clear_has_commands(); - } -} - const ::pybullet_grpc::CheckVersionCommand& PyBulletCommand::checkversioncommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.checkVersionCommand) - return has_checkversioncommand() - ? *commands_.checkversioncommand_ - : ::pybullet_grpc::CheckVersionCommand::default_instance(); -} -::pybullet_grpc::CheckVersionCommand* PyBulletCommand::mutable_checkversioncommand() { - if (!has_checkversioncommand()) { - clear_commands(); - set_has_checkversioncommand(); - commands_.checkversioncommand_ = new ::pybullet_grpc::CheckVersionCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.checkVersionCommand) - return commands_.checkversioncommand_; -} -::pybullet_grpc::CheckVersionCommand* PyBulletCommand::release_checkversioncommand() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.checkVersionCommand) - if (has_checkversioncommand()) { - clear_has_commands(); - ::pybullet_grpc::CheckVersionCommand* temp = commands_.checkversioncommand_; - commands_.checkversioncommand_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletCommand::set_allocated_checkversioncommand(::pybullet_grpc::CheckVersionCommand* checkversioncommand) { - clear_commands(); - if (checkversioncommand) { - set_has_checkversioncommand(); - commands_.checkversioncommand_ = checkversioncommand; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.checkVersionCommand) -} - -// .pybullet_grpc.RequestKeyboardEventsCommand requestKeyboardEventsCommand = 20; -bool PyBulletCommand::has_requestkeyboardeventscommand() const { - return commands_case() == kRequestKeyboardEventsCommand; -} -void PyBulletCommand::set_has_requestkeyboardeventscommand() { - _oneof_case_[0] = kRequestKeyboardEventsCommand; -} -void PyBulletCommand::clear_requestkeyboardeventscommand() { - if (has_requestkeyboardeventscommand()) { - delete commands_.requestkeyboardeventscommand_; - clear_has_commands(); - } -} - const ::pybullet_grpc::RequestKeyboardEventsCommand& PyBulletCommand::requestkeyboardeventscommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.requestKeyboardEventsCommand) - return has_requestkeyboardeventscommand() - ? *commands_.requestkeyboardeventscommand_ - : ::pybullet_grpc::RequestKeyboardEventsCommand::default_instance(); -} -::pybullet_grpc::RequestKeyboardEventsCommand* PyBulletCommand::mutable_requestkeyboardeventscommand() { - if (!has_requestkeyboardeventscommand()) { - clear_commands(); - set_has_requestkeyboardeventscommand(); - commands_.requestkeyboardeventscommand_ = new ::pybullet_grpc::RequestKeyboardEventsCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.requestKeyboardEventsCommand) - return commands_.requestkeyboardeventscommand_; -} -::pybullet_grpc::RequestKeyboardEventsCommand* PyBulletCommand::release_requestkeyboardeventscommand() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.requestKeyboardEventsCommand) - if (has_requestkeyboardeventscommand()) { - clear_has_commands(); - ::pybullet_grpc::RequestKeyboardEventsCommand* temp = commands_.requestkeyboardeventscommand_; - commands_.requestkeyboardeventscommand_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletCommand::set_allocated_requestkeyboardeventscommand(::pybullet_grpc::RequestKeyboardEventsCommand* requestkeyboardeventscommand) { - clear_commands(); - if (requestkeyboardeventscommand) { - set_has_requestkeyboardeventscommand(); - commands_.requestkeyboardeventscommand_ = requestkeyboardeventscommand; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.requestKeyboardEventsCommand) -} - -// .pybullet_grpc.RequestCameraImageCommand requestCameraImageCommand = 21; -bool PyBulletCommand::has_requestcameraimagecommand() const { - return commands_case() == kRequestCameraImageCommand; -} -void PyBulletCommand::set_has_requestcameraimagecommand() { - _oneof_case_[0] = kRequestCameraImageCommand; -} -void PyBulletCommand::clear_requestcameraimagecommand() { - if (has_requestcameraimagecommand()) { - delete commands_.requestcameraimagecommand_; - clear_has_commands(); - } -} - const ::pybullet_grpc::RequestCameraImageCommand& PyBulletCommand::requestcameraimagecommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.requestCameraImageCommand) - return has_requestcameraimagecommand() - ? *commands_.requestcameraimagecommand_ - : ::pybullet_grpc::RequestCameraImageCommand::default_instance(); -} -::pybullet_grpc::RequestCameraImageCommand* PyBulletCommand::mutable_requestcameraimagecommand() { - if (!has_requestcameraimagecommand()) { - clear_commands(); - set_has_requestcameraimagecommand(); - commands_.requestcameraimagecommand_ = new ::pybullet_grpc::RequestCameraImageCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.requestCameraImageCommand) - return commands_.requestcameraimagecommand_; -} -::pybullet_grpc::RequestCameraImageCommand* PyBulletCommand::release_requestcameraimagecommand() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.requestCameraImageCommand) - if (has_requestcameraimagecommand()) { - clear_has_commands(); - ::pybullet_grpc::RequestCameraImageCommand* temp = commands_.requestcameraimagecommand_; - commands_.requestcameraimagecommand_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletCommand::set_allocated_requestcameraimagecommand(::pybullet_grpc::RequestCameraImageCommand* requestcameraimagecommand) { - clear_commands(); - if (requestcameraimagecommand) { - set_has_requestcameraimagecommand(); - commands_.requestcameraimagecommand_ = requestcameraimagecommand; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.requestCameraImageCommand) -} - -bool PyBulletCommand::has_commands() const { - return commands_case() != COMMANDS_NOT_SET; -} -void PyBulletCommand::clear_has_commands() { - _oneof_case_[0] = COMMANDS_NOT_SET; -} -PyBulletCommand::CommandsCase PyBulletCommand::commands_case() const { - return PyBulletCommand::CommandsCase(_oneof_case_[0]); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== +void PyBulletStatus::InitAsDefaultInstance() { + ::pybullet_grpc::_PyBulletStatus_default_instance_.urdfstatus_ = const_cast< ::pybullet_grpc::LoadUrdfStatus*>( + ::pybullet_grpc::LoadUrdfStatus::internal_default_instance()); + ::pybullet_grpc::_PyBulletStatus_default_instance_.sdfstatus_ = const_cast< ::pybullet_grpc::SdfLoadedStatus*>( + ::pybullet_grpc::SdfLoadedStatus::internal_default_instance()); + ::pybullet_grpc::_PyBulletStatus_default_instance_.mjcfstatus_ = const_cast< ::pybullet_grpc::MjcfLoadedStatus*>( + ::pybullet_grpc::MjcfLoadedStatus::internal_default_instance()); + ::pybullet_grpc::_PyBulletStatus_default_instance_.getdynamicsstatus_ = const_cast< ::pybullet_grpc::GetDynamicsStatus*>( + ::pybullet_grpc::GetDynamicsStatus::internal_default_instance()); + ::pybullet_grpc::_PyBulletStatus_default_instance_.actualstatestatus_ = const_cast< ::pybullet_grpc::SendActualStateStatus*>( + ::pybullet_grpc::SendActualStateStatus::internal_default_instance()); + ::pybullet_grpc::_PyBulletStatus_default_instance_.syncbodiesstatus_ = const_cast< ::pybullet_grpc::SyncBodiesStatus*>( + ::pybullet_grpc::SyncBodiesStatus::internal_default_instance()); + ::pybullet_grpc::_PyBulletStatus_default_instance_.requestbodyinfostatus_ = const_cast< ::pybullet_grpc::RequestBodyInfoStatus*>( + ::pybullet_grpc::RequestBodyInfoStatus::internal_default_instance()); + ::pybullet_grpc::_PyBulletStatus_default_instance_.requestphysicssimulationparametersstatus_ = const_cast< ::pybullet_grpc::PhysicsSimulationParameters*>( + ::pybullet_grpc::PhysicsSimulationParameters::internal_default_instance()); + ::pybullet_grpc::_PyBulletStatus_default_instance_.checkversionstatus_ = const_cast< ::pybullet_grpc::CheckVersionStatus*>( + ::pybullet_grpc::CheckVersionStatus::internal_default_instance()); + ::pybullet_grpc::_PyBulletStatus_default_instance_.userconstraintstatus_ = const_cast< ::pybullet_grpc::UserConstraintStatus*>( + ::pybullet_grpc::UserConstraintStatus::internal_default_instance()); + ::pybullet_grpc::_PyBulletStatus_default_instance_.userconstraintstatestatus_ = const_cast< ::pybullet_grpc::UserConstraintStateStatus*>( + ::pybullet_grpc::UserConstraintStateStatus::internal_default_instance()); + ::pybullet_grpc::_PyBulletStatus_default_instance_.keyboardeventsstatus_ = const_cast< ::pybullet_grpc::KeyboardEventsStatus*>( + ::pybullet_grpc::KeyboardEventsStatus::internal_default_instance()); + ::pybullet_grpc::_PyBulletStatus_default_instance_.requestcameraimagestatus_ = const_cast< ::pybullet_grpc::RequestCameraImageStatus*>( + ::pybullet_grpc::RequestCameraImageStatus::internal_default_instance()); +} +void PyBulletStatus::set_allocated_urdfstatus(::pybullet_grpc::LoadUrdfStatus* urdfstatus) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_status(); + if (urdfstatus) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + urdfstatus = ::google::protobuf::internal::GetOwnedMessage( + message_arena, urdfstatus, submessage_arena); + } + set_has_urdfstatus(); + status_.urdfstatus_ = urdfstatus; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.urdfStatus) +} +void PyBulletStatus::set_allocated_sdfstatus(::pybullet_grpc::SdfLoadedStatus* sdfstatus) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_status(); + if (sdfstatus) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + sdfstatus = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sdfstatus, submessage_arena); + } + set_has_sdfstatus(); + status_.sdfstatus_ = sdfstatus; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.sdfStatus) +} +void PyBulletStatus::set_allocated_mjcfstatus(::pybullet_grpc::MjcfLoadedStatus* mjcfstatus) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_status(); + if (mjcfstatus) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + mjcfstatus = ::google::protobuf::internal::GetOwnedMessage( + message_arena, mjcfstatus, submessage_arena); + } + set_has_mjcfstatus(); + status_.mjcfstatus_ = mjcfstatus; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.mjcfStatus) +} +void PyBulletStatus::set_allocated_getdynamicsstatus(::pybullet_grpc::GetDynamicsStatus* getdynamicsstatus) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_status(); + if (getdynamicsstatus) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + getdynamicsstatus = ::google::protobuf::internal::GetOwnedMessage( + message_arena, getdynamicsstatus, submessage_arena); + } + set_has_getdynamicsstatus(); + status_.getdynamicsstatus_ = getdynamicsstatus; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.getDynamicsStatus) +} +void PyBulletStatus::set_allocated_actualstatestatus(::pybullet_grpc::SendActualStateStatus* actualstatestatus) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_status(); + if (actualstatestatus) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + actualstatestatus = ::google::protobuf::internal::GetOwnedMessage( + message_arena, actualstatestatus, submessage_arena); + } + set_has_actualstatestatus(); + status_.actualstatestatus_ = actualstatestatus; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.actualStateStatus) +} +void PyBulletStatus::set_allocated_syncbodiesstatus(::pybullet_grpc::SyncBodiesStatus* syncbodiesstatus) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_status(); + if (syncbodiesstatus) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + syncbodiesstatus = ::google::protobuf::internal::GetOwnedMessage( + message_arena, syncbodiesstatus, submessage_arena); + } + set_has_syncbodiesstatus(); + status_.syncbodiesstatus_ = syncbodiesstatus; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.syncBodiesStatus) +} +void PyBulletStatus::set_allocated_requestbodyinfostatus(::pybullet_grpc::RequestBodyInfoStatus* requestbodyinfostatus) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_status(); + if (requestbodyinfostatus) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + requestbodyinfostatus = ::google::protobuf::internal::GetOwnedMessage( + message_arena, requestbodyinfostatus, submessage_arena); + } + set_has_requestbodyinfostatus(); + status_.requestbodyinfostatus_ = requestbodyinfostatus; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.requestBodyInfoStatus) +} +void PyBulletStatus::set_allocated_requestphysicssimulationparametersstatus(::pybullet_grpc::PhysicsSimulationParameters* requestphysicssimulationparametersstatus) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_status(); + if (requestphysicssimulationparametersstatus) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + requestphysicssimulationparametersstatus = ::google::protobuf::internal::GetOwnedMessage( + message_arena, requestphysicssimulationparametersstatus, submessage_arena); + } + set_has_requestphysicssimulationparametersstatus(); + status_.requestphysicssimulationparametersstatus_ = requestphysicssimulationparametersstatus; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.requestPhysicsSimulationParametersStatus) +} +void PyBulletStatus::set_allocated_checkversionstatus(::pybullet_grpc::CheckVersionStatus* checkversionstatus) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_status(); + if (checkversionstatus) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + checkversionstatus = ::google::protobuf::internal::GetOwnedMessage( + message_arena, checkversionstatus, submessage_arena); + } + set_has_checkversionstatus(); + status_.checkversionstatus_ = checkversionstatus; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.checkVersionStatus) +} +void PyBulletStatus::set_allocated_userconstraintstatus(::pybullet_grpc::UserConstraintStatus* userconstraintstatus) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_status(); + if (userconstraintstatus) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + userconstraintstatus = ::google::protobuf::internal::GetOwnedMessage( + message_arena, userconstraintstatus, submessage_arena); + } + set_has_userconstraintstatus(); + status_.userconstraintstatus_ = userconstraintstatus; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.userConstraintStatus) +} +void PyBulletStatus::set_allocated_userconstraintstatestatus(::pybullet_grpc::UserConstraintStateStatus* userconstraintstatestatus) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_status(); + if (userconstraintstatestatus) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + userconstraintstatestatus = ::google::protobuf::internal::GetOwnedMessage( + message_arena, userconstraintstatestatus, submessage_arena); + } + set_has_userconstraintstatestatus(); + status_.userconstraintstatestatus_ = userconstraintstatestatus; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.userConstraintStateStatus) +} +void PyBulletStatus::set_allocated_keyboardeventsstatus(::pybullet_grpc::KeyboardEventsStatus* keyboardeventsstatus) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_status(); + if (keyboardeventsstatus) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + keyboardeventsstatus = ::google::protobuf::internal::GetOwnedMessage( + message_arena, keyboardeventsstatus, submessage_arena); + } + set_has_keyboardeventsstatus(); + status_.keyboardeventsstatus_ = keyboardeventsstatus; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.keyboardEventsStatus) +} +void PyBulletStatus::set_allocated_requestcameraimagestatus(::pybullet_grpc::RequestCameraImageStatus* requestcameraimagestatus) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_status(); + if (requestcameraimagestatus) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + requestcameraimagestatus = ::google::protobuf::internal::GetOwnedMessage( + message_arena, requestcameraimagestatus, submessage_arena); + } + set_has_requestcameraimagestatus(); + status_.requestcameraimagestatus_ = requestcameraimagestatus; + } + // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.requestCameraImageStatus) +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int PyBulletStatus::kStatusTypeFieldNumber; const int PyBulletStatus::kBinaryBlobFieldNumber; @@ -21953,9 +18638,8 @@ const int PyBulletStatus::kRequestCameraImageStatusFieldNumber; PyBulletStatus::PyBulletStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_pybullet_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_pybullet_2eproto::scc_info_PyBulletStatus.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.PyBulletStatus) } @@ -21963,8 +18647,7 @@ PyBulletStatus::PyBulletStatus(const PyBulletStatus& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), binaryblob_(from.binaryblob_), - unknownstatusbinaryblob_(from.unknownstatusbinaryblob_), - _cached_size_(0) { + unknownstatusbinaryblob_(from.unknownstatusbinaryblob_) { _internal_metadata_.MergeFrom(from._internal_metadata_); statustype_ = from.statustype_; clear_has_status(); @@ -22031,7 +18714,6 @@ PyBulletStatus::PyBulletStatus(const PyBulletStatus& from) void PyBulletStatus::SharedCtor() { statustype_ = 0; clear_has_status(); - _cached_size_ = 0; } PyBulletStatus::~PyBulletStatus() { @@ -22046,27 +18728,18 @@ void PyBulletStatus::SharedDtor() { } void PyBulletStatus::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* PyBulletStatus::descriptor() { - protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[38].descriptor; + ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const PyBulletStatus& PyBulletStatus::default_instance() { - protobuf_pybullet_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_PyBulletStatus.base); return *internal_default_instance(); } -PyBulletStatus* PyBulletStatus::New(::google::protobuf::Arena* arena) const { - PyBulletStatus* n = new PyBulletStatus; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void PyBulletStatus::clear_status() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.PyBulletStatus) @@ -22133,10 +18806,15 @@ void PyBulletStatus::clear_status() { void PyBulletStatus::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.PyBulletStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + binaryblob_.Clear(); unknownstatusbinaryblob_.Clear(); statustype_ = 0; clear_status(); + _internal_metadata_.Clear(); } bool PyBulletStatus::MergePartialFromCodedStream( @@ -22145,13 +18823,14 @@ bool PyBulletStatus::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.PyBulletStatus) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 statusType = 1; case 1: { - if (tag == 8u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( @@ -22164,7 +18843,8 @@ bool PyBulletStatus::MergePartialFromCodedStream( // repeated bytes binaryBlob = 2; case 2: { - if (tag == 18u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( input, this->add_binaryblob())); } else { @@ -22175,7 +18855,8 @@ bool PyBulletStatus::MergePartialFromCodedStream( // repeated bytes unknownStatusBinaryBlob = 3; case 3: { - if (tag == 26u) { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( input, this->add_unknownstatusbinaryblob())); } else { @@ -22186,8 +18867,9 @@ bool PyBulletStatus::MergePartialFromCodedStream( // .pybullet_grpc.LoadUrdfStatus urdfStatus = 4; case 4: { - if (tag == 34u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_urdfstatus())); } else { goto handle_unusual; @@ -22197,8 +18879,9 @@ bool PyBulletStatus::MergePartialFromCodedStream( // .pybullet_grpc.SdfLoadedStatus sdfStatus = 5; case 5: { - if (tag == 42u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_sdfstatus())); } else { goto handle_unusual; @@ -22208,8 +18891,9 @@ bool PyBulletStatus::MergePartialFromCodedStream( // .pybullet_grpc.MjcfLoadedStatus mjcfStatus = 6; case 6: { - if (tag == 50u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_mjcfstatus())); } else { goto handle_unusual; @@ -22219,8 +18903,9 @@ bool PyBulletStatus::MergePartialFromCodedStream( // .pybullet_grpc.GetDynamicsStatus getDynamicsStatus = 7; case 7: { - if (tag == 58u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_getdynamicsstatus())); } else { goto handle_unusual; @@ -22230,8 +18915,9 @@ bool PyBulletStatus::MergePartialFromCodedStream( // .pybullet_grpc.SendActualStateStatus actualStateStatus = 8; case 8: { - if (tag == 66u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_actualstatestatus())); } else { goto handle_unusual; @@ -22241,8 +18927,9 @@ bool PyBulletStatus::MergePartialFromCodedStream( // .pybullet_grpc.SyncBodiesStatus syncBodiesStatus = 9; case 9: { - if (tag == 74u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_syncbodiesstatus())); } else { goto handle_unusual; @@ -22252,8 +18939,9 @@ bool PyBulletStatus::MergePartialFromCodedStream( // .pybullet_grpc.RequestBodyInfoStatus requestBodyInfoStatus = 10; case 10: { - if (tag == 82u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_requestbodyinfostatus())); } else { goto handle_unusual; @@ -22263,8 +18951,9 @@ bool PyBulletStatus::MergePartialFromCodedStream( // .pybullet_grpc.PhysicsSimulationParameters requestPhysicsSimulationParametersStatus = 11; case 11: { - if (tag == 90u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_requestphysicssimulationparametersstatus())); } else { goto handle_unusual; @@ -22274,8 +18963,9 @@ bool PyBulletStatus::MergePartialFromCodedStream( // .pybullet_grpc.CheckVersionStatus checkVersionStatus = 12; case 12: { - if (tag == 98u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_checkversionstatus())); } else { goto handle_unusual; @@ -22285,8 +18975,9 @@ bool PyBulletStatus::MergePartialFromCodedStream( // .pybullet_grpc.UserConstraintStatus userConstraintStatus = 13; case 13: { - if (tag == 106u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_userconstraintstatus())); } else { goto handle_unusual; @@ -22296,8 +18987,9 @@ bool PyBulletStatus::MergePartialFromCodedStream( // .pybullet_grpc.UserConstraintStateStatus userConstraintStateStatus = 14; case 14: { - if (tag == 114u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_userconstraintstatestatus())); } else { goto handle_unusual; @@ -22307,8 +18999,9 @@ bool PyBulletStatus::MergePartialFromCodedStream( // .pybullet_grpc.KeyboardEventsStatus keyboardEventsStatus = 15; case 15: { - if (tag == 122u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_keyboardeventsstatus())); } else { goto handle_unusual; @@ -22318,8 +19011,9 @@ bool PyBulletStatus::MergePartialFromCodedStream( // .pybullet_grpc.RequestCameraImageStatus requestCameraImageStatus = 16; case 16: { - if (tag == 130u) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_requestcameraimagestatus())); } else { goto handle_unusual; @@ -22329,12 +19023,11 @@ bool PyBulletStatus::MergePartialFromCodedStream( default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } @@ -22351,19 +19044,22 @@ failure: void PyBulletStatus::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.PyBulletStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 statusType = 1; if (this->statustype() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->statustype(), output); } // repeated bytes binaryBlob = 2; - for (int i = 0; i < this->binaryblob_size(); i++) { + for (int i = 0, n = this->binaryblob_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteBytes( 2, this->binaryblob(i), output); } // repeated bytes unknownStatusBinaryBlob = 3; - for (int i = 0; i < this->unknownstatusbinaryblob_size(); i++) { + for (int i = 0, n = this->unknownstatusbinaryblob_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteBytes( 3, this->unknownstatusbinaryblob(i), output); } @@ -22371,101 +19067,108 @@ void PyBulletStatus::SerializeWithCachedSizes( // .pybullet_grpc.LoadUrdfStatus urdfStatus = 4; if (has_urdfstatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, *status_.urdfstatus_, output); + 4, this->_internal_urdfstatus(), output); } // .pybullet_grpc.SdfLoadedStatus sdfStatus = 5; if (has_sdfstatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, *status_.sdfstatus_, output); + 5, this->_internal_sdfstatus(), output); } // .pybullet_grpc.MjcfLoadedStatus mjcfStatus = 6; if (has_mjcfstatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, *status_.mjcfstatus_, output); + 6, this->_internal_mjcfstatus(), output); } // .pybullet_grpc.GetDynamicsStatus getDynamicsStatus = 7; if (has_getdynamicsstatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, *status_.getdynamicsstatus_, output); + 7, this->_internal_getdynamicsstatus(), output); } // .pybullet_grpc.SendActualStateStatus actualStateStatus = 8; if (has_actualstatestatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, *status_.actualstatestatus_, output); + 8, this->_internal_actualstatestatus(), output); } // .pybullet_grpc.SyncBodiesStatus syncBodiesStatus = 9; if (has_syncbodiesstatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, *status_.syncbodiesstatus_, output); + 9, this->_internal_syncbodiesstatus(), output); } // .pybullet_grpc.RequestBodyInfoStatus requestBodyInfoStatus = 10; if (has_requestbodyinfostatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, *status_.requestbodyinfostatus_, output); + 10, this->_internal_requestbodyinfostatus(), output); } // .pybullet_grpc.PhysicsSimulationParameters requestPhysicsSimulationParametersStatus = 11; if (has_requestphysicssimulationparametersstatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 11, *status_.requestphysicssimulationparametersstatus_, output); + 11, this->_internal_requestphysicssimulationparametersstatus(), output); } // .pybullet_grpc.CheckVersionStatus checkVersionStatus = 12; if (has_checkversionstatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 12, *status_.checkversionstatus_, output); + 12, this->_internal_checkversionstatus(), output); } // .pybullet_grpc.UserConstraintStatus userConstraintStatus = 13; if (has_userconstraintstatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 13, *status_.userconstraintstatus_, output); + 13, this->_internal_userconstraintstatus(), output); } // .pybullet_grpc.UserConstraintStateStatus userConstraintStateStatus = 14; if (has_userconstraintstatestatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 14, *status_.userconstraintstatestatus_, output); + 14, this->_internal_userconstraintstatestatus(), output); } // .pybullet_grpc.KeyboardEventsStatus keyboardEventsStatus = 15; if (has_keyboardeventsstatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 15, *status_.keyboardeventsstatus_, output); + 15, this->_internal_keyboardeventsstatus(), output); } // .pybullet_grpc.RequestCameraImageStatus requestCameraImageStatus = 16; if (has_requestcameraimagestatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 16, *status_.requestcameraimagestatus_, output); + 16, this->_internal_requestcameraimagestatus(), output); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } // @@protoc_insertion_point(serialize_end:pybullet_grpc.PyBulletStatus) } ::google::protobuf::uint8* PyBulletStatus::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { - (void)deterministic; // Unused + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.PyBulletStatus) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + // int32 statusType = 1; if (this->statustype() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->statustype(), target); } // repeated bytes binaryBlob = 2; - for (int i = 0; i < this->binaryblob_size(); i++) { + for (int i = 0, n = this->binaryblob_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteBytesToArray(2, this->binaryblob(i), target); } // repeated bytes unknownStatusBinaryBlob = 3; - for (int i = 0; i < this->unknownstatusbinaryblob_size(); i++) { + for (int i = 0, n = this->unknownstatusbinaryblob_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteBytesToArray(3, this->unknownstatusbinaryblob(i), target); } @@ -22473,94 +19176,98 @@ void PyBulletStatus::SerializeWithCachedSizes( // .pybullet_grpc.LoadUrdfStatus urdfStatus = 4; if (has_urdfstatus()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 4, *status_.urdfstatus_, false, target); + InternalWriteMessageToArray( + 4, this->_internal_urdfstatus(), deterministic, target); } // .pybullet_grpc.SdfLoadedStatus sdfStatus = 5; if (has_sdfstatus()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 5, *status_.sdfstatus_, false, target); + InternalWriteMessageToArray( + 5, this->_internal_sdfstatus(), deterministic, target); } // .pybullet_grpc.MjcfLoadedStatus mjcfStatus = 6; if (has_mjcfstatus()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 6, *status_.mjcfstatus_, false, target); + InternalWriteMessageToArray( + 6, this->_internal_mjcfstatus(), deterministic, target); } // .pybullet_grpc.GetDynamicsStatus getDynamicsStatus = 7; if (has_getdynamicsstatus()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 7, *status_.getdynamicsstatus_, false, target); + InternalWriteMessageToArray( + 7, this->_internal_getdynamicsstatus(), deterministic, target); } // .pybullet_grpc.SendActualStateStatus actualStateStatus = 8; if (has_actualstatestatus()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 8, *status_.actualstatestatus_, false, target); + InternalWriteMessageToArray( + 8, this->_internal_actualstatestatus(), deterministic, target); } // .pybullet_grpc.SyncBodiesStatus syncBodiesStatus = 9; if (has_syncbodiesstatus()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 9, *status_.syncbodiesstatus_, false, target); + InternalWriteMessageToArray( + 9, this->_internal_syncbodiesstatus(), deterministic, target); } // .pybullet_grpc.RequestBodyInfoStatus requestBodyInfoStatus = 10; if (has_requestbodyinfostatus()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 10, *status_.requestbodyinfostatus_, false, target); + InternalWriteMessageToArray( + 10, this->_internal_requestbodyinfostatus(), deterministic, target); } // .pybullet_grpc.PhysicsSimulationParameters requestPhysicsSimulationParametersStatus = 11; if (has_requestphysicssimulationparametersstatus()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 11, *status_.requestphysicssimulationparametersstatus_, false, target); + InternalWriteMessageToArray( + 11, this->_internal_requestphysicssimulationparametersstatus(), deterministic, target); } // .pybullet_grpc.CheckVersionStatus checkVersionStatus = 12; if (has_checkversionstatus()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 12, *status_.checkversionstatus_, false, target); + InternalWriteMessageToArray( + 12, this->_internal_checkversionstatus(), deterministic, target); } // .pybullet_grpc.UserConstraintStatus userConstraintStatus = 13; if (has_userconstraintstatus()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 13, *status_.userconstraintstatus_, false, target); + InternalWriteMessageToArray( + 13, this->_internal_userconstraintstatus(), deterministic, target); } // .pybullet_grpc.UserConstraintStateStatus userConstraintStateStatus = 14; if (has_userconstraintstatestatus()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 14, *status_.userconstraintstatestatus_, false, target); + InternalWriteMessageToArray( + 14, this->_internal_userconstraintstatestatus(), deterministic, target); } // .pybullet_grpc.KeyboardEventsStatus keyboardEventsStatus = 15; if (has_keyboardeventsstatus()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 15, *status_.keyboardeventsstatus_, false, target); + InternalWriteMessageToArray( + 15, this->_internal_keyboardeventsstatus(), deterministic, target); } // .pybullet_grpc.RequestCameraImageStatus requestCameraImageStatus = 16; if (has_requestcameraimagestatus()) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( - 16, *status_.requestcameraimagestatus_, false, target); + InternalWriteMessageToArray( + 16, this->_internal_requestcameraimagestatus(), deterministic, target); } + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } // @@protoc_insertion_point(serialize_to_array_end:pybullet_grpc.PyBulletStatus) return target; } @@ -22569,10 +19276,15 @@ size_t PyBulletStatus::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.PyBulletStatus) size_t total_size = 0; + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } // repeated bytes binaryBlob = 2; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->binaryblob_size()); - for (int i = 0; i < this->binaryblob_size(); i++) { + for (int i = 0, n = this->binaryblob_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( this->binaryblob(i)); } @@ -22580,7 +19292,7 @@ size_t PyBulletStatus::ByteSizeLong() const { // repeated bytes unknownStatusBinaryBlob = 3; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->unknownstatusbinaryblob_size()); - for (int i = 0; i < this->unknownstatusbinaryblob_size(); i++) { + for (int i = 0, n = this->unknownstatusbinaryblob_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( this->unknownstatusbinaryblob(i)); } @@ -22596,91 +19308,91 @@ size_t PyBulletStatus::ByteSizeLong() const { // .pybullet_grpc.LoadUrdfStatus urdfStatus = 4; case kUrdfStatus: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.urdfstatus_); break; } // .pybullet_grpc.SdfLoadedStatus sdfStatus = 5; case kSdfStatus: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.sdfstatus_); break; } // .pybullet_grpc.MjcfLoadedStatus mjcfStatus = 6; case kMjcfStatus: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.mjcfstatus_); break; } // .pybullet_grpc.GetDynamicsStatus getDynamicsStatus = 7; case kGetDynamicsStatus: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.getdynamicsstatus_); break; } // .pybullet_grpc.SendActualStateStatus actualStateStatus = 8; case kActualStateStatus: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.actualstatestatus_); break; } // .pybullet_grpc.SyncBodiesStatus syncBodiesStatus = 9; case kSyncBodiesStatus: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.syncbodiesstatus_); break; } // .pybullet_grpc.RequestBodyInfoStatus requestBodyInfoStatus = 10; case kRequestBodyInfoStatus: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.requestbodyinfostatus_); break; } // .pybullet_grpc.PhysicsSimulationParameters requestPhysicsSimulationParametersStatus = 11; case kRequestPhysicsSimulationParametersStatus: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.requestphysicssimulationparametersstatus_); break; } // .pybullet_grpc.CheckVersionStatus checkVersionStatus = 12; case kCheckVersionStatus: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.checkversionstatus_); break; } // .pybullet_grpc.UserConstraintStatus userConstraintStatus = 13; case kUserConstraintStatus: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.userconstraintstatus_); break; } // .pybullet_grpc.UserConstraintStateStatus userConstraintStateStatus = 14; case kUserConstraintStateStatus: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.userconstraintstatestatus_); break; } // .pybullet_grpc.KeyboardEventsStatus keyboardEventsStatus = 15; case kKeyboardEventsStatus: { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.keyboardeventsstatus_); break; } // .pybullet_grpc.RequestCameraImageStatus requestCameraImageStatus = 16; case kRequestCameraImageStatus: { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.requestcameraimagestatus_); break; } @@ -22689,9 +19401,7 @@ size_t PyBulletStatus::ByteSizeLong() const { } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } @@ -22714,6 +19424,9 @@ void PyBulletStatus::MergeFrom(const PyBulletStatus& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.PyBulletStatus) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + binaryblob_.MergeFrom(from.binaryblob_); unknownstatusbinaryblob_.MergeFrom(from.unknownstatusbinaryblob_); if (from.statustype() != 0) { @@ -22801,783 +19514,143 @@ void PyBulletStatus::Swap(PyBulletStatus* other) { InternalSwap(other); } void PyBulletStatus::InternalSwap(PyBulletStatus* other) { - binaryblob_.UnsafeArenaSwap(&other->binaryblob_); - unknownstatusbinaryblob_.UnsafeArenaSwap(&other->unknownstatusbinaryblob_); - std::swap(statustype_, other->statustype_); - std::swap(status_, other->status_); - std::swap(_oneof_case_[0], other->_oneof_case_[0]); - std::swap(_cached_size_, other->_cached_size_); + using std::swap; + binaryblob_.InternalSwap(CastToBase(&other->binaryblob_)); + unknownstatusbinaryblob_.InternalSwap(CastToBase(&other->unknownstatusbinaryblob_)); + swap(statustype_, other->statustype_); + swap(status_, other->status_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata PyBulletStatus::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_pybullet_2eproto::file_level_metadata[38]; + return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// PyBulletStatus - -// int32 statusType = 1; -void PyBulletStatus::clear_statustype() { - statustype_ = 0; -} -::google::protobuf::int32 PyBulletStatus::statustype() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.statusType) - return statustype_; -} -void PyBulletStatus::set_statustype(::google::protobuf::int32 value) { - - statustype_ = value; - // @@protoc_insertion_point(field_set:pybullet_grpc.PyBulletStatus.statusType) -} - -// repeated bytes binaryBlob = 2; -int PyBulletStatus::binaryblob_size() const { - return binaryblob_.size(); -} -void PyBulletStatus::clear_binaryblob() { - binaryblob_.Clear(); -} -const ::std::string& PyBulletStatus::binaryblob(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.binaryBlob) - return binaryblob_.Get(index); -} -::std::string* PyBulletStatus::mutable_binaryblob(int index) { - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.binaryBlob) - return binaryblob_.Mutable(index); -} -void PyBulletStatus::set_binaryblob(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:pybullet_grpc.PyBulletStatus.binaryBlob) - binaryblob_.Mutable(index)->assign(value); -} -void PyBulletStatus::set_binaryblob(int index, const char* value) { - binaryblob_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:pybullet_grpc.PyBulletStatus.binaryBlob) -} -void PyBulletStatus::set_binaryblob(int index, const void* value, size_t size) { - binaryblob_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:pybullet_grpc.PyBulletStatus.binaryBlob) -} -::std::string* PyBulletStatus::add_binaryblob() { - // @@protoc_insertion_point(field_add_mutable:pybullet_grpc.PyBulletStatus.binaryBlob) - return binaryblob_.Add(); -} -void PyBulletStatus::add_binaryblob(const ::std::string& value) { - binaryblob_.Add()->assign(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.PyBulletStatus.binaryBlob) -} -void PyBulletStatus::add_binaryblob(const char* value) { - binaryblob_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:pybullet_grpc.PyBulletStatus.binaryBlob) -} -void PyBulletStatus::add_binaryblob(const void* value, size_t size) { - binaryblob_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:pybullet_grpc.PyBulletStatus.binaryBlob) -} -const ::google::protobuf::RepeatedPtrField< ::std::string>& -PyBulletStatus::binaryblob() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.PyBulletStatus.binaryBlob) - return binaryblob_; -} -::google::protobuf::RepeatedPtrField< ::std::string>* -PyBulletStatus::mutable_binaryblob() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.PyBulletStatus.binaryBlob) - return &binaryblob_; -} - -// repeated bytes unknownStatusBinaryBlob = 3; -int PyBulletStatus::unknownstatusbinaryblob_size() const { - return unknownstatusbinaryblob_.size(); -} -void PyBulletStatus::clear_unknownstatusbinaryblob() { - unknownstatusbinaryblob_.Clear(); -} -const ::std::string& PyBulletStatus::unknownstatusbinaryblob(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.unknownStatusBinaryBlob) - return unknownstatusbinaryblob_.Get(index); -} -::std::string* PyBulletStatus::mutable_unknownstatusbinaryblob(int index) { - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.unknownStatusBinaryBlob) - return unknownstatusbinaryblob_.Mutable(index); -} -void PyBulletStatus::set_unknownstatusbinaryblob(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:pybullet_grpc.PyBulletStatus.unknownStatusBinaryBlob) - unknownstatusbinaryblob_.Mutable(index)->assign(value); -} -void PyBulletStatus::set_unknownstatusbinaryblob(int index, const char* value) { - unknownstatusbinaryblob_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:pybullet_grpc.PyBulletStatus.unknownStatusBinaryBlob) -} -void PyBulletStatus::set_unknownstatusbinaryblob(int index, const void* value, size_t size) { - unknownstatusbinaryblob_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:pybullet_grpc.PyBulletStatus.unknownStatusBinaryBlob) -} -::std::string* PyBulletStatus::add_unknownstatusbinaryblob() { - // @@protoc_insertion_point(field_add_mutable:pybullet_grpc.PyBulletStatus.unknownStatusBinaryBlob) - return unknownstatusbinaryblob_.Add(); -} -void PyBulletStatus::add_unknownstatusbinaryblob(const ::std::string& value) { - unknownstatusbinaryblob_.Add()->assign(value); - // @@protoc_insertion_point(field_add:pybullet_grpc.PyBulletStatus.unknownStatusBinaryBlob) -} -void PyBulletStatus::add_unknownstatusbinaryblob(const char* value) { - unknownstatusbinaryblob_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:pybullet_grpc.PyBulletStatus.unknownStatusBinaryBlob) -} -void PyBulletStatus::add_unknownstatusbinaryblob(const void* value, size_t size) { - unknownstatusbinaryblob_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:pybullet_grpc.PyBulletStatus.unknownStatusBinaryBlob) -} -const ::google::protobuf::RepeatedPtrField< ::std::string>& -PyBulletStatus::unknownstatusbinaryblob() const { - // @@protoc_insertion_point(field_list:pybullet_grpc.PyBulletStatus.unknownStatusBinaryBlob) - return unknownstatusbinaryblob_; -} -::google::protobuf::RepeatedPtrField< ::std::string>* -PyBulletStatus::mutable_unknownstatusbinaryblob() { - // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.PyBulletStatus.unknownStatusBinaryBlob) - return &unknownstatusbinaryblob_; -} - -// .pybullet_grpc.LoadUrdfStatus urdfStatus = 4; -bool PyBulletStatus::has_urdfstatus() const { - return status_case() == kUrdfStatus; -} -void PyBulletStatus::set_has_urdfstatus() { - _oneof_case_[0] = kUrdfStatus; -} -void PyBulletStatus::clear_urdfstatus() { - if (has_urdfstatus()) { - delete status_.urdfstatus_; - clear_has_status(); - } -} - const ::pybullet_grpc::LoadUrdfStatus& PyBulletStatus::urdfstatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.urdfStatus) - return has_urdfstatus() - ? *status_.urdfstatus_ - : ::pybullet_grpc::LoadUrdfStatus::default_instance(); -} -::pybullet_grpc::LoadUrdfStatus* PyBulletStatus::mutable_urdfstatus() { - if (!has_urdfstatus()) { - clear_status(); - set_has_urdfstatus(); - status_.urdfstatus_ = new ::pybullet_grpc::LoadUrdfStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.urdfStatus) - return status_.urdfstatus_; -} -::pybullet_grpc::LoadUrdfStatus* PyBulletStatus::release_urdfstatus() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.urdfStatus) - if (has_urdfstatus()) { - clear_has_status(); - ::pybullet_grpc::LoadUrdfStatus* temp = status_.urdfstatus_; - status_.urdfstatus_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletStatus::set_allocated_urdfstatus(::pybullet_grpc::LoadUrdfStatus* urdfstatus) { - clear_status(); - if (urdfstatus) { - set_has_urdfstatus(); - status_.urdfstatus_ = urdfstatus; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.urdfStatus) -} - -// .pybullet_grpc.SdfLoadedStatus sdfStatus = 5; -bool PyBulletStatus::has_sdfstatus() const { - return status_case() == kSdfStatus; -} -void PyBulletStatus::set_has_sdfstatus() { - _oneof_case_[0] = kSdfStatus; -} -void PyBulletStatus::clear_sdfstatus() { - if (has_sdfstatus()) { - delete status_.sdfstatus_; - clear_has_status(); - } -} - const ::pybullet_grpc::SdfLoadedStatus& PyBulletStatus::sdfstatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.sdfStatus) - return has_sdfstatus() - ? *status_.sdfstatus_ - : ::pybullet_grpc::SdfLoadedStatus::default_instance(); -} -::pybullet_grpc::SdfLoadedStatus* PyBulletStatus::mutable_sdfstatus() { - if (!has_sdfstatus()) { - clear_status(); - set_has_sdfstatus(); - status_.sdfstatus_ = new ::pybullet_grpc::SdfLoadedStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.sdfStatus) - return status_.sdfstatus_; -} -::pybullet_grpc::SdfLoadedStatus* PyBulletStatus::release_sdfstatus() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.sdfStatus) - if (has_sdfstatus()) { - clear_has_status(); - ::pybullet_grpc::SdfLoadedStatus* temp = status_.sdfstatus_; - status_.sdfstatus_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletStatus::set_allocated_sdfstatus(::pybullet_grpc::SdfLoadedStatus* sdfstatus) { - clear_status(); - if (sdfstatus) { - set_has_sdfstatus(); - status_.sdfstatus_ = sdfstatus; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.sdfStatus) -} - -// .pybullet_grpc.MjcfLoadedStatus mjcfStatus = 6; -bool PyBulletStatus::has_mjcfstatus() const { - return status_case() == kMjcfStatus; -} -void PyBulletStatus::set_has_mjcfstatus() { - _oneof_case_[0] = kMjcfStatus; -} -void PyBulletStatus::clear_mjcfstatus() { - if (has_mjcfstatus()) { - delete status_.mjcfstatus_; - clear_has_status(); - } -} - const ::pybullet_grpc::MjcfLoadedStatus& PyBulletStatus::mjcfstatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.mjcfStatus) - return has_mjcfstatus() - ? *status_.mjcfstatus_ - : ::pybullet_grpc::MjcfLoadedStatus::default_instance(); -} -::pybullet_grpc::MjcfLoadedStatus* PyBulletStatus::mutable_mjcfstatus() { - if (!has_mjcfstatus()) { - clear_status(); - set_has_mjcfstatus(); - status_.mjcfstatus_ = new ::pybullet_grpc::MjcfLoadedStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.mjcfStatus) - return status_.mjcfstatus_; -} -::pybullet_grpc::MjcfLoadedStatus* PyBulletStatus::release_mjcfstatus() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.mjcfStatus) - if (has_mjcfstatus()) { - clear_has_status(); - ::pybullet_grpc::MjcfLoadedStatus* temp = status_.mjcfstatus_; - status_.mjcfstatus_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletStatus::set_allocated_mjcfstatus(::pybullet_grpc::MjcfLoadedStatus* mjcfstatus) { - clear_status(); - if (mjcfstatus) { - set_has_mjcfstatus(); - status_.mjcfstatus_ = mjcfstatus; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.mjcfStatus) -} - -// .pybullet_grpc.GetDynamicsStatus getDynamicsStatus = 7; -bool PyBulletStatus::has_getdynamicsstatus() const { - return status_case() == kGetDynamicsStatus; -} -void PyBulletStatus::set_has_getdynamicsstatus() { - _oneof_case_[0] = kGetDynamicsStatus; -} -void PyBulletStatus::clear_getdynamicsstatus() { - if (has_getdynamicsstatus()) { - delete status_.getdynamicsstatus_; - clear_has_status(); - } -} - const ::pybullet_grpc::GetDynamicsStatus& PyBulletStatus::getdynamicsstatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.getDynamicsStatus) - return has_getdynamicsstatus() - ? *status_.getdynamicsstatus_ - : ::pybullet_grpc::GetDynamicsStatus::default_instance(); -} -::pybullet_grpc::GetDynamicsStatus* PyBulletStatus::mutable_getdynamicsstatus() { - if (!has_getdynamicsstatus()) { - clear_status(); - set_has_getdynamicsstatus(); - status_.getdynamicsstatus_ = new ::pybullet_grpc::GetDynamicsStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.getDynamicsStatus) - return status_.getdynamicsstatus_; -} -::pybullet_grpc::GetDynamicsStatus* PyBulletStatus::release_getdynamicsstatus() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.getDynamicsStatus) - if (has_getdynamicsstatus()) { - clear_has_status(); - ::pybullet_grpc::GetDynamicsStatus* temp = status_.getdynamicsstatus_; - status_.getdynamicsstatus_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletStatus::set_allocated_getdynamicsstatus(::pybullet_grpc::GetDynamicsStatus* getdynamicsstatus) { - clear_status(); - if (getdynamicsstatus) { - set_has_getdynamicsstatus(); - status_.getdynamicsstatus_ = getdynamicsstatus; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.getDynamicsStatus) -} - -// .pybullet_grpc.SendActualStateStatus actualStateStatus = 8; -bool PyBulletStatus::has_actualstatestatus() const { - return status_case() == kActualStateStatus; -} -void PyBulletStatus::set_has_actualstatestatus() { - _oneof_case_[0] = kActualStateStatus; -} -void PyBulletStatus::clear_actualstatestatus() { - if (has_actualstatestatus()) { - delete status_.actualstatestatus_; - clear_has_status(); - } -} - const ::pybullet_grpc::SendActualStateStatus& PyBulletStatus::actualstatestatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.actualStateStatus) - return has_actualstatestatus() - ? *status_.actualstatestatus_ - : ::pybullet_grpc::SendActualStateStatus::default_instance(); -} -::pybullet_grpc::SendActualStateStatus* PyBulletStatus::mutable_actualstatestatus() { - if (!has_actualstatestatus()) { - clear_status(); - set_has_actualstatestatus(); - status_.actualstatestatus_ = new ::pybullet_grpc::SendActualStateStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.actualStateStatus) - return status_.actualstatestatus_; -} -::pybullet_grpc::SendActualStateStatus* PyBulletStatus::release_actualstatestatus() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.actualStateStatus) - if (has_actualstatestatus()) { - clear_has_status(); - ::pybullet_grpc::SendActualStateStatus* temp = status_.actualstatestatus_; - status_.actualstatestatus_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletStatus::set_allocated_actualstatestatus(::pybullet_grpc::SendActualStateStatus* actualstatestatus) { - clear_status(); - if (actualstatestatus) { - set_has_actualstatestatus(); - status_.actualstatestatus_ = actualstatestatus; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.actualStateStatus) -} - -// .pybullet_grpc.SyncBodiesStatus syncBodiesStatus = 9; -bool PyBulletStatus::has_syncbodiesstatus() const { - return status_case() == kSyncBodiesStatus; -} -void PyBulletStatus::set_has_syncbodiesstatus() { - _oneof_case_[0] = kSyncBodiesStatus; -} -void PyBulletStatus::clear_syncbodiesstatus() { - if (has_syncbodiesstatus()) { - delete status_.syncbodiesstatus_; - clear_has_status(); - } -} - const ::pybullet_grpc::SyncBodiesStatus& PyBulletStatus::syncbodiesstatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.syncBodiesStatus) - return has_syncbodiesstatus() - ? *status_.syncbodiesstatus_ - : ::pybullet_grpc::SyncBodiesStatus::default_instance(); -} -::pybullet_grpc::SyncBodiesStatus* PyBulletStatus::mutable_syncbodiesstatus() { - if (!has_syncbodiesstatus()) { - clear_status(); - set_has_syncbodiesstatus(); - status_.syncbodiesstatus_ = new ::pybullet_grpc::SyncBodiesStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.syncBodiesStatus) - return status_.syncbodiesstatus_; -} -::pybullet_grpc::SyncBodiesStatus* PyBulletStatus::release_syncbodiesstatus() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.syncBodiesStatus) - if (has_syncbodiesstatus()) { - clear_has_status(); - ::pybullet_grpc::SyncBodiesStatus* temp = status_.syncbodiesstatus_; - status_.syncbodiesstatus_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletStatus::set_allocated_syncbodiesstatus(::pybullet_grpc::SyncBodiesStatus* syncbodiesstatus) { - clear_status(); - if (syncbodiesstatus) { - set_has_syncbodiesstatus(); - status_.syncbodiesstatus_ = syncbodiesstatus; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.syncBodiesStatus) -} - -// .pybullet_grpc.RequestBodyInfoStatus requestBodyInfoStatus = 10; -bool PyBulletStatus::has_requestbodyinfostatus() const { - return status_case() == kRequestBodyInfoStatus; -} -void PyBulletStatus::set_has_requestbodyinfostatus() { - _oneof_case_[0] = kRequestBodyInfoStatus; -} -void PyBulletStatus::clear_requestbodyinfostatus() { - if (has_requestbodyinfostatus()) { - delete status_.requestbodyinfostatus_; - clear_has_status(); - } -} - const ::pybullet_grpc::RequestBodyInfoStatus& PyBulletStatus::requestbodyinfostatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.requestBodyInfoStatus) - return has_requestbodyinfostatus() - ? *status_.requestbodyinfostatus_ - : ::pybullet_grpc::RequestBodyInfoStatus::default_instance(); -} -::pybullet_grpc::RequestBodyInfoStatus* PyBulletStatus::mutable_requestbodyinfostatus() { - if (!has_requestbodyinfostatus()) { - clear_status(); - set_has_requestbodyinfostatus(); - status_.requestbodyinfostatus_ = new ::pybullet_grpc::RequestBodyInfoStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.requestBodyInfoStatus) - return status_.requestbodyinfostatus_; -} -::pybullet_grpc::RequestBodyInfoStatus* PyBulletStatus::release_requestbodyinfostatus() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.requestBodyInfoStatus) - if (has_requestbodyinfostatus()) { - clear_has_status(); - ::pybullet_grpc::RequestBodyInfoStatus* temp = status_.requestbodyinfostatus_; - status_.requestbodyinfostatus_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletStatus::set_allocated_requestbodyinfostatus(::pybullet_grpc::RequestBodyInfoStatus* requestbodyinfostatus) { - clear_status(); - if (requestbodyinfostatus) { - set_has_requestbodyinfostatus(); - status_.requestbodyinfostatus_ = requestbodyinfostatus; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.requestBodyInfoStatus) -} - -// .pybullet_grpc.PhysicsSimulationParameters requestPhysicsSimulationParametersStatus = 11; -bool PyBulletStatus::has_requestphysicssimulationparametersstatus() const { - return status_case() == kRequestPhysicsSimulationParametersStatus; -} -void PyBulletStatus::set_has_requestphysicssimulationparametersstatus() { - _oneof_case_[0] = kRequestPhysicsSimulationParametersStatus; -} -void PyBulletStatus::clear_requestphysicssimulationparametersstatus() { - if (has_requestphysicssimulationparametersstatus()) { - delete status_.requestphysicssimulationparametersstatus_; - clear_has_status(); - } -} - const ::pybullet_grpc::PhysicsSimulationParameters& PyBulletStatus::requestphysicssimulationparametersstatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.requestPhysicsSimulationParametersStatus) - return has_requestphysicssimulationparametersstatus() - ? *status_.requestphysicssimulationparametersstatus_ - : ::pybullet_grpc::PhysicsSimulationParameters::default_instance(); -} -::pybullet_grpc::PhysicsSimulationParameters* PyBulletStatus::mutable_requestphysicssimulationparametersstatus() { - if (!has_requestphysicssimulationparametersstatus()) { - clear_status(); - set_has_requestphysicssimulationparametersstatus(); - status_.requestphysicssimulationparametersstatus_ = new ::pybullet_grpc::PhysicsSimulationParameters; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.requestPhysicsSimulationParametersStatus) - return status_.requestphysicssimulationparametersstatus_; -} -::pybullet_grpc::PhysicsSimulationParameters* PyBulletStatus::release_requestphysicssimulationparametersstatus() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.requestPhysicsSimulationParametersStatus) - if (has_requestphysicssimulationparametersstatus()) { - clear_has_status(); - ::pybullet_grpc::PhysicsSimulationParameters* temp = status_.requestphysicssimulationparametersstatus_; - status_.requestphysicssimulationparametersstatus_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletStatus::set_allocated_requestphysicssimulationparametersstatus(::pybullet_grpc::PhysicsSimulationParameters* requestphysicssimulationparametersstatus) { - clear_status(); - if (requestphysicssimulationparametersstatus) { - set_has_requestphysicssimulationparametersstatus(); - status_.requestphysicssimulationparametersstatus_ = requestphysicssimulationparametersstatus; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.requestPhysicsSimulationParametersStatus) -} - -// .pybullet_grpc.CheckVersionStatus checkVersionStatus = 12; -bool PyBulletStatus::has_checkversionstatus() const { - return status_case() == kCheckVersionStatus; -} -void PyBulletStatus::set_has_checkversionstatus() { - _oneof_case_[0] = kCheckVersionStatus; -} -void PyBulletStatus::clear_checkversionstatus() { - if (has_checkversionstatus()) { - delete status_.checkversionstatus_; - clear_has_status(); - } -} - const ::pybullet_grpc::CheckVersionStatus& PyBulletStatus::checkversionstatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.checkVersionStatus) - return has_checkversionstatus() - ? *status_.checkversionstatus_ - : ::pybullet_grpc::CheckVersionStatus::default_instance(); -} -::pybullet_grpc::CheckVersionStatus* PyBulletStatus::mutable_checkversionstatus() { - if (!has_checkversionstatus()) { - clear_status(); - set_has_checkversionstatus(); - status_.checkversionstatus_ = new ::pybullet_grpc::CheckVersionStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.checkVersionStatus) - return status_.checkversionstatus_; -} -::pybullet_grpc::CheckVersionStatus* PyBulletStatus::release_checkversionstatus() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.checkVersionStatus) - if (has_checkversionstatus()) { - clear_has_status(); - ::pybullet_grpc::CheckVersionStatus* temp = status_.checkversionstatus_; - status_.checkversionstatus_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletStatus::set_allocated_checkversionstatus(::pybullet_grpc::CheckVersionStatus* checkversionstatus) { - clear_status(); - if (checkversionstatus) { - set_has_checkversionstatus(); - status_.checkversionstatus_ = checkversionstatus; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.checkVersionStatus) -} - -// .pybullet_grpc.UserConstraintStatus userConstraintStatus = 13; -bool PyBulletStatus::has_userconstraintstatus() const { - return status_case() == kUserConstraintStatus; -} -void PyBulletStatus::set_has_userconstraintstatus() { - _oneof_case_[0] = kUserConstraintStatus; -} -void PyBulletStatus::clear_userconstraintstatus() { - if (has_userconstraintstatus()) { - delete status_.userconstraintstatus_; - clear_has_status(); - } -} - const ::pybullet_grpc::UserConstraintStatus& PyBulletStatus::userconstraintstatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.userConstraintStatus) - return has_userconstraintstatus() - ? *status_.userconstraintstatus_ - : ::pybullet_grpc::UserConstraintStatus::default_instance(); -} -::pybullet_grpc::UserConstraintStatus* PyBulletStatus::mutable_userconstraintstatus() { - if (!has_userconstraintstatus()) { - clear_status(); - set_has_userconstraintstatus(); - status_.userconstraintstatus_ = new ::pybullet_grpc::UserConstraintStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.userConstraintStatus) - return status_.userconstraintstatus_; -} -::pybullet_grpc::UserConstraintStatus* PyBulletStatus::release_userconstraintstatus() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.userConstraintStatus) - if (has_userconstraintstatus()) { - clear_has_status(); - ::pybullet_grpc::UserConstraintStatus* temp = status_.userconstraintstatus_; - status_.userconstraintstatus_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletStatus::set_allocated_userconstraintstatus(::pybullet_grpc::UserConstraintStatus* userconstraintstatus) { - clear_status(); - if (userconstraintstatus) { - set_has_userconstraintstatus(); - status_.userconstraintstatus_ = userconstraintstatus; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.userConstraintStatus) -} - -// .pybullet_grpc.UserConstraintStateStatus userConstraintStateStatus = 14; -bool PyBulletStatus::has_userconstraintstatestatus() const { - return status_case() == kUserConstraintStateStatus; -} -void PyBulletStatus::set_has_userconstraintstatestatus() { - _oneof_case_[0] = kUserConstraintStateStatus; -} -void PyBulletStatus::clear_userconstraintstatestatus() { - if (has_userconstraintstatestatus()) { - delete status_.userconstraintstatestatus_; - clear_has_status(); - } -} - const ::pybullet_grpc::UserConstraintStateStatus& PyBulletStatus::userconstraintstatestatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.userConstraintStateStatus) - return has_userconstraintstatestatus() - ? *status_.userconstraintstatestatus_ - : ::pybullet_grpc::UserConstraintStateStatus::default_instance(); -} -::pybullet_grpc::UserConstraintStateStatus* PyBulletStatus::mutable_userconstraintstatestatus() { - if (!has_userconstraintstatestatus()) { - clear_status(); - set_has_userconstraintstatestatus(); - status_.userconstraintstatestatus_ = new ::pybullet_grpc::UserConstraintStateStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.userConstraintStateStatus) - return status_.userconstraintstatestatus_; -} -::pybullet_grpc::UserConstraintStateStatus* PyBulletStatus::release_userconstraintstatestatus() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.userConstraintStateStatus) - if (has_userconstraintstatestatus()) { - clear_has_status(); - ::pybullet_grpc::UserConstraintStateStatus* temp = status_.userconstraintstatestatus_; - status_.userconstraintstatestatus_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletStatus::set_allocated_userconstraintstatestatus(::pybullet_grpc::UserConstraintStateStatus* userconstraintstatestatus) { - clear_status(); - if (userconstraintstatestatus) { - set_has_userconstraintstatestatus(); - status_.userconstraintstatestatus_ = userconstraintstatestatus; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.userConstraintStateStatus) -} - -// .pybullet_grpc.KeyboardEventsStatus keyboardEventsStatus = 15; -bool PyBulletStatus::has_keyboardeventsstatus() const { - return status_case() == kKeyboardEventsStatus; -} -void PyBulletStatus::set_has_keyboardeventsstatus() { - _oneof_case_[0] = kKeyboardEventsStatus; -} -void PyBulletStatus::clear_keyboardeventsstatus() { - if (has_keyboardeventsstatus()) { - delete status_.keyboardeventsstatus_; - clear_has_status(); - } -} - const ::pybullet_grpc::KeyboardEventsStatus& PyBulletStatus::keyboardeventsstatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.keyboardEventsStatus) - return has_keyboardeventsstatus() - ? *status_.keyboardeventsstatus_ - : ::pybullet_grpc::KeyboardEventsStatus::default_instance(); -} -::pybullet_grpc::KeyboardEventsStatus* PyBulletStatus::mutable_keyboardeventsstatus() { - if (!has_keyboardeventsstatus()) { - clear_status(); - set_has_keyboardeventsstatus(); - status_.keyboardeventsstatus_ = new ::pybullet_grpc::KeyboardEventsStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.keyboardEventsStatus) - return status_.keyboardeventsstatus_; -} -::pybullet_grpc::KeyboardEventsStatus* PyBulletStatus::release_keyboardeventsstatus() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.keyboardEventsStatus) - if (has_keyboardeventsstatus()) { - clear_has_status(); - ::pybullet_grpc::KeyboardEventsStatus* temp = status_.keyboardeventsstatus_; - status_.keyboardeventsstatus_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletStatus::set_allocated_keyboardeventsstatus(::pybullet_grpc::KeyboardEventsStatus* keyboardeventsstatus) { - clear_status(); - if (keyboardeventsstatus) { - set_has_keyboardeventsstatus(); - status_.keyboardeventsstatus_ = keyboardeventsstatus; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.keyboardEventsStatus) -} - -// .pybullet_grpc.RequestCameraImageStatus requestCameraImageStatus = 16; -bool PyBulletStatus::has_requestcameraimagestatus() const { - return status_case() == kRequestCameraImageStatus; -} -void PyBulletStatus::set_has_requestcameraimagestatus() { - _oneof_case_[0] = kRequestCameraImageStatus; -} -void PyBulletStatus::clear_requestcameraimagestatus() { - if (has_requestcameraimagestatus()) { - delete status_.requestcameraimagestatus_; - clear_has_status(); - } -} - const ::pybullet_grpc::RequestCameraImageStatus& PyBulletStatus::requestcameraimagestatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.requestCameraImageStatus) - return has_requestcameraimagestatus() - ? *status_.requestcameraimagestatus_ - : ::pybullet_grpc::RequestCameraImageStatus::default_instance(); -} -::pybullet_grpc::RequestCameraImageStatus* PyBulletStatus::mutable_requestcameraimagestatus() { - if (!has_requestcameraimagestatus()) { - clear_status(); - set_has_requestcameraimagestatus(); - status_.requestcameraimagestatus_ = new ::pybullet_grpc::RequestCameraImageStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.requestCameraImageStatus) - return status_.requestcameraimagestatus_; -} -::pybullet_grpc::RequestCameraImageStatus* PyBulletStatus::release_requestcameraimagestatus() { - // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.requestCameraImageStatus) - if (has_requestcameraimagestatus()) { - clear_has_status(); - ::pybullet_grpc::RequestCameraImageStatus* temp = status_.requestcameraimagestatus_; - status_.requestcameraimagestatus_ = NULL; - return temp; - } else { - return NULL; - } -} -void PyBulletStatus::set_allocated_requestcameraimagestatus(::pybullet_grpc::RequestCameraImageStatus* requestcameraimagestatus) { - clear_status(); - if (requestcameraimagestatus) { - set_has_requestcameraimagestatus(); - status_.requestcameraimagestatus_ = requestcameraimagestatus; - } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.requestCameraImageStatus) -} - -bool PyBulletStatus::has_status() const { - return status_case() != STATUS_NOT_SET; -} -void PyBulletStatus::clear_has_status() { - _oneof_case_[0] = STATUS_NOT_SET; -} -PyBulletStatus::StatusCase PyBulletStatus::status_case() const { - return PyBulletStatus::StatusCase(_oneof_case_[0]); -} -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) - } // namespace pybullet_grpc +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::vec3* Arena::CreateMaybeMessage< ::pybullet_grpc::vec3 >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::vec3 >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::quat4* Arena::CreateMaybeMessage< ::pybullet_grpc::quat4 >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::quat4 >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::vec4* Arena::CreateMaybeMessage< ::pybullet_grpc::vec4 >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::vec4 >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::transform* Arena::CreateMaybeMessage< ::pybullet_grpc::transform >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::transform >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::matrix4x4* Arena::CreateMaybeMessage< ::pybullet_grpc::matrix4x4 >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::matrix4x4 >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::CheckVersionCommand* Arena::CreateMaybeMessage< ::pybullet_grpc::CheckVersionCommand >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::CheckVersionCommand >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::CheckVersionStatus* Arena::CreateMaybeMessage< ::pybullet_grpc::CheckVersionStatus >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::CheckVersionStatus >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::TerminateServerCommand* Arena::CreateMaybeMessage< ::pybullet_grpc::TerminateServerCommand >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::TerminateServerCommand >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::StepSimulationCommand* Arena::CreateMaybeMessage< ::pybullet_grpc::StepSimulationCommand >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::StepSimulationCommand >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::SyncBodiesCommand* Arena::CreateMaybeMessage< ::pybullet_grpc::SyncBodiesCommand >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::SyncBodiesCommand >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::SyncBodiesStatus* Arena::CreateMaybeMessage< ::pybullet_grpc::SyncBodiesStatus >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::SyncBodiesStatus >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::RequestBodyInfoCommand* Arena::CreateMaybeMessage< ::pybullet_grpc::RequestBodyInfoCommand >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::RequestBodyInfoCommand >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::RequestBodyInfoStatus* Arena::CreateMaybeMessage< ::pybullet_grpc::RequestBodyInfoStatus >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::RequestBodyInfoStatus >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::LoadUrdfCommand* Arena::CreateMaybeMessage< ::pybullet_grpc::LoadUrdfCommand >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::LoadUrdfCommand >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::LoadUrdfStatus* Arena::CreateMaybeMessage< ::pybullet_grpc::LoadUrdfStatus >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::LoadUrdfStatus >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::LoadSdfCommand* Arena::CreateMaybeMessage< ::pybullet_grpc::LoadSdfCommand >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::LoadSdfCommand >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::SdfLoadedStatus* Arena::CreateMaybeMessage< ::pybullet_grpc::SdfLoadedStatus >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::SdfLoadedStatus >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::LoadMjcfCommand* Arena::CreateMaybeMessage< ::pybullet_grpc::LoadMjcfCommand >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::LoadMjcfCommand >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::MjcfLoadedStatus* Arena::CreateMaybeMessage< ::pybullet_grpc::MjcfLoadedStatus >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::MjcfLoadedStatus >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::ChangeDynamicsCommand* Arena::CreateMaybeMessage< ::pybullet_grpc::ChangeDynamicsCommand >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::ChangeDynamicsCommand >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::GetDynamicsCommand* Arena::CreateMaybeMessage< ::pybullet_grpc::GetDynamicsCommand >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::GetDynamicsCommand >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::GetDynamicsStatus* Arena::CreateMaybeMessage< ::pybullet_grpc::GetDynamicsStatus >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::GetDynamicsStatus >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::InitPoseCommand* Arena::CreateMaybeMessage< ::pybullet_grpc::InitPoseCommand >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::InitPoseCommand >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::RequestActualStateCommand* Arena::CreateMaybeMessage< ::pybullet_grpc::RequestActualStateCommand >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::RequestActualStateCommand >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::SendActualStateStatus* Arena::CreateMaybeMessage< ::pybullet_grpc::SendActualStateStatus >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::SendActualStateStatus >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::ConfigureOpenGLVisualizerCommand* Arena::CreateMaybeMessage< ::pybullet_grpc::ConfigureOpenGLVisualizerCommand >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::ConfigureOpenGLVisualizerCommand >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::PhysicsSimulationParameters* Arena::CreateMaybeMessage< ::pybullet_grpc::PhysicsSimulationParameters >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::PhysicsSimulationParameters >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::PhysicsSimulationParametersCommand* Arena::CreateMaybeMessage< ::pybullet_grpc::PhysicsSimulationParametersCommand >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::PhysicsSimulationParametersCommand >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::JointMotorControlCommand* Arena::CreateMaybeMessage< ::pybullet_grpc::JointMotorControlCommand >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::JointMotorControlCommand >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::UserConstraintCommand* Arena::CreateMaybeMessage< ::pybullet_grpc::UserConstraintCommand >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::UserConstraintCommand >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::UserConstraintStatus* Arena::CreateMaybeMessage< ::pybullet_grpc::UserConstraintStatus >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::UserConstraintStatus >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::UserConstraintStateStatus* Arena::CreateMaybeMessage< ::pybullet_grpc::UserConstraintStateStatus >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::UserConstraintStateStatus >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::RequestKeyboardEventsCommand* Arena::CreateMaybeMessage< ::pybullet_grpc::RequestKeyboardEventsCommand >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::RequestKeyboardEventsCommand >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::KeyboardEvent* Arena::CreateMaybeMessage< ::pybullet_grpc::KeyboardEvent >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::KeyboardEvent >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::KeyboardEventsStatus* Arena::CreateMaybeMessage< ::pybullet_grpc::KeyboardEventsStatus >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::KeyboardEventsStatus >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::RequestCameraImageCommand* Arena::CreateMaybeMessage< ::pybullet_grpc::RequestCameraImageCommand >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::RequestCameraImageCommand >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::RequestCameraImageStatus* Arena::CreateMaybeMessage< ::pybullet_grpc::RequestCameraImageStatus >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::RequestCameraImageStatus >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::PyBulletCommand* Arena::CreateMaybeMessage< ::pybullet_grpc::PyBulletCommand >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::PyBulletCommand >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pybullet_grpc::PyBulletStatus* Arena::CreateMaybeMessage< ::pybullet_grpc::PyBulletStatus >(Arena* arena) { + return Arena::CreateInternal< ::pybullet_grpc::PyBulletStatus >(arena); +} +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) diff --git a/examples/SharedMemory/grpc/pybullet.pb.h b/examples/SharedMemory/grpc/pybullet.pb.h index 9e3209131..a6fd3a603 100644 --- a/examples/SharedMemory/grpc/pybullet.pb.h +++ b/examples/SharedMemory/grpc/pybullet.pb.h @@ -1,19 +1,19 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: pybullet.proto -#ifndef PROTOBUF_pybullet_2eproto__INCLUDED -#define PROTOBUF_pybullet_2eproto__INCLUDED +#ifndef PROTOBUF_INCLUDED_pybullet_2eproto +#define PROTOBUF_INCLUDED_pybullet_2eproto #include #include -#if GOOGLE_PROTOBUF_VERSION < 3002000 +#if GOOGLE_PROTOBUF_VERSION < 3006000 #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 3002000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3006000 < GOOGLE_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. @@ -22,13 +22,29 @@ #include #include #include +#include #include +#include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include // @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_pybullet_2eproto + +namespace protobuf_pybullet_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[39]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_pybullet_2eproto namespace pybullet_grpc { class ChangeDynamicsCommand; class ChangeDynamicsCommandDefaultTypeInternal; @@ -148,20 +164,51 @@ class vec4; class vec4DefaultTypeInternal; extern vec4DefaultTypeInternal _vec4_default_instance_; } // namespace pybullet_grpc - +namespace google { +namespace protobuf { +template<> ::pybullet_grpc::ChangeDynamicsCommand* Arena::CreateMaybeMessage<::pybullet_grpc::ChangeDynamicsCommand>(Arena*); +template<> ::pybullet_grpc::CheckVersionCommand* Arena::CreateMaybeMessage<::pybullet_grpc::CheckVersionCommand>(Arena*); +template<> ::pybullet_grpc::CheckVersionStatus* Arena::CreateMaybeMessage<::pybullet_grpc::CheckVersionStatus>(Arena*); +template<> ::pybullet_grpc::ConfigureOpenGLVisualizerCommand* Arena::CreateMaybeMessage<::pybullet_grpc::ConfigureOpenGLVisualizerCommand>(Arena*); +template<> ::pybullet_grpc::GetDynamicsCommand* Arena::CreateMaybeMessage<::pybullet_grpc::GetDynamicsCommand>(Arena*); +template<> ::pybullet_grpc::GetDynamicsStatus* Arena::CreateMaybeMessage<::pybullet_grpc::GetDynamicsStatus>(Arena*); +template<> ::pybullet_grpc::InitPoseCommand* Arena::CreateMaybeMessage<::pybullet_grpc::InitPoseCommand>(Arena*); +template<> ::pybullet_grpc::JointMotorControlCommand* Arena::CreateMaybeMessage<::pybullet_grpc::JointMotorControlCommand>(Arena*); +template<> ::pybullet_grpc::KeyboardEvent* Arena::CreateMaybeMessage<::pybullet_grpc::KeyboardEvent>(Arena*); +template<> ::pybullet_grpc::KeyboardEventsStatus* Arena::CreateMaybeMessage<::pybullet_grpc::KeyboardEventsStatus>(Arena*); +template<> ::pybullet_grpc::LoadMjcfCommand* Arena::CreateMaybeMessage<::pybullet_grpc::LoadMjcfCommand>(Arena*); +template<> ::pybullet_grpc::LoadSdfCommand* Arena::CreateMaybeMessage<::pybullet_grpc::LoadSdfCommand>(Arena*); +template<> ::pybullet_grpc::LoadUrdfCommand* Arena::CreateMaybeMessage<::pybullet_grpc::LoadUrdfCommand>(Arena*); +template<> ::pybullet_grpc::LoadUrdfStatus* Arena::CreateMaybeMessage<::pybullet_grpc::LoadUrdfStatus>(Arena*); +template<> ::pybullet_grpc::MjcfLoadedStatus* Arena::CreateMaybeMessage<::pybullet_grpc::MjcfLoadedStatus>(Arena*); +template<> ::pybullet_grpc::PhysicsSimulationParameters* Arena::CreateMaybeMessage<::pybullet_grpc::PhysicsSimulationParameters>(Arena*); +template<> ::pybullet_grpc::PhysicsSimulationParametersCommand* Arena::CreateMaybeMessage<::pybullet_grpc::PhysicsSimulationParametersCommand>(Arena*); +template<> ::pybullet_grpc::PyBulletCommand* Arena::CreateMaybeMessage<::pybullet_grpc::PyBulletCommand>(Arena*); +template<> ::pybullet_grpc::PyBulletStatus* Arena::CreateMaybeMessage<::pybullet_grpc::PyBulletStatus>(Arena*); +template<> ::pybullet_grpc::RequestActualStateCommand* Arena::CreateMaybeMessage<::pybullet_grpc::RequestActualStateCommand>(Arena*); +template<> ::pybullet_grpc::RequestBodyInfoCommand* Arena::CreateMaybeMessage<::pybullet_grpc::RequestBodyInfoCommand>(Arena*); +template<> ::pybullet_grpc::RequestBodyInfoStatus* Arena::CreateMaybeMessage<::pybullet_grpc::RequestBodyInfoStatus>(Arena*); +template<> ::pybullet_grpc::RequestCameraImageCommand* Arena::CreateMaybeMessage<::pybullet_grpc::RequestCameraImageCommand>(Arena*); +template<> ::pybullet_grpc::RequestCameraImageStatus* Arena::CreateMaybeMessage<::pybullet_grpc::RequestCameraImageStatus>(Arena*); +template<> ::pybullet_grpc::RequestKeyboardEventsCommand* Arena::CreateMaybeMessage<::pybullet_grpc::RequestKeyboardEventsCommand>(Arena*); +template<> ::pybullet_grpc::SdfLoadedStatus* Arena::CreateMaybeMessage<::pybullet_grpc::SdfLoadedStatus>(Arena*); +template<> ::pybullet_grpc::SendActualStateStatus* Arena::CreateMaybeMessage<::pybullet_grpc::SendActualStateStatus>(Arena*); +template<> ::pybullet_grpc::StepSimulationCommand* Arena::CreateMaybeMessage<::pybullet_grpc::StepSimulationCommand>(Arena*); +template<> ::pybullet_grpc::SyncBodiesCommand* Arena::CreateMaybeMessage<::pybullet_grpc::SyncBodiesCommand>(Arena*); +template<> ::pybullet_grpc::SyncBodiesStatus* Arena::CreateMaybeMessage<::pybullet_grpc::SyncBodiesStatus>(Arena*); +template<> ::pybullet_grpc::TerminateServerCommand* Arena::CreateMaybeMessage<::pybullet_grpc::TerminateServerCommand>(Arena*); +template<> ::pybullet_grpc::UserConstraintCommand* Arena::CreateMaybeMessage<::pybullet_grpc::UserConstraintCommand>(Arena*); +template<> ::pybullet_grpc::UserConstraintStateStatus* Arena::CreateMaybeMessage<::pybullet_grpc::UserConstraintStateStatus>(Arena*); +template<> ::pybullet_grpc::UserConstraintStatus* Arena::CreateMaybeMessage<::pybullet_grpc::UserConstraintStatus>(Arena*); +template<> ::pybullet_grpc::matrix4x4* Arena::CreateMaybeMessage<::pybullet_grpc::matrix4x4>(Arena*); +template<> ::pybullet_grpc::quat4* Arena::CreateMaybeMessage<::pybullet_grpc::quat4>(Arena*); +template<> ::pybullet_grpc::transform* Arena::CreateMaybeMessage<::pybullet_grpc::transform>(Arena*); +template<> ::pybullet_grpc::vec3* Arena::CreateMaybeMessage<::pybullet_grpc::vec3>(Arena*); +template<> ::pybullet_grpc::vec4* Arena::CreateMaybeMessage<::pybullet_grpc::vec4>(Arena*); +} // namespace protobuf +} // namespace google namespace pybullet_grpc { -namespace protobuf_pybullet_2eproto { -// Internal implementation detail -- do not call these. -struct TableStruct { - static const ::google::protobuf::uint32 offsets[]; - static void InitDefaultsImpl(); - static void Shutdown(); -}; -void AddDescriptors(); -void InitDefaults(); -} // namespace protobuf_pybullet_2eproto - // =================================================================== class vec3 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:pybullet_grpc.vec3) */ { @@ -175,46 +222,66 @@ class vec3 : public ::google::protobuf::Message /* @@protoc_insertion_point(clas CopyFrom(from); return *this; } + #if LANG_CXX11 + vec3(vec3&& from) noexcept + : vec3() { + *this = ::std::move(from); + } + inline vec3& operator=(vec3&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const vec3& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const vec3* internal_default_instance() { return reinterpret_cast( &_vec3_default_instance_); } + static constexpr int kIndexInFileMessages = + 0; void Swap(vec3* other); + friend void swap(vec3& a, vec3& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline vec3* New() const PROTOBUF_FINAL { return New(NULL); } + inline vec3* New() const final { + return CreateMaybeMessage(NULL); + } - vec3* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + vec3* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const vec3& from); void MergeFrom(const vec3& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(vec3* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -225,7 +292,7 @@ class vec3 : public ::google::protobuf::Message /* @@protoc_insertion_point(clas } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -256,8 +323,8 @@ class vec3 : public ::google::protobuf::Message /* @@protoc_insertion_point(clas double x_; double y_; double z_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -272,46 +339,66 @@ class quat4 : public ::google::protobuf::Message /* @@protoc_insertion_point(cla CopyFrom(from); return *this; } + #if LANG_CXX11 + quat4(quat4&& from) noexcept + : quat4() { + *this = ::std::move(from); + } + inline quat4& operator=(quat4&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const quat4& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const quat4* internal_default_instance() { return reinterpret_cast( &_quat4_default_instance_); } + static constexpr int kIndexInFileMessages = + 1; void Swap(quat4* other); + friend void swap(quat4& a, quat4& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline quat4* New() const PROTOBUF_FINAL { return New(NULL); } + inline quat4* New() const final { + return CreateMaybeMessage(NULL); + } - quat4* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + quat4* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const quat4& from); void MergeFrom(const quat4& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(quat4* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -322,7 +409,7 @@ class quat4 : public ::google::protobuf::Message /* @@protoc_insertion_point(cla } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -360,8 +447,8 @@ class quat4 : public ::google::protobuf::Message /* @@protoc_insertion_point(cla double y_; double z_; double w_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -376,46 +463,66 @@ class vec4 : public ::google::protobuf::Message /* @@protoc_insertion_point(clas CopyFrom(from); return *this; } + #if LANG_CXX11 + vec4(vec4&& from) noexcept + : vec4() { + *this = ::std::move(from); + } + inline vec4& operator=(vec4&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const vec4& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const vec4* internal_default_instance() { return reinterpret_cast( &_vec4_default_instance_); } + static constexpr int kIndexInFileMessages = + 2; void Swap(vec4* other); + friend void swap(vec4& a, vec4& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline vec4* New() const PROTOBUF_FINAL { return New(NULL); } + inline vec4* New() const final { + return CreateMaybeMessage(NULL); + } - vec4* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + vec4* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const vec4& from); void MergeFrom(const vec4& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(vec4* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -426,7 +533,7 @@ class vec4 : public ::google::protobuf::Message /* @@protoc_insertion_point(clas } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -464,8 +571,8 @@ class vec4 : public ::google::protobuf::Message /* @@protoc_insertion_point(clas double y_; double z_; double w_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -480,46 +587,66 @@ class transform : public ::google::protobuf::Message /* @@protoc_insertion_point CopyFrom(from); return *this; } + #if LANG_CXX11 + transform(transform&& from) noexcept + : transform() { + *this = ::std::move(from); + } + inline transform& operator=(transform&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const transform& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const transform* internal_default_instance() { return reinterpret_cast( &_transform_default_instance_); } + static constexpr int kIndexInFileMessages = + 3; void Swap(transform* other); + friend void swap(transform& a, transform& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline transform* New() const PROTOBUF_FINAL { return New(NULL); } + inline transform* New() const final { + return CreateMaybeMessage(NULL); + } - transform* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + transform* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const transform& from); void MergeFrom(const transform& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(transform* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -530,7 +657,7 @@ class transform : public ::google::protobuf::Message /* @@protoc_insertion_point } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -540,18 +667,24 @@ class transform : public ::google::protobuf::Message /* @@protoc_insertion_point bool has_origin() const; void clear_origin(); static const int kOriginFieldNumber = 1; + private: + const ::pybullet_grpc::vec3& _internal_origin() const; + public: const ::pybullet_grpc::vec3& origin() const; - ::pybullet_grpc::vec3* mutable_origin(); ::pybullet_grpc::vec3* release_origin(); + ::pybullet_grpc::vec3* mutable_origin(); void set_allocated_origin(::pybullet_grpc::vec3* origin); // .pybullet_grpc.quat4 orientation = 2; bool has_orientation() const; void clear_orientation(); static const int kOrientationFieldNumber = 2; + private: + const ::pybullet_grpc::quat4& _internal_orientation() const; + public: const ::pybullet_grpc::quat4& orientation() const; - ::pybullet_grpc::quat4* mutable_orientation(); ::pybullet_grpc::quat4* release_orientation(); + ::pybullet_grpc::quat4* mutable_orientation(); void set_allocated_orientation(::pybullet_grpc::quat4* orientation); // @@protoc_insertion_point(class_scope:pybullet_grpc.transform) @@ -560,8 +693,8 @@ class transform : public ::google::protobuf::Message /* @@protoc_insertion_point ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::pybullet_grpc::vec3* origin_; ::pybullet_grpc::quat4* orientation_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -576,46 +709,66 @@ class matrix4x4 : public ::google::protobuf::Message /* @@protoc_insertion_point CopyFrom(from); return *this; } + #if LANG_CXX11 + matrix4x4(matrix4x4&& from) noexcept + : matrix4x4() { + *this = ::std::move(from); + } + inline matrix4x4& operator=(matrix4x4&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const matrix4x4& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const matrix4x4* internal_default_instance() { return reinterpret_cast( &_matrix4x4_default_instance_); } + static constexpr int kIndexInFileMessages = + 4; void Swap(matrix4x4* other); + friend void swap(matrix4x4& a, matrix4x4& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline matrix4x4* New() const PROTOBUF_FINAL { return New(NULL); } + inline matrix4x4* New() const final { + return CreateMaybeMessage(NULL); + } - matrix4x4* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + matrix4x4* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const matrix4x4& from); void MergeFrom(const matrix4x4& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(matrix4x4* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -626,7 +779,7 @@ class matrix4x4 : public ::google::protobuf::Message /* @@protoc_insertion_point } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -650,8 +803,8 @@ class matrix4x4 : public ::google::protobuf::Message /* @@protoc_insertion_point ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::RepeatedField< double > elems_; mutable int _elems_cached_byte_size_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -666,46 +819,66 @@ class CheckVersionCommand : public ::google::protobuf::Message /* @@protoc_inser CopyFrom(from); return *this; } + #if LANG_CXX11 + CheckVersionCommand(CheckVersionCommand&& from) noexcept + : CheckVersionCommand() { + *this = ::std::move(from); + } + inline CheckVersionCommand& operator=(CheckVersionCommand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const CheckVersionCommand& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CheckVersionCommand* internal_default_instance() { return reinterpret_cast( &_CheckVersionCommand_default_instance_); } + static constexpr int kIndexInFileMessages = + 5; void Swap(CheckVersionCommand* other); + friend void swap(CheckVersionCommand& a, CheckVersionCommand& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline CheckVersionCommand* New() const PROTOBUF_FINAL { return New(NULL); } + inline CheckVersionCommand* New() const final { + return CreateMaybeMessage(NULL); + } - CheckVersionCommand* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + CheckVersionCommand* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const CheckVersionCommand& from); void MergeFrom(const CheckVersionCommand& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(CheckVersionCommand* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -716,7 +889,7 @@ class CheckVersionCommand : public ::google::protobuf::Message /* @@protoc_inser } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -733,8 +906,8 @@ class CheckVersionCommand : public ::google::protobuf::Message /* @@protoc_inser ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::int32 clientversion_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -749,46 +922,66 @@ class CheckVersionStatus : public ::google::protobuf::Message /* @@protoc_insert CopyFrom(from); return *this; } + #if LANG_CXX11 + CheckVersionStatus(CheckVersionStatus&& from) noexcept + : CheckVersionStatus() { + *this = ::std::move(from); + } + inline CheckVersionStatus& operator=(CheckVersionStatus&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const CheckVersionStatus& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CheckVersionStatus* internal_default_instance() { return reinterpret_cast( &_CheckVersionStatus_default_instance_); } + static constexpr int kIndexInFileMessages = + 6; void Swap(CheckVersionStatus* other); + friend void swap(CheckVersionStatus& a, CheckVersionStatus& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline CheckVersionStatus* New() const PROTOBUF_FINAL { return New(NULL); } + inline CheckVersionStatus* New() const final { + return CreateMaybeMessage(NULL); + } - CheckVersionStatus* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + CheckVersionStatus* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const CheckVersionStatus& from); void MergeFrom(const CheckVersionStatus& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(CheckVersionStatus* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -799,7 +992,7 @@ class CheckVersionStatus : public ::google::protobuf::Message /* @@protoc_insert } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -816,8 +1009,8 @@ class CheckVersionStatus : public ::google::protobuf::Message /* @@protoc_insert ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::int32 serverversion_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -832,46 +1025,66 @@ class TerminateServerCommand : public ::google::protobuf::Message /* @@protoc_in CopyFrom(from); return *this; } + #if LANG_CXX11 + TerminateServerCommand(TerminateServerCommand&& from) noexcept + : TerminateServerCommand() { + *this = ::std::move(from); + } + inline TerminateServerCommand& operator=(TerminateServerCommand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const TerminateServerCommand& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const TerminateServerCommand* internal_default_instance() { return reinterpret_cast( &_TerminateServerCommand_default_instance_); } + static constexpr int kIndexInFileMessages = + 7; void Swap(TerminateServerCommand* other); + friend void swap(TerminateServerCommand& a, TerminateServerCommand& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline TerminateServerCommand* New() const PROTOBUF_FINAL { return New(NULL); } + inline TerminateServerCommand* New() const final { + return CreateMaybeMessage(NULL); + } - TerminateServerCommand* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + TerminateServerCommand* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const TerminateServerCommand& from); void MergeFrom(const TerminateServerCommand& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(TerminateServerCommand* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -882,7 +1095,7 @@ class TerminateServerCommand : public ::google::protobuf::Message /* @@protoc_in } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -907,8 +1120,8 @@ class TerminateServerCommand : public ::google::protobuf::Message /* @@protoc_in ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::ArenaStringPtr exitreason_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -923,46 +1136,66 @@ class StepSimulationCommand : public ::google::protobuf::Message /* @@protoc_ins CopyFrom(from); return *this; } + #if LANG_CXX11 + StepSimulationCommand(StepSimulationCommand&& from) noexcept + : StepSimulationCommand() { + *this = ::std::move(from); + } + inline StepSimulationCommand& operator=(StepSimulationCommand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const StepSimulationCommand& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const StepSimulationCommand* internal_default_instance() { return reinterpret_cast( &_StepSimulationCommand_default_instance_); } + static constexpr int kIndexInFileMessages = + 8; void Swap(StepSimulationCommand* other); + friend void swap(StepSimulationCommand& a, StepSimulationCommand& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline StepSimulationCommand* New() const PROTOBUF_FINAL { return New(NULL); } + inline StepSimulationCommand* New() const final { + return CreateMaybeMessage(NULL); + } - StepSimulationCommand* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + StepSimulationCommand* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const StepSimulationCommand& from); void MergeFrom(const StepSimulationCommand& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(StepSimulationCommand* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -973,7 +1206,7 @@ class StepSimulationCommand : public ::google::protobuf::Message /* @@protoc_ins } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -983,8 +1216,8 @@ class StepSimulationCommand : public ::google::protobuf::Message /* @@protoc_ins private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -999,46 +1232,66 @@ class SyncBodiesCommand : public ::google::protobuf::Message /* @@protoc_inserti CopyFrom(from); return *this; } + #if LANG_CXX11 + SyncBodiesCommand(SyncBodiesCommand&& from) noexcept + : SyncBodiesCommand() { + *this = ::std::move(from); + } + inline SyncBodiesCommand& operator=(SyncBodiesCommand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const SyncBodiesCommand& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SyncBodiesCommand* internal_default_instance() { return reinterpret_cast( &_SyncBodiesCommand_default_instance_); } + static constexpr int kIndexInFileMessages = + 9; void Swap(SyncBodiesCommand* other); + friend void swap(SyncBodiesCommand& a, SyncBodiesCommand& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline SyncBodiesCommand* New() const PROTOBUF_FINAL { return New(NULL); } + inline SyncBodiesCommand* New() const final { + return CreateMaybeMessage(NULL); + } - SyncBodiesCommand* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + SyncBodiesCommand* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const SyncBodiesCommand& from); void MergeFrom(const SyncBodiesCommand& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(SyncBodiesCommand* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -1049,7 +1302,7 @@ class SyncBodiesCommand : public ::google::protobuf::Message /* @@protoc_inserti } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1059,8 +1312,8 @@ class SyncBodiesCommand : public ::google::protobuf::Message /* @@protoc_inserti private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -1075,46 +1328,66 @@ class SyncBodiesStatus : public ::google::protobuf::Message /* @@protoc_insertio CopyFrom(from); return *this; } + #if LANG_CXX11 + SyncBodiesStatus(SyncBodiesStatus&& from) noexcept + : SyncBodiesStatus() { + *this = ::std::move(from); + } + inline SyncBodiesStatus& operator=(SyncBodiesStatus&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const SyncBodiesStatus& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SyncBodiesStatus* internal_default_instance() { return reinterpret_cast( &_SyncBodiesStatus_default_instance_); } + static constexpr int kIndexInFileMessages = + 10; void Swap(SyncBodiesStatus* other); + friend void swap(SyncBodiesStatus& a, SyncBodiesStatus& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline SyncBodiesStatus* New() const PROTOBUF_FINAL { return New(NULL); } + inline SyncBodiesStatus* New() const final { + return CreateMaybeMessage(NULL); + } - SyncBodiesStatus* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + SyncBodiesStatus* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const SyncBodiesStatus& from); void MergeFrom(const SyncBodiesStatus& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(SyncBodiesStatus* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -1125,7 +1398,7 @@ class SyncBodiesStatus : public ::google::protobuf::Message /* @@protoc_insertio } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1163,8 +1436,8 @@ class SyncBodiesStatus : public ::google::protobuf::Message /* @@protoc_insertio mutable int _bodyuniqueids_cached_byte_size_; ::google::protobuf::RepeatedField< ::google::protobuf::int32 > userconstraintuniqueids_; mutable int _userconstraintuniqueids_cached_byte_size_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -1179,46 +1452,66 @@ class RequestBodyInfoCommand : public ::google::protobuf::Message /* @@protoc_in CopyFrom(from); return *this; } + #if LANG_CXX11 + RequestBodyInfoCommand(RequestBodyInfoCommand&& from) noexcept + : RequestBodyInfoCommand() { + *this = ::std::move(from); + } + inline RequestBodyInfoCommand& operator=(RequestBodyInfoCommand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const RequestBodyInfoCommand& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const RequestBodyInfoCommand* internal_default_instance() { return reinterpret_cast( &_RequestBodyInfoCommand_default_instance_); } + static constexpr int kIndexInFileMessages = + 11; void Swap(RequestBodyInfoCommand* other); + friend void swap(RequestBodyInfoCommand& a, RequestBodyInfoCommand& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline RequestBodyInfoCommand* New() const PROTOBUF_FINAL { return New(NULL); } + inline RequestBodyInfoCommand* New() const final { + return CreateMaybeMessage(NULL); + } - RequestBodyInfoCommand* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + RequestBodyInfoCommand* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const RequestBodyInfoCommand& from); void MergeFrom(const RequestBodyInfoCommand& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(RequestBodyInfoCommand* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -1229,7 +1522,7 @@ class RequestBodyInfoCommand : public ::google::protobuf::Message /* @@protoc_in } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1246,8 +1539,8 @@ class RequestBodyInfoCommand : public ::google::protobuf::Message /* @@protoc_in ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::int32 bodyuniqueid_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -1262,46 +1555,66 @@ class RequestBodyInfoStatus : public ::google::protobuf::Message /* @@protoc_ins CopyFrom(from); return *this; } + #if LANG_CXX11 + RequestBodyInfoStatus(RequestBodyInfoStatus&& from) noexcept + : RequestBodyInfoStatus() { + *this = ::std::move(from); + } + inline RequestBodyInfoStatus& operator=(RequestBodyInfoStatus&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const RequestBodyInfoStatus& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const RequestBodyInfoStatus* internal_default_instance() { return reinterpret_cast( &_RequestBodyInfoStatus_default_instance_); } + static constexpr int kIndexInFileMessages = + 12; void Swap(RequestBodyInfoStatus* other); + friend void swap(RequestBodyInfoStatus& a, RequestBodyInfoStatus& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline RequestBodyInfoStatus* New() const PROTOBUF_FINAL { return New(NULL); } + inline RequestBodyInfoStatus* New() const final { + return CreateMaybeMessage(NULL); + } - RequestBodyInfoStatus* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + RequestBodyInfoStatus* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const RequestBodyInfoStatus& from); void MergeFrom(const RequestBodyInfoStatus& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(RequestBodyInfoStatus* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -1312,7 +1625,7 @@ class RequestBodyInfoStatus : public ::google::protobuf::Message /* @@protoc_ins } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1344,8 +1657,8 @@ class RequestBodyInfoStatus : public ::google::protobuf::Message /* @@protoc_ins ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::ArenaStringPtr bodyname_; ::google::protobuf::int32 bodyuniqueid_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -1360,7 +1673,21 @@ class LoadUrdfCommand : public ::google::protobuf::Message /* @@protoc_insertion CopyFrom(from); return *this; } + #if LANG_CXX11 + LoadUrdfCommand(LoadUrdfCommand&& from) noexcept + : LoadUrdfCommand() { + *this = ::std::move(from); + } + inline LoadUrdfCommand& operator=(LoadUrdfCommand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const LoadUrdfCommand& default_instance(); @@ -1379,42 +1706,48 @@ class LoadUrdfCommand : public ::google::protobuf::Message /* @@protoc_insertion HASGLOBALSCALING_NOT_SET = 0, }; + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const LoadUrdfCommand* internal_default_instance() { return reinterpret_cast( &_LoadUrdfCommand_default_instance_); } + static constexpr int kIndexInFileMessages = + 13; void Swap(LoadUrdfCommand* other); + friend void swap(LoadUrdfCommand& a, LoadUrdfCommand& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline LoadUrdfCommand* New() const PROTOBUF_FINAL { return New(NULL); } + inline LoadUrdfCommand* New() const final { + return CreateMaybeMessage(NULL); + } - LoadUrdfCommand* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + LoadUrdfCommand* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const LoadUrdfCommand& from); void MergeFrom(const LoadUrdfCommand& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(LoadUrdfCommand* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -1425,7 +1758,7 @@ class LoadUrdfCommand : public ::google::protobuf::Message /* @@protoc_insertion } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1449,18 +1782,24 @@ class LoadUrdfCommand : public ::google::protobuf::Message /* @@protoc_insertion bool has_initialposition() const; void clear_initialposition(); static const int kInitialPositionFieldNumber = 2; + private: + const ::pybullet_grpc::vec3& _internal_initialposition() const; + public: const ::pybullet_grpc::vec3& initialposition() const; - ::pybullet_grpc::vec3* mutable_initialposition(); ::pybullet_grpc::vec3* release_initialposition(); + ::pybullet_grpc::vec3* mutable_initialposition(); void set_allocated_initialposition(::pybullet_grpc::vec3* initialposition); // .pybullet_grpc.quat4 initialOrientation = 3; bool has_initialorientation() const; void clear_initialorientation(); static const int kInitialOrientationFieldNumber = 3; + private: + const ::pybullet_grpc::quat4& _internal_initialorientation() const; + public: const ::pybullet_grpc::quat4& initialorientation() const; - ::pybullet_grpc::quat4* mutable_initialorientation(); ::pybullet_grpc::quat4* release_initialorientation(); + ::pybullet_grpc::quat4* mutable_initialorientation(); void set_allocated_initialorientation(::pybullet_grpc::quat4* initialorientation); // int32 flags = 6; @@ -1496,8 +1835,11 @@ class LoadUrdfCommand : public ::google::protobuf::Message /* @@protoc_insertion double globalscaling() const; void set_globalscaling(double value); + void clear_hasUseMultiBody(); HasUseMultiBodyCase hasUseMultiBody_case() const; + void clear_hasUseFixedBase(); HasUseFixedBaseCase hasUseFixedBase_case() const; + void clear_hasGlobalScaling(); HasGlobalScalingCase hasGlobalScaling_case() const; // @@protoc_insertion_point(class_scope:pybullet_grpc.LoadUrdfCommand) private: @@ -1506,15 +1848,12 @@ class LoadUrdfCommand : public ::google::protobuf::Message /* @@protoc_insertion void set_has_globalscaling(); inline bool has_hasUseMultiBody() const; - void clear_hasUseMultiBody(); inline void clear_has_hasUseMultiBody(); inline bool has_hasUseFixedBase() const; - void clear_hasUseFixedBase(); inline void clear_has_hasUseFixedBase(); inline bool has_hasGlobalScaling() const; - void clear_hasGlobalScaling(); inline void clear_has_hasGlobalScaling(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; @@ -1534,10 +1873,10 @@ class LoadUrdfCommand : public ::google::protobuf::Message /* @@protoc_insertion HasGlobalScalingUnion() {} double globalscaling_; } hasGlobalScaling_; - mutable int _cached_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 _oneof_case_[3]; - friend struct protobuf_pybullet_2eproto::TableStruct; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -1552,46 +1891,66 @@ class LoadUrdfStatus : public ::google::protobuf::Message /* @@protoc_insertion_ CopyFrom(from); return *this; } + #if LANG_CXX11 + LoadUrdfStatus(LoadUrdfStatus&& from) noexcept + : LoadUrdfStatus() { + *this = ::std::move(from); + } + inline LoadUrdfStatus& operator=(LoadUrdfStatus&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const LoadUrdfStatus& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const LoadUrdfStatus* internal_default_instance() { return reinterpret_cast( &_LoadUrdfStatus_default_instance_); } + static constexpr int kIndexInFileMessages = + 14; void Swap(LoadUrdfStatus* other); + friend void swap(LoadUrdfStatus& a, LoadUrdfStatus& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline LoadUrdfStatus* New() const PROTOBUF_FINAL { return New(NULL); } + inline LoadUrdfStatus* New() const final { + return CreateMaybeMessage(NULL); + } - LoadUrdfStatus* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + LoadUrdfStatus* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const LoadUrdfStatus& from); void MergeFrom(const LoadUrdfStatus& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(LoadUrdfStatus* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -1602,7 +1961,7 @@ class LoadUrdfStatus : public ::google::protobuf::Message /* @@protoc_insertion_ } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1649,8 +2008,8 @@ class LoadUrdfStatus : public ::google::protobuf::Message /* @@protoc_insertion_ ::google::protobuf::internal::ArenaStringPtr bodyname_; ::google::protobuf::internal::ArenaStringPtr filename_; ::google::protobuf::int32 bodyuniqueid_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -1665,7 +2024,21 @@ class LoadSdfCommand : public ::google::protobuf::Message /* @@protoc_insertion_ CopyFrom(from); return *this; } + #if LANG_CXX11 + LoadSdfCommand(LoadSdfCommand&& from) noexcept + : LoadSdfCommand() { + *this = ::std::move(from); + } + inline LoadSdfCommand& operator=(LoadSdfCommand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const LoadSdfCommand& default_instance(); @@ -1679,42 +2052,48 @@ class LoadSdfCommand : public ::google::protobuf::Message /* @@protoc_insertion_ HASGLOBALSCALING_NOT_SET = 0, }; + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const LoadSdfCommand* internal_default_instance() { return reinterpret_cast( &_LoadSdfCommand_default_instance_); } + static constexpr int kIndexInFileMessages = + 15; void Swap(LoadSdfCommand* other); + friend void swap(LoadSdfCommand& a, LoadSdfCommand& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline LoadSdfCommand* New() const PROTOBUF_FINAL { return New(NULL); } + inline LoadSdfCommand* New() const final { + return CreateMaybeMessage(NULL); + } - LoadSdfCommand* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + LoadSdfCommand* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const LoadSdfCommand& from); void MergeFrom(const LoadSdfCommand& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(LoadSdfCommand* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -1725,7 +2104,7 @@ class LoadSdfCommand : public ::google::protobuf::Message /* @@protoc_insertion_ } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1763,7 +2142,9 @@ class LoadSdfCommand : public ::google::protobuf::Message /* @@protoc_insertion_ double globalscaling() const; void set_globalscaling(double value); + void clear_hasUseMultiBody(); HasUseMultiBodyCase hasUseMultiBody_case() const; + void clear_hasGlobalScaling(); HasGlobalScalingCase hasGlobalScaling_case() const; // @@protoc_insertion_point(class_scope:pybullet_grpc.LoadSdfCommand) private: @@ -1771,11 +2152,9 @@ class LoadSdfCommand : public ::google::protobuf::Message /* @@protoc_insertion_ void set_has_globalscaling(); inline bool has_hasUseMultiBody() const; - void clear_hasUseMultiBody(); inline void clear_has_hasUseMultiBody(); inline bool has_hasGlobalScaling() const; - void clear_hasGlobalScaling(); inline void clear_has_hasGlobalScaling(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; @@ -1788,10 +2167,10 @@ class LoadSdfCommand : public ::google::protobuf::Message /* @@protoc_insertion_ HasGlobalScalingUnion() {} double globalscaling_; } hasGlobalScaling_; - mutable int _cached_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 _oneof_case_[2]; - friend struct protobuf_pybullet_2eproto::TableStruct; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -1806,46 +2185,66 @@ class SdfLoadedStatus : public ::google::protobuf::Message /* @@protoc_insertion CopyFrom(from); return *this; } + #if LANG_CXX11 + SdfLoadedStatus(SdfLoadedStatus&& from) noexcept + : SdfLoadedStatus() { + *this = ::std::move(from); + } + inline SdfLoadedStatus& operator=(SdfLoadedStatus&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const SdfLoadedStatus& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SdfLoadedStatus* internal_default_instance() { return reinterpret_cast( &_SdfLoadedStatus_default_instance_); } + static constexpr int kIndexInFileMessages = + 16; void Swap(SdfLoadedStatus* other); + friend void swap(SdfLoadedStatus& a, SdfLoadedStatus& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline SdfLoadedStatus* New() const PROTOBUF_FINAL { return New(NULL); } + inline SdfLoadedStatus* New() const final { + return CreateMaybeMessage(NULL); + } - SdfLoadedStatus* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + SdfLoadedStatus* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const SdfLoadedStatus& from); void MergeFrom(const SdfLoadedStatus& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(SdfLoadedStatus* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -1856,7 +2255,7 @@ class SdfLoadedStatus : public ::google::protobuf::Message /* @@protoc_insertion } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1880,8 +2279,8 @@ class SdfLoadedStatus : public ::google::protobuf::Message /* @@protoc_insertion ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::RepeatedField< ::google::protobuf::int32 > bodyuniqueids_; mutable int _bodyuniqueids_cached_byte_size_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -1896,46 +2295,66 @@ class LoadMjcfCommand : public ::google::protobuf::Message /* @@protoc_insertion CopyFrom(from); return *this; } + #if LANG_CXX11 + LoadMjcfCommand(LoadMjcfCommand&& from) noexcept + : LoadMjcfCommand() { + *this = ::std::move(from); + } + inline LoadMjcfCommand& operator=(LoadMjcfCommand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const LoadMjcfCommand& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const LoadMjcfCommand* internal_default_instance() { return reinterpret_cast( &_LoadMjcfCommand_default_instance_); } + static constexpr int kIndexInFileMessages = + 17; void Swap(LoadMjcfCommand* other); + friend void swap(LoadMjcfCommand& a, LoadMjcfCommand& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline LoadMjcfCommand* New() const PROTOBUF_FINAL { return New(NULL); } + inline LoadMjcfCommand* New() const final { + return CreateMaybeMessage(NULL); + } - LoadMjcfCommand* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + LoadMjcfCommand* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const LoadMjcfCommand& from); void MergeFrom(const LoadMjcfCommand& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(LoadMjcfCommand* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -1946,7 +2365,7 @@ class LoadMjcfCommand : public ::google::protobuf::Message /* @@protoc_insertion } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1978,8 +2397,8 @@ class LoadMjcfCommand : public ::google::protobuf::Message /* @@protoc_insertion ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::ArenaStringPtr filename_; ::google::protobuf::int32 flags_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -1994,46 +2413,66 @@ class MjcfLoadedStatus : public ::google::protobuf::Message /* @@protoc_insertio CopyFrom(from); return *this; } + #if LANG_CXX11 + MjcfLoadedStatus(MjcfLoadedStatus&& from) noexcept + : MjcfLoadedStatus() { + *this = ::std::move(from); + } + inline MjcfLoadedStatus& operator=(MjcfLoadedStatus&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const MjcfLoadedStatus& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MjcfLoadedStatus* internal_default_instance() { return reinterpret_cast( &_MjcfLoadedStatus_default_instance_); } + static constexpr int kIndexInFileMessages = + 18; void Swap(MjcfLoadedStatus* other); + friend void swap(MjcfLoadedStatus& a, MjcfLoadedStatus& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline MjcfLoadedStatus* New() const PROTOBUF_FINAL { return New(NULL); } + inline MjcfLoadedStatus* New() const final { + return CreateMaybeMessage(NULL); + } - MjcfLoadedStatus* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + MjcfLoadedStatus* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const MjcfLoadedStatus& from); void MergeFrom(const MjcfLoadedStatus& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(MjcfLoadedStatus* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -2044,7 +2483,7 @@ class MjcfLoadedStatus : public ::google::protobuf::Message /* @@protoc_insertio } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2068,8 +2507,8 @@ class MjcfLoadedStatus : public ::google::protobuf::Message /* @@protoc_insertio ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::RepeatedField< ::google::protobuf::int32 > bodyuniqueids_; mutable int _bodyuniqueids_cached_byte_size_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -2084,7 +2523,21 @@ class ChangeDynamicsCommand : public ::google::protobuf::Message /* @@protoc_ins CopyFrom(from); return *this; } + #if LANG_CXX11 + ChangeDynamicsCommand(ChangeDynamicsCommand&& from) noexcept + : ChangeDynamicsCommand() { + *this = ::std::move(from); + } + inline ChangeDynamicsCommand& operator=(ChangeDynamicsCommand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const ChangeDynamicsCommand& default_instance(); @@ -2158,42 +2611,48 @@ class ChangeDynamicsCommand : public ::google::protobuf::Message /* @@protoc_ins HASACTIVATIONSTATE_NOT_SET = 0, }; + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ChangeDynamicsCommand* internal_default_instance() { return reinterpret_cast( &_ChangeDynamicsCommand_default_instance_); } + static constexpr int kIndexInFileMessages = + 19; void Swap(ChangeDynamicsCommand* other); + friend void swap(ChangeDynamicsCommand& a, ChangeDynamicsCommand& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline ChangeDynamicsCommand* New() const PROTOBUF_FINAL { return New(NULL); } + inline ChangeDynamicsCommand* New() const final { + return CreateMaybeMessage(NULL); + } - ChangeDynamicsCommand* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + ChangeDynamicsCommand* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const ChangeDynamicsCommand& from); void MergeFrom(const ChangeDynamicsCommand& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(ChangeDynamicsCommand* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -2204,7 +2663,7 @@ class ChangeDynamicsCommand : public ::google::protobuf::Message /* @@protoc_ins } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2307,9 +2766,12 @@ class ChangeDynamicsCommand : public ::google::protobuf::Message /* @@protoc_ins bool has_localinertiadiagonal() const; void clear_localinertiadiagonal(); static const int kLocalInertiaDiagonalFieldNumber = 13; + private: + const ::pybullet_grpc::vec3& _internal_localinertiadiagonal() const; + public: const ::pybullet_grpc::vec3& localinertiadiagonal() const; - ::pybullet_grpc::vec3* mutable_localinertiadiagonal(); ::pybullet_grpc::vec3* release_localinertiadiagonal(); + ::pybullet_grpc::vec3* mutable_localinertiadiagonal(); void set_allocated_localinertiadiagonal(::pybullet_grpc::vec3* localinertiadiagonal); // int32 frictionAnchor = 14; @@ -2348,19 +2810,33 @@ class ChangeDynamicsCommand : public ::google::protobuf::Message /* @@protoc_ins ::google::protobuf::int32 activationstate() const; void set_activationstate(::google::protobuf::int32 value); + void clear_hasMass(); HasMassCase hasMass_case() const; + void clear_hasLateralFriction(); HasLateralFrictionCase hasLateralFriction_case() const; + void clear_hasSpinningFriction(); HasSpinningFrictionCase hasSpinningFriction_case() const; + void clear_hasRollingFriction(); HasRollingFrictionCase hasRollingFriction_case() const; + void clear_hasRestitution(); HasRestitutionCase hasRestitution_case() const; + void clear_haslinearDamping(); HaslinearDampingCase haslinearDamping_case() const; + void clear_hasangularDamping(); HasangularDampingCase hasangularDamping_case() const; + void clear_hasContactStiffness(); HasContactStiffnessCase hasContactStiffness_case() const; + void clear_hasContactDamping(); HasContactDampingCase hasContactDamping_case() const; + void clear_hasLocalInertiaDiagonal(); HasLocalInertiaDiagonalCase hasLocalInertiaDiagonal_case() const; + void clear_hasFrictionAnchor(); HasFrictionAnchorCase hasFrictionAnchor_case() const; + void clear_hasccdSweptSphereRadius(); HasccdSweptSphereRadiusCase hasccdSweptSphereRadius_case() const; + void clear_hasContactProcessingThreshold(); HasContactProcessingThresholdCase hasContactProcessingThreshold_case() const; + void clear_hasActivationState(); HasActivationStateCase hasActivationState_case() const; // @@protoc_insertion_point(class_scope:pybullet_grpc.ChangeDynamicsCommand) private: @@ -2380,59 +2856,45 @@ class ChangeDynamicsCommand : public ::google::protobuf::Message /* @@protoc_ins void set_has_activationstate(); inline bool has_hasMass() const; - void clear_hasMass(); inline void clear_has_hasMass(); inline bool has_hasLateralFriction() const; - void clear_hasLateralFriction(); inline void clear_has_hasLateralFriction(); inline bool has_hasSpinningFriction() const; - void clear_hasSpinningFriction(); inline void clear_has_hasSpinningFriction(); inline bool has_hasRollingFriction() const; - void clear_hasRollingFriction(); inline void clear_has_hasRollingFriction(); inline bool has_hasRestitution() const; - void clear_hasRestitution(); inline void clear_has_hasRestitution(); inline bool has_haslinearDamping() const; - void clear_haslinearDamping(); inline void clear_has_haslinearDamping(); inline bool has_hasangularDamping() const; - void clear_hasangularDamping(); inline void clear_has_hasangularDamping(); inline bool has_hasContactStiffness() const; - void clear_hasContactStiffness(); inline void clear_has_hasContactStiffness(); inline bool has_hasContactDamping() const; - void clear_hasContactDamping(); inline void clear_has_hasContactDamping(); inline bool has_hasLocalInertiaDiagonal() const; - void clear_hasLocalInertiaDiagonal(); inline void clear_has_hasLocalInertiaDiagonal(); inline bool has_hasFrictionAnchor() const; - void clear_hasFrictionAnchor(); inline void clear_has_hasFrictionAnchor(); inline bool has_hasccdSweptSphereRadius() const; - void clear_hasccdSweptSphereRadius(); inline void clear_has_hasccdSweptSphereRadius(); inline bool has_hasContactProcessingThreshold() const; - void clear_hasContactProcessingThreshold(); inline void clear_has_hasContactProcessingThreshold(); inline bool has_hasActivationState() const; - void clear_hasActivationState(); inline void clear_has_hasActivationState(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; @@ -2494,10 +2956,10 @@ class ChangeDynamicsCommand : public ::google::protobuf::Message /* @@protoc_ins HasActivationStateUnion() {} ::google::protobuf::int32 activationstate_; } hasActivationState_; - mutable int _cached_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 _oneof_case_[14]; - friend struct protobuf_pybullet_2eproto::TableStruct; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -2512,46 +2974,66 @@ class GetDynamicsCommand : public ::google::protobuf::Message /* @@protoc_insert CopyFrom(from); return *this; } + #if LANG_CXX11 + GetDynamicsCommand(GetDynamicsCommand&& from) noexcept + : GetDynamicsCommand() { + *this = ::std::move(from); + } + inline GetDynamicsCommand& operator=(GetDynamicsCommand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const GetDynamicsCommand& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetDynamicsCommand* internal_default_instance() { return reinterpret_cast( &_GetDynamicsCommand_default_instance_); } + static constexpr int kIndexInFileMessages = + 20; void Swap(GetDynamicsCommand* other); + friend void swap(GetDynamicsCommand& a, GetDynamicsCommand& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline GetDynamicsCommand* New() const PROTOBUF_FINAL { return New(NULL); } + inline GetDynamicsCommand* New() const final { + return CreateMaybeMessage(NULL); + } - GetDynamicsCommand* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + GetDynamicsCommand* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const GetDynamicsCommand& from); void MergeFrom(const GetDynamicsCommand& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(GetDynamicsCommand* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -2562,7 +3044,7 @@ class GetDynamicsCommand : public ::google::protobuf::Message /* @@protoc_insert } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2586,8 +3068,8 @@ class GetDynamicsCommand : public ::google::protobuf::Message /* @@protoc_insert ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::int32 bodyuniqueid_; ::google::protobuf::int32 linkindex_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -2602,46 +3084,66 @@ class GetDynamicsStatus : public ::google::protobuf::Message /* @@protoc_inserti CopyFrom(from); return *this; } + #if LANG_CXX11 + GetDynamicsStatus(GetDynamicsStatus&& from) noexcept + : GetDynamicsStatus() { + *this = ::std::move(from); + } + inline GetDynamicsStatus& operator=(GetDynamicsStatus&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const GetDynamicsStatus& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetDynamicsStatus* internal_default_instance() { return reinterpret_cast( &_GetDynamicsStatus_default_instance_); } + static constexpr int kIndexInFileMessages = + 21; void Swap(GetDynamicsStatus* other); + friend void swap(GetDynamicsStatus& a, GetDynamicsStatus& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline GetDynamicsStatus* New() const PROTOBUF_FINAL { return New(NULL); } + inline GetDynamicsStatus* New() const final { + return CreateMaybeMessage(NULL); + } - GetDynamicsStatus* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + GetDynamicsStatus* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const GetDynamicsStatus& from); void MergeFrom(const GetDynamicsStatus& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(GetDynamicsStatus* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -2652,7 +3154,7 @@ class GetDynamicsStatus : public ::google::protobuf::Message /* @@protoc_inserti } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2662,9 +3164,12 @@ class GetDynamicsStatus : public ::google::protobuf::Message /* @@protoc_inserti bool has_localinertiadiagonal() const; void clear_localinertiadiagonal(); static const int kLocalInertiaDiagonalFieldNumber = 13; + private: + const ::pybullet_grpc::vec3& _internal_localinertiadiagonal() const; + public: const ::pybullet_grpc::vec3& localinertiadiagonal() const; - ::pybullet_grpc::vec3* mutable_localinertiadiagonal(); ::pybullet_grpc::vec3* release_localinertiadiagonal(); + ::pybullet_grpc::vec3* mutable_localinertiadiagonal(); void set_allocated_localinertiadiagonal(::pybullet_grpc::vec3* localinertiadiagonal); // double mass = 3; @@ -2763,8 +3268,8 @@ class GetDynamicsStatus : public ::google::protobuf::Message /* @@protoc_inserti ::google::protobuf::int32 frictionanchor_; ::google::protobuf::int32 activationstate_; double contactprocessingthreshold_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -2779,46 +3284,66 @@ class InitPoseCommand : public ::google::protobuf::Message /* @@protoc_insertion CopyFrom(from); return *this; } + #if LANG_CXX11 + InitPoseCommand(InitPoseCommand&& from) noexcept + : InitPoseCommand() { + *this = ::std::move(from); + } + inline InitPoseCommand& operator=(InitPoseCommand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const InitPoseCommand& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const InitPoseCommand* internal_default_instance() { return reinterpret_cast( &_InitPoseCommand_default_instance_); } + static constexpr int kIndexInFileMessages = + 22; void Swap(InitPoseCommand* other); + friend void swap(InitPoseCommand& a, InitPoseCommand& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline InitPoseCommand* New() const PROTOBUF_FINAL { return New(NULL); } + inline InitPoseCommand* New() const final { + return CreateMaybeMessage(NULL); + } - InitPoseCommand* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + InitPoseCommand* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const InitPoseCommand& from); void MergeFrom(const InitPoseCommand& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(InitPoseCommand* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -2829,7 +3354,7 @@ class InitPoseCommand : public ::google::protobuf::Message /* @@protoc_insertion } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2909,8 +3434,8 @@ class InitPoseCommand : public ::google::protobuf::Message /* @@protoc_insertion mutable int _initialstateqdot_cached_byte_size_; ::google::protobuf::int32 bodyuniqueid_; ::google::protobuf::int32 updateflags_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -2925,46 +3450,66 @@ class RequestActualStateCommand : public ::google::protobuf::Message /* @@protoc CopyFrom(from); return *this; } + #if LANG_CXX11 + RequestActualStateCommand(RequestActualStateCommand&& from) noexcept + : RequestActualStateCommand() { + *this = ::std::move(from); + } + inline RequestActualStateCommand& operator=(RequestActualStateCommand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const RequestActualStateCommand& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const RequestActualStateCommand* internal_default_instance() { return reinterpret_cast( &_RequestActualStateCommand_default_instance_); } + static constexpr int kIndexInFileMessages = + 23; void Swap(RequestActualStateCommand* other); + friend void swap(RequestActualStateCommand& a, RequestActualStateCommand& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline RequestActualStateCommand* New() const PROTOBUF_FINAL { return New(NULL); } + inline RequestActualStateCommand* New() const final { + return CreateMaybeMessage(NULL); + } - RequestActualStateCommand* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + RequestActualStateCommand* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const RequestActualStateCommand& from); void MergeFrom(const RequestActualStateCommand& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(RequestActualStateCommand* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -2975,7 +3520,7 @@ class RequestActualStateCommand : public ::google::protobuf::Message /* @@protoc } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3006,8 +3551,8 @@ class RequestActualStateCommand : public ::google::protobuf::Message /* @@protoc ::google::protobuf::int32 bodyuniqueid_; bool computeforwardkinematics_; bool computelinkvelocities_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -3022,46 +3567,66 @@ class SendActualStateStatus : public ::google::protobuf::Message /* @@protoc_ins CopyFrom(from); return *this; } + #if LANG_CXX11 + SendActualStateStatus(SendActualStateStatus&& from) noexcept + : SendActualStateStatus() { + *this = ::std::move(from); + } + inline SendActualStateStatus& operator=(SendActualStateStatus&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const SendActualStateStatus& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SendActualStateStatus* internal_default_instance() { return reinterpret_cast( &_SendActualStateStatus_default_instance_); } + static constexpr int kIndexInFileMessages = + 24; void Swap(SendActualStateStatus* other); + friend void swap(SendActualStateStatus& a, SendActualStateStatus& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline SendActualStateStatus* New() const PROTOBUF_FINAL { return New(NULL); } + inline SendActualStateStatus* New() const final { + return CreateMaybeMessage(NULL); + } - SendActualStateStatus* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + SendActualStateStatus* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const SendActualStateStatus& from); void MergeFrom(const SendActualStateStatus& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(SendActualStateStatus* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -3072,7 +3637,7 @@ class SendActualStateStatus : public ::google::protobuf::Message /* @@protoc_ins } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3222,8 +3787,8 @@ class SendActualStateStatus : public ::google::protobuf::Message /* @@protoc_ins ::google::protobuf::int32 numlinks_; ::google::protobuf::int32 numdegreeoffreedomq_; ::google::protobuf::int32 numdegreeoffreedomu_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -3238,46 +3803,66 @@ class ConfigureOpenGLVisualizerCommand : public ::google::protobuf::Message /* @ CopyFrom(from); return *this; } + #if LANG_CXX11 + ConfigureOpenGLVisualizerCommand(ConfigureOpenGLVisualizerCommand&& from) noexcept + : ConfigureOpenGLVisualizerCommand() { + *this = ::std::move(from); + } + inline ConfigureOpenGLVisualizerCommand& operator=(ConfigureOpenGLVisualizerCommand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const ConfigureOpenGLVisualizerCommand& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ConfigureOpenGLVisualizerCommand* internal_default_instance() { return reinterpret_cast( &_ConfigureOpenGLVisualizerCommand_default_instance_); } + static constexpr int kIndexInFileMessages = + 25; void Swap(ConfigureOpenGLVisualizerCommand* other); + friend void swap(ConfigureOpenGLVisualizerCommand& a, ConfigureOpenGLVisualizerCommand& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline ConfigureOpenGLVisualizerCommand* New() const PROTOBUF_FINAL { return New(NULL); } + inline ConfigureOpenGLVisualizerCommand* New() const final { + return CreateMaybeMessage(NULL); + } - ConfigureOpenGLVisualizerCommand* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + ConfigureOpenGLVisualizerCommand* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const ConfigureOpenGLVisualizerCommand& from); void MergeFrom(const ConfigureOpenGLVisualizerCommand& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(ConfigureOpenGLVisualizerCommand* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -3288,7 +3873,7 @@ class ConfigureOpenGLVisualizerCommand : public ::google::protobuf::Message /* @ } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3298,9 +3883,12 @@ class ConfigureOpenGLVisualizerCommand : public ::google::protobuf::Message /* @ bool has_cameratargetposition() const; void clear_cameratargetposition(); static const int kCameraTargetPositionFieldNumber = 5; + private: + const ::pybullet_grpc::vec3& _internal_cameratargetposition() const; + public: const ::pybullet_grpc::vec3& cameratargetposition() const; - ::pybullet_grpc::vec3* mutable_cameratargetposition(); ::pybullet_grpc::vec3* release_cameratargetposition(); + ::pybullet_grpc::vec3* mutable_cameratargetposition(); void set_allocated_cameratargetposition(::pybullet_grpc::vec3* cameratargetposition); // double cameraDistance = 2; @@ -3350,8 +3938,8 @@ class ConfigureOpenGLVisualizerCommand : public ::google::protobuf::Message /* @ ::google::protobuf::int32 setflag_; double camerayaw_; ::google::protobuf::int32 setenabled_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -3366,46 +3954,66 @@ class PhysicsSimulationParameters : public ::google::protobuf::Message /* @@prot CopyFrom(from); return *this; } + #if LANG_CXX11 + PhysicsSimulationParameters(PhysicsSimulationParameters&& from) noexcept + : PhysicsSimulationParameters() { + *this = ::std::move(from); + } + inline PhysicsSimulationParameters& operator=(PhysicsSimulationParameters&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const PhysicsSimulationParameters& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PhysicsSimulationParameters* internal_default_instance() { return reinterpret_cast( &_PhysicsSimulationParameters_default_instance_); } + static constexpr int kIndexInFileMessages = + 26; void Swap(PhysicsSimulationParameters* other); + friend void swap(PhysicsSimulationParameters& a, PhysicsSimulationParameters& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline PhysicsSimulationParameters* New() const PROTOBUF_FINAL { return New(NULL); } + inline PhysicsSimulationParameters* New() const final { + return CreateMaybeMessage(NULL); + } - PhysicsSimulationParameters* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + PhysicsSimulationParameters* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const PhysicsSimulationParameters& from); void MergeFrom(const PhysicsSimulationParameters& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(PhysicsSimulationParameters* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -3416,7 +4024,7 @@ class PhysicsSimulationParameters : public ::google::protobuf::Message /* @@prot } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3426,9 +4034,12 @@ class PhysicsSimulationParameters : public ::google::protobuf::Message /* @@prot bool has_gravityacceleration() const; void clear_gravityacceleration(); static const int kGravityAccelerationFieldNumber = 2; + private: + const ::pybullet_grpc::vec3& _internal_gravityacceleration() const; + public: const ::pybullet_grpc::vec3& gravityacceleration() const; - ::pybullet_grpc::vec3* mutable_gravityacceleration(); ::pybullet_grpc::vec3* release_gravityacceleration(); + ::pybullet_grpc::vec3* mutable_gravityacceleration(); void set_allocated_gravityacceleration(::pybullet_grpc::vec3* gravityacceleration); // double deltaTime = 1; @@ -3611,8 +4222,8 @@ class PhysicsSimulationParameters : public ::google::protobuf::Message /* @@prot ::google::protobuf::int32 enablesat_; ::google::protobuf::int32 constraintsolvertype_; ::google::protobuf::int32 minimumsolverislandsize_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -3627,46 +4238,66 @@ class PhysicsSimulationParametersCommand : public ::google::protobuf::Message /* CopyFrom(from); return *this; } + #if LANG_CXX11 + PhysicsSimulationParametersCommand(PhysicsSimulationParametersCommand&& from) noexcept + : PhysicsSimulationParametersCommand() { + *this = ::std::move(from); + } + inline PhysicsSimulationParametersCommand& operator=(PhysicsSimulationParametersCommand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const PhysicsSimulationParametersCommand& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PhysicsSimulationParametersCommand* internal_default_instance() { return reinterpret_cast( &_PhysicsSimulationParametersCommand_default_instance_); } + static constexpr int kIndexInFileMessages = + 27; void Swap(PhysicsSimulationParametersCommand* other); + friend void swap(PhysicsSimulationParametersCommand& a, PhysicsSimulationParametersCommand& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline PhysicsSimulationParametersCommand* New() const PROTOBUF_FINAL { return New(NULL); } + inline PhysicsSimulationParametersCommand* New() const final { + return CreateMaybeMessage(NULL); + } - PhysicsSimulationParametersCommand* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + PhysicsSimulationParametersCommand* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const PhysicsSimulationParametersCommand& from); void MergeFrom(const PhysicsSimulationParametersCommand& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(PhysicsSimulationParametersCommand* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -3677,7 +4308,7 @@ class PhysicsSimulationParametersCommand : public ::google::protobuf::Message /* } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3687,9 +4318,12 @@ class PhysicsSimulationParametersCommand : public ::google::protobuf::Message /* bool has_params() const; void clear_params(); static const int kParamsFieldNumber = 2; + private: + const ::pybullet_grpc::PhysicsSimulationParameters& _internal_params() const; + public: const ::pybullet_grpc::PhysicsSimulationParameters& params() const; - ::pybullet_grpc::PhysicsSimulationParameters* mutable_params(); ::pybullet_grpc::PhysicsSimulationParameters* release_params(); + ::pybullet_grpc::PhysicsSimulationParameters* mutable_params(); void set_allocated_params(::pybullet_grpc::PhysicsSimulationParameters* params); // int32 updateFlags = 1; @@ -3704,8 +4338,8 @@ class PhysicsSimulationParametersCommand : public ::google::protobuf::Message /* ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::pybullet_grpc::PhysicsSimulationParameters* params_; ::google::protobuf::int32 updateflags_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -3720,46 +4354,66 @@ class JointMotorControlCommand : public ::google::protobuf::Message /* @@protoc_ CopyFrom(from); return *this; } + #if LANG_CXX11 + JointMotorControlCommand(JointMotorControlCommand&& from) noexcept + : JointMotorControlCommand() { + *this = ::std::move(from); + } + inline JointMotorControlCommand& operator=(JointMotorControlCommand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const JointMotorControlCommand& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const JointMotorControlCommand* internal_default_instance() { return reinterpret_cast( &_JointMotorControlCommand_default_instance_); } + static constexpr int kIndexInFileMessages = + 28; void Swap(JointMotorControlCommand* other); + friend void swap(JointMotorControlCommand& a, JointMotorControlCommand& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline JointMotorControlCommand* New() const PROTOBUF_FINAL { return New(NULL); } + inline JointMotorControlCommand* New() const final { + return CreateMaybeMessage(NULL); + } - JointMotorControlCommand* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + JointMotorControlCommand* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const JointMotorControlCommand& from); void MergeFrom(const JointMotorControlCommand& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(JointMotorControlCommand* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -3770,7 +4424,7 @@ class JointMotorControlCommand : public ::google::protobuf::Message /* @@protoc_ } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3899,8 +4553,8 @@ class JointMotorControlCommand : public ::google::protobuf::Message /* @@protoc_ ::google::protobuf::int32 bodyuniqueid_; ::google::protobuf::int32 controlmode_; ::google::protobuf::int32 updateflags_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -3915,46 +4569,66 @@ class UserConstraintCommand : public ::google::protobuf::Message /* @@protoc_ins CopyFrom(from); return *this; } + #if LANG_CXX11 + UserConstraintCommand(UserConstraintCommand&& from) noexcept + : UserConstraintCommand() { + *this = ::std::move(from); + } + inline UserConstraintCommand& operator=(UserConstraintCommand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const UserConstraintCommand& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const UserConstraintCommand* internal_default_instance() { return reinterpret_cast( &_UserConstraintCommand_default_instance_); } + static constexpr int kIndexInFileMessages = + 29; void Swap(UserConstraintCommand* other); + friend void swap(UserConstraintCommand& a, UserConstraintCommand& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline UserConstraintCommand* New() const PROTOBUF_FINAL { return New(NULL); } + inline UserConstraintCommand* New() const final { + return CreateMaybeMessage(NULL); + } - UserConstraintCommand* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + UserConstraintCommand* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const UserConstraintCommand& from); void MergeFrom(const UserConstraintCommand& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(UserConstraintCommand* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -3965,7 +4639,7 @@ class UserConstraintCommand : public ::google::protobuf::Message /* @@protoc_ins } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3975,27 +4649,36 @@ class UserConstraintCommand : public ::google::protobuf::Message /* @@protoc_ins bool has_parentframe() const; void clear_parentframe(); static const int kParentFrameFieldNumber = 5; + private: + const ::pybullet_grpc::transform& _internal_parentframe() const; + public: const ::pybullet_grpc::transform& parentframe() const; - ::pybullet_grpc::transform* mutable_parentframe(); ::pybullet_grpc::transform* release_parentframe(); + ::pybullet_grpc::transform* mutable_parentframe(); void set_allocated_parentframe(::pybullet_grpc::transform* parentframe); // .pybullet_grpc.transform childFrame = 6; bool has_childframe() const; void clear_childframe(); static const int kChildFrameFieldNumber = 6; + private: + const ::pybullet_grpc::transform& _internal_childframe() const; + public: const ::pybullet_grpc::transform& childframe() const; - ::pybullet_grpc::transform* mutable_childframe(); ::pybullet_grpc::transform* release_childframe(); + ::pybullet_grpc::transform* mutable_childframe(); void set_allocated_childframe(::pybullet_grpc::transform* childframe); // .pybullet_grpc.vec3 jointAxis = 7; bool has_jointaxis() const; void clear_jointaxis(); static const int kJointAxisFieldNumber = 7; + private: + const ::pybullet_grpc::vec3& _internal_jointaxis() const; + public: const ::pybullet_grpc::vec3& jointaxis() const; - ::pybullet_grpc::vec3* mutable_jointaxis(); ::pybullet_grpc::vec3* release_jointaxis(); + ::pybullet_grpc::vec3* mutable_jointaxis(); void set_allocated_jointaxis(::pybullet_grpc::vec3* jointaxis); // int32 parentBodyIndex = 1; @@ -4089,8 +4772,8 @@ class UserConstraintCommand : public ::google::protobuf::Message /* @@protoc_ins ::google::protobuf::int32 gearauxlink_; ::google::protobuf::int32 updateflags_; double erp_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -4105,46 +4788,66 @@ class UserConstraintStatus : public ::google::protobuf::Message /* @@protoc_inse CopyFrom(from); return *this; } + #if LANG_CXX11 + UserConstraintStatus(UserConstraintStatus&& from) noexcept + : UserConstraintStatus() { + *this = ::std::move(from); + } + inline UserConstraintStatus& operator=(UserConstraintStatus&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const UserConstraintStatus& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const UserConstraintStatus* internal_default_instance() { return reinterpret_cast( &_UserConstraintStatus_default_instance_); } + static constexpr int kIndexInFileMessages = + 30; void Swap(UserConstraintStatus* other); + friend void swap(UserConstraintStatus& a, UserConstraintStatus& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline UserConstraintStatus* New() const PROTOBUF_FINAL { return New(NULL); } + inline UserConstraintStatus* New() const final { + return CreateMaybeMessage(NULL); + } - UserConstraintStatus* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + UserConstraintStatus* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const UserConstraintStatus& from); void MergeFrom(const UserConstraintStatus& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(UserConstraintStatus* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -4155,32 +4858,32 @@ class UserConstraintStatus : public ::google::protobuf::Message /* @@protoc_inse } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // double maxAppliedForce = 9; - void clear_maxappliedforce(); - static const int kMaxAppliedForceFieldNumber = 9; - double maxappliedforce() const; - void set_maxappliedforce(double value); - // int32 userConstraintUniqueId = 10; void clear_userconstraintuniqueid(); static const int kUserConstraintUniqueIdFieldNumber = 10; ::google::protobuf::int32 userconstraintuniqueid() const; void set_userconstraintuniqueid(::google::protobuf::int32 value); + // double maxAppliedForce = 9; + void clear_maxappliedforce(); + static const int kMaxAppliedForceFieldNumber = 9; + double maxappliedforce() const; + void set_maxappliedforce(double value); + // @@protoc_insertion_point(class_scope:pybullet_grpc.UserConstraintStatus) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - double maxappliedforce_; ::google::protobuf::int32 userconstraintuniqueid_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + double maxappliedforce_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -4195,46 +4898,66 @@ class UserConstraintStateStatus : public ::google::protobuf::Message /* @@protoc CopyFrom(from); return *this; } + #if LANG_CXX11 + UserConstraintStateStatus(UserConstraintStateStatus&& from) noexcept + : UserConstraintStateStatus() { + *this = ::std::move(from); + } + inline UserConstraintStateStatus& operator=(UserConstraintStateStatus&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const UserConstraintStateStatus& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const UserConstraintStateStatus* internal_default_instance() { return reinterpret_cast( &_UserConstraintStateStatus_default_instance_); } + static constexpr int kIndexInFileMessages = + 31; void Swap(UserConstraintStateStatus* other); + friend void swap(UserConstraintStateStatus& a, UserConstraintStateStatus& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline UserConstraintStateStatus* New() const PROTOBUF_FINAL { return New(NULL); } + inline UserConstraintStateStatus* New() const final { + return CreateMaybeMessage(NULL); + } - UserConstraintStateStatus* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + UserConstraintStateStatus* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const UserConstraintStateStatus& from); void MergeFrom(const UserConstraintStateStatus& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(UserConstraintStateStatus* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -4245,7 +4968,7 @@ class UserConstraintStateStatus : public ::google::protobuf::Message /* @@protoc } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -4255,18 +4978,24 @@ class UserConstraintStateStatus : public ::google::protobuf::Message /* @@protoc bool has_appliedconstraintforceslinear() const; void clear_appliedconstraintforceslinear(); static const int kAppliedConstraintForcesLinearFieldNumber = 1; + private: + const ::pybullet_grpc::vec3& _internal_appliedconstraintforceslinear() const; + public: const ::pybullet_grpc::vec3& appliedconstraintforceslinear() const; - ::pybullet_grpc::vec3* mutable_appliedconstraintforceslinear(); ::pybullet_grpc::vec3* release_appliedconstraintforceslinear(); + ::pybullet_grpc::vec3* mutable_appliedconstraintforceslinear(); void set_allocated_appliedconstraintforceslinear(::pybullet_grpc::vec3* appliedconstraintforceslinear); // .pybullet_grpc.vec3 appliedConstraintForcesAngular = 2; bool has_appliedconstraintforcesangular() const; void clear_appliedconstraintforcesangular(); static const int kAppliedConstraintForcesAngularFieldNumber = 2; + private: + const ::pybullet_grpc::vec3& _internal_appliedconstraintforcesangular() const; + public: const ::pybullet_grpc::vec3& appliedconstraintforcesangular() const; - ::pybullet_grpc::vec3* mutable_appliedconstraintforcesangular(); ::pybullet_grpc::vec3* release_appliedconstraintforcesangular(); + ::pybullet_grpc::vec3* mutable_appliedconstraintforcesangular(); void set_allocated_appliedconstraintforcesangular(::pybullet_grpc::vec3* appliedconstraintforcesangular); // int32 numDofs = 3; @@ -4282,8 +5011,8 @@ class UserConstraintStateStatus : public ::google::protobuf::Message /* @@protoc ::pybullet_grpc::vec3* appliedconstraintforceslinear_; ::pybullet_grpc::vec3* appliedconstraintforcesangular_; ::google::protobuf::int32 numdofs_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -4298,46 +5027,66 @@ class RequestKeyboardEventsCommand : public ::google::protobuf::Message /* @@pro CopyFrom(from); return *this; } + #if LANG_CXX11 + RequestKeyboardEventsCommand(RequestKeyboardEventsCommand&& from) noexcept + : RequestKeyboardEventsCommand() { + *this = ::std::move(from); + } + inline RequestKeyboardEventsCommand& operator=(RequestKeyboardEventsCommand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const RequestKeyboardEventsCommand& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const RequestKeyboardEventsCommand* internal_default_instance() { return reinterpret_cast( &_RequestKeyboardEventsCommand_default_instance_); } + static constexpr int kIndexInFileMessages = + 32; void Swap(RequestKeyboardEventsCommand* other); + friend void swap(RequestKeyboardEventsCommand& a, RequestKeyboardEventsCommand& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline RequestKeyboardEventsCommand* New() const PROTOBUF_FINAL { return New(NULL); } + inline RequestKeyboardEventsCommand* New() const final { + return CreateMaybeMessage(NULL); + } - RequestKeyboardEventsCommand* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + RequestKeyboardEventsCommand* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const RequestKeyboardEventsCommand& from); void MergeFrom(const RequestKeyboardEventsCommand& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(RequestKeyboardEventsCommand* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -4348,7 +5097,7 @@ class RequestKeyboardEventsCommand : public ::google::protobuf::Message /* @@pro } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -4358,8 +5107,8 @@ class RequestKeyboardEventsCommand : public ::google::protobuf::Message /* @@pro private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -4374,46 +5123,66 @@ class KeyboardEvent : public ::google::protobuf::Message /* @@protoc_insertion_p CopyFrom(from); return *this; } + #if LANG_CXX11 + KeyboardEvent(KeyboardEvent&& from) noexcept + : KeyboardEvent() { + *this = ::std::move(from); + } + inline KeyboardEvent& operator=(KeyboardEvent&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const KeyboardEvent& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const KeyboardEvent* internal_default_instance() { return reinterpret_cast( &_KeyboardEvent_default_instance_); } + static constexpr int kIndexInFileMessages = + 33; void Swap(KeyboardEvent* other); + friend void swap(KeyboardEvent& a, KeyboardEvent& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline KeyboardEvent* New() const PROTOBUF_FINAL { return New(NULL); } + inline KeyboardEvent* New() const final { + return CreateMaybeMessage(NULL); + } - KeyboardEvent* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + KeyboardEvent* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const KeyboardEvent& from); void MergeFrom(const KeyboardEvent& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(KeyboardEvent* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -4424,7 +5193,7 @@ class KeyboardEvent : public ::google::protobuf::Message /* @@protoc_insertion_p } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -4448,8 +5217,8 @@ class KeyboardEvent : public ::google::protobuf::Message /* @@protoc_insertion_p ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::int32 keycode_; ::google::protobuf::int32 keystate_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -4464,46 +5233,66 @@ class KeyboardEventsStatus : public ::google::protobuf::Message /* @@protoc_inse CopyFrom(from); return *this; } + #if LANG_CXX11 + KeyboardEventsStatus(KeyboardEventsStatus&& from) noexcept + : KeyboardEventsStatus() { + *this = ::std::move(from); + } + inline KeyboardEventsStatus& operator=(KeyboardEventsStatus&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const KeyboardEventsStatus& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const KeyboardEventsStatus* internal_default_instance() { return reinterpret_cast( &_KeyboardEventsStatus_default_instance_); } + static constexpr int kIndexInFileMessages = + 34; void Swap(KeyboardEventsStatus* other); + friend void swap(KeyboardEventsStatus& a, KeyboardEventsStatus& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline KeyboardEventsStatus* New() const PROTOBUF_FINAL { return New(NULL); } + inline KeyboardEventsStatus* New() const final { + return CreateMaybeMessage(NULL); + } - KeyboardEventsStatus* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + KeyboardEventsStatus* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const KeyboardEventsStatus& from); void MergeFrom(const KeyboardEventsStatus& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(KeyboardEventsStatus* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -4514,7 +5303,7 @@ class KeyboardEventsStatus : public ::google::protobuf::Message /* @@protoc_inse } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -4524,11 +5313,11 @@ class KeyboardEventsStatus : public ::google::protobuf::Message /* @@protoc_inse int keyboardevents_size() const; void clear_keyboardevents(); static const int kKeyboardEventsFieldNumber = 1; - const ::pybullet_grpc::KeyboardEvent& keyboardevents(int index) const; ::pybullet_grpc::KeyboardEvent* mutable_keyboardevents(int index); - ::pybullet_grpc::KeyboardEvent* add_keyboardevents(); ::google::protobuf::RepeatedPtrField< ::pybullet_grpc::KeyboardEvent >* mutable_keyboardevents(); + const ::pybullet_grpc::KeyboardEvent& keyboardevents(int index) const; + ::pybullet_grpc::KeyboardEvent* add_keyboardevents(); const ::google::protobuf::RepeatedPtrField< ::pybullet_grpc::KeyboardEvent >& keyboardevents() const; @@ -4537,8 +5326,8 @@ class KeyboardEventsStatus : public ::google::protobuf::Message /* @@protoc_inse ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::RepeatedPtrField< ::pybullet_grpc::KeyboardEvent > keyboardevents_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -4553,46 +5342,66 @@ class RequestCameraImageCommand : public ::google::protobuf::Message /* @@protoc CopyFrom(from); return *this; } + #if LANG_CXX11 + RequestCameraImageCommand(RequestCameraImageCommand&& from) noexcept + : RequestCameraImageCommand() { + *this = ::std::move(from); + } + inline RequestCameraImageCommand& operator=(RequestCameraImageCommand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const RequestCameraImageCommand& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const RequestCameraImageCommand* internal_default_instance() { return reinterpret_cast( &_RequestCameraImageCommand_default_instance_); } + static constexpr int kIndexInFileMessages = + 35; void Swap(RequestCameraImageCommand* other); + friend void swap(RequestCameraImageCommand& a, RequestCameraImageCommand& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline RequestCameraImageCommand* New() const PROTOBUF_FINAL { return New(NULL); } + inline RequestCameraImageCommand* New() const final { + return CreateMaybeMessage(NULL); + } - RequestCameraImageCommand* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + RequestCameraImageCommand* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const RequestCameraImageCommand& from); void MergeFrom(const RequestCameraImageCommand& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(RequestCameraImageCommand* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -4603,7 +5412,7 @@ class RequestCameraImageCommand : public ::google::protobuf::Message /* @@protoc } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -4613,54 +5422,72 @@ class RequestCameraImageCommand : public ::google::protobuf::Message /* @@protoc bool has_viewmatrix() const; void clear_viewmatrix(); static const int kViewMatrixFieldNumber = 3; + private: + const ::pybullet_grpc::matrix4x4& _internal_viewmatrix() const; + public: const ::pybullet_grpc::matrix4x4& viewmatrix() const; - ::pybullet_grpc::matrix4x4* mutable_viewmatrix(); ::pybullet_grpc::matrix4x4* release_viewmatrix(); + ::pybullet_grpc::matrix4x4* mutable_viewmatrix(); void set_allocated_viewmatrix(::pybullet_grpc::matrix4x4* viewmatrix); // .pybullet_grpc.matrix4x4 projectionMatrix = 4; bool has_projectionmatrix() const; void clear_projectionmatrix(); static const int kProjectionMatrixFieldNumber = 4; + private: + const ::pybullet_grpc::matrix4x4& _internal_projectionmatrix() const; + public: const ::pybullet_grpc::matrix4x4& projectionmatrix() const; - ::pybullet_grpc::matrix4x4* mutable_projectionmatrix(); ::pybullet_grpc::matrix4x4* release_projectionmatrix(); + ::pybullet_grpc::matrix4x4* mutable_projectionmatrix(); void set_allocated_projectionmatrix(::pybullet_grpc::matrix4x4* projectionmatrix); // .pybullet_grpc.vec3 lightDirection = 8; bool has_lightdirection() const; void clear_lightdirection(); static const int kLightDirectionFieldNumber = 8; + private: + const ::pybullet_grpc::vec3& _internal_lightdirection() const; + public: const ::pybullet_grpc::vec3& lightdirection() const; - ::pybullet_grpc::vec3* mutable_lightdirection(); ::pybullet_grpc::vec3* release_lightdirection(); + ::pybullet_grpc::vec3* mutable_lightdirection(); void set_allocated_lightdirection(::pybullet_grpc::vec3* lightdirection); // .pybullet_grpc.vec3 lightColor = 9; bool has_lightcolor() const; void clear_lightcolor(); static const int kLightColorFieldNumber = 9; + private: + const ::pybullet_grpc::vec3& _internal_lightcolor() const; + public: const ::pybullet_grpc::vec3& lightcolor() const; - ::pybullet_grpc::vec3* mutable_lightcolor(); ::pybullet_grpc::vec3* release_lightcolor(); + ::pybullet_grpc::vec3* mutable_lightcolor(); void set_allocated_lightcolor(::pybullet_grpc::vec3* lightcolor); // .pybullet_grpc.matrix4x4 projectiveTextureViewMatrix = 15; bool has_projectivetextureviewmatrix() const; void clear_projectivetextureviewmatrix(); static const int kProjectiveTextureViewMatrixFieldNumber = 15; + private: + const ::pybullet_grpc::matrix4x4& _internal_projectivetextureviewmatrix() const; + public: const ::pybullet_grpc::matrix4x4& projectivetextureviewmatrix() const; - ::pybullet_grpc::matrix4x4* mutable_projectivetextureviewmatrix(); ::pybullet_grpc::matrix4x4* release_projectivetextureviewmatrix(); + ::pybullet_grpc::matrix4x4* mutable_projectivetextureviewmatrix(); void set_allocated_projectivetextureviewmatrix(::pybullet_grpc::matrix4x4* projectivetextureviewmatrix); // .pybullet_grpc.matrix4x4 projectiveTextureProjectionMatrix = 16; bool has_projectivetextureprojectionmatrix() const; void clear_projectivetextureprojectionmatrix(); static const int kProjectiveTextureProjectionMatrixFieldNumber = 16; + private: + const ::pybullet_grpc::matrix4x4& _internal_projectivetextureprojectionmatrix() const; + public: const ::pybullet_grpc::matrix4x4& projectivetextureprojectionmatrix() const; - ::pybullet_grpc::matrix4x4* mutable_projectivetextureprojectionmatrix(); ::pybullet_grpc::matrix4x4* release_projectivetextureprojectionmatrix(); + ::pybullet_grpc::matrix4x4* mutable_projectivetextureprojectionmatrix(); void set_allocated_projectivetextureprojectionmatrix(::pybullet_grpc::matrix4x4* projectivetextureprojectionmatrix); // int32 updateFlags = 1; @@ -4743,8 +5570,8 @@ class RequestCameraImageCommand : public ::google::protobuf::Message /* @@protoc double lightambientcoeff_; double lightdiffusecoeff_; double lightspecularcoeff_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -4759,46 +5586,66 @@ class RequestCameraImageStatus : public ::google::protobuf::Message /* @@protoc_ CopyFrom(from); return *this; } + #if LANG_CXX11 + RequestCameraImageStatus(RequestCameraImageStatus&& from) noexcept + : RequestCameraImageStatus() { + *this = ::std::move(from); + } + inline RequestCameraImageStatus& operator=(RequestCameraImageStatus&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const RequestCameraImageStatus& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const RequestCameraImageStatus* internal_default_instance() { return reinterpret_cast( &_RequestCameraImageStatus_default_instance_); } + static constexpr int kIndexInFileMessages = + 36; void Swap(RequestCameraImageStatus* other); + friend void swap(RequestCameraImageStatus& a, RequestCameraImageStatus& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline RequestCameraImageStatus* New() const PROTOBUF_FINAL { return New(NULL); } + inline RequestCameraImageStatus* New() const final { + return CreateMaybeMessage(NULL); + } - RequestCameraImageStatus* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + RequestCameraImageStatus* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const RequestCameraImageStatus& from); void MergeFrom(const RequestCameraImageStatus& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(RequestCameraImageStatus* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -4809,7 +5656,7 @@ class RequestCameraImageStatus : public ::google::protobuf::Message /* @@protoc_ } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -4854,8 +5701,8 @@ class RequestCameraImageStatus : public ::google::protobuf::Message /* @@protoc_ ::google::protobuf::int32 startingpixelindex_; ::google::protobuf::int32 numpixelscopied_; ::google::protobuf::int32 numremainingpixels_; - mutable int _cached_size_; - friend struct protobuf_pybullet_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -4870,7 +5717,21 @@ class PyBulletCommand : public ::google::protobuf::Message /* @@protoc_insertion CopyFrom(from); return *this; } + #if LANG_CXX11 + PyBulletCommand(PyBulletCommand&& from) noexcept + : PyBulletCommand() { + *this = ::std::move(from); + } + inline PyBulletCommand& operator=(PyBulletCommand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const PyBulletCommand& default_instance(); @@ -4896,42 +5757,48 @@ class PyBulletCommand : public ::google::protobuf::Message /* @@protoc_insertion COMMANDS_NOT_SET = 0, }; + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PyBulletCommand* internal_default_instance() { return reinterpret_cast( &_PyBulletCommand_default_instance_); } + static constexpr int kIndexInFileMessages = + 37; void Swap(PyBulletCommand* other); + friend void swap(PyBulletCommand& a, PyBulletCommand& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline PyBulletCommand* New() const PROTOBUF_FINAL { return New(NULL); } + inline PyBulletCommand* New() const final { + return CreateMaybeMessage(NULL); + } - PyBulletCommand* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + PyBulletCommand* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const PyBulletCommand& from); void MergeFrom(const PyBulletCommand& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(PyBulletCommand* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -4942,7 +5809,7 @@ class PyBulletCommand : public ::google::protobuf::Message /* @@protoc_insertion } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -4955,10 +5822,16 @@ class PyBulletCommand : public ::google::protobuf::Message /* @@protoc_insertion const ::std::string& binaryblob(int index) const; ::std::string* mutable_binaryblob(int index); void set_binaryblob(int index, const ::std::string& value); + #if LANG_CXX11 + void set_binaryblob(int index, ::std::string&& value); + #endif void set_binaryblob(int index, const char* value); void set_binaryblob(int index, const void* value, size_t size); ::std::string* add_binaryblob(); void add_binaryblob(const ::std::string& value); + #if LANG_CXX11 + void add_binaryblob(::std::string&& value); + #endif void add_binaryblob(const char* value); void add_binaryblob(const void* value, size_t size); const ::google::protobuf::RepeatedPtrField< ::std::string>& binaryblob() const; @@ -4971,10 +5844,16 @@ class PyBulletCommand : public ::google::protobuf::Message /* @@protoc_insertion const ::std::string& unknowncommandbinaryblob(int index) const; ::std::string* mutable_unknowncommandbinaryblob(int index); void set_unknowncommandbinaryblob(int index, const ::std::string& value); + #if LANG_CXX11 + void set_unknowncommandbinaryblob(int index, ::std::string&& value); + #endif void set_unknowncommandbinaryblob(int index, const char* value); void set_unknowncommandbinaryblob(int index, const void* value, size_t size); ::std::string* add_unknowncommandbinaryblob(); void add_unknowncommandbinaryblob(const ::std::string& value); + #if LANG_CXX11 + void add_unknowncommandbinaryblob(::std::string&& value); + #endif void add_unknowncommandbinaryblob(const char* value); void add_unknowncommandbinaryblob(const void* value, size_t size); const ::google::protobuf::RepeatedPtrField< ::std::string>& unknowncommandbinaryblob() const; @@ -4990,164 +5869,219 @@ class PyBulletCommand : public ::google::protobuf::Message /* @@protoc_insertion bool has_loadurdfcommand() const; void clear_loadurdfcommand(); static const int kLoadUrdfCommandFieldNumber = 4; + private: + const ::pybullet_grpc::LoadUrdfCommand& _internal_loadurdfcommand() const; + public: const ::pybullet_grpc::LoadUrdfCommand& loadurdfcommand() const; - ::pybullet_grpc::LoadUrdfCommand* mutable_loadurdfcommand(); ::pybullet_grpc::LoadUrdfCommand* release_loadurdfcommand(); + ::pybullet_grpc::LoadUrdfCommand* mutable_loadurdfcommand(); void set_allocated_loadurdfcommand(::pybullet_grpc::LoadUrdfCommand* loadurdfcommand); // .pybullet_grpc.TerminateServerCommand terminateServerCommand = 5; bool has_terminateservercommand() const; void clear_terminateservercommand(); static const int kTerminateServerCommandFieldNumber = 5; + private: + const ::pybullet_grpc::TerminateServerCommand& _internal_terminateservercommand() const; + public: const ::pybullet_grpc::TerminateServerCommand& terminateservercommand() const; - ::pybullet_grpc::TerminateServerCommand* mutable_terminateservercommand(); ::pybullet_grpc::TerminateServerCommand* release_terminateservercommand(); + ::pybullet_grpc::TerminateServerCommand* mutable_terminateservercommand(); void set_allocated_terminateservercommand(::pybullet_grpc::TerminateServerCommand* terminateservercommand); // .pybullet_grpc.StepSimulationCommand stepSimulationCommand = 6; bool has_stepsimulationcommand() const; void clear_stepsimulationcommand(); static const int kStepSimulationCommandFieldNumber = 6; + private: + const ::pybullet_grpc::StepSimulationCommand& _internal_stepsimulationcommand() const; + public: const ::pybullet_grpc::StepSimulationCommand& stepsimulationcommand() const; - ::pybullet_grpc::StepSimulationCommand* mutable_stepsimulationcommand(); ::pybullet_grpc::StepSimulationCommand* release_stepsimulationcommand(); + ::pybullet_grpc::StepSimulationCommand* mutable_stepsimulationcommand(); void set_allocated_stepsimulationcommand(::pybullet_grpc::StepSimulationCommand* stepsimulationcommand); // .pybullet_grpc.LoadSdfCommand loadSdfCommand = 7; bool has_loadsdfcommand() const; void clear_loadsdfcommand(); static const int kLoadSdfCommandFieldNumber = 7; + private: + const ::pybullet_grpc::LoadSdfCommand& _internal_loadsdfcommand() const; + public: const ::pybullet_grpc::LoadSdfCommand& loadsdfcommand() const; - ::pybullet_grpc::LoadSdfCommand* mutable_loadsdfcommand(); ::pybullet_grpc::LoadSdfCommand* release_loadsdfcommand(); + ::pybullet_grpc::LoadSdfCommand* mutable_loadsdfcommand(); void set_allocated_loadsdfcommand(::pybullet_grpc::LoadSdfCommand* loadsdfcommand); // .pybullet_grpc.LoadMjcfCommand loadMjcfCommand = 8; bool has_loadmjcfcommand() const; void clear_loadmjcfcommand(); static const int kLoadMjcfCommandFieldNumber = 8; + private: + const ::pybullet_grpc::LoadMjcfCommand& _internal_loadmjcfcommand() const; + public: const ::pybullet_grpc::LoadMjcfCommand& loadmjcfcommand() const; - ::pybullet_grpc::LoadMjcfCommand* mutable_loadmjcfcommand(); ::pybullet_grpc::LoadMjcfCommand* release_loadmjcfcommand(); + ::pybullet_grpc::LoadMjcfCommand* mutable_loadmjcfcommand(); void set_allocated_loadmjcfcommand(::pybullet_grpc::LoadMjcfCommand* loadmjcfcommand); // .pybullet_grpc.ChangeDynamicsCommand changeDynamicsCommand = 9; bool has_changedynamicscommand() const; void clear_changedynamicscommand(); static const int kChangeDynamicsCommandFieldNumber = 9; + private: + const ::pybullet_grpc::ChangeDynamicsCommand& _internal_changedynamicscommand() const; + public: const ::pybullet_grpc::ChangeDynamicsCommand& changedynamicscommand() const; - ::pybullet_grpc::ChangeDynamicsCommand* mutable_changedynamicscommand(); ::pybullet_grpc::ChangeDynamicsCommand* release_changedynamicscommand(); + ::pybullet_grpc::ChangeDynamicsCommand* mutable_changedynamicscommand(); void set_allocated_changedynamicscommand(::pybullet_grpc::ChangeDynamicsCommand* changedynamicscommand); // .pybullet_grpc.GetDynamicsCommand getDynamicsCommand = 10; bool has_getdynamicscommand() const; void clear_getdynamicscommand(); static const int kGetDynamicsCommandFieldNumber = 10; + private: + const ::pybullet_grpc::GetDynamicsCommand& _internal_getdynamicscommand() const; + public: const ::pybullet_grpc::GetDynamicsCommand& getdynamicscommand() const; - ::pybullet_grpc::GetDynamicsCommand* mutable_getdynamicscommand(); ::pybullet_grpc::GetDynamicsCommand* release_getdynamicscommand(); + ::pybullet_grpc::GetDynamicsCommand* mutable_getdynamicscommand(); void set_allocated_getdynamicscommand(::pybullet_grpc::GetDynamicsCommand* getdynamicscommand); // .pybullet_grpc.InitPoseCommand initPoseCommand = 11; bool has_initposecommand() const; void clear_initposecommand(); static const int kInitPoseCommandFieldNumber = 11; + private: + const ::pybullet_grpc::InitPoseCommand& _internal_initposecommand() const; + public: const ::pybullet_grpc::InitPoseCommand& initposecommand() const; - ::pybullet_grpc::InitPoseCommand* mutable_initposecommand(); ::pybullet_grpc::InitPoseCommand* release_initposecommand(); + ::pybullet_grpc::InitPoseCommand* mutable_initposecommand(); void set_allocated_initposecommand(::pybullet_grpc::InitPoseCommand* initposecommand); // .pybullet_grpc.RequestActualStateCommand requestActualStateCommand = 12; bool has_requestactualstatecommand() const; void clear_requestactualstatecommand(); static const int kRequestActualStateCommandFieldNumber = 12; + private: + const ::pybullet_grpc::RequestActualStateCommand& _internal_requestactualstatecommand() const; + public: const ::pybullet_grpc::RequestActualStateCommand& requestactualstatecommand() const; - ::pybullet_grpc::RequestActualStateCommand* mutable_requestactualstatecommand(); ::pybullet_grpc::RequestActualStateCommand* release_requestactualstatecommand(); + ::pybullet_grpc::RequestActualStateCommand* mutable_requestactualstatecommand(); void set_allocated_requestactualstatecommand(::pybullet_grpc::RequestActualStateCommand* requestactualstatecommand); // .pybullet_grpc.ConfigureOpenGLVisualizerCommand configureOpenGLVisualizerCommand = 13; bool has_configureopenglvisualizercommand() const; void clear_configureopenglvisualizercommand(); static const int kConfigureOpenGLVisualizerCommandFieldNumber = 13; + private: + const ::pybullet_grpc::ConfigureOpenGLVisualizerCommand& _internal_configureopenglvisualizercommand() const; + public: const ::pybullet_grpc::ConfigureOpenGLVisualizerCommand& configureopenglvisualizercommand() const; - ::pybullet_grpc::ConfigureOpenGLVisualizerCommand* mutable_configureopenglvisualizercommand(); ::pybullet_grpc::ConfigureOpenGLVisualizerCommand* release_configureopenglvisualizercommand(); + ::pybullet_grpc::ConfigureOpenGLVisualizerCommand* mutable_configureopenglvisualizercommand(); void set_allocated_configureopenglvisualizercommand(::pybullet_grpc::ConfigureOpenGLVisualizerCommand* configureopenglvisualizercommand); // .pybullet_grpc.SyncBodiesCommand syncBodiesCommand = 14; bool has_syncbodiescommand() const; void clear_syncbodiescommand(); static const int kSyncBodiesCommandFieldNumber = 14; + private: + const ::pybullet_grpc::SyncBodiesCommand& _internal_syncbodiescommand() const; + public: const ::pybullet_grpc::SyncBodiesCommand& syncbodiescommand() const; - ::pybullet_grpc::SyncBodiesCommand* mutable_syncbodiescommand(); ::pybullet_grpc::SyncBodiesCommand* release_syncbodiescommand(); + ::pybullet_grpc::SyncBodiesCommand* mutable_syncbodiescommand(); void set_allocated_syncbodiescommand(::pybullet_grpc::SyncBodiesCommand* syncbodiescommand); // .pybullet_grpc.RequestBodyInfoCommand requestBodyInfoCommand = 15; bool has_requestbodyinfocommand() const; void clear_requestbodyinfocommand(); static const int kRequestBodyInfoCommandFieldNumber = 15; + private: + const ::pybullet_grpc::RequestBodyInfoCommand& _internal_requestbodyinfocommand() const; + public: const ::pybullet_grpc::RequestBodyInfoCommand& requestbodyinfocommand() const; - ::pybullet_grpc::RequestBodyInfoCommand* mutable_requestbodyinfocommand(); ::pybullet_grpc::RequestBodyInfoCommand* release_requestbodyinfocommand(); + ::pybullet_grpc::RequestBodyInfoCommand* mutable_requestbodyinfocommand(); void set_allocated_requestbodyinfocommand(::pybullet_grpc::RequestBodyInfoCommand* requestbodyinfocommand); // .pybullet_grpc.PhysicsSimulationParametersCommand setPhysicsSimulationParametersCommand = 16; bool has_setphysicssimulationparameterscommand() const; void clear_setphysicssimulationparameterscommand(); static const int kSetPhysicsSimulationParametersCommandFieldNumber = 16; + private: + const ::pybullet_grpc::PhysicsSimulationParametersCommand& _internal_setphysicssimulationparameterscommand() const; + public: const ::pybullet_grpc::PhysicsSimulationParametersCommand& setphysicssimulationparameterscommand() const; - ::pybullet_grpc::PhysicsSimulationParametersCommand* mutable_setphysicssimulationparameterscommand(); ::pybullet_grpc::PhysicsSimulationParametersCommand* release_setphysicssimulationparameterscommand(); + ::pybullet_grpc::PhysicsSimulationParametersCommand* mutable_setphysicssimulationparameterscommand(); void set_allocated_setphysicssimulationparameterscommand(::pybullet_grpc::PhysicsSimulationParametersCommand* setphysicssimulationparameterscommand); // .pybullet_grpc.JointMotorControlCommand jointMotorControlCommand = 17; bool has_jointmotorcontrolcommand() const; void clear_jointmotorcontrolcommand(); static const int kJointMotorControlCommandFieldNumber = 17; + private: + const ::pybullet_grpc::JointMotorControlCommand& _internal_jointmotorcontrolcommand() const; + public: const ::pybullet_grpc::JointMotorControlCommand& jointmotorcontrolcommand() const; - ::pybullet_grpc::JointMotorControlCommand* mutable_jointmotorcontrolcommand(); ::pybullet_grpc::JointMotorControlCommand* release_jointmotorcontrolcommand(); + ::pybullet_grpc::JointMotorControlCommand* mutable_jointmotorcontrolcommand(); void set_allocated_jointmotorcontrolcommand(::pybullet_grpc::JointMotorControlCommand* jointmotorcontrolcommand); // .pybullet_grpc.UserConstraintCommand userConstraintCommand = 18; bool has_userconstraintcommand() const; void clear_userconstraintcommand(); static const int kUserConstraintCommandFieldNumber = 18; + private: + const ::pybullet_grpc::UserConstraintCommand& _internal_userconstraintcommand() const; + public: const ::pybullet_grpc::UserConstraintCommand& userconstraintcommand() const; - ::pybullet_grpc::UserConstraintCommand* mutable_userconstraintcommand(); ::pybullet_grpc::UserConstraintCommand* release_userconstraintcommand(); + ::pybullet_grpc::UserConstraintCommand* mutable_userconstraintcommand(); void set_allocated_userconstraintcommand(::pybullet_grpc::UserConstraintCommand* userconstraintcommand); // .pybullet_grpc.CheckVersionCommand checkVersionCommand = 19; bool has_checkversioncommand() const; void clear_checkversioncommand(); static const int kCheckVersionCommandFieldNumber = 19; + private: + const ::pybullet_grpc::CheckVersionCommand& _internal_checkversioncommand() const; + public: const ::pybullet_grpc::CheckVersionCommand& checkversioncommand() const; - ::pybullet_grpc::CheckVersionCommand* mutable_checkversioncommand(); ::pybullet_grpc::CheckVersionCommand* release_checkversioncommand(); + ::pybullet_grpc::CheckVersionCommand* mutable_checkversioncommand(); void set_allocated_checkversioncommand(::pybullet_grpc::CheckVersionCommand* checkversioncommand); // .pybullet_grpc.RequestKeyboardEventsCommand requestKeyboardEventsCommand = 20; bool has_requestkeyboardeventscommand() const; void clear_requestkeyboardeventscommand(); static const int kRequestKeyboardEventsCommandFieldNumber = 20; + private: + const ::pybullet_grpc::RequestKeyboardEventsCommand& _internal_requestkeyboardeventscommand() const; + public: const ::pybullet_grpc::RequestKeyboardEventsCommand& requestkeyboardeventscommand() const; - ::pybullet_grpc::RequestKeyboardEventsCommand* mutable_requestkeyboardeventscommand(); ::pybullet_grpc::RequestKeyboardEventsCommand* release_requestkeyboardeventscommand(); + ::pybullet_grpc::RequestKeyboardEventsCommand* mutable_requestkeyboardeventscommand(); void set_allocated_requestkeyboardeventscommand(::pybullet_grpc::RequestKeyboardEventsCommand* requestkeyboardeventscommand); // .pybullet_grpc.RequestCameraImageCommand requestCameraImageCommand = 21; bool has_requestcameraimagecommand() const; void clear_requestcameraimagecommand(); static const int kRequestCameraImageCommandFieldNumber = 21; + private: + const ::pybullet_grpc::RequestCameraImageCommand& _internal_requestcameraimagecommand() const; + public: const ::pybullet_grpc::RequestCameraImageCommand& requestcameraimagecommand() const; - ::pybullet_grpc::RequestCameraImageCommand* mutable_requestcameraimagecommand(); ::pybullet_grpc::RequestCameraImageCommand* release_requestcameraimagecommand(); + ::pybullet_grpc::RequestCameraImageCommand* mutable_requestcameraimagecommand(); void set_allocated_requestcameraimagecommand(::pybullet_grpc::RequestCameraImageCommand* requestcameraimagecommand); + void clear_commands(); CommandsCase commands_case() const; // @@protoc_insertion_point(class_scope:pybullet_grpc.PyBulletCommand) private: @@ -5171,7 +6105,6 @@ class PyBulletCommand : public ::google::protobuf::Message /* @@protoc_insertion void set_has_requestcameraimagecommand(); inline bool has_commands() const; - void clear_commands(); inline void clear_has_commands(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; @@ -5199,10 +6132,10 @@ class PyBulletCommand : public ::google::protobuf::Message /* @@protoc_insertion ::pybullet_grpc::RequestKeyboardEventsCommand* requestkeyboardeventscommand_; ::pybullet_grpc::RequestCameraImageCommand* requestcameraimagecommand_; } commands_; - mutable int _cached_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 _oneof_case_[1]; - friend struct protobuf_pybullet_2eproto::TableStruct; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // ------------------------------------------------------------------- @@ -5217,7 +6150,21 @@ class PyBulletStatus : public ::google::protobuf::Message /* @@protoc_insertion_ CopyFrom(from); return *this; } + #if LANG_CXX11 + PyBulletStatus(PyBulletStatus&& from) noexcept + : PyBulletStatus() { + *this = ::std::move(from); + } + inline PyBulletStatus& operator=(PyBulletStatus&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif static const ::google::protobuf::Descriptor* descriptor(); static const PyBulletStatus& default_instance(); @@ -5238,42 +6185,48 @@ class PyBulletStatus : public ::google::protobuf::Message /* @@protoc_insertion_ STATUS_NOT_SET = 0, }; + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PyBulletStatus* internal_default_instance() { return reinterpret_cast( &_PyBulletStatus_default_instance_); } + static constexpr int kIndexInFileMessages = + 38; void Swap(PyBulletStatus* other); + friend void swap(PyBulletStatus& a, PyBulletStatus& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - inline PyBulletStatus* New() const PROTOBUF_FINAL { return New(NULL); } + inline PyBulletStatus* New() const final { + return CreateMaybeMessage(NULL); + } - PyBulletStatus* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + PyBulletStatus* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const PyBulletStatus& from); void MergeFrom(const PyBulletStatus& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) - const PROTOBUF_FINAL { - return InternalSerializeWithCachedSizesToArray( - ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); - } - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(PyBulletStatus* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -5284,7 +6237,7 @@ class PyBulletStatus : public ::google::protobuf::Message /* @@protoc_insertion_ } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -5297,10 +6250,16 @@ class PyBulletStatus : public ::google::protobuf::Message /* @@protoc_insertion_ const ::std::string& binaryblob(int index) const; ::std::string* mutable_binaryblob(int index); void set_binaryblob(int index, const ::std::string& value); + #if LANG_CXX11 + void set_binaryblob(int index, ::std::string&& value); + #endif void set_binaryblob(int index, const char* value); void set_binaryblob(int index, const void* value, size_t size); ::std::string* add_binaryblob(); void add_binaryblob(const ::std::string& value); + #if LANG_CXX11 + void add_binaryblob(::std::string&& value); + #endif void add_binaryblob(const char* value); void add_binaryblob(const void* value, size_t size); const ::google::protobuf::RepeatedPtrField< ::std::string>& binaryblob() const; @@ -5313,10 +6272,16 @@ class PyBulletStatus : public ::google::protobuf::Message /* @@protoc_insertion_ const ::std::string& unknownstatusbinaryblob(int index) const; ::std::string* mutable_unknownstatusbinaryblob(int index); void set_unknownstatusbinaryblob(int index, const ::std::string& value); + #if LANG_CXX11 + void set_unknownstatusbinaryblob(int index, ::std::string&& value); + #endif void set_unknownstatusbinaryblob(int index, const char* value); void set_unknownstatusbinaryblob(int index, const void* value, size_t size); ::std::string* add_unknownstatusbinaryblob(); void add_unknownstatusbinaryblob(const ::std::string& value); + #if LANG_CXX11 + void add_unknownstatusbinaryblob(::std::string&& value); + #endif void add_unknownstatusbinaryblob(const char* value); void add_unknownstatusbinaryblob(const void* value, size_t size); const ::google::protobuf::RepeatedPtrField< ::std::string>& unknownstatusbinaryblob() const; @@ -5332,119 +6297,159 @@ class PyBulletStatus : public ::google::protobuf::Message /* @@protoc_insertion_ bool has_urdfstatus() const; void clear_urdfstatus(); static const int kUrdfStatusFieldNumber = 4; + private: + const ::pybullet_grpc::LoadUrdfStatus& _internal_urdfstatus() const; + public: const ::pybullet_grpc::LoadUrdfStatus& urdfstatus() const; - ::pybullet_grpc::LoadUrdfStatus* mutable_urdfstatus(); ::pybullet_grpc::LoadUrdfStatus* release_urdfstatus(); + ::pybullet_grpc::LoadUrdfStatus* mutable_urdfstatus(); void set_allocated_urdfstatus(::pybullet_grpc::LoadUrdfStatus* urdfstatus); // .pybullet_grpc.SdfLoadedStatus sdfStatus = 5; bool has_sdfstatus() const; void clear_sdfstatus(); static const int kSdfStatusFieldNumber = 5; + private: + const ::pybullet_grpc::SdfLoadedStatus& _internal_sdfstatus() const; + public: const ::pybullet_grpc::SdfLoadedStatus& sdfstatus() const; - ::pybullet_grpc::SdfLoadedStatus* mutable_sdfstatus(); ::pybullet_grpc::SdfLoadedStatus* release_sdfstatus(); + ::pybullet_grpc::SdfLoadedStatus* mutable_sdfstatus(); void set_allocated_sdfstatus(::pybullet_grpc::SdfLoadedStatus* sdfstatus); // .pybullet_grpc.MjcfLoadedStatus mjcfStatus = 6; bool has_mjcfstatus() const; void clear_mjcfstatus(); static const int kMjcfStatusFieldNumber = 6; + private: + const ::pybullet_grpc::MjcfLoadedStatus& _internal_mjcfstatus() const; + public: const ::pybullet_grpc::MjcfLoadedStatus& mjcfstatus() const; - ::pybullet_grpc::MjcfLoadedStatus* mutable_mjcfstatus(); ::pybullet_grpc::MjcfLoadedStatus* release_mjcfstatus(); + ::pybullet_grpc::MjcfLoadedStatus* mutable_mjcfstatus(); void set_allocated_mjcfstatus(::pybullet_grpc::MjcfLoadedStatus* mjcfstatus); // .pybullet_grpc.GetDynamicsStatus getDynamicsStatus = 7; bool has_getdynamicsstatus() const; void clear_getdynamicsstatus(); static const int kGetDynamicsStatusFieldNumber = 7; + private: + const ::pybullet_grpc::GetDynamicsStatus& _internal_getdynamicsstatus() const; + public: const ::pybullet_grpc::GetDynamicsStatus& getdynamicsstatus() const; - ::pybullet_grpc::GetDynamicsStatus* mutable_getdynamicsstatus(); ::pybullet_grpc::GetDynamicsStatus* release_getdynamicsstatus(); + ::pybullet_grpc::GetDynamicsStatus* mutable_getdynamicsstatus(); void set_allocated_getdynamicsstatus(::pybullet_grpc::GetDynamicsStatus* getdynamicsstatus); // .pybullet_grpc.SendActualStateStatus actualStateStatus = 8; bool has_actualstatestatus() const; void clear_actualstatestatus(); static const int kActualStateStatusFieldNumber = 8; + private: + const ::pybullet_grpc::SendActualStateStatus& _internal_actualstatestatus() const; + public: const ::pybullet_grpc::SendActualStateStatus& actualstatestatus() const; - ::pybullet_grpc::SendActualStateStatus* mutable_actualstatestatus(); ::pybullet_grpc::SendActualStateStatus* release_actualstatestatus(); + ::pybullet_grpc::SendActualStateStatus* mutable_actualstatestatus(); void set_allocated_actualstatestatus(::pybullet_grpc::SendActualStateStatus* actualstatestatus); // .pybullet_grpc.SyncBodiesStatus syncBodiesStatus = 9; bool has_syncbodiesstatus() const; void clear_syncbodiesstatus(); static const int kSyncBodiesStatusFieldNumber = 9; + private: + const ::pybullet_grpc::SyncBodiesStatus& _internal_syncbodiesstatus() const; + public: const ::pybullet_grpc::SyncBodiesStatus& syncbodiesstatus() const; - ::pybullet_grpc::SyncBodiesStatus* mutable_syncbodiesstatus(); ::pybullet_grpc::SyncBodiesStatus* release_syncbodiesstatus(); + ::pybullet_grpc::SyncBodiesStatus* mutable_syncbodiesstatus(); void set_allocated_syncbodiesstatus(::pybullet_grpc::SyncBodiesStatus* syncbodiesstatus); // .pybullet_grpc.RequestBodyInfoStatus requestBodyInfoStatus = 10; bool has_requestbodyinfostatus() const; void clear_requestbodyinfostatus(); static const int kRequestBodyInfoStatusFieldNumber = 10; + private: + const ::pybullet_grpc::RequestBodyInfoStatus& _internal_requestbodyinfostatus() const; + public: const ::pybullet_grpc::RequestBodyInfoStatus& requestbodyinfostatus() const; - ::pybullet_grpc::RequestBodyInfoStatus* mutable_requestbodyinfostatus(); ::pybullet_grpc::RequestBodyInfoStatus* release_requestbodyinfostatus(); + ::pybullet_grpc::RequestBodyInfoStatus* mutable_requestbodyinfostatus(); void set_allocated_requestbodyinfostatus(::pybullet_grpc::RequestBodyInfoStatus* requestbodyinfostatus); // .pybullet_grpc.PhysicsSimulationParameters requestPhysicsSimulationParametersStatus = 11; bool has_requestphysicssimulationparametersstatus() const; void clear_requestphysicssimulationparametersstatus(); static const int kRequestPhysicsSimulationParametersStatusFieldNumber = 11; + private: + const ::pybullet_grpc::PhysicsSimulationParameters& _internal_requestphysicssimulationparametersstatus() const; + public: const ::pybullet_grpc::PhysicsSimulationParameters& requestphysicssimulationparametersstatus() const; - ::pybullet_grpc::PhysicsSimulationParameters* mutable_requestphysicssimulationparametersstatus(); ::pybullet_grpc::PhysicsSimulationParameters* release_requestphysicssimulationparametersstatus(); + ::pybullet_grpc::PhysicsSimulationParameters* mutable_requestphysicssimulationparametersstatus(); void set_allocated_requestphysicssimulationparametersstatus(::pybullet_grpc::PhysicsSimulationParameters* requestphysicssimulationparametersstatus); // .pybullet_grpc.CheckVersionStatus checkVersionStatus = 12; bool has_checkversionstatus() const; void clear_checkversionstatus(); static const int kCheckVersionStatusFieldNumber = 12; + private: + const ::pybullet_grpc::CheckVersionStatus& _internal_checkversionstatus() const; + public: const ::pybullet_grpc::CheckVersionStatus& checkversionstatus() const; - ::pybullet_grpc::CheckVersionStatus* mutable_checkversionstatus(); ::pybullet_grpc::CheckVersionStatus* release_checkversionstatus(); + ::pybullet_grpc::CheckVersionStatus* mutable_checkversionstatus(); void set_allocated_checkversionstatus(::pybullet_grpc::CheckVersionStatus* checkversionstatus); // .pybullet_grpc.UserConstraintStatus userConstraintStatus = 13; bool has_userconstraintstatus() const; void clear_userconstraintstatus(); static const int kUserConstraintStatusFieldNumber = 13; + private: + const ::pybullet_grpc::UserConstraintStatus& _internal_userconstraintstatus() const; + public: const ::pybullet_grpc::UserConstraintStatus& userconstraintstatus() const; - ::pybullet_grpc::UserConstraintStatus* mutable_userconstraintstatus(); ::pybullet_grpc::UserConstraintStatus* release_userconstraintstatus(); + ::pybullet_grpc::UserConstraintStatus* mutable_userconstraintstatus(); void set_allocated_userconstraintstatus(::pybullet_grpc::UserConstraintStatus* userconstraintstatus); // .pybullet_grpc.UserConstraintStateStatus userConstraintStateStatus = 14; bool has_userconstraintstatestatus() const; void clear_userconstraintstatestatus(); static const int kUserConstraintStateStatusFieldNumber = 14; + private: + const ::pybullet_grpc::UserConstraintStateStatus& _internal_userconstraintstatestatus() const; + public: const ::pybullet_grpc::UserConstraintStateStatus& userconstraintstatestatus() const; - ::pybullet_grpc::UserConstraintStateStatus* mutable_userconstraintstatestatus(); ::pybullet_grpc::UserConstraintStateStatus* release_userconstraintstatestatus(); + ::pybullet_grpc::UserConstraintStateStatus* mutable_userconstraintstatestatus(); void set_allocated_userconstraintstatestatus(::pybullet_grpc::UserConstraintStateStatus* userconstraintstatestatus); // .pybullet_grpc.KeyboardEventsStatus keyboardEventsStatus = 15; bool has_keyboardeventsstatus() const; void clear_keyboardeventsstatus(); static const int kKeyboardEventsStatusFieldNumber = 15; + private: + const ::pybullet_grpc::KeyboardEventsStatus& _internal_keyboardeventsstatus() const; + public: const ::pybullet_grpc::KeyboardEventsStatus& keyboardeventsstatus() const; - ::pybullet_grpc::KeyboardEventsStatus* mutable_keyboardeventsstatus(); ::pybullet_grpc::KeyboardEventsStatus* release_keyboardeventsstatus(); + ::pybullet_grpc::KeyboardEventsStatus* mutable_keyboardeventsstatus(); void set_allocated_keyboardeventsstatus(::pybullet_grpc::KeyboardEventsStatus* keyboardeventsstatus); // .pybullet_grpc.RequestCameraImageStatus requestCameraImageStatus = 16; bool has_requestcameraimagestatus() const; void clear_requestcameraimagestatus(); static const int kRequestCameraImageStatusFieldNumber = 16; + private: + const ::pybullet_grpc::RequestCameraImageStatus& _internal_requestcameraimagestatus() const; + public: const ::pybullet_grpc::RequestCameraImageStatus& requestcameraimagestatus() const; - ::pybullet_grpc::RequestCameraImageStatus* mutable_requestcameraimagestatus(); ::pybullet_grpc::RequestCameraImageStatus* release_requestcameraimagestatus(); + ::pybullet_grpc::RequestCameraImageStatus* mutable_requestcameraimagestatus(); void set_allocated_requestcameraimagestatus(::pybullet_grpc::RequestCameraImageStatus* requestcameraimagestatus); + void clear_status(); StatusCase status_case() const; // @@protoc_insertion_point(class_scope:pybullet_grpc.PyBulletStatus) private: @@ -5463,7 +6468,6 @@ class PyBulletStatus : public ::google::protobuf::Message /* @@protoc_insertion_ void set_has_requestcameraimagestatus(); inline bool has_status() const; - void clear_status(); inline void clear_has_status(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; @@ -5486,17 +6490,20 @@ class PyBulletStatus : public ::google::protobuf::Message /* @@protoc_insertion_ ::pybullet_grpc::KeyboardEventsStatus* keyboardeventsstatus_; ::pybullet_grpc::RequestCameraImageStatus* requestcameraimagestatus_; } status_; - mutable int _cached_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 _oneof_case_[1]; - friend struct protobuf_pybullet_2eproto::TableStruct; + friend struct ::protobuf_pybullet_2eproto::TableStruct; }; // =================================================================== // =================================================================== -#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ // vec3 // double x = 1; @@ -5670,21 +6677,19 @@ inline bool transform::has_origin() const { return this != internal_default_instance() && origin_ != NULL; } inline void transform::clear_origin() { - if (GetArenaNoVirtual() == NULL && origin_ != NULL) delete origin_; + if (GetArenaNoVirtual() == NULL && origin_ != NULL) { + delete origin_; + } origin_ = NULL; } -inline const ::pybullet_grpc::vec3& transform::origin() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.transform.origin) - return origin_ != NULL ? *origin_ - : *::pybullet_grpc::vec3::internal_default_instance(); +inline const ::pybullet_grpc::vec3& transform::_internal_origin() const { + return *origin_; } -inline ::pybullet_grpc::vec3* transform::mutable_origin() { - - if (origin_ == NULL) { - origin_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.transform.origin) - return origin_; +inline const ::pybullet_grpc::vec3& transform::origin() const { + const ::pybullet_grpc::vec3* p = origin_; + // @@protoc_insertion_point(field_get:pybullet_grpc.transform.origin) + return p != NULL ? *p : *reinterpret_cast( + &::pybullet_grpc::_vec3_default_instance_); } inline ::pybullet_grpc::vec3* transform::release_origin() { // @@protoc_insertion_point(field_release:pybullet_grpc.transform.origin) @@ -5693,14 +6698,31 @@ inline ::pybullet_grpc::vec3* transform::release_origin() { origin_ = NULL; return temp; } +inline ::pybullet_grpc::vec3* transform::mutable_origin() { + + if (origin_ == NULL) { + auto* p = CreateMaybeMessage<::pybullet_grpc::vec3>(GetArenaNoVirtual()); + origin_ = p; + } + // @@protoc_insertion_point(field_mutable:pybullet_grpc.transform.origin) + return origin_; +} inline void transform::set_allocated_origin(::pybullet_grpc::vec3* origin) { - delete origin_; - origin_ = origin; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete origin_; + } if (origin) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + origin = ::google::protobuf::internal::GetOwnedMessage( + message_arena, origin, submessage_arena); + } } else { } + origin_ = origin; // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.transform.origin) } @@ -5709,21 +6731,19 @@ inline bool transform::has_orientation() const { return this != internal_default_instance() && orientation_ != NULL; } inline void transform::clear_orientation() { - if (GetArenaNoVirtual() == NULL && orientation_ != NULL) delete orientation_; + if (GetArenaNoVirtual() == NULL && orientation_ != NULL) { + delete orientation_; + } orientation_ = NULL; } -inline const ::pybullet_grpc::quat4& transform::orientation() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.transform.orientation) - return orientation_ != NULL ? *orientation_ - : *::pybullet_grpc::quat4::internal_default_instance(); +inline const ::pybullet_grpc::quat4& transform::_internal_orientation() const { + return *orientation_; } -inline ::pybullet_grpc::quat4* transform::mutable_orientation() { - - if (orientation_ == NULL) { - orientation_ = new ::pybullet_grpc::quat4; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.transform.orientation) - return orientation_; +inline const ::pybullet_grpc::quat4& transform::orientation() const { + const ::pybullet_grpc::quat4* p = orientation_; + // @@protoc_insertion_point(field_get:pybullet_grpc.transform.orientation) + return p != NULL ? *p : *reinterpret_cast( + &::pybullet_grpc::_quat4_default_instance_); } inline ::pybullet_grpc::quat4* transform::release_orientation() { // @@protoc_insertion_point(field_release:pybullet_grpc.transform.orientation) @@ -5732,14 +6752,31 @@ inline ::pybullet_grpc::quat4* transform::release_orientation() { orientation_ = NULL; return temp; } +inline ::pybullet_grpc::quat4* transform::mutable_orientation() { + + if (orientation_ == NULL) { + auto* p = CreateMaybeMessage<::pybullet_grpc::quat4>(GetArenaNoVirtual()); + orientation_ = p; + } + // @@protoc_insertion_point(field_mutable:pybullet_grpc.transform.orientation) + return orientation_; +} inline void transform::set_allocated_orientation(::pybullet_grpc::quat4* orientation) { - delete orientation_; - orientation_ = orientation; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete orientation_; + } if (orientation) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + orientation = ::google::protobuf::internal::GetOwnedMessage( + message_arena, orientation, submessage_arena); + } } else { } + orientation_ = orientation; // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.transform.orientation) } @@ -5834,11 +6871,12 @@ inline void TerminateServerCommand::set_exitreason(const ::std::string& value) { inline void TerminateServerCommand::set_exitreason(::std::string&& value) { exitreason_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:pybullet_grpc.TerminateServerCommand.exitReason) } #endif inline void TerminateServerCommand::set_exitreason(const char* value) { + GOOGLE_DCHECK(value != NULL); exitreason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:pybullet_grpc.TerminateServerCommand.exitReason) @@ -5994,11 +7032,12 @@ inline void RequestBodyInfoStatus::set_bodyname(const ::std::string& value) { inline void RequestBodyInfoStatus::set_bodyname(::std::string&& value) { bodyname_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:pybullet_grpc.RequestBodyInfoStatus.bodyName) } #endif inline void RequestBodyInfoStatus::set_bodyname(const char* value) { + GOOGLE_DCHECK(value != NULL); bodyname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:pybullet_grpc.RequestBodyInfoStatus.bodyName) @@ -6050,11 +7089,12 @@ inline void LoadUrdfCommand::set_filename(const ::std::string& value) { inline void LoadUrdfCommand::set_filename(::std::string&& value) { filename_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:pybullet_grpc.LoadUrdfCommand.fileName) } #endif inline void LoadUrdfCommand::set_filename(const char* value) { + GOOGLE_DCHECK(value != NULL); filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:pybullet_grpc.LoadUrdfCommand.fileName) @@ -6090,21 +7130,19 @@ inline bool LoadUrdfCommand::has_initialposition() const { return this != internal_default_instance() && initialposition_ != NULL; } inline void LoadUrdfCommand::clear_initialposition() { - if (GetArenaNoVirtual() == NULL && initialposition_ != NULL) delete initialposition_; + if (GetArenaNoVirtual() == NULL && initialposition_ != NULL) { + delete initialposition_; + } initialposition_ = NULL; } -inline const ::pybullet_grpc::vec3& LoadUrdfCommand::initialposition() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.LoadUrdfCommand.initialPosition) - return initialposition_ != NULL ? *initialposition_ - : *::pybullet_grpc::vec3::internal_default_instance(); +inline const ::pybullet_grpc::vec3& LoadUrdfCommand::_internal_initialposition() const { + return *initialposition_; } -inline ::pybullet_grpc::vec3* LoadUrdfCommand::mutable_initialposition() { - - if (initialposition_ == NULL) { - initialposition_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.LoadUrdfCommand.initialPosition) - return initialposition_; +inline const ::pybullet_grpc::vec3& LoadUrdfCommand::initialposition() const { + const ::pybullet_grpc::vec3* p = initialposition_; + // @@protoc_insertion_point(field_get:pybullet_grpc.LoadUrdfCommand.initialPosition) + return p != NULL ? *p : *reinterpret_cast( + &::pybullet_grpc::_vec3_default_instance_); } inline ::pybullet_grpc::vec3* LoadUrdfCommand::release_initialposition() { // @@protoc_insertion_point(field_release:pybullet_grpc.LoadUrdfCommand.initialPosition) @@ -6113,14 +7151,31 @@ inline ::pybullet_grpc::vec3* LoadUrdfCommand::release_initialposition() { initialposition_ = NULL; return temp; } +inline ::pybullet_grpc::vec3* LoadUrdfCommand::mutable_initialposition() { + + if (initialposition_ == NULL) { + auto* p = CreateMaybeMessage<::pybullet_grpc::vec3>(GetArenaNoVirtual()); + initialposition_ = p; + } + // @@protoc_insertion_point(field_mutable:pybullet_grpc.LoadUrdfCommand.initialPosition) + return initialposition_; +} inline void LoadUrdfCommand::set_allocated_initialposition(::pybullet_grpc::vec3* initialposition) { - delete initialposition_; - initialposition_ = initialposition; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete initialposition_; + } if (initialposition) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + initialposition = ::google::protobuf::internal::GetOwnedMessage( + message_arena, initialposition, submessage_arena); + } } else { } + initialposition_ = initialposition; // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.LoadUrdfCommand.initialPosition) } @@ -6129,21 +7184,19 @@ inline bool LoadUrdfCommand::has_initialorientation() const { return this != internal_default_instance() && initialorientation_ != NULL; } inline void LoadUrdfCommand::clear_initialorientation() { - if (GetArenaNoVirtual() == NULL && initialorientation_ != NULL) delete initialorientation_; + if (GetArenaNoVirtual() == NULL && initialorientation_ != NULL) { + delete initialorientation_; + } initialorientation_ = NULL; } -inline const ::pybullet_grpc::quat4& LoadUrdfCommand::initialorientation() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.LoadUrdfCommand.initialOrientation) - return initialorientation_ != NULL ? *initialorientation_ - : *::pybullet_grpc::quat4::internal_default_instance(); +inline const ::pybullet_grpc::quat4& LoadUrdfCommand::_internal_initialorientation() const { + return *initialorientation_; } -inline ::pybullet_grpc::quat4* LoadUrdfCommand::mutable_initialorientation() { - - if (initialorientation_ == NULL) { - initialorientation_ = new ::pybullet_grpc::quat4; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.LoadUrdfCommand.initialOrientation) - return initialorientation_; +inline const ::pybullet_grpc::quat4& LoadUrdfCommand::initialorientation() const { + const ::pybullet_grpc::quat4* p = initialorientation_; + // @@protoc_insertion_point(field_get:pybullet_grpc.LoadUrdfCommand.initialOrientation) + return p != NULL ? *p : *reinterpret_cast( + &::pybullet_grpc::_quat4_default_instance_); } inline ::pybullet_grpc::quat4* LoadUrdfCommand::release_initialorientation() { // @@protoc_insertion_point(field_release:pybullet_grpc.LoadUrdfCommand.initialOrientation) @@ -6152,14 +7205,31 @@ inline ::pybullet_grpc::quat4* LoadUrdfCommand::release_initialorientation() { initialorientation_ = NULL; return temp; } +inline ::pybullet_grpc::quat4* LoadUrdfCommand::mutable_initialorientation() { + + if (initialorientation_ == NULL) { + auto* p = CreateMaybeMessage<::pybullet_grpc::quat4>(GetArenaNoVirtual()); + initialorientation_ = p; + } + // @@protoc_insertion_point(field_mutable:pybullet_grpc.LoadUrdfCommand.initialOrientation) + return initialorientation_; +} inline void LoadUrdfCommand::set_allocated_initialorientation(::pybullet_grpc::quat4* initialorientation) { - delete initialorientation_; - initialorientation_ = initialorientation; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete initialorientation_; + } if (initialorientation) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + initialorientation = ::google::protobuf::internal::GetOwnedMessage( + message_arena, initialorientation, submessage_arena); + } } else { } + initialorientation_ = initialorientation; // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.LoadUrdfCommand.initialOrientation) } @@ -6326,11 +7396,12 @@ inline void LoadUrdfStatus::set_bodyname(const ::std::string& value) { inline void LoadUrdfStatus::set_bodyname(::std::string&& value) { bodyname_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:pybullet_grpc.LoadUrdfStatus.bodyName) } #endif inline void LoadUrdfStatus::set_bodyname(const char* value) { + GOOGLE_DCHECK(value != NULL); bodyname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:pybullet_grpc.LoadUrdfStatus.bodyName) @@ -6378,11 +7449,12 @@ inline void LoadUrdfStatus::set_filename(const ::std::string& value) { inline void LoadUrdfStatus::set_filename(::std::string&& value) { filename_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:pybullet_grpc.LoadUrdfStatus.fileName) } #endif inline void LoadUrdfStatus::set_filename(const char* value) { + GOOGLE_DCHECK(value != NULL); filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:pybullet_grpc.LoadUrdfStatus.fileName) @@ -6434,11 +7506,12 @@ inline void LoadSdfCommand::set_filename(const ::std::string& value) { inline void LoadSdfCommand::set_filename(::std::string&& value) { filename_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:pybullet_grpc.LoadSdfCommand.fileName) } #endif inline void LoadSdfCommand::set_filename(const char* value) { + GOOGLE_DCHECK(value != NULL); filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:pybullet_grpc.LoadSdfCommand.fileName) @@ -6600,11 +7673,12 @@ inline void LoadMjcfCommand::set_filename(const ::std::string& value) { inline void LoadMjcfCommand::set_filename(::std::string&& value) { filename_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:pybullet_grpc.LoadMjcfCommand.fileName) } #endif inline void LoadMjcfCommand::set_filename(const char* value) { + GOOGLE_DCHECK(value != NULL); filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:pybullet_grpc.LoadMjcfCommand.fileName) @@ -6989,39 +8063,35 @@ inline void ChangeDynamicsCommand::clear_localinertiadiagonal() { clear_has_hasLocalInertiaDiagonal(); } } -inline const ::pybullet_grpc::vec3& ChangeDynamicsCommand::localinertiadiagonal() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ChangeDynamicsCommand.localInertiaDiagonal) - return has_localinertiadiagonal() - ? *hasLocalInertiaDiagonal_.localinertiadiagonal_ - : ::pybullet_grpc::vec3::default_instance(); -} -inline ::pybullet_grpc::vec3* ChangeDynamicsCommand::mutable_localinertiadiagonal() { - if (!has_localinertiadiagonal()) { - clear_hasLocalInertiaDiagonal(); - set_has_localinertiadiagonal(); - hasLocalInertiaDiagonal_.localinertiadiagonal_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.ChangeDynamicsCommand.localInertiaDiagonal) - return hasLocalInertiaDiagonal_.localinertiadiagonal_; +inline const ::pybullet_grpc::vec3& ChangeDynamicsCommand::_internal_localinertiadiagonal() const { + return *hasLocalInertiaDiagonal_.localinertiadiagonal_; } inline ::pybullet_grpc::vec3* ChangeDynamicsCommand::release_localinertiadiagonal() { // @@protoc_insertion_point(field_release:pybullet_grpc.ChangeDynamicsCommand.localInertiaDiagonal) if (has_localinertiadiagonal()) { clear_has_hasLocalInertiaDiagonal(); - ::pybullet_grpc::vec3* temp = hasLocalInertiaDiagonal_.localinertiadiagonal_; + ::pybullet_grpc::vec3* temp = hasLocalInertiaDiagonal_.localinertiadiagonal_; hasLocalInertiaDiagonal_.localinertiadiagonal_ = NULL; return temp; } else { return NULL; } } -inline void ChangeDynamicsCommand::set_allocated_localinertiadiagonal(::pybullet_grpc::vec3* localinertiadiagonal) { - clear_hasLocalInertiaDiagonal(); - if (localinertiadiagonal) { +inline const ::pybullet_grpc::vec3& ChangeDynamicsCommand::localinertiadiagonal() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.ChangeDynamicsCommand.localInertiaDiagonal) + return has_localinertiadiagonal() + ? *hasLocalInertiaDiagonal_.localinertiadiagonal_ + : *reinterpret_cast< ::pybullet_grpc::vec3*>(&::pybullet_grpc::_vec3_default_instance_); +} +inline ::pybullet_grpc::vec3* ChangeDynamicsCommand::mutable_localinertiadiagonal() { + if (!has_localinertiadiagonal()) { + clear_hasLocalInertiaDiagonal(); set_has_localinertiadiagonal(); - hasLocalInertiaDiagonal_.localinertiadiagonal_ = localinertiadiagonal; + hasLocalInertiaDiagonal_.localinertiadiagonal_ = CreateMaybeMessage< ::pybullet_grpc::vec3 >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.ChangeDynamicsCommand.localInertiaDiagonal) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.ChangeDynamicsCommand.localInertiaDiagonal) + return hasLocalInertiaDiagonal_.localinertiadiagonal_; } // int32 frictionAnchor = 14; @@ -7433,21 +8503,19 @@ inline bool GetDynamicsStatus::has_localinertiadiagonal() const { return this != internal_default_instance() && localinertiadiagonal_ != NULL; } inline void GetDynamicsStatus::clear_localinertiadiagonal() { - if (GetArenaNoVirtual() == NULL && localinertiadiagonal_ != NULL) delete localinertiadiagonal_; + if (GetArenaNoVirtual() == NULL && localinertiadiagonal_ != NULL) { + delete localinertiadiagonal_; + } localinertiadiagonal_ = NULL; } -inline const ::pybullet_grpc::vec3& GetDynamicsStatus::localinertiadiagonal() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.GetDynamicsStatus.localInertiaDiagonal) - return localinertiadiagonal_ != NULL ? *localinertiadiagonal_ - : *::pybullet_grpc::vec3::internal_default_instance(); +inline const ::pybullet_grpc::vec3& GetDynamicsStatus::_internal_localinertiadiagonal() const { + return *localinertiadiagonal_; } -inline ::pybullet_grpc::vec3* GetDynamicsStatus::mutable_localinertiadiagonal() { - - if (localinertiadiagonal_ == NULL) { - localinertiadiagonal_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.GetDynamicsStatus.localInertiaDiagonal) - return localinertiadiagonal_; +inline const ::pybullet_grpc::vec3& GetDynamicsStatus::localinertiadiagonal() const { + const ::pybullet_grpc::vec3* p = localinertiadiagonal_; + // @@protoc_insertion_point(field_get:pybullet_grpc.GetDynamicsStatus.localInertiaDiagonal) + return p != NULL ? *p : *reinterpret_cast( + &::pybullet_grpc::_vec3_default_instance_); } inline ::pybullet_grpc::vec3* GetDynamicsStatus::release_localinertiadiagonal() { // @@protoc_insertion_point(field_release:pybullet_grpc.GetDynamicsStatus.localInertiaDiagonal) @@ -7456,14 +8524,31 @@ inline ::pybullet_grpc::vec3* GetDynamicsStatus::release_localinertiadiagonal() localinertiadiagonal_ = NULL; return temp; } +inline ::pybullet_grpc::vec3* GetDynamicsStatus::mutable_localinertiadiagonal() { + + if (localinertiadiagonal_ == NULL) { + auto* p = CreateMaybeMessage<::pybullet_grpc::vec3>(GetArenaNoVirtual()); + localinertiadiagonal_ = p; + } + // @@protoc_insertion_point(field_mutable:pybullet_grpc.GetDynamicsStatus.localInertiaDiagonal) + return localinertiadiagonal_; +} inline void GetDynamicsStatus::set_allocated_localinertiadiagonal(::pybullet_grpc::vec3* localinertiadiagonal) { - delete localinertiadiagonal_; - localinertiadiagonal_ = localinertiadiagonal; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete localinertiadiagonal_; + } if (localinertiadiagonal) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + localinertiadiagonal = ::google::protobuf::internal::GetOwnedMessage( + message_arena, localinertiadiagonal, submessage_arena); + } } else { } + localinertiadiagonal_ = localinertiadiagonal; // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.GetDynamicsStatus.localInertiaDiagonal) } @@ -8086,21 +9171,19 @@ inline bool ConfigureOpenGLVisualizerCommand::has_cameratargetposition() const { return this != internal_default_instance() && cameratargetposition_ != NULL; } inline void ConfigureOpenGLVisualizerCommand::clear_cameratargetposition() { - if (GetArenaNoVirtual() == NULL && cameratargetposition_ != NULL) delete cameratargetposition_; + if (GetArenaNoVirtual() == NULL && cameratargetposition_ != NULL) { + delete cameratargetposition_; + } cameratargetposition_ = NULL; } -inline const ::pybullet_grpc::vec3& ConfigureOpenGLVisualizerCommand::cameratargetposition() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.ConfigureOpenGLVisualizerCommand.cameraTargetPosition) - return cameratargetposition_ != NULL ? *cameratargetposition_ - : *::pybullet_grpc::vec3::internal_default_instance(); +inline const ::pybullet_grpc::vec3& ConfigureOpenGLVisualizerCommand::_internal_cameratargetposition() const { + return *cameratargetposition_; } -inline ::pybullet_grpc::vec3* ConfigureOpenGLVisualizerCommand::mutable_cameratargetposition() { - - if (cameratargetposition_ == NULL) { - cameratargetposition_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.ConfigureOpenGLVisualizerCommand.cameraTargetPosition) - return cameratargetposition_; +inline const ::pybullet_grpc::vec3& ConfigureOpenGLVisualizerCommand::cameratargetposition() const { + const ::pybullet_grpc::vec3* p = cameratargetposition_; + // @@protoc_insertion_point(field_get:pybullet_grpc.ConfigureOpenGLVisualizerCommand.cameraTargetPosition) + return p != NULL ? *p : *reinterpret_cast( + &::pybullet_grpc::_vec3_default_instance_); } inline ::pybullet_grpc::vec3* ConfigureOpenGLVisualizerCommand::release_cameratargetposition() { // @@protoc_insertion_point(field_release:pybullet_grpc.ConfigureOpenGLVisualizerCommand.cameraTargetPosition) @@ -8109,14 +9192,31 @@ inline ::pybullet_grpc::vec3* ConfigureOpenGLVisualizerCommand::release_camerata cameratargetposition_ = NULL; return temp; } +inline ::pybullet_grpc::vec3* ConfigureOpenGLVisualizerCommand::mutable_cameratargetposition() { + + if (cameratargetposition_ == NULL) { + auto* p = CreateMaybeMessage<::pybullet_grpc::vec3>(GetArenaNoVirtual()); + cameratargetposition_ = p; + } + // @@protoc_insertion_point(field_mutable:pybullet_grpc.ConfigureOpenGLVisualizerCommand.cameraTargetPosition) + return cameratargetposition_; +} inline void ConfigureOpenGLVisualizerCommand::set_allocated_cameratargetposition(::pybullet_grpc::vec3* cameratargetposition) { - delete cameratargetposition_; - cameratargetposition_ = cameratargetposition; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete cameratargetposition_; + } if (cameratargetposition) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + cameratargetposition = ::google::protobuf::internal::GetOwnedMessage( + message_arena, cameratargetposition, submessage_arena); + } } else { } + cameratargetposition_ = cameratargetposition; // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.ConfigureOpenGLVisualizerCommand.cameraTargetPosition) } @@ -8171,21 +9271,19 @@ inline bool PhysicsSimulationParameters::has_gravityacceleration() const { return this != internal_default_instance() && gravityacceleration_ != NULL; } inline void PhysicsSimulationParameters::clear_gravityacceleration() { - if (GetArenaNoVirtual() == NULL && gravityacceleration_ != NULL) delete gravityacceleration_; + if (GetArenaNoVirtual() == NULL && gravityacceleration_ != NULL) { + delete gravityacceleration_; + } gravityacceleration_ = NULL; } -inline const ::pybullet_grpc::vec3& PhysicsSimulationParameters::gravityacceleration() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.gravityAcceleration) - return gravityacceleration_ != NULL ? *gravityacceleration_ - : *::pybullet_grpc::vec3::internal_default_instance(); +inline const ::pybullet_grpc::vec3& PhysicsSimulationParameters::_internal_gravityacceleration() const { + return *gravityacceleration_; } -inline ::pybullet_grpc::vec3* PhysicsSimulationParameters::mutable_gravityacceleration() { - - if (gravityacceleration_ == NULL) { - gravityacceleration_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PhysicsSimulationParameters.gravityAcceleration) - return gravityacceleration_; +inline const ::pybullet_grpc::vec3& PhysicsSimulationParameters::gravityacceleration() const { + const ::pybullet_grpc::vec3* p = gravityacceleration_; + // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParameters.gravityAcceleration) + return p != NULL ? *p : *reinterpret_cast( + &::pybullet_grpc::_vec3_default_instance_); } inline ::pybullet_grpc::vec3* PhysicsSimulationParameters::release_gravityacceleration() { // @@protoc_insertion_point(field_release:pybullet_grpc.PhysicsSimulationParameters.gravityAcceleration) @@ -8194,14 +9292,31 @@ inline ::pybullet_grpc::vec3* PhysicsSimulationParameters::release_gravityaccele gravityacceleration_ = NULL; return temp; } +inline ::pybullet_grpc::vec3* PhysicsSimulationParameters::mutable_gravityacceleration() { + + if (gravityacceleration_ == NULL) { + auto* p = CreateMaybeMessage<::pybullet_grpc::vec3>(GetArenaNoVirtual()); + gravityacceleration_ = p; + } + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PhysicsSimulationParameters.gravityAcceleration) + return gravityacceleration_; +} inline void PhysicsSimulationParameters::set_allocated_gravityacceleration(::pybullet_grpc::vec3* gravityacceleration) { - delete gravityacceleration_; - gravityacceleration_ = gravityacceleration; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete gravityacceleration_; + } if (gravityacceleration) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + gravityacceleration = ::google::protobuf::internal::GetOwnedMessage( + message_arena, gravityacceleration, submessage_arena); + } } else { } + gravityacceleration_ = gravityacceleration; // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PhysicsSimulationParameters.gravityAcceleration) } @@ -8564,21 +9679,19 @@ inline bool PhysicsSimulationParametersCommand::has_params() const { return this != internal_default_instance() && params_ != NULL; } inline void PhysicsSimulationParametersCommand::clear_params() { - if (GetArenaNoVirtual() == NULL && params_ != NULL) delete params_; + if (GetArenaNoVirtual() == NULL && params_ != NULL) { + delete params_; + } params_ = NULL; } -inline const ::pybullet_grpc::PhysicsSimulationParameters& PhysicsSimulationParametersCommand::params() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParametersCommand.params) - return params_ != NULL ? *params_ - : *::pybullet_grpc::PhysicsSimulationParameters::internal_default_instance(); +inline const ::pybullet_grpc::PhysicsSimulationParameters& PhysicsSimulationParametersCommand::_internal_params() const { + return *params_; } -inline ::pybullet_grpc::PhysicsSimulationParameters* PhysicsSimulationParametersCommand::mutable_params() { - - if (params_ == NULL) { - params_ = new ::pybullet_grpc::PhysicsSimulationParameters; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PhysicsSimulationParametersCommand.params) - return params_; +inline const ::pybullet_grpc::PhysicsSimulationParameters& PhysicsSimulationParametersCommand::params() const { + const ::pybullet_grpc::PhysicsSimulationParameters* p = params_; + // @@protoc_insertion_point(field_get:pybullet_grpc.PhysicsSimulationParametersCommand.params) + return p != NULL ? *p : *reinterpret_cast( + &::pybullet_grpc::_PhysicsSimulationParameters_default_instance_); } inline ::pybullet_grpc::PhysicsSimulationParameters* PhysicsSimulationParametersCommand::release_params() { // @@protoc_insertion_point(field_release:pybullet_grpc.PhysicsSimulationParametersCommand.params) @@ -8587,14 +9700,31 @@ inline ::pybullet_grpc::PhysicsSimulationParameters* PhysicsSimulationParameters params_ = NULL; return temp; } +inline ::pybullet_grpc::PhysicsSimulationParameters* PhysicsSimulationParametersCommand::mutable_params() { + + if (params_ == NULL) { + auto* p = CreateMaybeMessage<::pybullet_grpc::PhysicsSimulationParameters>(GetArenaNoVirtual()); + params_ = p; + } + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PhysicsSimulationParametersCommand.params) + return params_; +} inline void PhysicsSimulationParametersCommand::set_allocated_params(::pybullet_grpc::PhysicsSimulationParameters* params) { - delete params_; - params_ = params; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete params_; + } if (params) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + params = ::google::protobuf::internal::GetOwnedMessage( + message_arena, params, submessage_arena); + } } else { } + params_ = params; // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PhysicsSimulationParametersCommand.params) } @@ -8919,21 +10049,19 @@ inline bool UserConstraintCommand::has_parentframe() const { return this != internal_default_instance() && parentframe_ != NULL; } inline void UserConstraintCommand::clear_parentframe() { - if (GetArenaNoVirtual() == NULL && parentframe_ != NULL) delete parentframe_; + if (GetArenaNoVirtual() == NULL && parentframe_ != NULL) { + delete parentframe_; + } parentframe_ = NULL; } -inline const ::pybullet_grpc::transform& UserConstraintCommand::parentframe() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.parentFrame) - return parentframe_ != NULL ? *parentframe_ - : *::pybullet_grpc::transform::internal_default_instance(); +inline const ::pybullet_grpc::transform& UserConstraintCommand::_internal_parentframe() const { + return *parentframe_; } -inline ::pybullet_grpc::transform* UserConstraintCommand::mutable_parentframe() { - - if (parentframe_ == NULL) { - parentframe_ = new ::pybullet_grpc::transform; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.UserConstraintCommand.parentFrame) - return parentframe_; +inline const ::pybullet_grpc::transform& UserConstraintCommand::parentframe() const { + const ::pybullet_grpc::transform* p = parentframe_; + // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.parentFrame) + return p != NULL ? *p : *reinterpret_cast( + &::pybullet_grpc::_transform_default_instance_); } inline ::pybullet_grpc::transform* UserConstraintCommand::release_parentframe() { // @@protoc_insertion_point(field_release:pybullet_grpc.UserConstraintCommand.parentFrame) @@ -8942,14 +10070,31 @@ inline ::pybullet_grpc::transform* UserConstraintCommand::release_parentframe() parentframe_ = NULL; return temp; } +inline ::pybullet_grpc::transform* UserConstraintCommand::mutable_parentframe() { + + if (parentframe_ == NULL) { + auto* p = CreateMaybeMessage<::pybullet_grpc::transform>(GetArenaNoVirtual()); + parentframe_ = p; + } + // @@protoc_insertion_point(field_mutable:pybullet_grpc.UserConstraintCommand.parentFrame) + return parentframe_; +} inline void UserConstraintCommand::set_allocated_parentframe(::pybullet_grpc::transform* parentframe) { - delete parentframe_; - parentframe_ = parentframe; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete parentframe_; + } if (parentframe) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + parentframe = ::google::protobuf::internal::GetOwnedMessage( + message_arena, parentframe, submessage_arena); + } } else { } + parentframe_ = parentframe; // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.UserConstraintCommand.parentFrame) } @@ -8958,21 +10103,19 @@ inline bool UserConstraintCommand::has_childframe() const { return this != internal_default_instance() && childframe_ != NULL; } inline void UserConstraintCommand::clear_childframe() { - if (GetArenaNoVirtual() == NULL && childframe_ != NULL) delete childframe_; + if (GetArenaNoVirtual() == NULL && childframe_ != NULL) { + delete childframe_; + } childframe_ = NULL; } -inline const ::pybullet_grpc::transform& UserConstraintCommand::childframe() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.childFrame) - return childframe_ != NULL ? *childframe_ - : *::pybullet_grpc::transform::internal_default_instance(); +inline const ::pybullet_grpc::transform& UserConstraintCommand::_internal_childframe() const { + return *childframe_; } -inline ::pybullet_grpc::transform* UserConstraintCommand::mutable_childframe() { - - if (childframe_ == NULL) { - childframe_ = new ::pybullet_grpc::transform; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.UserConstraintCommand.childFrame) - return childframe_; +inline const ::pybullet_grpc::transform& UserConstraintCommand::childframe() const { + const ::pybullet_grpc::transform* p = childframe_; + // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.childFrame) + return p != NULL ? *p : *reinterpret_cast( + &::pybullet_grpc::_transform_default_instance_); } inline ::pybullet_grpc::transform* UserConstraintCommand::release_childframe() { // @@protoc_insertion_point(field_release:pybullet_grpc.UserConstraintCommand.childFrame) @@ -8981,14 +10124,31 @@ inline ::pybullet_grpc::transform* UserConstraintCommand::release_childframe() { childframe_ = NULL; return temp; } +inline ::pybullet_grpc::transform* UserConstraintCommand::mutable_childframe() { + + if (childframe_ == NULL) { + auto* p = CreateMaybeMessage<::pybullet_grpc::transform>(GetArenaNoVirtual()); + childframe_ = p; + } + // @@protoc_insertion_point(field_mutable:pybullet_grpc.UserConstraintCommand.childFrame) + return childframe_; +} inline void UserConstraintCommand::set_allocated_childframe(::pybullet_grpc::transform* childframe) { - delete childframe_; - childframe_ = childframe; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete childframe_; + } if (childframe) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + childframe = ::google::protobuf::internal::GetOwnedMessage( + message_arena, childframe, submessage_arena); + } } else { } + childframe_ = childframe; // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.UserConstraintCommand.childFrame) } @@ -8997,21 +10157,19 @@ inline bool UserConstraintCommand::has_jointaxis() const { return this != internal_default_instance() && jointaxis_ != NULL; } inline void UserConstraintCommand::clear_jointaxis() { - if (GetArenaNoVirtual() == NULL && jointaxis_ != NULL) delete jointaxis_; + if (GetArenaNoVirtual() == NULL && jointaxis_ != NULL) { + delete jointaxis_; + } jointaxis_ = NULL; } -inline const ::pybullet_grpc::vec3& UserConstraintCommand::jointaxis() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.jointAxis) - return jointaxis_ != NULL ? *jointaxis_ - : *::pybullet_grpc::vec3::internal_default_instance(); +inline const ::pybullet_grpc::vec3& UserConstraintCommand::_internal_jointaxis() const { + return *jointaxis_; } -inline ::pybullet_grpc::vec3* UserConstraintCommand::mutable_jointaxis() { - - if (jointaxis_ == NULL) { - jointaxis_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.UserConstraintCommand.jointAxis) - return jointaxis_; +inline const ::pybullet_grpc::vec3& UserConstraintCommand::jointaxis() const { + const ::pybullet_grpc::vec3* p = jointaxis_; + // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintCommand.jointAxis) + return p != NULL ? *p : *reinterpret_cast( + &::pybullet_grpc::_vec3_default_instance_); } inline ::pybullet_grpc::vec3* UserConstraintCommand::release_jointaxis() { // @@protoc_insertion_point(field_release:pybullet_grpc.UserConstraintCommand.jointAxis) @@ -9020,14 +10178,31 @@ inline ::pybullet_grpc::vec3* UserConstraintCommand::release_jointaxis() { jointaxis_ = NULL; return temp; } +inline ::pybullet_grpc::vec3* UserConstraintCommand::mutable_jointaxis() { + + if (jointaxis_ == NULL) { + auto* p = CreateMaybeMessage<::pybullet_grpc::vec3>(GetArenaNoVirtual()); + jointaxis_ = p; + } + // @@protoc_insertion_point(field_mutable:pybullet_grpc.UserConstraintCommand.jointAxis) + return jointaxis_; +} inline void UserConstraintCommand::set_allocated_jointaxis(::pybullet_grpc::vec3* jointaxis) { - delete jointaxis_; - jointaxis_ = jointaxis; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete jointaxis_; + } if (jointaxis) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + jointaxis = ::google::protobuf::internal::GetOwnedMessage( + message_arena, jointaxis, submessage_arena); + } } else { } + jointaxis_ = jointaxis; // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.UserConstraintCommand.jointAxis) } @@ -9184,21 +10359,19 @@ inline bool UserConstraintStateStatus::has_appliedconstraintforceslinear() const return this != internal_default_instance() && appliedconstraintforceslinear_ != NULL; } inline void UserConstraintStateStatus::clear_appliedconstraintforceslinear() { - if (GetArenaNoVirtual() == NULL && appliedconstraintforceslinear_ != NULL) delete appliedconstraintforceslinear_; + if (GetArenaNoVirtual() == NULL && appliedconstraintforceslinear_ != NULL) { + delete appliedconstraintforceslinear_; + } appliedconstraintforceslinear_ = NULL; } -inline const ::pybullet_grpc::vec3& UserConstraintStateStatus::appliedconstraintforceslinear() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintStateStatus.appliedConstraintForcesLinear) - return appliedconstraintforceslinear_ != NULL ? *appliedconstraintforceslinear_ - : *::pybullet_grpc::vec3::internal_default_instance(); +inline const ::pybullet_grpc::vec3& UserConstraintStateStatus::_internal_appliedconstraintforceslinear() const { + return *appliedconstraintforceslinear_; } -inline ::pybullet_grpc::vec3* UserConstraintStateStatus::mutable_appliedconstraintforceslinear() { - - if (appliedconstraintforceslinear_ == NULL) { - appliedconstraintforceslinear_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.UserConstraintStateStatus.appliedConstraintForcesLinear) - return appliedconstraintforceslinear_; +inline const ::pybullet_grpc::vec3& UserConstraintStateStatus::appliedconstraintforceslinear() const { + const ::pybullet_grpc::vec3* p = appliedconstraintforceslinear_; + // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintStateStatus.appliedConstraintForcesLinear) + return p != NULL ? *p : *reinterpret_cast( + &::pybullet_grpc::_vec3_default_instance_); } inline ::pybullet_grpc::vec3* UserConstraintStateStatus::release_appliedconstraintforceslinear() { // @@protoc_insertion_point(field_release:pybullet_grpc.UserConstraintStateStatus.appliedConstraintForcesLinear) @@ -9207,14 +10380,31 @@ inline ::pybullet_grpc::vec3* UserConstraintStateStatus::release_appliedconstrai appliedconstraintforceslinear_ = NULL; return temp; } +inline ::pybullet_grpc::vec3* UserConstraintStateStatus::mutable_appliedconstraintforceslinear() { + + if (appliedconstraintforceslinear_ == NULL) { + auto* p = CreateMaybeMessage<::pybullet_grpc::vec3>(GetArenaNoVirtual()); + appliedconstraintforceslinear_ = p; + } + // @@protoc_insertion_point(field_mutable:pybullet_grpc.UserConstraintStateStatus.appliedConstraintForcesLinear) + return appliedconstraintforceslinear_; +} inline void UserConstraintStateStatus::set_allocated_appliedconstraintforceslinear(::pybullet_grpc::vec3* appliedconstraintforceslinear) { - delete appliedconstraintforceslinear_; - appliedconstraintforceslinear_ = appliedconstraintforceslinear; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete appliedconstraintforceslinear_; + } if (appliedconstraintforceslinear) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + appliedconstraintforceslinear = ::google::protobuf::internal::GetOwnedMessage( + message_arena, appliedconstraintforceslinear, submessage_arena); + } } else { } + appliedconstraintforceslinear_ = appliedconstraintforceslinear; // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.UserConstraintStateStatus.appliedConstraintForcesLinear) } @@ -9223,21 +10413,19 @@ inline bool UserConstraintStateStatus::has_appliedconstraintforcesangular() cons return this != internal_default_instance() && appliedconstraintforcesangular_ != NULL; } inline void UserConstraintStateStatus::clear_appliedconstraintforcesangular() { - if (GetArenaNoVirtual() == NULL && appliedconstraintforcesangular_ != NULL) delete appliedconstraintforcesangular_; + if (GetArenaNoVirtual() == NULL && appliedconstraintforcesangular_ != NULL) { + delete appliedconstraintforcesangular_; + } appliedconstraintforcesangular_ = NULL; } -inline const ::pybullet_grpc::vec3& UserConstraintStateStatus::appliedconstraintforcesangular() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintStateStatus.appliedConstraintForcesAngular) - return appliedconstraintforcesangular_ != NULL ? *appliedconstraintforcesangular_ - : *::pybullet_grpc::vec3::internal_default_instance(); +inline const ::pybullet_grpc::vec3& UserConstraintStateStatus::_internal_appliedconstraintforcesangular() const { + return *appliedconstraintforcesangular_; } -inline ::pybullet_grpc::vec3* UserConstraintStateStatus::mutable_appliedconstraintforcesangular() { - - if (appliedconstraintforcesangular_ == NULL) { - appliedconstraintforcesangular_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.UserConstraintStateStatus.appliedConstraintForcesAngular) - return appliedconstraintforcesangular_; +inline const ::pybullet_grpc::vec3& UserConstraintStateStatus::appliedconstraintforcesangular() const { + const ::pybullet_grpc::vec3* p = appliedconstraintforcesangular_; + // @@protoc_insertion_point(field_get:pybullet_grpc.UserConstraintStateStatus.appliedConstraintForcesAngular) + return p != NULL ? *p : *reinterpret_cast( + &::pybullet_grpc::_vec3_default_instance_); } inline ::pybullet_grpc::vec3* UserConstraintStateStatus::release_appliedconstraintforcesangular() { // @@protoc_insertion_point(field_release:pybullet_grpc.UserConstraintStateStatus.appliedConstraintForcesAngular) @@ -9246,14 +10434,31 @@ inline ::pybullet_grpc::vec3* UserConstraintStateStatus::release_appliedconstrai appliedconstraintforcesangular_ = NULL; return temp; } +inline ::pybullet_grpc::vec3* UserConstraintStateStatus::mutable_appliedconstraintforcesangular() { + + if (appliedconstraintforcesangular_ == NULL) { + auto* p = CreateMaybeMessage<::pybullet_grpc::vec3>(GetArenaNoVirtual()); + appliedconstraintforcesangular_ = p; + } + // @@protoc_insertion_point(field_mutable:pybullet_grpc.UserConstraintStateStatus.appliedConstraintForcesAngular) + return appliedconstraintforcesangular_; +} inline void UserConstraintStateStatus::set_allocated_appliedconstraintforcesangular(::pybullet_grpc::vec3* appliedconstraintforcesangular) { - delete appliedconstraintforcesangular_; - appliedconstraintforcesangular_ = appliedconstraintforcesangular; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete appliedconstraintforcesangular_; + } if (appliedconstraintforcesangular) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + appliedconstraintforcesangular = ::google::protobuf::internal::GetOwnedMessage( + message_arena, appliedconstraintforcesangular, submessage_arena); + } } else { } + appliedconstraintforcesangular_ = appliedconstraintforcesangular; // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.UserConstraintStateStatus.appliedConstraintForcesAngular) } @@ -9318,23 +10523,23 @@ inline int KeyboardEventsStatus::keyboardevents_size() const { inline void KeyboardEventsStatus::clear_keyboardevents() { keyboardevents_.Clear(); } -inline const ::pybullet_grpc::KeyboardEvent& KeyboardEventsStatus::keyboardevents(int index) const { - // @@protoc_insertion_point(field_get:pybullet_grpc.KeyboardEventsStatus.keyboardEvents) - return keyboardevents_.Get(index); -} inline ::pybullet_grpc::KeyboardEvent* KeyboardEventsStatus::mutable_keyboardevents(int index) { // @@protoc_insertion_point(field_mutable:pybullet_grpc.KeyboardEventsStatus.keyboardEvents) return keyboardevents_.Mutable(index); } -inline ::pybullet_grpc::KeyboardEvent* KeyboardEventsStatus::add_keyboardevents() { - // @@protoc_insertion_point(field_add:pybullet_grpc.KeyboardEventsStatus.keyboardEvents) - return keyboardevents_.Add(); -} inline ::google::protobuf::RepeatedPtrField< ::pybullet_grpc::KeyboardEvent >* KeyboardEventsStatus::mutable_keyboardevents() { // @@protoc_insertion_point(field_mutable_list:pybullet_grpc.KeyboardEventsStatus.keyboardEvents) return &keyboardevents_; } +inline const ::pybullet_grpc::KeyboardEvent& KeyboardEventsStatus::keyboardevents(int index) const { + // @@protoc_insertion_point(field_get:pybullet_grpc.KeyboardEventsStatus.keyboardEvents) + return keyboardevents_.Get(index); +} +inline ::pybullet_grpc::KeyboardEvent* KeyboardEventsStatus::add_keyboardevents() { + // @@protoc_insertion_point(field_add:pybullet_grpc.KeyboardEventsStatus.keyboardEvents) + return keyboardevents_.Add(); +} inline const ::google::protobuf::RepeatedPtrField< ::pybullet_grpc::KeyboardEvent >& KeyboardEventsStatus::keyboardevents() const { // @@protoc_insertion_point(field_list:pybullet_grpc.KeyboardEventsStatus.keyboardEvents) @@ -9378,21 +10583,19 @@ inline bool RequestCameraImageCommand::has_viewmatrix() const { return this != internal_default_instance() && viewmatrix_ != NULL; } inline void RequestCameraImageCommand::clear_viewmatrix() { - if (GetArenaNoVirtual() == NULL && viewmatrix_ != NULL) delete viewmatrix_; + if (GetArenaNoVirtual() == NULL && viewmatrix_ != NULL) { + delete viewmatrix_; + } viewmatrix_ = NULL; } -inline const ::pybullet_grpc::matrix4x4& RequestCameraImageCommand::viewmatrix() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.viewMatrix) - return viewmatrix_ != NULL ? *viewmatrix_ - : *::pybullet_grpc::matrix4x4::internal_default_instance(); +inline const ::pybullet_grpc::matrix4x4& RequestCameraImageCommand::_internal_viewmatrix() const { + return *viewmatrix_; } -inline ::pybullet_grpc::matrix4x4* RequestCameraImageCommand::mutable_viewmatrix() { - - if (viewmatrix_ == NULL) { - viewmatrix_ = new ::pybullet_grpc::matrix4x4; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.RequestCameraImageCommand.viewMatrix) - return viewmatrix_; +inline const ::pybullet_grpc::matrix4x4& RequestCameraImageCommand::viewmatrix() const { + const ::pybullet_grpc::matrix4x4* p = viewmatrix_; + // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.viewMatrix) + return p != NULL ? *p : *reinterpret_cast( + &::pybullet_grpc::_matrix4x4_default_instance_); } inline ::pybullet_grpc::matrix4x4* RequestCameraImageCommand::release_viewmatrix() { // @@protoc_insertion_point(field_release:pybullet_grpc.RequestCameraImageCommand.viewMatrix) @@ -9401,14 +10604,31 @@ inline ::pybullet_grpc::matrix4x4* RequestCameraImageCommand::release_viewmatrix viewmatrix_ = NULL; return temp; } +inline ::pybullet_grpc::matrix4x4* RequestCameraImageCommand::mutable_viewmatrix() { + + if (viewmatrix_ == NULL) { + auto* p = CreateMaybeMessage<::pybullet_grpc::matrix4x4>(GetArenaNoVirtual()); + viewmatrix_ = p; + } + // @@protoc_insertion_point(field_mutable:pybullet_grpc.RequestCameraImageCommand.viewMatrix) + return viewmatrix_; +} inline void RequestCameraImageCommand::set_allocated_viewmatrix(::pybullet_grpc::matrix4x4* viewmatrix) { - delete viewmatrix_; - viewmatrix_ = viewmatrix; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete viewmatrix_; + } if (viewmatrix) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + viewmatrix = ::google::protobuf::internal::GetOwnedMessage( + message_arena, viewmatrix, submessage_arena); + } } else { } + viewmatrix_ = viewmatrix; // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.RequestCameraImageCommand.viewMatrix) } @@ -9417,21 +10637,19 @@ inline bool RequestCameraImageCommand::has_projectionmatrix() const { return this != internal_default_instance() && projectionmatrix_ != NULL; } inline void RequestCameraImageCommand::clear_projectionmatrix() { - if (GetArenaNoVirtual() == NULL && projectionmatrix_ != NULL) delete projectionmatrix_; + if (GetArenaNoVirtual() == NULL && projectionmatrix_ != NULL) { + delete projectionmatrix_; + } projectionmatrix_ = NULL; } -inline const ::pybullet_grpc::matrix4x4& RequestCameraImageCommand::projectionmatrix() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.projectionMatrix) - return projectionmatrix_ != NULL ? *projectionmatrix_ - : *::pybullet_grpc::matrix4x4::internal_default_instance(); +inline const ::pybullet_grpc::matrix4x4& RequestCameraImageCommand::_internal_projectionmatrix() const { + return *projectionmatrix_; } -inline ::pybullet_grpc::matrix4x4* RequestCameraImageCommand::mutable_projectionmatrix() { - - if (projectionmatrix_ == NULL) { - projectionmatrix_ = new ::pybullet_grpc::matrix4x4; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.RequestCameraImageCommand.projectionMatrix) - return projectionmatrix_; +inline const ::pybullet_grpc::matrix4x4& RequestCameraImageCommand::projectionmatrix() const { + const ::pybullet_grpc::matrix4x4* p = projectionmatrix_; + // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.projectionMatrix) + return p != NULL ? *p : *reinterpret_cast( + &::pybullet_grpc::_matrix4x4_default_instance_); } inline ::pybullet_grpc::matrix4x4* RequestCameraImageCommand::release_projectionmatrix() { // @@protoc_insertion_point(field_release:pybullet_grpc.RequestCameraImageCommand.projectionMatrix) @@ -9440,14 +10658,31 @@ inline ::pybullet_grpc::matrix4x4* RequestCameraImageCommand::release_projection projectionmatrix_ = NULL; return temp; } +inline ::pybullet_grpc::matrix4x4* RequestCameraImageCommand::mutable_projectionmatrix() { + + if (projectionmatrix_ == NULL) { + auto* p = CreateMaybeMessage<::pybullet_grpc::matrix4x4>(GetArenaNoVirtual()); + projectionmatrix_ = p; + } + // @@protoc_insertion_point(field_mutable:pybullet_grpc.RequestCameraImageCommand.projectionMatrix) + return projectionmatrix_; +} inline void RequestCameraImageCommand::set_allocated_projectionmatrix(::pybullet_grpc::matrix4x4* projectionmatrix) { - delete projectionmatrix_; - projectionmatrix_ = projectionmatrix; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete projectionmatrix_; + } if (projectionmatrix) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + projectionmatrix = ::google::protobuf::internal::GetOwnedMessage( + message_arena, projectionmatrix, submessage_arena); + } } else { } + projectionmatrix_ = projectionmatrix; // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.RequestCameraImageCommand.projectionMatrix) } @@ -9498,21 +10733,19 @@ inline bool RequestCameraImageCommand::has_lightdirection() const { return this != internal_default_instance() && lightdirection_ != NULL; } inline void RequestCameraImageCommand::clear_lightdirection() { - if (GetArenaNoVirtual() == NULL && lightdirection_ != NULL) delete lightdirection_; + if (GetArenaNoVirtual() == NULL && lightdirection_ != NULL) { + delete lightdirection_; + } lightdirection_ = NULL; } -inline const ::pybullet_grpc::vec3& RequestCameraImageCommand::lightdirection() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.lightDirection) - return lightdirection_ != NULL ? *lightdirection_ - : *::pybullet_grpc::vec3::internal_default_instance(); +inline const ::pybullet_grpc::vec3& RequestCameraImageCommand::_internal_lightdirection() const { + return *lightdirection_; } -inline ::pybullet_grpc::vec3* RequestCameraImageCommand::mutable_lightdirection() { - - if (lightdirection_ == NULL) { - lightdirection_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.RequestCameraImageCommand.lightDirection) - return lightdirection_; +inline const ::pybullet_grpc::vec3& RequestCameraImageCommand::lightdirection() const { + const ::pybullet_grpc::vec3* p = lightdirection_; + // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.lightDirection) + return p != NULL ? *p : *reinterpret_cast( + &::pybullet_grpc::_vec3_default_instance_); } inline ::pybullet_grpc::vec3* RequestCameraImageCommand::release_lightdirection() { // @@protoc_insertion_point(field_release:pybullet_grpc.RequestCameraImageCommand.lightDirection) @@ -9521,14 +10754,31 @@ inline ::pybullet_grpc::vec3* RequestCameraImageCommand::release_lightdirection( lightdirection_ = NULL; return temp; } +inline ::pybullet_grpc::vec3* RequestCameraImageCommand::mutable_lightdirection() { + + if (lightdirection_ == NULL) { + auto* p = CreateMaybeMessage<::pybullet_grpc::vec3>(GetArenaNoVirtual()); + lightdirection_ = p; + } + // @@protoc_insertion_point(field_mutable:pybullet_grpc.RequestCameraImageCommand.lightDirection) + return lightdirection_; +} inline void RequestCameraImageCommand::set_allocated_lightdirection(::pybullet_grpc::vec3* lightdirection) { - delete lightdirection_; - lightdirection_ = lightdirection; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete lightdirection_; + } if (lightdirection) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + lightdirection = ::google::protobuf::internal::GetOwnedMessage( + message_arena, lightdirection, submessage_arena); + } } else { } + lightdirection_ = lightdirection; // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.RequestCameraImageCommand.lightDirection) } @@ -9537,21 +10787,19 @@ inline bool RequestCameraImageCommand::has_lightcolor() const { return this != internal_default_instance() && lightcolor_ != NULL; } inline void RequestCameraImageCommand::clear_lightcolor() { - if (GetArenaNoVirtual() == NULL && lightcolor_ != NULL) delete lightcolor_; + if (GetArenaNoVirtual() == NULL && lightcolor_ != NULL) { + delete lightcolor_; + } lightcolor_ = NULL; } -inline const ::pybullet_grpc::vec3& RequestCameraImageCommand::lightcolor() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.lightColor) - return lightcolor_ != NULL ? *lightcolor_ - : *::pybullet_grpc::vec3::internal_default_instance(); +inline const ::pybullet_grpc::vec3& RequestCameraImageCommand::_internal_lightcolor() const { + return *lightcolor_; } -inline ::pybullet_grpc::vec3* RequestCameraImageCommand::mutable_lightcolor() { - - if (lightcolor_ == NULL) { - lightcolor_ = new ::pybullet_grpc::vec3; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.RequestCameraImageCommand.lightColor) - return lightcolor_; +inline const ::pybullet_grpc::vec3& RequestCameraImageCommand::lightcolor() const { + const ::pybullet_grpc::vec3* p = lightcolor_; + // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.lightColor) + return p != NULL ? *p : *reinterpret_cast( + &::pybullet_grpc::_vec3_default_instance_); } inline ::pybullet_grpc::vec3* RequestCameraImageCommand::release_lightcolor() { // @@protoc_insertion_point(field_release:pybullet_grpc.RequestCameraImageCommand.lightColor) @@ -9560,14 +10808,31 @@ inline ::pybullet_grpc::vec3* RequestCameraImageCommand::release_lightcolor() { lightcolor_ = NULL; return temp; } +inline ::pybullet_grpc::vec3* RequestCameraImageCommand::mutable_lightcolor() { + + if (lightcolor_ == NULL) { + auto* p = CreateMaybeMessage<::pybullet_grpc::vec3>(GetArenaNoVirtual()); + lightcolor_ = p; + } + // @@protoc_insertion_point(field_mutable:pybullet_grpc.RequestCameraImageCommand.lightColor) + return lightcolor_; +} inline void RequestCameraImageCommand::set_allocated_lightcolor(::pybullet_grpc::vec3* lightcolor) { - delete lightcolor_; - lightcolor_ = lightcolor; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete lightcolor_; + } if (lightcolor) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + lightcolor = ::google::protobuf::internal::GetOwnedMessage( + message_arena, lightcolor, submessage_arena); + } } else { } + lightcolor_ = lightcolor; // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.RequestCameraImageCommand.lightColor) } @@ -9646,21 +10911,19 @@ inline bool RequestCameraImageCommand::has_projectivetextureviewmatrix() const { return this != internal_default_instance() && projectivetextureviewmatrix_ != NULL; } inline void RequestCameraImageCommand::clear_projectivetextureviewmatrix() { - if (GetArenaNoVirtual() == NULL && projectivetextureviewmatrix_ != NULL) delete projectivetextureviewmatrix_; + if (GetArenaNoVirtual() == NULL && projectivetextureviewmatrix_ != NULL) { + delete projectivetextureviewmatrix_; + } projectivetextureviewmatrix_ = NULL; } -inline const ::pybullet_grpc::matrix4x4& RequestCameraImageCommand::projectivetextureviewmatrix() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.projectiveTextureViewMatrix) - return projectivetextureviewmatrix_ != NULL ? *projectivetextureviewmatrix_ - : *::pybullet_grpc::matrix4x4::internal_default_instance(); +inline const ::pybullet_grpc::matrix4x4& RequestCameraImageCommand::_internal_projectivetextureviewmatrix() const { + return *projectivetextureviewmatrix_; } -inline ::pybullet_grpc::matrix4x4* RequestCameraImageCommand::mutable_projectivetextureviewmatrix() { - - if (projectivetextureviewmatrix_ == NULL) { - projectivetextureviewmatrix_ = new ::pybullet_grpc::matrix4x4; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.RequestCameraImageCommand.projectiveTextureViewMatrix) - return projectivetextureviewmatrix_; +inline const ::pybullet_grpc::matrix4x4& RequestCameraImageCommand::projectivetextureviewmatrix() const { + const ::pybullet_grpc::matrix4x4* p = projectivetextureviewmatrix_; + // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.projectiveTextureViewMatrix) + return p != NULL ? *p : *reinterpret_cast( + &::pybullet_grpc::_matrix4x4_default_instance_); } inline ::pybullet_grpc::matrix4x4* RequestCameraImageCommand::release_projectivetextureviewmatrix() { // @@protoc_insertion_point(field_release:pybullet_grpc.RequestCameraImageCommand.projectiveTextureViewMatrix) @@ -9669,14 +10932,31 @@ inline ::pybullet_grpc::matrix4x4* RequestCameraImageCommand::release_projective projectivetextureviewmatrix_ = NULL; return temp; } +inline ::pybullet_grpc::matrix4x4* RequestCameraImageCommand::mutable_projectivetextureviewmatrix() { + + if (projectivetextureviewmatrix_ == NULL) { + auto* p = CreateMaybeMessage<::pybullet_grpc::matrix4x4>(GetArenaNoVirtual()); + projectivetextureviewmatrix_ = p; + } + // @@protoc_insertion_point(field_mutable:pybullet_grpc.RequestCameraImageCommand.projectiveTextureViewMatrix) + return projectivetextureviewmatrix_; +} inline void RequestCameraImageCommand::set_allocated_projectivetextureviewmatrix(::pybullet_grpc::matrix4x4* projectivetextureviewmatrix) { - delete projectivetextureviewmatrix_; - projectivetextureviewmatrix_ = projectivetextureviewmatrix; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete projectivetextureviewmatrix_; + } if (projectivetextureviewmatrix) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + projectivetextureviewmatrix = ::google::protobuf::internal::GetOwnedMessage( + message_arena, projectivetextureviewmatrix, submessage_arena); + } } else { } + projectivetextureviewmatrix_ = projectivetextureviewmatrix; // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.RequestCameraImageCommand.projectiveTextureViewMatrix) } @@ -9685,21 +10965,19 @@ inline bool RequestCameraImageCommand::has_projectivetextureprojectionmatrix() c return this != internal_default_instance() && projectivetextureprojectionmatrix_ != NULL; } inline void RequestCameraImageCommand::clear_projectivetextureprojectionmatrix() { - if (GetArenaNoVirtual() == NULL && projectivetextureprojectionmatrix_ != NULL) delete projectivetextureprojectionmatrix_; + if (GetArenaNoVirtual() == NULL && projectivetextureprojectionmatrix_ != NULL) { + delete projectivetextureprojectionmatrix_; + } projectivetextureprojectionmatrix_ = NULL; } -inline const ::pybullet_grpc::matrix4x4& RequestCameraImageCommand::projectivetextureprojectionmatrix() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.projectiveTextureProjectionMatrix) - return projectivetextureprojectionmatrix_ != NULL ? *projectivetextureprojectionmatrix_ - : *::pybullet_grpc::matrix4x4::internal_default_instance(); +inline const ::pybullet_grpc::matrix4x4& RequestCameraImageCommand::_internal_projectivetextureprojectionmatrix() const { + return *projectivetextureprojectionmatrix_; } -inline ::pybullet_grpc::matrix4x4* RequestCameraImageCommand::mutable_projectivetextureprojectionmatrix() { - - if (projectivetextureprojectionmatrix_ == NULL) { - projectivetextureprojectionmatrix_ = new ::pybullet_grpc::matrix4x4; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.RequestCameraImageCommand.projectiveTextureProjectionMatrix) - return projectivetextureprojectionmatrix_; +inline const ::pybullet_grpc::matrix4x4& RequestCameraImageCommand::projectivetextureprojectionmatrix() const { + const ::pybullet_grpc::matrix4x4* p = projectivetextureprojectionmatrix_; + // @@protoc_insertion_point(field_get:pybullet_grpc.RequestCameraImageCommand.projectiveTextureProjectionMatrix) + return p != NULL ? *p : *reinterpret_cast( + &::pybullet_grpc::_matrix4x4_default_instance_); } inline ::pybullet_grpc::matrix4x4* RequestCameraImageCommand::release_projectivetextureprojectionmatrix() { // @@protoc_insertion_point(field_release:pybullet_grpc.RequestCameraImageCommand.projectiveTextureProjectionMatrix) @@ -9708,14 +10986,31 @@ inline ::pybullet_grpc::matrix4x4* RequestCameraImageCommand::release_projective projectivetextureprojectionmatrix_ = NULL; return temp; } +inline ::pybullet_grpc::matrix4x4* RequestCameraImageCommand::mutable_projectivetextureprojectionmatrix() { + + if (projectivetextureprojectionmatrix_ == NULL) { + auto* p = CreateMaybeMessage<::pybullet_grpc::matrix4x4>(GetArenaNoVirtual()); + projectivetextureprojectionmatrix_ = p; + } + // @@protoc_insertion_point(field_mutable:pybullet_grpc.RequestCameraImageCommand.projectiveTextureProjectionMatrix) + return projectivetextureprojectionmatrix_; +} inline void RequestCameraImageCommand::set_allocated_projectivetextureprojectionmatrix(::pybullet_grpc::matrix4x4* projectivetextureprojectionmatrix) { - delete projectivetextureprojectionmatrix_; - projectivetextureprojectionmatrix_ = projectivetextureprojectionmatrix; + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete projectivetextureprojectionmatrix_; + } if (projectivetextureprojectionmatrix) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + projectivetextureprojectionmatrix = ::google::protobuf::internal::GetOwnedMessage( + message_arena, projectivetextureprojectionmatrix, submessage_arena); + } } else { } + projectivetextureprojectionmatrix_ = projectivetextureprojectionmatrix; // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.RequestCameraImageCommand.projectiveTextureProjectionMatrix) } @@ -9830,7 +11125,14 @@ inline void PyBulletCommand::set_binaryblob(int index, const ::std::string& valu // @@protoc_insertion_point(field_set:pybullet_grpc.PyBulletCommand.binaryBlob) binaryblob_.Mutable(index)->assign(value); } +#if LANG_CXX11 +inline void PyBulletCommand::set_binaryblob(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:pybullet_grpc.PyBulletCommand.binaryBlob) + binaryblob_.Mutable(index)->assign(std::move(value)); +} +#endif inline void PyBulletCommand::set_binaryblob(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); binaryblob_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:pybullet_grpc.PyBulletCommand.binaryBlob) } @@ -9847,7 +11149,14 @@ inline void PyBulletCommand::add_binaryblob(const ::std::string& value) { binaryblob_.Add()->assign(value); // @@protoc_insertion_point(field_add:pybullet_grpc.PyBulletCommand.binaryBlob) } +#if LANG_CXX11 +inline void PyBulletCommand::add_binaryblob(::std::string&& value) { + binaryblob_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:pybullet_grpc.PyBulletCommand.binaryBlob) +} +#endif inline void PyBulletCommand::add_binaryblob(const char* value) { + GOOGLE_DCHECK(value != NULL); binaryblob_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:pybullet_grpc.PyBulletCommand.binaryBlob) } @@ -9885,7 +11194,14 @@ inline void PyBulletCommand::set_unknowncommandbinaryblob(int index, const ::std // @@protoc_insertion_point(field_set:pybullet_grpc.PyBulletCommand.unknownCommandBinaryBlob) unknowncommandbinaryblob_.Mutable(index)->assign(value); } +#if LANG_CXX11 +inline void PyBulletCommand::set_unknowncommandbinaryblob(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:pybullet_grpc.PyBulletCommand.unknownCommandBinaryBlob) + unknowncommandbinaryblob_.Mutable(index)->assign(std::move(value)); +} +#endif inline void PyBulletCommand::set_unknowncommandbinaryblob(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); unknowncommandbinaryblob_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:pybullet_grpc.PyBulletCommand.unknownCommandBinaryBlob) } @@ -9902,7 +11218,14 @@ inline void PyBulletCommand::add_unknowncommandbinaryblob(const ::std::string& v unknowncommandbinaryblob_.Add()->assign(value); // @@protoc_insertion_point(field_add:pybullet_grpc.PyBulletCommand.unknownCommandBinaryBlob) } +#if LANG_CXX11 +inline void PyBulletCommand::add_unknowncommandbinaryblob(::std::string&& value) { + unknowncommandbinaryblob_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:pybullet_grpc.PyBulletCommand.unknownCommandBinaryBlob) +} +#endif inline void PyBulletCommand::add_unknowncommandbinaryblob(const char* value) { + GOOGLE_DCHECK(value != NULL); unknowncommandbinaryblob_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:pybullet_grpc.PyBulletCommand.unknownCommandBinaryBlob) } @@ -9934,39 +11257,35 @@ inline void PyBulletCommand::clear_loadurdfcommand() { clear_has_commands(); } } -inline const ::pybullet_grpc::LoadUrdfCommand& PyBulletCommand::loadurdfcommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.loadUrdfCommand) - return has_loadurdfcommand() - ? *commands_.loadurdfcommand_ - : ::pybullet_grpc::LoadUrdfCommand::default_instance(); -} -inline ::pybullet_grpc::LoadUrdfCommand* PyBulletCommand::mutable_loadurdfcommand() { - if (!has_loadurdfcommand()) { - clear_commands(); - set_has_loadurdfcommand(); - commands_.loadurdfcommand_ = new ::pybullet_grpc::LoadUrdfCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.loadUrdfCommand) - return commands_.loadurdfcommand_; +inline const ::pybullet_grpc::LoadUrdfCommand& PyBulletCommand::_internal_loadurdfcommand() const { + return *commands_.loadurdfcommand_; } inline ::pybullet_grpc::LoadUrdfCommand* PyBulletCommand::release_loadurdfcommand() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.loadUrdfCommand) if (has_loadurdfcommand()) { clear_has_commands(); - ::pybullet_grpc::LoadUrdfCommand* temp = commands_.loadurdfcommand_; + ::pybullet_grpc::LoadUrdfCommand* temp = commands_.loadurdfcommand_; commands_.loadurdfcommand_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletCommand::set_allocated_loadurdfcommand(::pybullet_grpc::LoadUrdfCommand* loadurdfcommand) { - clear_commands(); - if (loadurdfcommand) { +inline const ::pybullet_grpc::LoadUrdfCommand& PyBulletCommand::loadurdfcommand() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.loadUrdfCommand) + return has_loadurdfcommand() + ? *commands_.loadurdfcommand_ + : *reinterpret_cast< ::pybullet_grpc::LoadUrdfCommand*>(&::pybullet_grpc::_LoadUrdfCommand_default_instance_); +} +inline ::pybullet_grpc::LoadUrdfCommand* PyBulletCommand::mutable_loadurdfcommand() { + if (!has_loadurdfcommand()) { + clear_commands(); set_has_loadurdfcommand(); - commands_.loadurdfcommand_ = loadurdfcommand; + commands_.loadurdfcommand_ = CreateMaybeMessage< ::pybullet_grpc::LoadUrdfCommand >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.loadUrdfCommand) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.loadUrdfCommand) + return commands_.loadurdfcommand_; } // .pybullet_grpc.TerminateServerCommand terminateServerCommand = 5; @@ -9982,39 +11301,35 @@ inline void PyBulletCommand::clear_terminateservercommand() { clear_has_commands(); } } -inline const ::pybullet_grpc::TerminateServerCommand& PyBulletCommand::terminateservercommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.terminateServerCommand) - return has_terminateservercommand() - ? *commands_.terminateservercommand_ - : ::pybullet_grpc::TerminateServerCommand::default_instance(); -} -inline ::pybullet_grpc::TerminateServerCommand* PyBulletCommand::mutable_terminateservercommand() { - if (!has_terminateservercommand()) { - clear_commands(); - set_has_terminateservercommand(); - commands_.terminateservercommand_ = new ::pybullet_grpc::TerminateServerCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.terminateServerCommand) - return commands_.terminateservercommand_; +inline const ::pybullet_grpc::TerminateServerCommand& PyBulletCommand::_internal_terminateservercommand() const { + return *commands_.terminateservercommand_; } inline ::pybullet_grpc::TerminateServerCommand* PyBulletCommand::release_terminateservercommand() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.terminateServerCommand) if (has_terminateservercommand()) { clear_has_commands(); - ::pybullet_grpc::TerminateServerCommand* temp = commands_.terminateservercommand_; + ::pybullet_grpc::TerminateServerCommand* temp = commands_.terminateservercommand_; commands_.terminateservercommand_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletCommand::set_allocated_terminateservercommand(::pybullet_grpc::TerminateServerCommand* terminateservercommand) { - clear_commands(); - if (terminateservercommand) { +inline const ::pybullet_grpc::TerminateServerCommand& PyBulletCommand::terminateservercommand() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.terminateServerCommand) + return has_terminateservercommand() + ? *commands_.terminateservercommand_ + : *reinterpret_cast< ::pybullet_grpc::TerminateServerCommand*>(&::pybullet_grpc::_TerminateServerCommand_default_instance_); +} +inline ::pybullet_grpc::TerminateServerCommand* PyBulletCommand::mutable_terminateservercommand() { + if (!has_terminateservercommand()) { + clear_commands(); set_has_terminateservercommand(); - commands_.terminateservercommand_ = terminateservercommand; + commands_.terminateservercommand_ = CreateMaybeMessage< ::pybullet_grpc::TerminateServerCommand >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.terminateServerCommand) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.terminateServerCommand) + return commands_.terminateservercommand_; } // .pybullet_grpc.StepSimulationCommand stepSimulationCommand = 6; @@ -10030,39 +11345,35 @@ inline void PyBulletCommand::clear_stepsimulationcommand() { clear_has_commands(); } } -inline const ::pybullet_grpc::StepSimulationCommand& PyBulletCommand::stepsimulationcommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.stepSimulationCommand) - return has_stepsimulationcommand() - ? *commands_.stepsimulationcommand_ - : ::pybullet_grpc::StepSimulationCommand::default_instance(); -} -inline ::pybullet_grpc::StepSimulationCommand* PyBulletCommand::mutable_stepsimulationcommand() { - if (!has_stepsimulationcommand()) { - clear_commands(); - set_has_stepsimulationcommand(); - commands_.stepsimulationcommand_ = new ::pybullet_grpc::StepSimulationCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.stepSimulationCommand) - return commands_.stepsimulationcommand_; +inline const ::pybullet_grpc::StepSimulationCommand& PyBulletCommand::_internal_stepsimulationcommand() const { + return *commands_.stepsimulationcommand_; } inline ::pybullet_grpc::StepSimulationCommand* PyBulletCommand::release_stepsimulationcommand() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.stepSimulationCommand) if (has_stepsimulationcommand()) { clear_has_commands(); - ::pybullet_grpc::StepSimulationCommand* temp = commands_.stepsimulationcommand_; + ::pybullet_grpc::StepSimulationCommand* temp = commands_.stepsimulationcommand_; commands_.stepsimulationcommand_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletCommand::set_allocated_stepsimulationcommand(::pybullet_grpc::StepSimulationCommand* stepsimulationcommand) { - clear_commands(); - if (stepsimulationcommand) { +inline const ::pybullet_grpc::StepSimulationCommand& PyBulletCommand::stepsimulationcommand() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.stepSimulationCommand) + return has_stepsimulationcommand() + ? *commands_.stepsimulationcommand_ + : *reinterpret_cast< ::pybullet_grpc::StepSimulationCommand*>(&::pybullet_grpc::_StepSimulationCommand_default_instance_); +} +inline ::pybullet_grpc::StepSimulationCommand* PyBulletCommand::mutable_stepsimulationcommand() { + if (!has_stepsimulationcommand()) { + clear_commands(); set_has_stepsimulationcommand(); - commands_.stepsimulationcommand_ = stepsimulationcommand; + commands_.stepsimulationcommand_ = CreateMaybeMessage< ::pybullet_grpc::StepSimulationCommand >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.stepSimulationCommand) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.stepSimulationCommand) + return commands_.stepsimulationcommand_; } // .pybullet_grpc.LoadSdfCommand loadSdfCommand = 7; @@ -10078,39 +11389,35 @@ inline void PyBulletCommand::clear_loadsdfcommand() { clear_has_commands(); } } -inline const ::pybullet_grpc::LoadSdfCommand& PyBulletCommand::loadsdfcommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.loadSdfCommand) - return has_loadsdfcommand() - ? *commands_.loadsdfcommand_ - : ::pybullet_grpc::LoadSdfCommand::default_instance(); -} -inline ::pybullet_grpc::LoadSdfCommand* PyBulletCommand::mutable_loadsdfcommand() { - if (!has_loadsdfcommand()) { - clear_commands(); - set_has_loadsdfcommand(); - commands_.loadsdfcommand_ = new ::pybullet_grpc::LoadSdfCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.loadSdfCommand) - return commands_.loadsdfcommand_; +inline const ::pybullet_grpc::LoadSdfCommand& PyBulletCommand::_internal_loadsdfcommand() const { + return *commands_.loadsdfcommand_; } inline ::pybullet_grpc::LoadSdfCommand* PyBulletCommand::release_loadsdfcommand() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.loadSdfCommand) if (has_loadsdfcommand()) { clear_has_commands(); - ::pybullet_grpc::LoadSdfCommand* temp = commands_.loadsdfcommand_; + ::pybullet_grpc::LoadSdfCommand* temp = commands_.loadsdfcommand_; commands_.loadsdfcommand_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletCommand::set_allocated_loadsdfcommand(::pybullet_grpc::LoadSdfCommand* loadsdfcommand) { - clear_commands(); - if (loadsdfcommand) { +inline const ::pybullet_grpc::LoadSdfCommand& PyBulletCommand::loadsdfcommand() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.loadSdfCommand) + return has_loadsdfcommand() + ? *commands_.loadsdfcommand_ + : *reinterpret_cast< ::pybullet_grpc::LoadSdfCommand*>(&::pybullet_grpc::_LoadSdfCommand_default_instance_); +} +inline ::pybullet_grpc::LoadSdfCommand* PyBulletCommand::mutable_loadsdfcommand() { + if (!has_loadsdfcommand()) { + clear_commands(); set_has_loadsdfcommand(); - commands_.loadsdfcommand_ = loadsdfcommand; + commands_.loadsdfcommand_ = CreateMaybeMessage< ::pybullet_grpc::LoadSdfCommand >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.loadSdfCommand) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.loadSdfCommand) + return commands_.loadsdfcommand_; } // .pybullet_grpc.LoadMjcfCommand loadMjcfCommand = 8; @@ -10126,39 +11433,35 @@ inline void PyBulletCommand::clear_loadmjcfcommand() { clear_has_commands(); } } -inline const ::pybullet_grpc::LoadMjcfCommand& PyBulletCommand::loadmjcfcommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.loadMjcfCommand) - return has_loadmjcfcommand() - ? *commands_.loadmjcfcommand_ - : ::pybullet_grpc::LoadMjcfCommand::default_instance(); -} -inline ::pybullet_grpc::LoadMjcfCommand* PyBulletCommand::mutable_loadmjcfcommand() { - if (!has_loadmjcfcommand()) { - clear_commands(); - set_has_loadmjcfcommand(); - commands_.loadmjcfcommand_ = new ::pybullet_grpc::LoadMjcfCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.loadMjcfCommand) - return commands_.loadmjcfcommand_; +inline const ::pybullet_grpc::LoadMjcfCommand& PyBulletCommand::_internal_loadmjcfcommand() const { + return *commands_.loadmjcfcommand_; } inline ::pybullet_grpc::LoadMjcfCommand* PyBulletCommand::release_loadmjcfcommand() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.loadMjcfCommand) if (has_loadmjcfcommand()) { clear_has_commands(); - ::pybullet_grpc::LoadMjcfCommand* temp = commands_.loadmjcfcommand_; + ::pybullet_grpc::LoadMjcfCommand* temp = commands_.loadmjcfcommand_; commands_.loadmjcfcommand_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletCommand::set_allocated_loadmjcfcommand(::pybullet_grpc::LoadMjcfCommand* loadmjcfcommand) { - clear_commands(); - if (loadmjcfcommand) { +inline const ::pybullet_grpc::LoadMjcfCommand& PyBulletCommand::loadmjcfcommand() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.loadMjcfCommand) + return has_loadmjcfcommand() + ? *commands_.loadmjcfcommand_ + : *reinterpret_cast< ::pybullet_grpc::LoadMjcfCommand*>(&::pybullet_grpc::_LoadMjcfCommand_default_instance_); +} +inline ::pybullet_grpc::LoadMjcfCommand* PyBulletCommand::mutable_loadmjcfcommand() { + if (!has_loadmjcfcommand()) { + clear_commands(); set_has_loadmjcfcommand(); - commands_.loadmjcfcommand_ = loadmjcfcommand; + commands_.loadmjcfcommand_ = CreateMaybeMessage< ::pybullet_grpc::LoadMjcfCommand >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.loadMjcfCommand) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.loadMjcfCommand) + return commands_.loadmjcfcommand_; } // .pybullet_grpc.ChangeDynamicsCommand changeDynamicsCommand = 9; @@ -10174,39 +11477,35 @@ inline void PyBulletCommand::clear_changedynamicscommand() { clear_has_commands(); } } -inline const ::pybullet_grpc::ChangeDynamicsCommand& PyBulletCommand::changedynamicscommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.changeDynamicsCommand) - return has_changedynamicscommand() - ? *commands_.changedynamicscommand_ - : ::pybullet_grpc::ChangeDynamicsCommand::default_instance(); -} -inline ::pybullet_grpc::ChangeDynamicsCommand* PyBulletCommand::mutable_changedynamicscommand() { - if (!has_changedynamicscommand()) { - clear_commands(); - set_has_changedynamicscommand(); - commands_.changedynamicscommand_ = new ::pybullet_grpc::ChangeDynamicsCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.changeDynamicsCommand) - return commands_.changedynamicscommand_; +inline const ::pybullet_grpc::ChangeDynamicsCommand& PyBulletCommand::_internal_changedynamicscommand() const { + return *commands_.changedynamicscommand_; } inline ::pybullet_grpc::ChangeDynamicsCommand* PyBulletCommand::release_changedynamicscommand() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.changeDynamicsCommand) if (has_changedynamicscommand()) { clear_has_commands(); - ::pybullet_grpc::ChangeDynamicsCommand* temp = commands_.changedynamicscommand_; + ::pybullet_grpc::ChangeDynamicsCommand* temp = commands_.changedynamicscommand_; commands_.changedynamicscommand_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletCommand::set_allocated_changedynamicscommand(::pybullet_grpc::ChangeDynamicsCommand* changedynamicscommand) { - clear_commands(); - if (changedynamicscommand) { +inline const ::pybullet_grpc::ChangeDynamicsCommand& PyBulletCommand::changedynamicscommand() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.changeDynamicsCommand) + return has_changedynamicscommand() + ? *commands_.changedynamicscommand_ + : *reinterpret_cast< ::pybullet_grpc::ChangeDynamicsCommand*>(&::pybullet_grpc::_ChangeDynamicsCommand_default_instance_); +} +inline ::pybullet_grpc::ChangeDynamicsCommand* PyBulletCommand::mutable_changedynamicscommand() { + if (!has_changedynamicscommand()) { + clear_commands(); set_has_changedynamicscommand(); - commands_.changedynamicscommand_ = changedynamicscommand; + commands_.changedynamicscommand_ = CreateMaybeMessage< ::pybullet_grpc::ChangeDynamicsCommand >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.changeDynamicsCommand) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.changeDynamicsCommand) + return commands_.changedynamicscommand_; } // .pybullet_grpc.GetDynamicsCommand getDynamicsCommand = 10; @@ -10222,39 +11521,35 @@ inline void PyBulletCommand::clear_getdynamicscommand() { clear_has_commands(); } } -inline const ::pybullet_grpc::GetDynamicsCommand& PyBulletCommand::getdynamicscommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.getDynamicsCommand) - return has_getdynamicscommand() - ? *commands_.getdynamicscommand_ - : ::pybullet_grpc::GetDynamicsCommand::default_instance(); -} -inline ::pybullet_grpc::GetDynamicsCommand* PyBulletCommand::mutable_getdynamicscommand() { - if (!has_getdynamicscommand()) { - clear_commands(); - set_has_getdynamicscommand(); - commands_.getdynamicscommand_ = new ::pybullet_grpc::GetDynamicsCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.getDynamicsCommand) - return commands_.getdynamicscommand_; +inline const ::pybullet_grpc::GetDynamicsCommand& PyBulletCommand::_internal_getdynamicscommand() const { + return *commands_.getdynamicscommand_; } inline ::pybullet_grpc::GetDynamicsCommand* PyBulletCommand::release_getdynamicscommand() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.getDynamicsCommand) if (has_getdynamicscommand()) { clear_has_commands(); - ::pybullet_grpc::GetDynamicsCommand* temp = commands_.getdynamicscommand_; + ::pybullet_grpc::GetDynamicsCommand* temp = commands_.getdynamicscommand_; commands_.getdynamicscommand_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletCommand::set_allocated_getdynamicscommand(::pybullet_grpc::GetDynamicsCommand* getdynamicscommand) { - clear_commands(); - if (getdynamicscommand) { +inline const ::pybullet_grpc::GetDynamicsCommand& PyBulletCommand::getdynamicscommand() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.getDynamicsCommand) + return has_getdynamicscommand() + ? *commands_.getdynamicscommand_ + : *reinterpret_cast< ::pybullet_grpc::GetDynamicsCommand*>(&::pybullet_grpc::_GetDynamicsCommand_default_instance_); +} +inline ::pybullet_grpc::GetDynamicsCommand* PyBulletCommand::mutable_getdynamicscommand() { + if (!has_getdynamicscommand()) { + clear_commands(); set_has_getdynamicscommand(); - commands_.getdynamicscommand_ = getdynamicscommand; + commands_.getdynamicscommand_ = CreateMaybeMessage< ::pybullet_grpc::GetDynamicsCommand >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.getDynamicsCommand) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.getDynamicsCommand) + return commands_.getdynamicscommand_; } // .pybullet_grpc.InitPoseCommand initPoseCommand = 11; @@ -10270,39 +11565,35 @@ inline void PyBulletCommand::clear_initposecommand() { clear_has_commands(); } } -inline const ::pybullet_grpc::InitPoseCommand& PyBulletCommand::initposecommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.initPoseCommand) - return has_initposecommand() - ? *commands_.initposecommand_ - : ::pybullet_grpc::InitPoseCommand::default_instance(); -} -inline ::pybullet_grpc::InitPoseCommand* PyBulletCommand::mutable_initposecommand() { - if (!has_initposecommand()) { - clear_commands(); - set_has_initposecommand(); - commands_.initposecommand_ = new ::pybullet_grpc::InitPoseCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.initPoseCommand) - return commands_.initposecommand_; +inline const ::pybullet_grpc::InitPoseCommand& PyBulletCommand::_internal_initposecommand() const { + return *commands_.initposecommand_; } inline ::pybullet_grpc::InitPoseCommand* PyBulletCommand::release_initposecommand() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.initPoseCommand) if (has_initposecommand()) { clear_has_commands(); - ::pybullet_grpc::InitPoseCommand* temp = commands_.initposecommand_; + ::pybullet_grpc::InitPoseCommand* temp = commands_.initposecommand_; commands_.initposecommand_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletCommand::set_allocated_initposecommand(::pybullet_grpc::InitPoseCommand* initposecommand) { - clear_commands(); - if (initposecommand) { +inline const ::pybullet_grpc::InitPoseCommand& PyBulletCommand::initposecommand() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.initPoseCommand) + return has_initposecommand() + ? *commands_.initposecommand_ + : *reinterpret_cast< ::pybullet_grpc::InitPoseCommand*>(&::pybullet_grpc::_InitPoseCommand_default_instance_); +} +inline ::pybullet_grpc::InitPoseCommand* PyBulletCommand::mutable_initposecommand() { + if (!has_initposecommand()) { + clear_commands(); set_has_initposecommand(); - commands_.initposecommand_ = initposecommand; + commands_.initposecommand_ = CreateMaybeMessage< ::pybullet_grpc::InitPoseCommand >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.initPoseCommand) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.initPoseCommand) + return commands_.initposecommand_; } // .pybullet_grpc.RequestActualStateCommand requestActualStateCommand = 12; @@ -10318,39 +11609,35 @@ inline void PyBulletCommand::clear_requestactualstatecommand() { clear_has_commands(); } } -inline const ::pybullet_grpc::RequestActualStateCommand& PyBulletCommand::requestactualstatecommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.requestActualStateCommand) - return has_requestactualstatecommand() - ? *commands_.requestactualstatecommand_ - : ::pybullet_grpc::RequestActualStateCommand::default_instance(); -} -inline ::pybullet_grpc::RequestActualStateCommand* PyBulletCommand::mutable_requestactualstatecommand() { - if (!has_requestactualstatecommand()) { - clear_commands(); - set_has_requestactualstatecommand(); - commands_.requestactualstatecommand_ = new ::pybullet_grpc::RequestActualStateCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.requestActualStateCommand) - return commands_.requestactualstatecommand_; +inline const ::pybullet_grpc::RequestActualStateCommand& PyBulletCommand::_internal_requestactualstatecommand() const { + return *commands_.requestactualstatecommand_; } inline ::pybullet_grpc::RequestActualStateCommand* PyBulletCommand::release_requestactualstatecommand() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.requestActualStateCommand) if (has_requestactualstatecommand()) { clear_has_commands(); - ::pybullet_grpc::RequestActualStateCommand* temp = commands_.requestactualstatecommand_; + ::pybullet_grpc::RequestActualStateCommand* temp = commands_.requestactualstatecommand_; commands_.requestactualstatecommand_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletCommand::set_allocated_requestactualstatecommand(::pybullet_grpc::RequestActualStateCommand* requestactualstatecommand) { - clear_commands(); - if (requestactualstatecommand) { +inline const ::pybullet_grpc::RequestActualStateCommand& PyBulletCommand::requestactualstatecommand() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.requestActualStateCommand) + return has_requestactualstatecommand() + ? *commands_.requestactualstatecommand_ + : *reinterpret_cast< ::pybullet_grpc::RequestActualStateCommand*>(&::pybullet_grpc::_RequestActualStateCommand_default_instance_); +} +inline ::pybullet_grpc::RequestActualStateCommand* PyBulletCommand::mutable_requestactualstatecommand() { + if (!has_requestactualstatecommand()) { + clear_commands(); set_has_requestactualstatecommand(); - commands_.requestactualstatecommand_ = requestactualstatecommand; + commands_.requestactualstatecommand_ = CreateMaybeMessage< ::pybullet_grpc::RequestActualStateCommand >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.requestActualStateCommand) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.requestActualStateCommand) + return commands_.requestactualstatecommand_; } // .pybullet_grpc.ConfigureOpenGLVisualizerCommand configureOpenGLVisualizerCommand = 13; @@ -10366,39 +11653,35 @@ inline void PyBulletCommand::clear_configureopenglvisualizercommand() { clear_has_commands(); } } -inline const ::pybullet_grpc::ConfigureOpenGLVisualizerCommand& PyBulletCommand::configureopenglvisualizercommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.configureOpenGLVisualizerCommand) - return has_configureopenglvisualizercommand() - ? *commands_.configureopenglvisualizercommand_ - : ::pybullet_grpc::ConfigureOpenGLVisualizerCommand::default_instance(); -} -inline ::pybullet_grpc::ConfigureOpenGLVisualizerCommand* PyBulletCommand::mutable_configureopenglvisualizercommand() { - if (!has_configureopenglvisualizercommand()) { - clear_commands(); - set_has_configureopenglvisualizercommand(); - commands_.configureopenglvisualizercommand_ = new ::pybullet_grpc::ConfigureOpenGLVisualizerCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.configureOpenGLVisualizerCommand) - return commands_.configureopenglvisualizercommand_; +inline const ::pybullet_grpc::ConfigureOpenGLVisualizerCommand& PyBulletCommand::_internal_configureopenglvisualizercommand() const { + return *commands_.configureopenglvisualizercommand_; } inline ::pybullet_grpc::ConfigureOpenGLVisualizerCommand* PyBulletCommand::release_configureopenglvisualizercommand() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.configureOpenGLVisualizerCommand) if (has_configureopenglvisualizercommand()) { clear_has_commands(); - ::pybullet_grpc::ConfigureOpenGLVisualizerCommand* temp = commands_.configureopenglvisualizercommand_; + ::pybullet_grpc::ConfigureOpenGLVisualizerCommand* temp = commands_.configureopenglvisualizercommand_; commands_.configureopenglvisualizercommand_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletCommand::set_allocated_configureopenglvisualizercommand(::pybullet_grpc::ConfigureOpenGLVisualizerCommand* configureopenglvisualizercommand) { - clear_commands(); - if (configureopenglvisualizercommand) { +inline const ::pybullet_grpc::ConfigureOpenGLVisualizerCommand& PyBulletCommand::configureopenglvisualizercommand() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.configureOpenGLVisualizerCommand) + return has_configureopenglvisualizercommand() + ? *commands_.configureopenglvisualizercommand_ + : *reinterpret_cast< ::pybullet_grpc::ConfigureOpenGLVisualizerCommand*>(&::pybullet_grpc::_ConfigureOpenGLVisualizerCommand_default_instance_); +} +inline ::pybullet_grpc::ConfigureOpenGLVisualizerCommand* PyBulletCommand::mutable_configureopenglvisualizercommand() { + if (!has_configureopenglvisualizercommand()) { + clear_commands(); set_has_configureopenglvisualizercommand(); - commands_.configureopenglvisualizercommand_ = configureopenglvisualizercommand; + commands_.configureopenglvisualizercommand_ = CreateMaybeMessage< ::pybullet_grpc::ConfigureOpenGLVisualizerCommand >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.configureOpenGLVisualizerCommand) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.configureOpenGLVisualizerCommand) + return commands_.configureopenglvisualizercommand_; } // .pybullet_grpc.SyncBodiesCommand syncBodiesCommand = 14; @@ -10414,39 +11697,35 @@ inline void PyBulletCommand::clear_syncbodiescommand() { clear_has_commands(); } } -inline const ::pybullet_grpc::SyncBodiesCommand& PyBulletCommand::syncbodiescommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.syncBodiesCommand) - return has_syncbodiescommand() - ? *commands_.syncbodiescommand_ - : ::pybullet_grpc::SyncBodiesCommand::default_instance(); -} -inline ::pybullet_grpc::SyncBodiesCommand* PyBulletCommand::mutable_syncbodiescommand() { - if (!has_syncbodiescommand()) { - clear_commands(); - set_has_syncbodiescommand(); - commands_.syncbodiescommand_ = new ::pybullet_grpc::SyncBodiesCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.syncBodiesCommand) - return commands_.syncbodiescommand_; +inline const ::pybullet_grpc::SyncBodiesCommand& PyBulletCommand::_internal_syncbodiescommand() const { + return *commands_.syncbodiescommand_; } inline ::pybullet_grpc::SyncBodiesCommand* PyBulletCommand::release_syncbodiescommand() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.syncBodiesCommand) if (has_syncbodiescommand()) { clear_has_commands(); - ::pybullet_grpc::SyncBodiesCommand* temp = commands_.syncbodiescommand_; + ::pybullet_grpc::SyncBodiesCommand* temp = commands_.syncbodiescommand_; commands_.syncbodiescommand_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletCommand::set_allocated_syncbodiescommand(::pybullet_grpc::SyncBodiesCommand* syncbodiescommand) { - clear_commands(); - if (syncbodiescommand) { +inline const ::pybullet_grpc::SyncBodiesCommand& PyBulletCommand::syncbodiescommand() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.syncBodiesCommand) + return has_syncbodiescommand() + ? *commands_.syncbodiescommand_ + : *reinterpret_cast< ::pybullet_grpc::SyncBodiesCommand*>(&::pybullet_grpc::_SyncBodiesCommand_default_instance_); +} +inline ::pybullet_grpc::SyncBodiesCommand* PyBulletCommand::mutable_syncbodiescommand() { + if (!has_syncbodiescommand()) { + clear_commands(); set_has_syncbodiescommand(); - commands_.syncbodiescommand_ = syncbodiescommand; + commands_.syncbodiescommand_ = CreateMaybeMessage< ::pybullet_grpc::SyncBodiesCommand >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.syncBodiesCommand) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.syncBodiesCommand) + return commands_.syncbodiescommand_; } // .pybullet_grpc.RequestBodyInfoCommand requestBodyInfoCommand = 15; @@ -10462,39 +11741,35 @@ inline void PyBulletCommand::clear_requestbodyinfocommand() { clear_has_commands(); } } -inline const ::pybullet_grpc::RequestBodyInfoCommand& PyBulletCommand::requestbodyinfocommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.requestBodyInfoCommand) - return has_requestbodyinfocommand() - ? *commands_.requestbodyinfocommand_ - : ::pybullet_grpc::RequestBodyInfoCommand::default_instance(); -} -inline ::pybullet_grpc::RequestBodyInfoCommand* PyBulletCommand::mutable_requestbodyinfocommand() { - if (!has_requestbodyinfocommand()) { - clear_commands(); - set_has_requestbodyinfocommand(); - commands_.requestbodyinfocommand_ = new ::pybullet_grpc::RequestBodyInfoCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.requestBodyInfoCommand) - return commands_.requestbodyinfocommand_; +inline const ::pybullet_grpc::RequestBodyInfoCommand& PyBulletCommand::_internal_requestbodyinfocommand() const { + return *commands_.requestbodyinfocommand_; } inline ::pybullet_grpc::RequestBodyInfoCommand* PyBulletCommand::release_requestbodyinfocommand() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.requestBodyInfoCommand) if (has_requestbodyinfocommand()) { clear_has_commands(); - ::pybullet_grpc::RequestBodyInfoCommand* temp = commands_.requestbodyinfocommand_; + ::pybullet_grpc::RequestBodyInfoCommand* temp = commands_.requestbodyinfocommand_; commands_.requestbodyinfocommand_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletCommand::set_allocated_requestbodyinfocommand(::pybullet_grpc::RequestBodyInfoCommand* requestbodyinfocommand) { - clear_commands(); - if (requestbodyinfocommand) { +inline const ::pybullet_grpc::RequestBodyInfoCommand& PyBulletCommand::requestbodyinfocommand() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.requestBodyInfoCommand) + return has_requestbodyinfocommand() + ? *commands_.requestbodyinfocommand_ + : *reinterpret_cast< ::pybullet_grpc::RequestBodyInfoCommand*>(&::pybullet_grpc::_RequestBodyInfoCommand_default_instance_); +} +inline ::pybullet_grpc::RequestBodyInfoCommand* PyBulletCommand::mutable_requestbodyinfocommand() { + if (!has_requestbodyinfocommand()) { + clear_commands(); set_has_requestbodyinfocommand(); - commands_.requestbodyinfocommand_ = requestbodyinfocommand; + commands_.requestbodyinfocommand_ = CreateMaybeMessage< ::pybullet_grpc::RequestBodyInfoCommand >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.requestBodyInfoCommand) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.requestBodyInfoCommand) + return commands_.requestbodyinfocommand_; } // .pybullet_grpc.PhysicsSimulationParametersCommand setPhysicsSimulationParametersCommand = 16; @@ -10510,39 +11785,35 @@ inline void PyBulletCommand::clear_setphysicssimulationparameterscommand() { clear_has_commands(); } } -inline const ::pybullet_grpc::PhysicsSimulationParametersCommand& PyBulletCommand::setphysicssimulationparameterscommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.setPhysicsSimulationParametersCommand) - return has_setphysicssimulationparameterscommand() - ? *commands_.setphysicssimulationparameterscommand_ - : ::pybullet_grpc::PhysicsSimulationParametersCommand::default_instance(); -} -inline ::pybullet_grpc::PhysicsSimulationParametersCommand* PyBulletCommand::mutable_setphysicssimulationparameterscommand() { - if (!has_setphysicssimulationparameterscommand()) { - clear_commands(); - set_has_setphysicssimulationparameterscommand(); - commands_.setphysicssimulationparameterscommand_ = new ::pybullet_grpc::PhysicsSimulationParametersCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.setPhysicsSimulationParametersCommand) - return commands_.setphysicssimulationparameterscommand_; +inline const ::pybullet_grpc::PhysicsSimulationParametersCommand& PyBulletCommand::_internal_setphysicssimulationparameterscommand() const { + return *commands_.setphysicssimulationparameterscommand_; } inline ::pybullet_grpc::PhysicsSimulationParametersCommand* PyBulletCommand::release_setphysicssimulationparameterscommand() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.setPhysicsSimulationParametersCommand) if (has_setphysicssimulationparameterscommand()) { clear_has_commands(); - ::pybullet_grpc::PhysicsSimulationParametersCommand* temp = commands_.setphysicssimulationparameterscommand_; + ::pybullet_grpc::PhysicsSimulationParametersCommand* temp = commands_.setphysicssimulationparameterscommand_; commands_.setphysicssimulationparameterscommand_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletCommand::set_allocated_setphysicssimulationparameterscommand(::pybullet_grpc::PhysicsSimulationParametersCommand* setphysicssimulationparameterscommand) { - clear_commands(); - if (setphysicssimulationparameterscommand) { +inline const ::pybullet_grpc::PhysicsSimulationParametersCommand& PyBulletCommand::setphysicssimulationparameterscommand() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.setPhysicsSimulationParametersCommand) + return has_setphysicssimulationparameterscommand() + ? *commands_.setphysicssimulationparameterscommand_ + : *reinterpret_cast< ::pybullet_grpc::PhysicsSimulationParametersCommand*>(&::pybullet_grpc::_PhysicsSimulationParametersCommand_default_instance_); +} +inline ::pybullet_grpc::PhysicsSimulationParametersCommand* PyBulletCommand::mutable_setphysicssimulationparameterscommand() { + if (!has_setphysicssimulationparameterscommand()) { + clear_commands(); set_has_setphysicssimulationparameterscommand(); - commands_.setphysicssimulationparameterscommand_ = setphysicssimulationparameterscommand; + commands_.setphysicssimulationparameterscommand_ = CreateMaybeMessage< ::pybullet_grpc::PhysicsSimulationParametersCommand >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.setPhysicsSimulationParametersCommand) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.setPhysicsSimulationParametersCommand) + return commands_.setphysicssimulationparameterscommand_; } // .pybullet_grpc.JointMotorControlCommand jointMotorControlCommand = 17; @@ -10558,39 +11829,35 @@ inline void PyBulletCommand::clear_jointmotorcontrolcommand() { clear_has_commands(); } } -inline const ::pybullet_grpc::JointMotorControlCommand& PyBulletCommand::jointmotorcontrolcommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.jointMotorControlCommand) - return has_jointmotorcontrolcommand() - ? *commands_.jointmotorcontrolcommand_ - : ::pybullet_grpc::JointMotorControlCommand::default_instance(); -} -inline ::pybullet_grpc::JointMotorControlCommand* PyBulletCommand::mutable_jointmotorcontrolcommand() { - if (!has_jointmotorcontrolcommand()) { - clear_commands(); - set_has_jointmotorcontrolcommand(); - commands_.jointmotorcontrolcommand_ = new ::pybullet_grpc::JointMotorControlCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.jointMotorControlCommand) - return commands_.jointmotorcontrolcommand_; +inline const ::pybullet_grpc::JointMotorControlCommand& PyBulletCommand::_internal_jointmotorcontrolcommand() const { + return *commands_.jointmotorcontrolcommand_; } inline ::pybullet_grpc::JointMotorControlCommand* PyBulletCommand::release_jointmotorcontrolcommand() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.jointMotorControlCommand) if (has_jointmotorcontrolcommand()) { clear_has_commands(); - ::pybullet_grpc::JointMotorControlCommand* temp = commands_.jointmotorcontrolcommand_; + ::pybullet_grpc::JointMotorControlCommand* temp = commands_.jointmotorcontrolcommand_; commands_.jointmotorcontrolcommand_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletCommand::set_allocated_jointmotorcontrolcommand(::pybullet_grpc::JointMotorControlCommand* jointmotorcontrolcommand) { - clear_commands(); - if (jointmotorcontrolcommand) { +inline const ::pybullet_grpc::JointMotorControlCommand& PyBulletCommand::jointmotorcontrolcommand() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.jointMotorControlCommand) + return has_jointmotorcontrolcommand() + ? *commands_.jointmotorcontrolcommand_ + : *reinterpret_cast< ::pybullet_grpc::JointMotorControlCommand*>(&::pybullet_grpc::_JointMotorControlCommand_default_instance_); +} +inline ::pybullet_grpc::JointMotorControlCommand* PyBulletCommand::mutable_jointmotorcontrolcommand() { + if (!has_jointmotorcontrolcommand()) { + clear_commands(); set_has_jointmotorcontrolcommand(); - commands_.jointmotorcontrolcommand_ = jointmotorcontrolcommand; + commands_.jointmotorcontrolcommand_ = CreateMaybeMessage< ::pybullet_grpc::JointMotorControlCommand >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.jointMotorControlCommand) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.jointMotorControlCommand) + return commands_.jointmotorcontrolcommand_; } // .pybullet_grpc.UserConstraintCommand userConstraintCommand = 18; @@ -10606,39 +11873,35 @@ inline void PyBulletCommand::clear_userconstraintcommand() { clear_has_commands(); } } -inline const ::pybullet_grpc::UserConstraintCommand& PyBulletCommand::userconstraintcommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.userConstraintCommand) - return has_userconstraintcommand() - ? *commands_.userconstraintcommand_ - : ::pybullet_grpc::UserConstraintCommand::default_instance(); -} -inline ::pybullet_grpc::UserConstraintCommand* PyBulletCommand::mutable_userconstraintcommand() { - if (!has_userconstraintcommand()) { - clear_commands(); - set_has_userconstraintcommand(); - commands_.userconstraintcommand_ = new ::pybullet_grpc::UserConstraintCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.userConstraintCommand) - return commands_.userconstraintcommand_; +inline const ::pybullet_grpc::UserConstraintCommand& PyBulletCommand::_internal_userconstraintcommand() const { + return *commands_.userconstraintcommand_; } inline ::pybullet_grpc::UserConstraintCommand* PyBulletCommand::release_userconstraintcommand() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.userConstraintCommand) if (has_userconstraintcommand()) { clear_has_commands(); - ::pybullet_grpc::UserConstraintCommand* temp = commands_.userconstraintcommand_; + ::pybullet_grpc::UserConstraintCommand* temp = commands_.userconstraintcommand_; commands_.userconstraintcommand_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletCommand::set_allocated_userconstraintcommand(::pybullet_grpc::UserConstraintCommand* userconstraintcommand) { - clear_commands(); - if (userconstraintcommand) { +inline const ::pybullet_grpc::UserConstraintCommand& PyBulletCommand::userconstraintcommand() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.userConstraintCommand) + return has_userconstraintcommand() + ? *commands_.userconstraintcommand_ + : *reinterpret_cast< ::pybullet_grpc::UserConstraintCommand*>(&::pybullet_grpc::_UserConstraintCommand_default_instance_); +} +inline ::pybullet_grpc::UserConstraintCommand* PyBulletCommand::mutable_userconstraintcommand() { + if (!has_userconstraintcommand()) { + clear_commands(); set_has_userconstraintcommand(); - commands_.userconstraintcommand_ = userconstraintcommand; + commands_.userconstraintcommand_ = CreateMaybeMessage< ::pybullet_grpc::UserConstraintCommand >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.userConstraintCommand) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.userConstraintCommand) + return commands_.userconstraintcommand_; } // .pybullet_grpc.CheckVersionCommand checkVersionCommand = 19; @@ -10654,39 +11917,35 @@ inline void PyBulletCommand::clear_checkversioncommand() { clear_has_commands(); } } -inline const ::pybullet_grpc::CheckVersionCommand& PyBulletCommand::checkversioncommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.checkVersionCommand) - return has_checkversioncommand() - ? *commands_.checkversioncommand_ - : ::pybullet_grpc::CheckVersionCommand::default_instance(); -} -inline ::pybullet_grpc::CheckVersionCommand* PyBulletCommand::mutable_checkversioncommand() { - if (!has_checkversioncommand()) { - clear_commands(); - set_has_checkversioncommand(); - commands_.checkversioncommand_ = new ::pybullet_grpc::CheckVersionCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.checkVersionCommand) - return commands_.checkversioncommand_; +inline const ::pybullet_grpc::CheckVersionCommand& PyBulletCommand::_internal_checkversioncommand() const { + return *commands_.checkversioncommand_; } inline ::pybullet_grpc::CheckVersionCommand* PyBulletCommand::release_checkversioncommand() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.checkVersionCommand) if (has_checkversioncommand()) { clear_has_commands(); - ::pybullet_grpc::CheckVersionCommand* temp = commands_.checkversioncommand_; + ::pybullet_grpc::CheckVersionCommand* temp = commands_.checkversioncommand_; commands_.checkversioncommand_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletCommand::set_allocated_checkversioncommand(::pybullet_grpc::CheckVersionCommand* checkversioncommand) { - clear_commands(); - if (checkversioncommand) { +inline const ::pybullet_grpc::CheckVersionCommand& PyBulletCommand::checkversioncommand() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.checkVersionCommand) + return has_checkversioncommand() + ? *commands_.checkversioncommand_ + : *reinterpret_cast< ::pybullet_grpc::CheckVersionCommand*>(&::pybullet_grpc::_CheckVersionCommand_default_instance_); +} +inline ::pybullet_grpc::CheckVersionCommand* PyBulletCommand::mutable_checkversioncommand() { + if (!has_checkversioncommand()) { + clear_commands(); set_has_checkversioncommand(); - commands_.checkversioncommand_ = checkversioncommand; + commands_.checkversioncommand_ = CreateMaybeMessage< ::pybullet_grpc::CheckVersionCommand >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.checkVersionCommand) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.checkVersionCommand) + return commands_.checkversioncommand_; } // .pybullet_grpc.RequestKeyboardEventsCommand requestKeyboardEventsCommand = 20; @@ -10702,39 +11961,35 @@ inline void PyBulletCommand::clear_requestkeyboardeventscommand() { clear_has_commands(); } } -inline const ::pybullet_grpc::RequestKeyboardEventsCommand& PyBulletCommand::requestkeyboardeventscommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.requestKeyboardEventsCommand) - return has_requestkeyboardeventscommand() - ? *commands_.requestkeyboardeventscommand_ - : ::pybullet_grpc::RequestKeyboardEventsCommand::default_instance(); -} -inline ::pybullet_grpc::RequestKeyboardEventsCommand* PyBulletCommand::mutable_requestkeyboardeventscommand() { - if (!has_requestkeyboardeventscommand()) { - clear_commands(); - set_has_requestkeyboardeventscommand(); - commands_.requestkeyboardeventscommand_ = new ::pybullet_grpc::RequestKeyboardEventsCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.requestKeyboardEventsCommand) - return commands_.requestkeyboardeventscommand_; +inline const ::pybullet_grpc::RequestKeyboardEventsCommand& PyBulletCommand::_internal_requestkeyboardeventscommand() const { + return *commands_.requestkeyboardeventscommand_; } inline ::pybullet_grpc::RequestKeyboardEventsCommand* PyBulletCommand::release_requestkeyboardeventscommand() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.requestKeyboardEventsCommand) if (has_requestkeyboardeventscommand()) { clear_has_commands(); - ::pybullet_grpc::RequestKeyboardEventsCommand* temp = commands_.requestkeyboardeventscommand_; + ::pybullet_grpc::RequestKeyboardEventsCommand* temp = commands_.requestkeyboardeventscommand_; commands_.requestkeyboardeventscommand_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletCommand::set_allocated_requestkeyboardeventscommand(::pybullet_grpc::RequestKeyboardEventsCommand* requestkeyboardeventscommand) { - clear_commands(); - if (requestkeyboardeventscommand) { +inline const ::pybullet_grpc::RequestKeyboardEventsCommand& PyBulletCommand::requestkeyboardeventscommand() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.requestKeyboardEventsCommand) + return has_requestkeyboardeventscommand() + ? *commands_.requestkeyboardeventscommand_ + : *reinterpret_cast< ::pybullet_grpc::RequestKeyboardEventsCommand*>(&::pybullet_grpc::_RequestKeyboardEventsCommand_default_instance_); +} +inline ::pybullet_grpc::RequestKeyboardEventsCommand* PyBulletCommand::mutable_requestkeyboardeventscommand() { + if (!has_requestkeyboardeventscommand()) { + clear_commands(); set_has_requestkeyboardeventscommand(); - commands_.requestkeyboardeventscommand_ = requestkeyboardeventscommand; + commands_.requestkeyboardeventscommand_ = CreateMaybeMessage< ::pybullet_grpc::RequestKeyboardEventsCommand >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.requestKeyboardEventsCommand) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.requestKeyboardEventsCommand) + return commands_.requestkeyboardeventscommand_; } // .pybullet_grpc.RequestCameraImageCommand requestCameraImageCommand = 21; @@ -10750,39 +12005,35 @@ inline void PyBulletCommand::clear_requestcameraimagecommand() { clear_has_commands(); } } -inline const ::pybullet_grpc::RequestCameraImageCommand& PyBulletCommand::requestcameraimagecommand() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.requestCameraImageCommand) - return has_requestcameraimagecommand() - ? *commands_.requestcameraimagecommand_ - : ::pybullet_grpc::RequestCameraImageCommand::default_instance(); -} -inline ::pybullet_grpc::RequestCameraImageCommand* PyBulletCommand::mutable_requestcameraimagecommand() { - if (!has_requestcameraimagecommand()) { - clear_commands(); - set_has_requestcameraimagecommand(); - commands_.requestcameraimagecommand_ = new ::pybullet_grpc::RequestCameraImageCommand; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.requestCameraImageCommand) - return commands_.requestcameraimagecommand_; +inline const ::pybullet_grpc::RequestCameraImageCommand& PyBulletCommand::_internal_requestcameraimagecommand() const { + return *commands_.requestcameraimagecommand_; } inline ::pybullet_grpc::RequestCameraImageCommand* PyBulletCommand::release_requestcameraimagecommand() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletCommand.requestCameraImageCommand) if (has_requestcameraimagecommand()) { clear_has_commands(); - ::pybullet_grpc::RequestCameraImageCommand* temp = commands_.requestcameraimagecommand_; + ::pybullet_grpc::RequestCameraImageCommand* temp = commands_.requestcameraimagecommand_; commands_.requestcameraimagecommand_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletCommand::set_allocated_requestcameraimagecommand(::pybullet_grpc::RequestCameraImageCommand* requestcameraimagecommand) { - clear_commands(); - if (requestcameraimagecommand) { +inline const ::pybullet_grpc::RequestCameraImageCommand& PyBulletCommand::requestcameraimagecommand() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletCommand.requestCameraImageCommand) + return has_requestcameraimagecommand() + ? *commands_.requestcameraimagecommand_ + : *reinterpret_cast< ::pybullet_grpc::RequestCameraImageCommand*>(&::pybullet_grpc::_RequestCameraImageCommand_default_instance_); +} +inline ::pybullet_grpc::RequestCameraImageCommand* PyBulletCommand::mutable_requestcameraimagecommand() { + if (!has_requestcameraimagecommand()) { + clear_commands(); set_has_requestcameraimagecommand(); - commands_.requestcameraimagecommand_ = requestcameraimagecommand; + commands_.requestcameraimagecommand_ = CreateMaybeMessage< ::pybullet_grpc::RequestCameraImageCommand >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.requestCameraImageCommand) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletCommand.requestCameraImageCommand) + return commands_.requestcameraimagecommand_; } inline bool PyBulletCommand::has_commands() const { @@ -10831,7 +12082,14 @@ inline void PyBulletStatus::set_binaryblob(int index, const ::std::string& value // @@protoc_insertion_point(field_set:pybullet_grpc.PyBulletStatus.binaryBlob) binaryblob_.Mutable(index)->assign(value); } +#if LANG_CXX11 +inline void PyBulletStatus::set_binaryblob(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:pybullet_grpc.PyBulletStatus.binaryBlob) + binaryblob_.Mutable(index)->assign(std::move(value)); +} +#endif inline void PyBulletStatus::set_binaryblob(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); binaryblob_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:pybullet_grpc.PyBulletStatus.binaryBlob) } @@ -10848,7 +12106,14 @@ inline void PyBulletStatus::add_binaryblob(const ::std::string& value) { binaryblob_.Add()->assign(value); // @@protoc_insertion_point(field_add:pybullet_grpc.PyBulletStatus.binaryBlob) } +#if LANG_CXX11 +inline void PyBulletStatus::add_binaryblob(::std::string&& value) { + binaryblob_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:pybullet_grpc.PyBulletStatus.binaryBlob) +} +#endif inline void PyBulletStatus::add_binaryblob(const char* value) { + GOOGLE_DCHECK(value != NULL); binaryblob_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:pybullet_grpc.PyBulletStatus.binaryBlob) } @@ -10886,7 +12151,14 @@ inline void PyBulletStatus::set_unknownstatusbinaryblob(int index, const ::std:: // @@protoc_insertion_point(field_set:pybullet_grpc.PyBulletStatus.unknownStatusBinaryBlob) unknownstatusbinaryblob_.Mutable(index)->assign(value); } +#if LANG_CXX11 +inline void PyBulletStatus::set_unknownstatusbinaryblob(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:pybullet_grpc.PyBulletStatus.unknownStatusBinaryBlob) + unknownstatusbinaryblob_.Mutable(index)->assign(std::move(value)); +} +#endif inline void PyBulletStatus::set_unknownstatusbinaryblob(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); unknownstatusbinaryblob_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:pybullet_grpc.PyBulletStatus.unknownStatusBinaryBlob) } @@ -10903,7 +12175,14 @@ inline void PyBulletStatus::add_unknownstatusbinaryblob(const ::std::string& val unknownstatusbinaryblob_.Add()->assign(value); // @@protoc_insertion_point(field_add:pybullet_grpc.PyBulletStatus.unknownStatusBinaryBlob) } +#if LANG_CXX11 +inline void PyBulletStatus::add_unknownstatusbinaryblob(::std::string&& value) { + unknownstatusbinaryblob_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:pybullet_grpc.PyBulletStatus.unknownStatusBinaryBlob) +} +#endif inline void PyBulletStatus::add_unknownstatusbinaryblob(const char* value) { + GOOGLE_DCHECK(value != NULL); unknownstatusbinaryblob_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:pybullet_grpc.PyBulletStatus.unknownStatusBinaryBlob) } @@ -10935,39 +12214,35 @@ inline void PyBulletStatus::clear_urdfstatus() { clear_has_status(); } } -inline const ::pybullet_grpc::LoadUrdfStatus& PyBulletStatus::urdfstatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.urdfStatus) - return has_urdfstatus() - ? *status_.urdfstatus_ - : ::pybullet_grpc::LoadUrdfStatus::default_instance(); -} -inline ::pybullet_grpc::LoadUrdfStatus* PyBulletStatus::mutable_urdfstatus() { - if (!has_urdfstatus()) { - clear_status(); - set_has_urdfstatus(); - status_.urdfstatus_ = new ::pybullet_grpc::LoadUrdfStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.urdfStatus) - return status_.urdfstatus_; +inline const ::pybullet_grpc::LoadUrdfStatus& PyBulletStatus::_internal_urdfstatus() const { + return *status_.urdfstatus_; } inline ::pybullet_grpc::LoadUrdfStatus* PyBulletStatus::release_urdfstatus() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.urdfStatus) if (has_urdfstatus()) { clear_has_status(); - ::pybullet_grpc::LoadUrdfStatus* temp = status_.urdfstatus_; + ::pybullet_grpc::LoadUrdfStatus* temp = status_.urdfstatus_; status_.urdfstatus_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletStatus::set_allocated_urdfstatus(::pybullet_grpc::LoadUrdfStatus* urdfstatus) { - clear_status(); - if (urdfstatus) { +inline const ::pybullet_grpc::LoadUrdfStatus& PyBulletStatus::urdfstatus() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.urdfStatus) + return has_urdfstatus() + ? *status_.urdfstatus_ + : *reinterpret_cast< ::pybullet_grpc::LoadUrdfStatus*>(&::pybullet_grpc::_LoadUrdfStatus_default_instance_); +} +inline ::pybullet_grpc::LoadUrdfStatus* PyBulletStatus::mutable_urdfstatus() { + if (!has_urdfstatus()) { + clear_status(); set_has_urdfstatus(); - status_.urdfstatus_ = urdfstatus; + status_.urdfstatus_ = CreateMaybeMessage< ::pybullet_grpc::LoadUrdfStatus >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.urdfStatus) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.urdfStatus) + return status_.urdfstatus_; } // .pybullet_grpc.SdfLoadedStatus sdfStatus = 5; @@ -10983,39 +12258,35 @@ inline void PyBulletStatus::clear_sdfstatus() { clear_has_status(); } } -inline const ::pybullet_grpc::SdfLoadedStatus& PyBulletStatus::sdfstatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.sdfStatus) - return has_sdfstatus() - ? *status_.sdfstatus_ - : ::pybullet_grpc::SdfLoadedStatus::default_instance(); -} -inline ::pybullet_grpc::SdfLoadedStatus* PyBulletStatus::mutable_sdfstatus() { - if (!has_sdfstatus()) { - clear_status(); - set_has_sdfstatus(); - status_.sdfstatus_ = new ::pybullet_grpc::SdfLoadedStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.sdfStatus) - return status_.sdfstatus_; +inline const ::pybullet_grpc::SdfLoadedStatus& PyBulletStatus::_internal_sdfstatus() const { + return *status_.sdfstatus_; } inline ::pybullet_grpc::SdfLoadedStatus* PyBulletStatus::release_sdfstatus() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.sdfStatus) if (has_sdfstatus()) { clear_has_status(); - ::pybullet_grpc::SdfLoadedStatus* temp = status_.sdfstatus_; + ::pybullet_grpc::SdfLoadedStatus* temp = status_.sdfstatus_; status_.sdfstatus_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletStatus::set_allocated_sdfstatus(::pybullet_grpc::SdfLoadedStatus* sdfstatus) { - clear_status(); - if (sdfstatus) { +inline const ::pybullet_grpc::SdfLoadedStatus& PyBulletStatus::sdfstatus() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.sdfStatus) + return has_sdfstatus() + ? *status_.sdfstatus_ + : *reinterpret_cast< ::pybullet_grpc::SdfLoadedStatus*>(&::pybullet_grpc::_SdfLoadedStatus_default_instance_); +} +inline ::pybullet_grpc::SdfLoadedStatus* PyBulletStatus::mutable_sdfstatus() { + if (!has_sdfstatus()) { + clear_status(); set_has_sdfstatus(); - status_.sdfstatus_ = sdfstatus; + status_.sdfstatus_ = CreateMaybeMessage< ::pybullet_grpc::SdfLoadedStatus >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.sdfStatus) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.sdfStatus) + return status_.sdfstatus_; } // .pybullet_grpc.MjcfLoadedStatus mjcfStatus = 6; @@ -11031,39 +12302,35 @@ inline void PyBulletStatus::clear_mjcfstatus() { clear_has_status(); } } -inline const ::pybullet_grpc::MjcfLoadedStatus& PyBulletStatus::mjcfstatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.mjcfStatus) - return has_mjcfstatus() - ? *status_.mjcfstatus_ - : ::pybullet_grpc::MjcfLoadedStatus::default_instance(); -} -inline ::pybullet_grpc::MjcfLoadedStatus* PyBulletStatus::mutable_mjcfstatus() { - if (!has_mjcfstatus()) { - clear_status(); - set_has_mjcfstatus(); - status_.mjcfstatus_ = new ::pybullet_grpc::MjcfLoadedStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.mjcfStatus) - return status_.mjcfstatus_; +inline const ::pybullet_grpc::MjcfLoadedStatus& PyBulletStatus::_internal_mjcfstatus() const { + return *status_.mjcfstatus_; } inline ::pybullet_grpc::MjcfLoadedStatus* PyBulletStatus::release_mjcfstatus() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.mjcfStatus) if (has_mjcfstatus()) { clear_has_status(); - ::pybullet_grpc::MjcfLoadedStatus* temp = status_.mjcfstatus_; + ::pybullet_grpc::MjcfLoadedStatus* temp = status_.mjcfstatus_; status_.mjcfstatus_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletStatus::set_allocated_mjcfstatus(::pybullet_grpc::MjcfLoadedStatus* mjcfstatus) { - clear_status(); - if (mjcfstatus) { +inline const ::pybullet_grpc::MjcfLoadedStatus& PyBulletStatus::mjcfstatus() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.mjcfStatus) + return has_mjcfstatus() + ? *status_.mjcfstatus_ + : *reinterpret_cast< ::pybullet_grpc::MjcfLoadedStatus*>(&::pybullet_grpc::_MjcfLoadedStatus_default_instance_); +} +inline ::pybullet_grpc::MjcfLoadedStatus* PyBulletStatus::mutable_mjcfstatus() { + if (!has_mjcfstatus()) { + clear_status(); set_has_mjcfstatus(); - status_.mjcfstatus_ = mjcfstatus; + status_.mjcfstatus_ = CreateMaybeMessage< ::pybullet_grpc::MjcfLoadedStatus >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.mjcfStatus) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.mjcfStatus) + return status_.mjcfstatus_; } // .pybullet_grpc.GetDynamicsStatus getDynamicsStatus = 7; @@ -11079,39 +12346,35 @@ inline void PyBulletStatus::clear_getdynamicsstatus() { clear_has_status(); } } -inline const ::pybullet_grpc::GetDynamicsStatus& PyBulletStatus::getdynamicsstatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.getDynamicsStatus) - return has_getdynamicsstatus() - ? *status_.getdynamicsstatus_ - : ::pybullet_grpc::GetDynamicsStatus::default_instance(); -} -inline ::pybullet_grpc::GetDynamicsStatus* PyBulletStatus::mutable_getdynamicsstatus() { - if (!has_getdynamicsstatus()) { - clear_status(); - set_has_getdynamicsstatus(); - status_.getdynamicsstatus_ = new ::pybullet_grpc::GetDynamicsStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.getDynamicsStatus) - return status_.getdynamicsstatus_; +inline const ::pybullet_grpc::GetDynamicsStatus& PyBulletStatus::_internal_getdynamicsstatus() const { + return *status_.getdynamicsstatus_; } inline ::pybullet_grpc::GetDynamicsStatus* PyBulletStatus::release_getdynamicsstatus() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.getDynamicsStatus) if (has_getdynamicsstatus()) { clear_has_status(); - ::pybullet_grpc::GetDynamicsStatus* temp = status_.getdynamicsstatus_; + ::pybullet_grpc::GetDynamicsStatus* temp = status_.getdynamicsstatus_; status_.getdynamicsstatus_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletStatus::set_allocated_getdynamicsstatus(::pybullet_grpc::GetDynamicsStatus* getdynamicsstatus) { - clear_status(); - if (getdynamicsstatus) { +inline const ::pybullet_grpc::GetDynamicsStatus& PyBulletStatus::getdynamicsstatus() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.getDynamicsStatus) + return has_getdynamicsstatus() + ? *status_.getdynamicsstatus_ + : *reinterpret_cast< ::pybullet_grpc::GetDynamicsStatus*>(&::pybullet_grpc::_GetDynamicsStatus_default_instance_); +} +inline ::pybullet_grpc::GetDynamicsStatus* PyBulletStatus::mutable_getdynamicsstatus() { + if (!has_getdynamicsstatus()) { + clear_status(); set_has_getdynamicsstatus(); - status_.getdynamicsstatus_ = getdynamicsstatus; + status_.getdynamicsstatus_ = CreateMaybeMessage< ::pybullet_grpc::GetDynamicsStatus >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.getDynamicsStatus) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.getDynamicsStatus) + return status_.getdynamicsstatus_; } // .pybullet_grpc.SendActualStateStatus actualStateStatus = 8; @@ -11127,39 +12390,35 @@ inline void PyBulletStatus::clear_actualstatestatus() { clear_has_status(); } } -inline const ::pybullet_grpc::SendActualStateStatus& PyBulletStatus::actualstatestatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.actualStateStatus) - return has_actualstatestatus() - ? *status_.actualstatestatus_ - : ::pybullet_grpc::SendActualStateStatus::default_instance(); -} -inline ::pybullet_grpc::SendActualStateStatus* PyBulletStatus::mutable_actualstatestatus() { - if (!has_actualstatestatus()) { - clear_status(); - set_has_actualstatestatus(); - status_.actualstatestatus_ = new ::pybullet_grpc::SendActualStateStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.actualStateStatus) - return status_.actualstatestatus_; +inline const ::pybullet_grpc::SendActualStateStatus& PyBulletStatus::_internal_actualstatestatus() const { + return *status_.actualstatestatus_; } inline ::pybullet_grpc::SendActualStateStatus* PyBulletStatus::release_actualstatestatus() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.actualStateStatus) if (has_actualstatestatus()) { clear_has_status(); - ::pybullet_grpc::SendActualStateStatus* temp = status_.actualstatestatus_; + ::pybullet_grpc::SendActualStateStatus* temp = status_.actualstatestatus_; status_.actualstatestatus_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletStatus::set_allocated_actualstatestatus(::pybullet_grpc::SendActualStateStatus* actualstatestatus) { - clear_status(); - if (actualstatestatus) { +inline const ::pybullet_grpc::SendActualStateStatus& PyBulletStatus::actualstatestatus() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.actualStateStatus) + return has_actualstatestatus() + ? *status_.actualstatestatus_ + : *reinterpret_cast< ::pybullet_grpc::SendActualStateStatus*>(&::pybullet_grpc::_SendActualStateStatus_default_instance_); +} +inline ::pybullet_grpc::SendActualStateStatus* PyBulletStatus::mutable_actualstatestatus() { + if (!has_actualstatestatus()) { + clear_status(); set_has_actualstatestatus(); - status_.actualstatestatus_ = actualstatestatus; + status_.actualstatestatus_ = CreateMaybeMessage< ::pybullet_grpc::SendActualStateStatus >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.actualStateStatus) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.actualStateStatus) + return status_.actualstatestatus_; } // .pybullet_grpc.SyncBodiesStatus syncBodiesStatus = 9; @@ -11175,39 +12434,35 @@ inline void PyBulletStatus::clear_syncbodiesstatus() { clear_has_status(); } } -inline const ::pybullet_grpc::SyncBodiesStatus& PyBulletStatus::syncbodiesstatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.syncBodiesStatus) - return has_syncbodiesstatus() - ? *status_.syncbodiesstatus_ - : ::pybullet_grpc::SyncBodiesStatus::default_instance(); -} -inline ::pybullet_grpc::SyncBodiesStatus* PyBulletStatus::mutable_syncbodiesstatus() { - if (!has_syncbodiesstatus()) { - clear_status(); - set_has_syncbodiesstatus(); - status_.syncbodiesstatus_ = new ::pybullet_grpc::SyncBodiesStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.syncBodiesStatus) - return status_.syncbodiesstatus_; +inline const ::pybullet_grpc::SyncBodiesStatus& PyBulletStatus::_internal_syncbodiesstatus() const { + return *status_.syncbodiesstatus_; } inline ::pybullet_grpc::SyncBodiesStatus* PyBulletStatus::release_syncbodiesstatus() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.syncBodiesStatus) if (has_syncbodiesstatus()) { clear_has_status(); - ::pybullet_grpc::SyncBodiesStatus* temp = status_.syncbodiesstatus_; + ::pybullet_grpc::SyncBodiesStatus* temp = status_.syncbodiesstatus_; status_.syncbodiesstatus_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletStatus::set_allocated_syncbodiesstatus(::pybullet_grpc::SyncBodiesStatus* syncbodiesstatus) { - clear_status(); - if (syncbodiesstatus) { +inline const ::pybullet_grpc::SyncBodiesStatus& PyBulletStatus::syncbodiesstatus() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.syncBodiesStatus) + return has_syncbodiesstatus() + ? *status_.syncbodiesstatus_ + : *reinterpret_cast< ::pybullet_grpc::SyncBodiesStatus*>(&::pybullet_grpc::_SyncBodiesStatus_default_instance_); +} +inline ::pybullet_grpc::SyncBodiesStatus* PyBulletStatus::mutable_syncbodiesstatus() { + if (!has_syncbodiesstatus()) { + clear_status(); set_has_syncbodiesstatus(); - status_.syncbodiesstatus_ = syncbodiesstatus; + status_.syncbodiesstatus_ = CreateMaybeMessage< ::pybullet_grpc::SyncBodiesStatus >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.syncBodiesStatus) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.syncBodiesStatus) + return status_.syncbodiesstatus_; } // .pybullet_grpc.RequestBodyInfoStatus requestBodyInfoStatus = 10; @@ -11223,39 +12478,35 @@ inline void PyBulletStatus::clear_requestbodyinfostatus() { clear_has_status(); } } -inline const ::pybullet_grpc::RequestBodyInfoStatus& PyBulletStatus::requestbodyinfostatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.requestBodyInfoStatus) - return has_requestbodyinfostatus() - ? *status_.requestbodyinfostatus_ - : ::pybullet_grpc::RequestBodyInfoStatus::default_instance(); -} -inline ::pybullet_grpc::RequestBodyInfoStatus* PyBulletStatus::mutable_requestbodyinfostatus() { - if (!has_requestbodyinfostatus()) { - clear_status(); - set_has_requestbodyinfostatus(); - status_.requestbodyinfostatus_ = new ::pybullet_grpc::RequestBodyInfoStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.requestBodyInfoStatus) - return status_.requestbodyinfostatus_; +inline const ::pybullet_grpc::RequestBodyInfoStatus& PyBulletStatus::_internal_requestbodyinfostatus() const { + return *status_.requestbodyinfostatus_; } inline ::pybullet_grpc::RequestBodyInfoStatus* PyBulletStatus::release_requestbodyinfostatus() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.requestBodyInfoStatus) if (has_requestbodyinfostatus()) { clear_has_status(); - ::pybullet_grpc::RequestBodyInfoStatus* temp = status_.requestbodyinfostatus_; + ::pybullet_grpc::RequestBodyInfoStatus* temp = status_.requestbodyinfostatus_; status_.requestbodyinfostatus_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletStatus::set_allocated_requestbodyinfostatus(::pybullet_grpc::RequestBodyInfoStatus* requestbodyinfostatus) { - clear_status(); - if (requestbodyinfostatus) { +inline const ::pybullet_grpc::RequestBodyInfoStatus& PyBulletStatus::requestbodyinfostatus() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.requestBodyInfoStatus) + return has_requestbodyinfostatus() + ? *status_.requestbodyinfostatus_ + : *reinterpret_cast< ::pybullet_grpc::RequestBodyInfoStatus*>(&::pybullet_grpc::_RequestBodyInfoStatus_default_instance_); +} +inline ::pybullet_grpc::RequestBodyInfoStatus* PyBulletStatus::mutable_requestbodyinfostatus() { + if (!has_requestbodyinfostatus()) { + clear_status(); set_has_requestbodyinfostatus(); - status_.requestbodyinfostatus_ = requestbodyinfostatus; + status_.requestbodyinfostatus_ = CreateMaybeMessage< ::pybullet_grpc::RequestBodyInfoStatus >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.requestBodyInfoStatus) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.requestBodyInfoStatus) + return status_.requestbodyinfostatus_; } // .pybullet_grpc.PhysicsSimulationParameters requestPhysicsSimulationParametersStatus = 11; @@ -11271,39 +12522,35 @@ inline void PyBulletStatus::clear_requestphysicssimulationparametersstatus() { clear_has_status(); } } -inline const ::pybullet_grpc::PhysicsSimulationParameters& PyBulletStatus::requestphysicssimulationparametersstatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.requestPhysicsSimulationParametersStatus) - return has_requestphysicssimulationparametersstatus() - ? *status_.requestphysicssimulationparametersstatus_ - : ::pybullet_grpc::PhysicsSimulationParameters::default_instance(); -} -inline ::pybullet_grpc::PhysicsSimulationParameters* PyBulletStatus::mutable_requestphysicssimulationparametersstatus() { - if (!has_requestphysicssimulationparametersstatus()) { - clear_status(); - set_has_requestphysicssimulationparametersstatus(); - status_.requestphysicssimulationparametersstatus_ = new ::pybullet_grpc::PhysicsSimulationParameters; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.requestPhysicsSimulationParametersStatus) - return status_.requestphysicssimulationparametersstatus_; +inline const ::pybullet_grpc::PhysicsSimulationParameters& PyBulletStatus::_internal_requestphysicssimulationparametersstatus() const { + return *status_.requestphysicssimulationparametersstatus_; } inline ::pybullet_grpc::PhysicsSimulationParameters* PyBulletStatus::release_requestphysicssimulationparametersstatus() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.requestPhysicsSimulationParametersStatus) if (has_requestphysicssimulationparametersstatus()) { clear_has_status(); - ::pybullet_grpc::PhysicsSimulationParameters* temp = status_.requestphysicssimulationparametersstatus_; + ::pybullet_grpc::PhysicsSimulationParameters* temp = status_.requestphysicssimulationparametersstatus_; status_.requestphysicssimulationparametersstatus_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletStatus::set_allocated_requestphysicssimulationparametersstatus(::pybullet_grpc::PhysicsSimulationParameters* requestphysicssimulationparametersstatus) { - clear_status(); - if (requestphysicssimulationparametersstatus) { +inline const ::pybullet_grpc::PhysicsSimulationParameters& PyBulletStatus::requestphysicssimulationparametersstatus() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.requestPhysicsSimulationParametersStatus) + return has_requestphysicssimulationparametersstatus() + ? *status_.requestphysicssimulationparametersstatus_ + : *reinterpret_cast< ::pybullet_grpc::PhysicsSimulationParameters*>(&::pybullet_grpc::_PhysicsSimulationParameters_default_instance_); +} +inline ::pybullet_grpc::PhysicsSimulationParameters* PyBulletStatus::mutable_requestphysicssimulationparametersstatus() { + if (!has_requestphysicssimulationparametersstatus()) { + clear_status(); set_has_requestphysicssimulationparametersstatus(); - status_.requestphysicssimulationparametersstatus_ = requestphysicssimulationparametersstatus; + status_.requestphysicssimulationparametersstatus_ = CreateMaybeMessage< ::pybullet_grpc::PhysicsSimulationParameters >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.requestPhysicsSimulationParametersStatus) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.requestPhysicsSimulationParametersStatus) + return status_.requestphysicssimulationparametersstatus_; } // .pybullet_grpc.CheckVersionStatus checkVersionStatus = 12; @@ -11319,39 +12566,35 @@ inline void PyBulletStatus::clear_checkversionstatus() { clear_has_status(); } } -inline const ::pybullet_grpc::CheckVersionStatus& PyBulletStatus::checkversionstatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.checkVersionStatus) - return has_checkversionstatus() - ? *status_.checkversionstatus_ - : ::pybullet_grpc::CheckVersionStatus::default_instance(); -} -inline ::pybullet_grpc::CheckVersionStatus* PyBulletStatus::mutable_checkversionstatus() { - if (!has_checkversionstatus()) { - clear_status(); - set_has_checkversionstatus(); - status_.checkversionstatus_ = new ::pybullet_grpc::CheckVersionStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.checkVersionStatus) - return status_.checkversionstatus_; +inline const ::pybullet_grpc::CheckVersionStatus& PyBulletStatus::_internal_checkversionstatus() const { + return *status_.checkversionstatus_; } inline ::pybullet_grpc::CheckVersionStatus* PyBulletStatus::release_checkversionstatus() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.checkVersionStatus) if (has_checkversionstatus()) { clear_has_status(); - ::pybullet_grpc::CheckVersionStatus* temp = status_.checkversionstatus_; + ::pybullet_grpc::CheckVersionStatus* temp = status_.checkversionstatus_; status_.checkversionstatus_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletStatus::set_allocated_checkversionstatus(::pybullet_grpc::CheckVersionStatus* checkversionstatus) { - clear_status(); - if (checkversionstatus) { +inline const ::pybullet_grpc::CheckVersionStatus& PyBulletStatus::checkversionstatus() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.checkVersionStatus) + return has_checkversionstatus() + ? *status_.checkversionstatus_ + : *reinterpret_cast< ::pybullet_grpc::CheckVersionStatus*>(&::pybullet_grpc::_CheckVersionStatus_default_instance_); +} +inline ::pybullet_grpc::CheckVersionStatus* PyBulletStatus::mutable_checkversionstatus() { + if (!has_checkversionstatus()) { + clear_status(); set_has_checkversionstatus(); - status_.checkversionstatus_ = checkversionstatus; + status_.checkversionstatus_ = CreateMaybeMessage< ::pybullet_grpc::CheckVersionStatus >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.checkVersionStatus) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.checkVersionStatus) + return status_.checkversionstatus_; } // .pybullet_grpc.UserConstraintStatus userConstraintStatus = 13; @@ -11367,39 +12610,35 @@ inline void PyBulletStatus::clear_userconstraintstatus() { clear_has_status(); } } -inline const ::pybullet_grpc::UserConstraintStatus& PyBulletStatus::userconstraintstatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.userConstraintStatus) - return has_userconstraintstatus() - ? *status_.userconstraintstatus_ - : ::pybullet_grpc::UserConstraintStatus::default_instance(); -} -inline ::pybullet_grpc::UserConstraintStatus* PyBulletStatus::mutable_userconstraintstatus() { - if (!has_userconstraintstatus()) { - clear_status(); - set_has_userconstraintstatus(); - status_.userconstraintstatus_ = new ::pybullet_grpc::UserConstraintStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.userConstraintStatus) - return status_.userconstraintstatus_; +inline const ::pybullet_grpc::UserConstraintStatus& PyBulletStatus::_internal_userconstraintstatus() const { + return *status_.userconstraintstatus_; } inline ::pybullet_grpc::UserConstraintStatus* PyBulletStatus::release_userconstraintstatus() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.userConstraintStatus) if (has_userconstraintstatus()) { clear_has_status(); - ::pybullet_grpc::UserConstraintStatus* temp = status_.userconstraintstatus_; + ::pybullet_grpc::UserConstraintStatus* temp = status_.userconstraintstatus_; status_.userconstraintstatus_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletStatus::set_allocated_userconstraintstatus(::pybullet_grpc::UserConstraintStatus* userconstraintstatus) { - clear_status(); - if (userconstraintstatus) { +inline const ::pybullet_grpc::UserConstraintStatus& PyBulletStatus::userconstraintstatus() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.userConstraintStatus) + return has_userconstraintstatus() + ? *status_.userconstraintstatus_ + : *reinterpret_cast< ::pybullet_grpc::UserConstraintStatus*>(&::pybullet_grpc::_UserConstraintStatus_default_instance_); +} +inline ::pybullet_grpc::UserConstraintStatus* PyBulletStatus::mutable_userconstraintstatus() { + if (!has_userconstraintstatus()) { + clear_status(); set_has_userconstraintstatus(); - status_.userconstraintstatus_ = userconstraintstatus; + status_.userconstraintstatus_ = CreateMaybeMessage< ::pybullet_grpc::UserConstraintStatus >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.userConstraintStatus) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.userConstraintStatus) + return status_.userconstraintstatus_; } // .pybullet_grpc.UserConstraintStateStatus userConstraintStateStatus = 14; @@ -11415,39 +12654,35 @@ inline void PyBulletStatus::clear_userconstraintstatestatus() { clear_has_status(); } } -inline const ::pybullet_grpc::UserConstraintStateStatus& PyBulletStatus::userconstraintstatestatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.userConstraintStateStatus) - return has_userconstraintstatestatus() - ? *status_.userconstraintstatestatus_ - : ::pybullet_grpc::UserConstraintStateStatus::default_instance(); -} -inline ::pybullet_grpc::UserConstraintStateStatus* PyBulletStatus::mutable_userconstraintstatestatus() { - if (!has_userconstraintstatestatus()) { - clear_status(); - set_has_userconstraintstatestatus(); - status_.userconstraintstatestatus_ = new ::pybullet_grpc::UserConstraintStateStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.userConstraintStateStatus) - return status_.userconstraintstatestatus_; +inline const ::pybullet_grpc::UserConstraintStateStatus& PyBulletStatus::_internal_userconstraintstatestatus() const { + return *status_.userconstraintstatestatus_; } inline ::pybullet_grpc::UserConstraintStateStatus* PyBulletStatus::release_userconstraintstatestatus() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.userConstraintStateStatus) if (has_userconstraintstatestatus()) { clear_has_status(); - ::pybullet_grpc::UserConstraintStateStatus* temp = status_.userconstraintstatestatus_; + ::pybullet_grpc::UserConstraintStateStatus* temp = status_.userconstraintstatestatus_; status_.userconstraintstatestatus_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletStatus::set_allocated_userconstraintstatestatus(::pybullet_grpc::UserConstraintStateStatus* userconstraintstatestatus) { - clear_status(); - if (userconstraintstatestatus) { +inline const ::pybullet_grpc::UserConstraintStateStatus& PyBulletStatus::userconstraintstatestatus() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.userConstraintStateStatus) + return has_userconstraintstatestatus() + ? *status_.userconstraintstatestatus_ + : *reinterpret_cast< ::pybullet_grpc::UserConstraintStateStatus*>(&::pybullet_grpc::_UserConstraintStateStatus_default_instance_); +} +inline ::pybullet_grpc::UserConstraintStateStatus* PyBulletStatus::mutable_userconstraintstatestatus() { + if (!has_userconstraintstatestatus()) { + clear_status(); set_has_userconstraintstatestatus(); - status_.userconstraintstatestatus_ = userconstraintstatestatus; + status_.userconstraintstatestatus_ = CreateMaybeMessage< ::pybullet_grpc::UserConstraintStateStatus >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.userConstraintStateStatus) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.userConstraintStateStatus) + return status_.userconstraintstatestatus_; } // .pybullet_grpc.KeyboardEventsStatus keyboardEventsStatus = 15; @@ -11463,39 +12698,35 @@ inline void PyBulletStatus::clear_keyboardeventsstatus() { clear_has_status(); } } -inline const ::pybullet_grpc::KeyboardEventsStatus& PyBulletStatus::keyboardeventsstatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.keyboardEventsStatus) - return has_keyboardeventsstatus() - ? *status_.keyboardeventsstatus_ - : ::pybullet_grpc::KeyboardEventsStatus::default_instance(); -} -inline ::pybullet_grpc::KeyboardEventsStatus* PyBulletStatus::mutable_keyboardeventsstatus() { - if (!has_keyboardeventsstatus()) { - clear_status(); - set_has_keyboardeventsstatus(); - status_.keyboardeventsstatus_ = new ::pybullet_grpc::KeyboardEventsStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.keyboardEventsStatus) - return status_.keyboardeventsstatus_; +inline const ::pybullet_grpc::KeyboardEventsStatus& PyBulletStatus::_internal_keyboardeventsstatus() const { + return *status_.keyboardeventsstatus_; } inline ::pybullet_grpc::KeyboardEventsStatus* PyBulletStatus::release_keyboardeventsstatus() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.keyboardEventsStatus) if (has_keyboardeventsstatus()) { clear_has_status(); - ::pybullet_grpc::KeyboardEventsStatus* temp = status_.keyboardeventsstatus_; + ::pybullet_grpc::KeyboardEventsStatus* temp = status_.keyboardeventsstatus_; status_.keyboardeventsstatus_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletStatus::set_allocated_keyboardeventsstatus(::pybullet_grpc::KeyboardEventsStatus* keyboardeventsstatus) { - clear_status(); - if (keyboardeventsstatus) { +inline const ::pybullet_grpc::KeyboardEventsStatus& PyBulletStatus::keyboardeventsstatus() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.keyboardEventsStatus) + return has_keyboardeventsstatus() + ? *status_.keyboardeventsstatus_ + : *reinterpret_cast< ::pybullet_grpc::KeyboardEventsStatus*>(&::pybullet_grpc::_KeyboardEventsStatus_default_instance_); +} +inline ::pybullet_grpc::KeyboardEventsStatus* PyBulletStatus::mutable_keyboardeventsstatus() { + if (!has_keyboardeventsstatus()) { + clear_status(); set_has_keyboardeventsstatus(); - status_.keyboardeventsstatus_ = keyboardeventsstatus; + status_.keyboardeventsstatus_ = CreateMaybeMessage< ::pybullet_grpc::KeyboardEventsStatus >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.keyboardEventsStatus) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.keyboardEventsStatus) + return status_.keyboardeventsstatus_; } // .pybullet_grpc.RequestCameraImageStatus requestCameraImageStatus = 16; @@ -11511,39 +12742,35 @@ inline void PyBulletStatus::clear_requestcameraimagestatus() { clear_has_status(); } } -inline const ::pybullet_grpc::RequestCameraImageStatus& PyBulletStatus::requestcameraimagestatus() const { - // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.requestCameraImageStatus) - return has_requestcameraimagestatus() - ? *status_.requestcameraimagestatus_ - : ::pybullet_grpc::RequestCameraImageStatus::default_instance(); -} -inline ::pybullet_grpc::RequestCameraImageStatus* PyBulletStatus::mutable_requestcameraimagestatus() { - if (!has_requestcameraimagestatus()) { - clear_status(); - set_has_requestcameraimagestatus(); - status_.requestcameraimagestatus_ = new ::pybullet_grpc::RequestCameraImageStatus; - } - // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.requestCameraImageStatus) - return status_.requestcameraimagestatus_; +inline const ::pybullet_grpc::RequestCameraImageStatus& PyBulletStatus::_internal_requestcameraimagestatus() const { + return *status_.requestcameraimagestatus_; } inline ::pybullet_grpc::RequestCameraImageStatus* PyBulletStatus::release_requestcameraimagestatus() { // @@protoc_insertion_point(field_release:pybullet_grpc.PyBulletStatus.requestCameraImageStatus) if (has_requestcameraimagestatus()) { clear_has_status(); - ::pybullet_grpc::RequestCameraImageStatus* temp = status_.requestcameraimagestatus_; + ::pybullet_grpc::RequestCameraImageStatus* temp = status_.requestcameraimagestatus_; status_.requestcameraimagestatus_ = NULL; return temp; } else { return NULL; } } -inline void PyBulletStatus::set_allocated_requestcameraimagestatus(::pybullet_grpc::RequestCameraImageStatus* requestcameraimagestatus) { - clear_status(); - if (requestcameraimagestatus) { +inline const ::pybullet_grpc::RequestCameraImageStatus& PyBulletStatus::requestcameraimagestatus() const { + // @@protoc_insertion_point(field_get:pybullet_grpc.PyBulletStatus.requestCameraImageStatus) + return has_requestcameraimagestatus() + ? *status_.requestcameraimagestatus_ + : *reinterpret_cast< ::pybullet_grpc::RequestCameraImageStatus*>(&::pybullet_grpc::_RequestCameraImageStatus_default_instance_); +} +inline ::pybullet_grpc::RequestCameraImageStatus* PyBulletStatus::mutable_requestcameraimagestatus() { + if (!has_requestcameraimagestatus()) { + clear_status(); set_has_requestcameraimagestatus(); - status_.requestcameraimagestatus_ = requestcameraimagestatus; + status_.requestcameraimagestatus_ = CreateMaybeMessage< ::pybullet_grpc::RequestCameraImageStatus >( + GetArenaNoVirtual()); } - // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletStatus.requestCameraImageStatus) + // @@protoc_insertion_point(field_mutable:pybullet_grpc.PyBulletStatus.requestCameraImageStatus) + return status_.requestcameraimagestatus_; } inline bool PyBulletStatus::has_status() const { @@ -11555,7 +12782,9 @@ inline void PyBulletStatus::clear_has_status() { inline PyBulletStatus::StatusCase PyBulletStatus::status_case() const { return PyBulletStatus::StatusCase(_oneof_case_[0]); } -#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ // ------------------------------------------------------------------- // ------------------------------------------------------------------- @@ -11635,9 +12864,8 @@ inline PyBulletStatus::StatusCase PyBulletStatus::status_case() const { // @@protoc_insertion_point(namespace_scope) - } // namespace pybullet_grpc // @@protoc_insertion_point(global_scope) -#endif // PROTOBUF_pybullet_2eproto__INCLUDED +#endif // PROTOBUF_INCLUDED_pybullet_2eproto diff --git a/examples/SharedMemory/grpc/pybullet_client.py b/examples/SharedMemory/grpc/pybullet_client.py index 147e269f0..0dd7a64bb 100644 --- a/examples/SharedMemory/grpc/pybullet_client.py +++ b/examples/SharedMemory/grpc/pybullet_client.py @@ -58,10 +58,10 @@ def run(): - #for i in range (1000): - # print("submit StepSimulationCommand: ", i) - # response = stub.SubmitCommand(pybullet_pb2.PyBulletCommand(stepSimulationCommand=pybullet_pb2.StepSimulationCommand())) - # print("PyBullet client received: " , response.statusType) + for i in range (1000): + print("submit StepSimulationCommand: ", i) + response = stub.SubmitCommand(pybullet_pb2.PyBulletCommand(stepSimulationCommand=pybullet_pb2.StepSimulationCommand())) + print("PyBullet client received: " , response.statusType) #print("TerminateServerCommand") #response = stub.SubmitCommand(pybullet_pb2.PyBulletCommand(terminateServerCommand=pybullet_pb2.TerminateServerCommand())) diff --git a/examples/SharedMemory/premake4.lua b/examples/SharedMemory/premake4.lua index 82dfe1996..ab001adfc 100644 --- a/examples/SharedMemory/premake4.lua +++ b/examples/SharedMemory/premake4.lua @@ -474,6 +474,6 @@ include "plugins/tinyRendererPlugin" include "plugins/pdControlPlugin" include "plugins/collisionFilterPlugin" -if _OPTIONS["grpc"] then +if _OPTIONS["enable_grpc"] then include "grpc" -end \ No newline at end of file +end