// Generated by the protocol buffer compiler. DO NOT EDIT! // source: pybullet.proto #include "pybullet.pb.h" #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_ResetSimulationCommand; 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 _instance; } _vec3_default_instance_; class quat4DefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _quat4_default_instance_; class vec4DefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _vec4_default_instance_; class transformDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _transform_default_instance_; class matrix4x4DefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _matrix4x4_default_instance_; class CheckVersionCommandDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _CheckVersionCommand_default_instance_; class CheckVersionStatusDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _CheckVersionStatus_default_instance_; class TerminateServerCommandDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _TerminateServerCommand_default_instance_; class StepSimulationCommandDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _StepSimulationCommand_default_instance_; class SyncBodiesCommandDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _SyncBodiesCommand_default_instance_; class SyncBodiesStatusDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _SyncBodiesStatus_default_instance_; class RequestBodyInfoCommandDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _RequestBodyInfoCommand_default_instance_; class RequestBodyInfoStatusDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _RequestBodyInfoStatus_default_instance_; 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 _instance; } _LoadUrdfStatus_default_instance_; class LoadSdfCommandDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; ::google::protobuf::int32 usemultibody_; double globalscaling_; } _LoadSdfCommand_default_instance_; class SdfLoadedStatusDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _SdfLoadedStatus_default_instance_; class LoadMjcfCommandDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _LoadMjcfCommand_default_instance_; class MjcfLoadedStatusDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _MjcfLoadedStatus_default_instance_; class ChangeDynamicsCommandDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; double mass_; double lateralfriction_; double spinningfriction_; double rollingfriction_; double restitution_; double lineardamping_; double angulardamping_; double contactstiffness_; double contactdamping_; const ::pybullet_grpc::vec3* localinertiadiagonal_; ::google::protobuf::int32 frictionanchor_; double ccdsweptsphereradius_; double contactprocessingthreshold_; ::google::protobuf::int32 activationstate_; } _ChangeDynamicsCommand_default_instance_; class GetDynamicsCommandDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _GetDynamicsCommand_default_instance_; class GetDynamicsStatusDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _GetDynamicsStatus_default_instance_; class InitPoseCommandDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _InitPoseCommand_default_instance_; class RequestActualStateCommandDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _RequestActualStateCommand_default_instance_; class SendActualStateStatusDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _SendActualStateStatus_default_instance_; class ConfigureOpenGLVisualizerCommandDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _ConfigureOpenGLVisualizerCommand_default_instance_; class PhysicsSimulationParametersDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _PhysicsSimulationParameters_default_instance_; class PhysicsSimulationParametersCommandDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _PhysicsSimulationParametersCommand_default_instance_; class JointMotorControlCommandDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _JointMotorControlCommand_default_instance_; class UserConstraintCommandDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _UserConstraintCommand_default_instance_; class UserConstraintStatusDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _UserConstraintStatus_default_instance_; class UserConstraintStateStatusDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _UserConstraintStateStatus_default_instance_; class RequestKeyboardEventsCommandDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _RequestKeyboardEventsCommand_default_instance_; class KeyboardEventDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _KeyboardEvent_default_instance_; class KeyboardEventsStatusDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _KeyboardEventsStatus_default_instance_; class RequestCameraImageCommandDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _RequestCameraImageCommand_default_instance_; class RequestCameraImageStatusDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _RequestCameraImageStatus_default_instance_; class ResetSimulationCommandDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _ResetSimulationCommand_default_instance_; class PyBulletCommandDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; const ::pybullet_grpc::LoadUrdfCommand* loadurdfcommand_; const ::pybullet_grpc::TerminateServerCommand* terminateservercommand_; const ::pybullet_grpc::StepSimulationCommand* stepsimulationcommand_; const ::pybullet_grpc::LoadSdfCommand* loadsdfcommand_; const ::pybullet_grpc::LoadMjcfCommand* loadmjcfcommand_; const ::pybullet_grpc::ChangeDynamicsCommand* changedynamicscommand_; const ::pybullet_grpc::GetDynamicsCommand* getdynamicscommand_; const ::pybullet_grpc::InitPoseCommand* initposecommand_; const ::pybullet_grpc::RequestActualStateCommand* requestactualstatecommand_; const ::pybullet_grpc::ConfigureOpenGLVisualizerCommand* configureopenglvisualizercommand_; const ::pybullet_grpc::SyncBodiesCommand* syncbodiescommand_; const ::pybullet_grpc::RequestBodyInfoCommand* requestbodyinfocommand_; const ::pybullet_grpc::PhysicsSimulationParametersCommand* setphysicssimulationparameterscommand_; const ::pybullet_grpc::JointMotorControlCommand* jointmotorcontrolcommand_; const ::pybullet_grpc::UserConstraintCommand* userconstraintcommand_; const ::pybullet_grpc::CheckVersionCommand* checkversioncommand_; const ::pybullet_grpc::RequestKeyboardEventsCommand* requestkeyboardeventscommand_; const ::pybullet_grpc::RequestCameraImageCommand* requestcameraimagecommand_; const ::pybullet_grpc::ResetSimulationCommand* resetsimulationcommand_; } _PyBulletCommand_default_instance_; class PyBulletStatusDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; const ::pybullet_grpc::LoadUrdfStatus* urdfstatus_; const ::pybullet_grpc::SdfLoadedStatus* sdfstatus_; const ::pybullet_grpc::MjcfLoadedStatus* mjcfstatus_; const ::pybullet_grpc::GetDynamicsStatus* getdynamicsstatus_; const ::pybullet_grpc::SendActualStateStatus* actualstatestatus_; const ::pybullet_grpc::SyncBodiesStatus* syncbodiesstatus_; const ::pybullet_grpc::RequestBodyInfoStatus* requestbodyinfostatus_; const ::pybullet_grpc::PhysicsSimulationParameters* requestphysicssimulationparametersstatus_; const ::pybullet_grpc::CheckVersionStatus* checkversionstatus_; const ::pybullet_grpc::UserConstraintStatus* userconstraintstatus_; const ::pybullet_grpc::UserConstraintStateStatus* userconstraintstatestatus_; 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(); } ::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 InitDefaultsResetSimulationCommand() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::pybullet_grpc::_ResetSimulationCommand_default_instance_; new (ptr) ::pybullet_grpc::ResetSimulationCommand(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::pybullet_grpc::ResetSimulationCommand::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<0> scc_info_ResetSimulationCommand = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsResetSimulationCommand}, {}}; 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<19> scc_info_PyBulletCommand = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 19, 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, &protobuf_pybullet_2eproto::scc_info_ResetSimulationCommand.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_ResetSimulationCommand.base); ::google::protobuf::internal::InitSCC(&scc_info_PyBulletCommand.base); ::google::protobuf::internal::InitSCC(&scc_info_PyBulletStatus.base); } ::google::protobuf::Metadata file_level_metadata[40]; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::vec3, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::quat4, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::vec4, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::transform, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::matrix4x4, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::CheckVersionCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::CheckVersionStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::TerminateServerCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::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(::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(::pybullet_grpc::SyncBodiesStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::RequestBodyInfoCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::RequestBodyInfoStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::LoadUrdfCommand, _internal_metadata_), ~0u, // no _extensions_ 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(::pybullet_grpc::LoadUrdfStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::LoadSdfCommand, _internal_metadata_), ~0u, // no _extensions_ 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(::pybullet_grpc::SdfLoadedStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::LoadMjcfCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::MjcfLoadedStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::ChangeDynamicsCommand, _internal_metadata_), ~0u, // no _extensions_ 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(::pybullet_grpc::GetDynamicsCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::GetDynamicsStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::InitPoseCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::RequestActualStateCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::SendActualStateStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::ConfigureOpenGLVisualizerCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::PhysicsSimulationParameters, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::PhysicsSimulationParametersCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::JointMotorControlCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::UserConstraintCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::UserConstraintStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::UserConstraintStateStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::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(::pybullet_grpc::KeyboardEvent, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::KeyboardEventsStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::RequestCameraImageCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::RequestCameraImageStatus, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~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(::pybullet_grpc::ResetSimulationCommand, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PyBulletCommand, _internal_metadata_), ~0u, // no _extensions_ 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_), offsetof(::pybullet_grpc::PyBulletCommandDefaultTypeInternal, resetsimulationcommand_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PyBulletCommand, commands_), ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pybullet_grpc::PyBulletStatus, _internal_metadata_), ~0u, // no _extensions_ 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[] 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::ResetSimulationCommand)}, { 390, -1, sizeof(::pybullet_grpc::PyBulletCommand)}, { 418, -1, sizeof(::pybullet_grpc::PyBulletStatus)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { 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::_ResetSimulationCommand_default_instance_), reinterpret_cast(&::pybullet_grpc::_PyBulletCommand_default_instance_), reinterpret_cast(&::pybullet_grpc::_PyBulletStatus_default_instance_), }; void protobuf_AssignDescriptors() { AddDescriptors(); AssignDescriptors( "pybullet.proto", schemas, file_default_instances, TableStruct::offsets, file_level_metadata, NULL, NULL); } void protobuf_AssignDescriptorsOnce() { static ::google::protobuf::internal::once_flag once; ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); } 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, 40); } void AddDescriptorsImpl() { InitDefaults(); 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" "\004 \001(\001\"2\n\004vec4\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\004 \001(\001\"[\n\ttransform\022#\n\006origin" "\030\001 \001(\0132\023.pybullet_grpc.vec3\022)\n\013orientati" "on\030\002 \001(\0132\024.pybullet_grpc.quat4\"\032\n\tmatrix" "4x4\022\r\n\005elems\030\001 \003(\001\",\n\023CheckVersionComman" "d\022\025\n\rclientVersion\030\001 \001(\005\"+\n\022CheckVersion" "Status\022\025\n\rserverVersion\030\001 \001(\005\",\n\026Termina" "teServerCommand\022\022\n\nexitReason\030\001 \001(\t\"\027\n\025S" "tepSimulationCommand\"\023\n\021SyncBodiesComman" "d\"J\n\020SyncBodiesStatus\022\025\n\rbodyUniqueIds\030\001" " \003(\005\022\037\n\027userConstraintUniqueIds\030\002 \003(\005\".\n" "\026RequestBodyInfoCommand\022\024\n\014bodyUniqueId\030" "\001 \001(\005\"\?\n\025RequestBodyInfoStatus\022\024\n\014bodyUn" "iqueId\030\001 \001(\005\022\020\n\010bodyName\030\002 \001(\t\"\225\002\n\017LoadU" "rdfCommand\022\020\n\010fileName\030\001 \001(\t\022,\n\017initialP" "osition\030\002 \001(\0132\023.pybullet_grpc.vec3\0220\n\022in" "itialOrientation\030\003 \001(\0132\024.pybullet_grpc.q" "uat4\022\026\n\014useMultiBody\030\004 \001(\005H\000\022\026\n\014useFixed" "Base\030\005 \001(\010H\001\022\r\n\005flags\030\006 \001(\005\022\027\n\rglobalSca" "ling\030\007 \001(\001H\002B\021\n\017hasUseMultiBodyB\021\n\017hasUs" "eFixedBaseB\022\n\020hasGlobalScaling\"J\n\016LoadUr" "dfStatus\022\024\n\014bodyUniqueId\030\001 \001(\005\022\020\n\010bodyNa" "me\030\002 \001(\t\022\020\n\010fileName\030\003 \001(\t\"z\n\016LoadSdfCom" "mand\022\020\n\010fileName\030\001 \001(\t\022\026\n\014useMultiBody\030\002" " \001(\005H\000\022\027\n\rglobalScaling\030\003 \001(\001H\001B\021\n\017hasUs" "eMultiBodyB\022\n\020hasGlobalScaling\"(\n\017SdfLoa" "dedStatus\022\025\n\rbodyUniqueIds\030\002 \003(\005\"2\n\017Load" "MjcfCommand\022\020\n\010fileName\030\001 \001(\t\022\r\n\005flags\030\002" " \001(\005\")\n\020MjcfLoadedStatus\022\025\n\rbodyUniqueId" "s\030\002 \003(\005\"\211\006\n\025ChangeDynamicsCommand\022\024\n\014bod" "yUniqueId\030\001 \001(\005\022\021\n\tlinkIndex\030\002 \001(\005\022\016\n\004ma" "ss\030\003 \001(\001H\000\022\031\n\017lateralFriction\030\005 \001(\001H\001\022\032\n" "\020spinningFriction\030\006 \001(\001H\002\022\031\n\017rollingFric" "tion\030\007 \001(\001H\003\022\025\n\013restitution\030\010 \001(\001H\004\022\027\n\rl" "inearDamping\030\t \001(\001H\005\022\030\n\016angularDamping\030\n" " \001(\001H\006\022\032\n\020contactStiffness\030\013 \001(\001H\007\022\030\n\016co" "ntactDamping\030\014 \001(\001H\010\0223\n\024localInertiaDiag" "onal\030\r \001(\0132\023.pybullet_grpc.vec3H\t\022\030\n\016fri" "ctionAnchor\030\016 \001(\005H\n\022\036\n\024ccdSweptSphereRad" "ius\030\017 \001(\001H\013\022$\n\032contactProcessingThreshol" "d\030\020 \001(\001H\014\022\031\n\017activationState\030\021 \001(\005H\rB\t\n\007" "hasMassB\024\n\022hasLateralFrictionB\025\n\023hasSpin" "ningFrictionB\024\n\022hasRollingFrictionB\020\n\016ha" "sRestitutionB\022\n\020haslinearDampingB\023\n\021hasa" "ngularDampingB\025\n\023hasContactStiffnessB\023\n\021" "hasContactDampingB\031\n\027hasLocalInertiaDiag" "onalB\023\n\021hasFrictionAnchorB\031\n\027hasccdSwept" "SphereRadiusB\037\n\035hasContactProcessingThre" "sholdB\024\n\022hasActivationState\"=\n\022GetDynami" "csCommand\022\024\n\014bodyUniqueId\030\001 \001(\005\022\021\n\tlinkI" "ndex\030\002 \001(\005\"\211\003\n\021GetDynamicsStatus\022\014\n\004mass" "\030\003 \001(\001\022\027\n\017lateralFriction\030\005 \001(\001\022\030\n\020spinn" "ingFriction\030\006 \001(\001\022\027\n\017rollingFriction\030\007 \001" "(\001\022\023\n\013restitution\030\010 \001(\001\022\025\n\rlinearDamping" "\030\t \001(\001\022\026\n\016angularDamping\030\n \001(\001\022\030\n\020contac" "tStiffness\030\013 \001(\001\022\026\n\016contactDamping\030\014 \001(\001" "\0221\n\024localInertiaDiagonal\030\r \001(\0132\023.pybulle" "t_grpc.vec3\022\026\n\016frictionAnchor\030\016 \001(\005\022\034\n\024c" "cdSweptSphereRadius\030\017 \001(\001\022\"\n\032contactProc" "essingThreshold\030\020 \001(\001\022\027\n\017activationState" "\030\021 \001(\005\"\244\001\n\017InitPoseCommand\022\024\n\014bodyUnique" "Id\030\001 \001(\005\022\023\n\013updateflags\030\002 \001(\005\022\030\n\020hasInit" "ialStateQ\030\003 \003(\005\022\025\n\rinitialStateQ\030\004 \003(\001\022\033" "\n\023hasInitialStateQdot\030\005 \003(\005\022\030\n\020initialSt" "ateQdot\030\006 \003(\001\"r\n\031RequestActualStateComma" "nd\022\024\n\014bodyUniqueId\030\001 \001(\005\022 \n\030computeForwa" "rdKinematics\030\002 \001(\010\022\035\n\025computeLinkVelocit" "ies\030\003 \001(\010\"\317\002\n\025SendActualStateStatus\022\024\n\014b" "odyUniqueId\030\001 \001(\005\022\020\n\010numLinks\030\002 \001(\005\022\033\n\023n" "umDegreeOfFreedomQ\030\003 \001(\005\022\033\n\023numDegreeOfF" "reedomU\030\004 \001(\005\022\036\n\026rootLocalInertialFrame\030" "\005 \003(\001\022\024\n\014actualStateQ\030\006 \003(\001\022\027\n\017actualSta" "teQdot\030\007 \003(\001\022\033\n\023jointReactionForces\030\010 \003(" "\001\022\027\n\017jointMotorForce\030\t \003(\001\022\021\n\tlinkState\030" "\n \003(\001\022\033\n\023linkWorldVelocities\030\013 \003(\001\022\037\n\027li" "nkLocalInertialFrames\030\014 \003(\001\"\317\001\n Configur" "eOpenGLVisualizerCommand\022\023\n\013updateFlags\030" "\001 \001(\005\022\026\n\016cameraDistance\030\002 \001(\001\022\023\n\013cameraP" "itch\030\003 \001(\001\022\021\n\tcameraYaw\030\004 \001(\001\0221\n\024cameraT" "argetPosition\030\005 \001(\0132\023.pybullet_grpc.vec3" "\022\017\n\007setFlag\030\006 \001(\005\022\022\n\nsetEnabled\030\007 \001(\005\"\234\006" "\n\033PhysicsSimulationParameters\022\021\n\tdeltaTi" "me\030\001 \001(\001\0220\n\023gravityAcceleration\030\002 \001(\0132\023." "pybullet_grpc.vec3\022\035\n\025numSimulationSubSt" "eps\030\003 \001(\005\022\033\n\023numSolverIterations\030\004 \001(\005\022\035" "\n\025useRealTimeSimulation\030\005 \001(\005\022\027\n\017useSpli" "tImpulse\030\006 \001(\005\022(\n splitImpulsePenetratio" "nThreshold\030\007 \001(\001\022 \n\030contactBreakingThres" "hold\030\010 \001(\001\022\030\n\020internalSimFlags\030\t \001(\005\022\031\n\021" "defaultContactERP\030\n \001(\001\022\033\n\023collisionFilt" "erMode\030\013 \001(\005\022\031\n\021enableFileCaching\030\014 \001(\005\022" "$\n\034restitutionVelocityThreshold\030\r \001(\001\022\034\n" "\024defaultNonContactERP\030\016 \001(\001\022\023\n\013frictionE" "RP\030\017 \001(\001\022\030\n\020defaultGlobalCFM\030\020 \001(\001\022\023\n\013fr" "ictionCFM\030\021 \001(\001\022\032\n\022enableConeFriction\030\022 " "\001(\005\022%\n\035deterministicOverlappingPairs\030\023 \001" "(\005\022\035\n\025allowedCcdPenetration\030\024 \001(\001\022\031\n\021joi" "ntFeedbackMode\030\025 \001(\005\022\037\n\027solverResidualTh" "reshold\030\026 \001(\001\022\023\n\013contactSlop\030\027 \001(\001\022\021\n\ten" "ableSAT\030\030 \001(\005\022\034\n\024constraintSolverType\030\031 " "\001(\005\022\037\n\027minimumSolverIslandSize\030\032 \001(\005\"u\n\"" "PhysicsSimulationParametersCommand\022\023\n\013up" "dateFlags\030\001 \001(\005\022:\n\006params\030\002 \001(\0132*.pybull" "et_grpc.PhysicsSimulationParameters\"\367\001\n\030" "JointMotorControlCommand\022\024\n\014bodyUniqueId" "\030\001 \001(\005\022\023\n\013controlMode\030\002 \001(\005\022\023\n\013updateFla" "gs\030\003 \001(\005\022\n\n\002Kp\030\004 \003(\001\022\n\n\002Kd\030\005 \003(\001\022\023\n\013maxV" "elocity\030\006 \003(\001\022\034\n\024hasDesiredStateFlags\030\007 " "\003(\005\022\025\n\rdesiredStateQ\030\010 \003(\001\022\030\n\020desiredSta" "teQdot\030\t \003(\001\022\037\n\027desiredStateForceTorque\030" "\n \003(\001\"\266\003\n\025UserConstraintCommand\022\027\n\017paren" "tBodyIndex\030\001 \001(\005\022\030\n\020parentJointIndex\030\002 \001" "(\005\022\026\n\016childBodyIndex\030\003 \001(\005\022\027\n\017childJoint" "Index\030\004 \001(\005\022-\n\013parentFrame\030\005 \001(\0132\030.pybul" "let_grpc.transform\022,\n\nchildFrame\030\006 \001(\0132\030" ".pybullet_grpc.transform\022&\n\tjointAxis\030\007 " "\001(\0132\023.pybullet_grpc.vec3\022\021\n\tjointType\030\010 " "\001(\005\022\027\n\017maxAppliedForce\030\t \001(\001\022\036\n\026userCons" "traintUniqueId\030\n \001(\005\022\021\n\tgearRatio\030\013 \001(\001\022" "\023\n\013gearAuxLink\030\014 \001(\005\022\036\n\026relativePosition" "Target\030\r \001(\001\022\013\n\003erp\030\016 \001(\001\022\023\n\013updateFlags" "\030\017 \001(\005\"O\n\024UserConstraintStatus\022\027\n\017maxApp" "liedForce\030\t \001(\001\022\036\n\026userConstraintUniqueI" "d\030\n \001(\005\"\245\001\n\031UserConstraintStateStatus\022:\n" "\035appliedConstraintForcesLinear\030\001 \001(\0132\023.p" "ybullet_grpc.vec3\022;\n\036appliedConstraintFo" "rcesAngular\030\002 \001(\0132\023.pybullet_grpc.vec3\022\017" "\n\007numDofs\030\003 \001(\005\"\036\n\034RequestKeyboardEvents" "Command\"2\n\rKeyboardEvent\022\017\n\007keyCode\030\001 \001(" "\005\022\020\n\010keyState\030\002 \001(\005\"L\n\024KeyboardEventsSta" "tus\0224\n\016keyboardEvents\030\001 \003(\0132\034.pybullet_g" "rpc.KeyboardEvent\"\277\004\n\031RequestCameraImage" "Command\022\023\n\013updateFlags\030\001 \001(\005\022\023\n\013cameraFl" "ags\030\002 \001(\005\022,\n\nviewMatrix\030\003 \001(\0132\030.pybullet" "_grpc.matrix4x4\0222\n\020projectionMatrix\030\004 \001(" "\0132\030.pybullet_grpc.matrix4x4\022\027\n\017startPixe" "lIndex\030\005 \001(\005\022\022\n\npixelWidth\030\006 \001(\005\022\023\n\013pixe" "lHeight\030\007 \001(\005\022+\n\016lightDirection\030\010 \001(\0132\023." "pybullet_grpc.vec3\022\'\n\nlightColor\030\t \001(\0132\023" ".pybullet_grpc.vec3\022\025\n\rlightDistance\030\n \001" "(\001\022\031\n\021lightAmbientCoeff\030\013 \001(\001\022\031\n\021lightDi" "ffuseCoeff\030\014 \001(\001\022\032\n\022lightSpecularCoeff\030\r" " \001(\001\022\021\n\thasShadow\030\016 \001(\005\022=\n\033projectiveTex" "tureViewMatrix\030\017 \001(\0132\030.pybullet_grpc.mat" "rix4x4\022C\n!projectiveTextureProjectionMat" "rix\030\020 \001(\0132\030.pybullet_grpc.matrix4x4\"\224\001\n\030" "RequestCameraImageStatus\022\022\n\nimageWidth\030\001" " \001(\005\022\023\n\013imageHeight\030\002 \001(\005\022\032\n\022startingPix" "elIndex\030\003 \001(\005\022\027\n\017numPixelsCopied\030\004 \001(\005\022\032" "\n\022numRemainingPixels\030\005 \001(\005\"\030\n\026ResetSimul" "ationCommand\"\306\013\n\017PyBulletCommand\022\023\n\013comm" "andType\030\001 \001(\005\022\022\n\nbinaryBlob\030\002 \003(\014\022 \n\030unk" "nownCommandBinaryBlob\030\003 \003(\014\0229\n\017loadUrdfC" "ommand\030\004 \001(\0132\036.pybullet_grpc.LoadUrdfCom" "mandH\000\022G\n\026terminateServerCommand\030\005 \001(\0132%" ".pybullet_grpc.TerminateServerCommandH\000\022" "E\n\025stepSimulationCommand\030\006 \001(\0132$.pybulle" "t_grpc.StepSimulationCommandH\000\0227\n\016loadSd" "fCommand\030\007 \001(\0132\035.pybullet_grpc.LoadSdfCo" "mmandH\000\0229\n\017loadMjcfCommand\030\010 \001(\0132\036.pybul" "let_grpc.LoadMjcfCommandH\000\022E\n\025changeDyna" "micsCommand\030\t \001(\0132$.pybullet_grpc.Change" "DynamicsCommandH\000\022\?\n\022getDynamicsCommand\030" "\n \001(\0132!.pybullet_grpc.GetDynamicsCommand" "H\000\0229\n\017initPoseCommand\030\013 \001(\0132\036.pybullet_g" "rpc.InitPoseCommandH\000\022M\n\031requestActualSt" "ateCommand\030\014 \001(\0132(.pybullet_grpc.Request" "ActualStateCommandH\000\022[\n configureOpenGLV" "isualizerCommand\030\r \001(\0132/.pybullet_grpc.C" "onfigureOpenGLVisualizerCommandH\000\022=\n\021syn" "cBodiesCommand\030\016 \001(\0132 .pybullet_grpc.Syn" "cBodiesCommandH\000\022G\n\026requestBodyInfoComma" "nd\030\017 \001(\0132%.pybullet_grpc.RequestBodyInfo" "CommandH\000\022b\n%setPhysicsSimulationParamet" "ersCommand\030\020 \001(\01321.pybullet_grpc.Physics" "SimulationParametersCommandH\000\022K\n\030jointMo" "torControlCommand\030\021 \001(\0132\'.pybullet_grpc." "JointMotorControlCommandH\000\022E\n\025userConstr" "aintCommand\030\022 \001(\0132$.pybullet_grpc.UserCo" "nstraintCommandH\000\022A\n\023checkVersionCommand" "\030\023 \001(\0132\".pybullet_grpc.CheckVersionComma" "ndH\000\022S\n\034requestKeyboardEventsCommand\030\024 \001" "(\0132+.pybullet_grpc.RequestKeyboardEvents" "CommandH\000\022M\n\031requestCameraImageCommand\030\025" " \001(\0132(.pybullet_grpc.RequestCameraImageC" "ommandH\000\022G\n\026resetSimulationCommand\030\026 \001(\013" "2%.pybullet_grpc.ResetSimulationCommandH" "\000B\n\n\010commands\"\321\007\n\016PyBulletStatus\022\022\n\nstat" "usType\030\001 \001(\005\022\022\n\nbinaryBlob\030\002 \003(\014\022\037\n\027unkn" "ownStatusBinaryBlob\030\003 \003(\014\0223\n\nurdfStatus\030" "\004 \001(\0132\035.pybullet_grpc.LoadUrdfStatusH\000\0223" "\n\tsdfStatus\030\005 \001(\0132\036.pybullet_grpc.SdfLoa" "dedStatusH\000\0225\n\nmjcfStatus\030\006 \001(\0132\037.pybull" "et_grpc.MjcfLoadedStatusH\000\022=\n\021getDynamic" "sStatus\030\007 \001(\0132 .pybullet_grpc.GetDynamic" "sStatusH\000\022A\n\021actualStateStatus\030\010 \001(\0132$.p" "ybullet_grpc.SendActualStateStatusH\000\022;\n\020" "syncBodiesStatus\030\t \001(\0132\037.pybullet_grpc.S" "yncBodiesStatusH\000\022E\n\025requestBodyInfoStat" "us\030\n \001(\0132$.pybullet_grpc.RequestBodyInfo" "StatusH\000\022^\n(requestPhysicsSimulationPara" "metersStatus\030\013 \001(\0132*.pybullet_grpc.Physi" "csSimulationParametersH\000\022\?\n\022checkVersion" "Status\030\014 \001(\0132!.pybullet_grpc.CheckVersio" "nStatusH\000\022C\n\024userConstraintStatus\030\r \001(\0132" "#.pybullet_grpc.UserConstraintStatusH\000\022M" "\n\031userConstraintStateStatus\030\016 \001(\0132(.pybu" "llet_grpc.UserConstraintStateStatusH\000\022C\n" "\024keyboardEventsStatus\030\017 \001(\0132#.pybullet_g" "rpc.KeyboardEventsStatusH\000\022K\n\030requestCam" "eraImageStatus\030\020 \001(\0132\'.pybullet_grpc.Req" "uestCameraImageStatusH\000B\010\n\006status2_\n\013PyB" "ulletAPI\022P\n\rSubmitCommand\022\036.pybullet_grp" "c.PyBulletCommand\032\035.pybullet_grpc.PyBull" "etStatus\"\000B.\n\025io.grpc.pybullet_grpcB\rPyB" "ulletProtoP\001\242\002\003PBGb\006proto3" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 8746); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "pybullet.proto", &protobuf_RegisterTypes); } void AddDescriptors() { static ::google::protobuf::internal::once_flag once; ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); } // 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; const int vec3::kZFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 vec3::vec3() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&x_, &from.x_, static_cast(reinterpret_cast(&z_) - reinterpret_cast(&x_)) + sizeof(z_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.vec3) } void vec3::SharedCtor() { ::memset(&x_, 0, static_cast( reinterpret_cast(&z_) - reinterpret_cast(&x_)) + sizeof(z_)); } vec3::~vec3() { // @@protoc_insertion_point(destructor:pybullet_grpc.vec3) SharedDtor(); } void vec3::SharedDtor() { } void vec3::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* vec3::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const vec3& vec3::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_vec3.base); return *internal_default_instance(); } void vec3::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.vec3) ::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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.vec3) for (;;) { ::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 (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>( input, &x_))); } else { goto handle_unusual; } break; } // double y = 2; case 2: { 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>( input, &y_))); } else { goto handle_unusual; } break; } // double z = 3; case 3: { 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>( input, &z_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.vec3) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.vec3) return false; #undef DO_ } 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); } // double y = 2; if (this->y() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->y(), output); } // double z = 3; if (this->z() != 0) { ::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 // @@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); } // double y = 2; if (this->y() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->y(), target); } // double z = 3; if (this->z() != 0) { 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; } 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; } // double y = 2; if (this->y() != 0) { total_size += 1 + 8; } // double z = 3; if (this->z() != 0) { total_size += 1 + 8; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void vec3::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.vec3) GOOGLE_DCHECK_NE(&from, this); const vec3* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.vec3) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.vec3) MergeFrom(*source); } } 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()); } if (from.y() != 0) { set_y(from.y()); } if (from.z() != 0) { set_z(from.z()); } } void vec3::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.vec3) if (&from == this) return; Clear(); MergeFrom(from); } void vec3::CopyFrom(const vec3& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.vec3) if (&from == this) return; Clear(); MergeFrom(from); } bool vec3::IsInitialized() const { return true; } void vec3::Swap(vec3* other) { if (other == this) return; InternalSwap(other); } void vec3::InternalSwap(vec3* other) { 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[kIndexInFileMessages]; } // =================================================================== void quat4::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int quat4::kXFieldNumber; const int quat4::kYFieldNumber; const int quat4::kZFieldNumber; const int quat4::kWFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 quat4::quat4() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&x_, &from.x_, static_cast(reinterpret_cast(&w_) - reinterpret_cast(&x_)) + sizeof(w_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.quat4) } void quat4::SharedCtor() { ::memset(&x_, 0, static_cast( reinterpret_cast(&w_) - reinterpret_cast(&x_)) + sizeof(w_)); } quat4::~quat4() { // @@protoc_insertion_point(destructor:pybullet_grpc.quat4) SharedDtor(); } void quat4::SharedDtor() { } void quat4::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* quat4::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const quat4& quat4::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_quat4.base); return *internal_default_instance(); } void quat4::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.quat4) ::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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.quat4) for (;;) { ::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 (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>( input, &x_))); } else { goto handle_unusual; } break; } // double y = 2; case 2: { 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>( input, &y_))); } else { goto handle_unusual; } break; } // double z = 3; case 3: { 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>( input, &z_))); } else { goto handle_unusual; } break; } // double w = 4; case 4: { 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>( input, &w_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.quat4) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.quat4) return false; #undef DO_ } 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); } // double y = 2; if (this->y() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->y(), output); } // double z = 3; if (this->z() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->z(), output); } // double w = 4; if (this->w() != 0) { ::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 // @@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); } // double y = 2; if (this->y() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->y(), target); } // double z = 3; if (this->z() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->z(), target); } // double w = 4; if (this->w() != 0) { 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; } 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; } // double y = 2; if (this->y() != 0) { total_size += 1 + 8; } // double z = 3; if (this->z() != 0) { total_size += 1 + 8; } // double w = 4; if (this->w() != 0) { total_size += 1 + 8; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void quat4::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.quat4) GOOGLE_DCHECK_NE(&from, this); const quat4* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.quat4) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.quat4) MergeFrom(*source); } } 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()); } if (from.y() != 0) { set_y(from.y()); } if (from.z() != 0) { set_z(from.z()); } if (from.w() != 0) { set_w(from.w()); } } void quat4::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.quat4) if (&from == this) return; Clear(); MergeFrom(from); } void quat4::CopyFrom(const quat4& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.quat4) if (&from == this) return; Clear(); MergeFrom(from); } bool quat4::IsInitialized() const { return true; } void quat4::Swap(quat4* other) { if (other == this) return; InternalSwap(other); } void quat4::InternalSwap(quat4* other) { 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[kIndexInFileMessages]; } // =================================================================== void vec4::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int vec4::kXFieldNumber; const int vec4::kYFieldNumber; const int vec4::kZFieldNumber; const int vec4::kWFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 vec4::vec4() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&x_, &from.x_, static_cast(reinterpret_cast(&w_) - reinterpret_cast(&x_)) + sizeof(w_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.vec4) } void vec4::SharedCtor() { ::memset(&x_, 0, static_cast( reinterpret_cast(&w_) - reinterpret_cast(&x_)) + sizeof(w_)); } vec4::~vec4() { // @@protoc_insertion_point(destructor:pybullet_grpc.vec4) SharedDtor(); } void vec4::SharedDtor() { } void vec4::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* vec4::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const vec4& vec4::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_vec4.base); return *internal_default_instance(); } void vec4::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.vec4) ::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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.vec4) for (;;) { ::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 (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>( input, &x_))); } else { goto handle_unusual; } break; } // double y = 2; case 2: { 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>( input, &y_))); } else { goto handle_unusual; } break; } // double z = 3; case 3: { 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>( input, &z_))); } else { goto handle_unusual; } break; } // double w = 4; case 4: { 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>( input, &w_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.vec4) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.vec4) return false; #undef DO_ } 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); } // double y = 2; if (this->y() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->y(), output); } // double z = 3; if (this->z() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->z(), output); } // double w = 4; if (this->w() != 0) { ::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 // @@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); } // double y = 2; if (this->y() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->y(), target); } // double z = 3; if (this->z() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->z(), target); } // double w = 4; if (this->w() != 0) { 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; } 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; } // double y = 2; if (this->y() != 0) { total_size += 1 + 8; } // double z = 3; if (this->z() != 0) { total_size += 1 + 8; } // double w = 4; if (this->w() != 0) { total_size += 1 + 8; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void vec4::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.vec4) GOOGLE_DCHECK_NE(&from, this); const vec4* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.vec4) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.vec4) MergeFrom(*source); } } 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()); } if (from.y() != 0) { set_y(from.y()); } if (from.z() != 0) { set_z(from.z()); } if (from.w() != 0) { set_w(from.w()); } } void vec4::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.vec4) if (&from == this) return; Clear(); MergeFrom(from); } void vec4::CopyFrom(const vec4& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.vec4) if (&from == this) return; Clear(); MergeFrom(from); } bool vec4::IsInitialized() const { return true; } void vec4::Swap(vec4* other) { if (other == this) return; InternalSwap(other); } void vec4::InternalSwap(vec4* other) { 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[kIndexInFileMessages]; } // =================================================================== 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; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 transform::transform() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_origin()) { origin_ = new ::pybullet_grpc::vec3(*from.origin_); } else { origin_ = NULL; } if (from.has_orientation()) { orientation_ = new ::pybullet_grpc::quat4(*from.orientation_); } else { orientation_ = NULL; } // @@protoc_insertion_point(copy_constructor:pybullet_grpc.transform) } void transform::SharedCtor() { ::memset(&origin_, 0, static_cast( reinterpret_cast(&orientation_) - reinterpret_cast(&origin_)) + sizeof(orientation_)); } transform::~transform() { // @@protoc_insertion_point(destructor:pybullet_grpc.transform) SharedDtor(); } void transform::SharedDtor() { if (this != internal_default_instance()) delete origin_; if (this != internal_default_instance()) delete orientation_; } void transform::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* transform::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const transform& transform::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_transform.base); return *internal_default_instance(); } 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_; } origin_ = NULL; if (GetArenaNoVirtual() == NULL && orientation_ != NULL) { delete orientation_; } orientation_ = NULL; _internal_metadata_.Clear(); } bool transform::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.transform) for (;;) { ::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 (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; } break; } // .pybullet_grpc.quat4 orientation = 2; case 2: { 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; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.transform) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.transform) return false; #undef DO_ } 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->_internal_origin(), output); } // .pybullet_grpc.quat4 orientation = 2; if (this->has_orientation()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 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 // @@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:: InternalWriteMessageToArray( 1, this->_internal_origin(), deterministic, target); } // .pybullet_grpc.quat4 orientation = 2; if (this->has_orientation()) { target = ::google::protobuf::internal::WireFormatLite:: 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; } 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::MessageSize( *origin_); } // .pybullet_grpc.quat4 orientation = 2; if (this->has_orientation()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *orientation_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void transform::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.transform) GOOGLE_DCHECK_NE(&from, this); const transform* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.transform) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.transform) MergeFrom(*source); } } 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()); } if (from.has_orientation()) { mutable_orientation()->::pybullet_grpc::quat4::MergeFrom(from.orientation()); } } void transform::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.transform) if (&from == this) return; Clear(); MergeFrom(from); } void transform::CopyFrom(const transform& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.transform) if (&from == this) return; Clear(); MergeFrom(from); } bool transform::IsInitialized() const { return true; } void transform::Swap(transform* other) { if (other == this) return; InternalSwap(other); } void transform::InternalSwap(transform* other) { 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[kIndexInFileMessages]; } // =================================================================== 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) { ::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_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.matrix4x4) } void matrix4x4::SharedCtor() { } matrix4x4::~matrix4x4() { // @@protoc_insertion_point(destructor:pybullet_grpc.matrix4x4) SharedDtor(); } void matrix4x4::SharedDtor() { } void matrix4x4::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* matrix4x4::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const matrix4x4& matrix4x4::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_matrix4x4.base); return *internal_default_instance(); } 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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.matrix4x4) for (;;) { ::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 (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 ( 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()))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.matrix4x4) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.matrix4x4) return false; #undef DO_ } 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(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 // @@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( 1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _elems_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: 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; } 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 = static_cast(this->elems_size()); size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + ::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(); _elems_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void matrix4x4::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.matrix4x4) GOOGLE_DCHECK_NE(&from, this); const matrix4x4* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.matrix4x4) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.matrix4x4) MergeFrom(*source); } } 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_); } void matrix4x4::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.matrix4x4) if (&from == this) return; Clear(); MergeFrom(from); } void matrix4x4::CopyFrom(const matrix4x4& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.matrix4x4) if (&from == this) return; Clear(); MergeFrom(from); } bool matrix4x4::IsInitialized() const { return true; } void matrix4x4::Swap(matrix4x4* other) { if (other == this) return; InternalSwap(other); } void matrix4x4::InternalSwap(matrix4x4* other) { 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[kIndexInFileMessages]; } // =================================================================== 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) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); clientversion_ = from.clientversion_; // @@protoc_insertion_point(copy_constructor:pybullet_grpc.CheckVersionCommand) } void CheckVersionCommand::SharedCtor() { clientversion_ = 0; } CheckVersionCommand::~CheckVersionCommand() { // @@protoc_insertion_point(destructor:pybullet_grpc.CheckVersionCommand) SharedDtor(); } void CheckVersionCommand::SharedDtor() { } void CheckVersionCommand::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* CheckVersionCommand::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const CheckVersionCommand& CheckVersionCommand::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_CheckVersionCommand.base); return *internal_default_instance(); } 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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.CheckVersionCommand) for (;;) { ::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 (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>( input, &clientversion_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.CheckVersionCommand) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.CheckVersionCommand) return false; #undef DO_ } 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 // @@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; } 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 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->clientversion()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void CheckVersionCommand::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.CheckVersionCommand) GOOGLE_DCHECK_NE(&from, this); const CheckVersionCommand* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.CheckVersionCommand) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.CheckVersionCommand) MergeFrom(*source); } } 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()); } } void CheckVersionCommand::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.CheckVersionCommand) if (&from == this) return; Clear(); MergeFrom(from); } void CheckVersionCommand::CopyFrom(const CheckVersionCommand& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.CheckVersionCommand) if (&from == this) return; Clear(); MergeFrom(from); } bool CheckVersionCommand::IsInitialized() const { return true; } void CheckVersionCommand::Swap(CheckVersionCommand* other) { if (other == this) return; InternalSwap(other); } void CheckVersionCommand::InternalSwap(CheckVersionCommand* other) { 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[kIndexInFileMessages]; } // =================================================================== 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) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); serverversion_ = from.serverversion_; // @@protoc_insertion_point(copy_constructor:pybullet_grpc.CheckVersionStatus) } void CheckVersionStatus::SharedCtor() { serverversion_ = 0; } CheckVersionStatus::~CheckVersionStatus() { // @@protoc_insertion_point(destructor:pybullet_grpc.CheckVersionStatus) SharedDtor(); } void CheckVersionStatus::SharedDtor() { } void CheckVersionStatus::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* CheckVersionStatus::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const CheckVersionStatus& CheckVersionStatus::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_CheckVersionStatus.base); return *internal_default_instance(); } 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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.CheckVersionStatus) for (;;) { ::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 (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>( input, &serverversion_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.CheckVersionStatus) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.CheckVersionStatus) return false; #undef DO_ } 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 // @@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; } 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 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->serverversion()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void CheckVersionStatus::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.CheckVersionStatus) GOOGLE_DCHECK_NE(&from, this); const CheckVersionStatus* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.CheckVersionStatus) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.CheckVersionStatus) MergeFrom(*source); } } 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()); } } void CheckVersionStatus::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.CheckVersionStatus) if (&from == this) return; Clear(); MergeFrom(from); } void CheckVersionStatus::CopyFrom(const CheckVersionStatus& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.CheckVersionStatus) if (&from == this) return; Clear(); MergeFrom(from); } bool CheckVersionStatus::IsInitialized() const { return true; } void CheckVersionStatus::Swap(CheckVersionStatus* other) { if (other == this) return; InternalSwap(other); } void CheckVersionStatus::InternalSwap(CheckVersionStatus* other) { 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[kIndexInFileMessages]; } // =================================================================== 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) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); exitreason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.exitreason().size() > 0) { exitreason_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.exitreason_); } // @@protoc_insertion_point(copy_constructor:pybullet_grpc.TerminateServerCommand) } void TerminateServerCommand::SharedCtor() { exitreason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } TerminateServerCommand::~TerminateServerCommand() { // @@protoc_insertion_point(destructor:pybullet_grpc.TerminateServerCommand) SharedDtor(); } void TerminateServerCommand::SharedDtor() { exitreason_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void TerminateServerCommand::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* TerminateServerCommand::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const TerminateServerCommand& TerminateServerCommand::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_TerminateServerCommand.base); return *internal_default_instance(); } 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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.TerminateServerCommand) for (;;) { ::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 (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(), static_cast(this->exitreason().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "pybullet_grpc.TerminateServerCommand.exitReason")); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.TerminateServerCommand) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.TerminateServerCommand) return false; #undef DO_ } 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(), 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 // @@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(), static_cast(this->exitreason().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.TerminateServerCommand.exitReason"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 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; } 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 + ::google::protobuf::internal::WireFormatLite::StringSize( this->exitreason()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void TerminateServerCommand::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.TerminateServerCommand) GOOGLE_DCHECK_NE(&from, this); const TerminateServerCommand* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.TerminateServerCommand) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.TerminateServerCommand) MergeFrom(*source); } } 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_); } } void TerminateServerCommand::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.TerminateServerCommand) if (&from == this) return; Clear(); MergeFrom(from); } void TerminateServerCommand::CopyFrom(const TerminateServerCommand& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.TerminateServerCommand) if (&from == this) return; Clear(); MergeFrom(from); } bool TerminateServerCommand::IsInitialized() const { return true; } void TerminateServerCommand::Swap(TerminateServerCommand* other) { if (other == this) return; InternalSwap(other); } void TerminateServerCommand::InternalSwap(TerminateServerCommand* other) { 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[kIndexInFileMessages]; } // =================================================================== 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) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.StepSimulationCommand) } void StepSimulationCommand::SharedCtor() { } StepSimulationCommand::~StepSimulationCommand() { // @@protoc_insertion_point(destructor:pybullet_grpc.StepSimulationCommand) SharedDtor(); } void StepSimulationCommand::SharedDtor() { } void StepSimulationCommand::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* StepSimulationCommand::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const StepSimulationCommand& StepSimulationCommand::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_StepSimulationCommand.base); return *internal_default_instance(); } 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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.StepSimulationCommand) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.StepSimulationCommand) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.StepSimulationCommand) return false; #undef DO_ } 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 // @@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; } 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); SetCachedSize(cached_size); return total_size; } void StepSimulationCommand::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.StepSimulationCommand) GOOGLE_DCHECK_NE(&from, this); const StepSimulationCommand* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.StepSimulationCommand) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.StepSimulationCommand) MergeFrom(*source); } } 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) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.StepSimulationCommand) if (&from == this) return; Clear(); MergeFrom(from); } void StepSimulationCommand::CopyFrom(const StepSimulationCommand& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.StepSimulationCommand) if (&from == this) return; Clear(); MergeFrom(from); } bool StepSimulationCommand::IsInitialized() const { return true; } void StepSimulationCommand::Swap(StepSimulationCommand* other) { if (other == this) return; InternalSwap(other); } void StepSimulationCommand::InternalSwap(StepSimulationCommand* other) { 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[kIndexInFileMessages]; } // =================================================================== 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) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.SyncBodiesCommand) } void SyncBodiesCommand::SharedCtor() { } SyncBodiesCommand::~SyncBodiesCommand() { // @@protoc_insertion_point(destructor:pybullet_grpc.SyncBodiesCommand) SharedDtor(); } void SyncBodiesCommand::SharedDtor() { } void SyncBodiesCommand::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* SyncBodiesCommand::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const SyncBodiesCommand& SyncBodiesCommand::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_SyncBodiesCommand.base); return *internal_default_instance(); } 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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.SyncBodiesCommand) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.SyncBodiesCommand) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.SyncBodiesCommand) return false; #undef DO_ } 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 // @@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; } 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); SetCachedSize(cached_size); return total_size; } void SyncBodiesCommand::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.SyncBodiesCommand) GOOGLE_DCHECK_NE(&from, this); const SyncBodiesCommand* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.SyncBodiesCommand) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.SyncBodiesCommand) MergeFrom(*source); } } 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) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.SyncBodiesCommand) if (&from == this) return; Clear(); MergeFrom(from); } void SyncBodiesCommand::CopyFrom(const SyncBodiesCommand& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.SyncBodiesCommand) if (&from == this) return; Clear(); MergeFrom(from); } bool SyncBodiesCommand::IsInitialized() const { return true; } void SyncBodiesCommand::Swap(SyncBodiesCommand* other) { if (other == this) return; InternalSwap(other); } void SyncBodiesCommand::InternalSwap(SyncBodiesCommand* other) { 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[kIndexInFileMessages]; } // =================================================================== void SyncBodiesStatus::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int SyncBodiesStatus::kBodyUniqueIdsFieldNumber; const int SyncBodiesStatus::kUserConstraintUniqueIdsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SyncBodiesStatus::SyncBodiesStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_pybullet_2eproto::scc_info_SyncBodiesStatus.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.SyncBodiesStatus) } SyncBodiesStatus::SyncBodiesStatus(const SyncBodiesStatus& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), bodyuniqueids_(from.bodyuniqueids_), userconstraintuniqueids_(from.userconstraintuniqueids_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.SyncBodiesStatus) } void SyncBodiesStatus::SharedCtor() { } SyncBodiesStatus::~SyncBodiesStatus() { // @@protoc_insertion_point(destructor:pybullet_grpc.SyncBodiesStatus) SharedDtor(); } void SyncBodiesStatus::SharedDtor() { } void SyncBodiesStatus::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* SyncBodiesStatus::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const SyncBodiesStatus& SyncBodiesStatus::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_SyncBodiesStatus.base); return *internal_default_instance(); } 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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.SyncBodiesStatus) for (;;) { ::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 (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 ( 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()))); } else { goto handle_unusual; } break; } // repeated int32 userConstraintUniqueIds = 2; case 2: { 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 ( 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()))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.SyncBodiesStatus) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.SyncBodiesStatus) return false; #undef DO_ } 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(static_cast< ::google::protobuf::uint32>( _bodyuniqueids_cached_byte_size_)); } for (int i = 0, n = this->bodyuniqueids_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( this->bodyuniqueids(i), output); } // 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(static_cast< ::google::protobuf::uint32>( _userconstraintuniqueids_cached_byte_size_)); } 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 // @@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( 1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _bodyuniqueids_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: WriteInt32NoTagToArray(this->bodyuniqueids_, target); } // repeated int32 userConstraintUniqueIds = 2; if (this->userconstraintuniqueids_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _userconstraintuniqueids_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: 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; } 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( static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _bodyuniqueids_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } // repeated int32 userConstraintUniqueIds = 2; { size_t data_size = ::google::protobuf::internal::WireFormatLite:: Int32Size(this->userconstraintuniqueids_); if (data_size > 0) { total_size += 1 + ::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(); _userconstraintuniqueids_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void SyncBodiesStatus::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.SyncBodiesStatus) GOOGLE_DCHECK_NE(&from, this); const SyncBodiesStatus* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.SyncBodiesStatus) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.SyncBodiesStatus) MergeFrom(*source); } } 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_); } void SyncBodiesStatus::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.SyncBodiesStatus) if (&from == this) return; Clear(); MergeFrom(from); } void SyncBodiesStatus::CopyFrom(const SyncBodiesStatus& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.SyncBodiesStatus) if (&from == this) return; Clear(); MergeFrom(from); } bool SyncBodiesStatus::IsInitialized() const { return true; } void SyncBodiesStatus::Swap(SyncBodiesStatus* other) { if (other == this) return; InternalSwap(other); } void SyncBodiesStatus::InternalSwap(SyncBodiesStatus* other) { 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[kIndexInFileMessages]; } // =================================================================== 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) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); bodyuniqueid_ = from.bodyuniqueid_; // @@protoc_insertion_point(copy_constructor:pybullet_grpc.RequestBodyInfoCommand) } void RequestBodyInfoCommand::SharedCtor() { bodyuniqueid_ = 0; } RequestBodyInfoCommand::~RequestBodyInfoCommand() { // @@protoc_insertion_point(destructor:pybullet_grpc.RequestBodyInfoCommand) SharedDtor(); } void RequestBodyInfoCommand::SharedDtor() { } void RequestBodyInfoCommand::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* RequestBodyInfoCommand::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const RequestBodyInfoCommand& RequestBodyInfoCommand::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_RequestBodyInfoCommand.base); return *internal_default_instance(); } 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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.RequestBodyInfoCommand) for (;;) { ::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 (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>( input, &bodyuniqueid_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.RequestBodyInfoCommand) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.RequestBodyInfoCommand) return false; #undef DO_ } 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 // @@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; } 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 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->bodyuniqueid()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void RequestBodyInfoCommand::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.RequestBodyInfoCommand) GOOGLE_DCHECK_NE(&from, this); const RequestBodyInfoCommand* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.RequestBodyInfoCommand) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.RequestBodyInfoCommand) MergeFrom(*source); } } 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()); } } void RequestBodyInfoCommand::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.RequestBodyInfoCommand) if (&from == this) return; Clear(); MergeFrom(from); } void RequestBodyInfoCommand::CopyFrom(const RequestBodyInfoCommand& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.RequestBodyInfoCommand) if (&from == this) return; Clear(); MergeFrom(from); } bool RequestBodyInfoCommand::IsInitialized() const { return true; } void RequestBodyInfoCommand::Swap(RequestBodyInfoCommand* other) { if (other == this) return; InternalSwap(other); } void RequestBodyInfoCommand::InternalSwap(RequestBodyInfoCommand* other) { 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[kIndexInFileMessages]; } // =================================================================== void RequestBodyInfoStatus::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int RequestBodyInfoStatus::kBodyUniqueIdFieldNumber; const int RequestBodyInfoStatus::kBodyNameFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 RequestBodyInfoStatus::RequestBodyInfoStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); bodyname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.bodyname().size() > 0) { bodyname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bodyname_); } bodyuniqueid_ = from.bodyuniqueid_; // @@protoc_insertion_point(copy_constructor:pybullet_grpc.RequestBodyInfoStatus) } void RequestBodyInfoStatus::SharedCtor() { bodyname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); bodyuniqueid_ = 0; } RequestBodyInfoStatus::~RequestBodyInfoStatus() { // @@protoc_insertion_point(destructor:pybullet_grpc.RequestBodyInfoStatus) SharedDtor(); } void RequestBodyInfoStatus::SharedDtor() { bodyname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void RequestBodyInfoStatus::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* RequestBodyInfoStatus::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const RequestBodyInfoStatus& RequestBodyInfoStatus::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_RequestBodyInfoStatus.base); return *internal_default_instance(); } 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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.RequestBodyInfoStatus) for (;;) { ::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 (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>( input, &bodyuniqueid_))); } else { goto handle_unusual; } break; } // string bodyName = 2; case 2: { 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(), static_cast(this->bodyname().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "pybullet_grpc.RequestBodyInfoStatus.bodyName")); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.RequestBodyInfoStatus) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.RequestBodyInfoStatus) return false; #undef DO_ } 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); } // string bodyName = 2; if (this->bodyname().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 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 // @@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); } // string bodyName = 2; if (this->bodyname().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->bodyname().data(), static_cast(this->bodyname().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.RequestBodyInfoStatus.bodyName"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 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; } 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 + ::google::protobuf::internal::WireFormatLite::StringSize( this->bodyname()); } // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->bodyuniqueid()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void RequestBodyInfoStatus::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.RequestBodyInfoStatus) GOOGLE_DCHECK_NE(&from, this); const RequestBodyInfoStatus* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.RequestBodyInfoStatus) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.RequestBodyInfoStatus) MergeFrom(*source); } } 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_); } if (from.bodyuniqueid() != 0) { set_bodyuniqueid(from.bodyuniqueid()); } } void RequestBodyInfoStatus::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.RequestBodyInfoStatus) if (&from == this) return; Clear(); MergeFrom(from); } void RequestBodyInfoStatus::CopyFrom(const RequestBodyInfoStatus& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.RequestBodyInfoStatus) if (&from == this) return; Clear(); MergeFrom(from); } bool RequestBodyInfoStatus::IsInitialized() const { return true; } void RequestBodyInfoStatus::Swap(RequestBodyInfoStatus* other) { if (other == this) return; InternalSwap(other); } void RequestBodyInfoStatus::InternalSwap(RequestBodyInfoStatus* other) { 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[kIndexInFileMessages]; } // =================================================================== 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; const int LoadUrdfCommand::kInitialOrientationFieldNumber; const int LoadUrdfCommand::kUseMultiBodyFieldNumber; const int LoadUrdfCommand::kUseFixedBaseFieldNumber; const int LoadUrdfCommand::kFlagsFieldNumber; const int LoadUrdfCommand::kGlobalScalingFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 LoadUrdfCommand::LoadUrdfCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.filename().size() > 0) { filename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_); } if (from.has_initialposition()) { initialposition_ = new ::pybullet_grpc::vec3(*from.initialposition_); } else { initialposition_ = NULL; } if (from.has_initialorientation()) { initialorientation_ = new ::pybullet_grpc::quat4(*from.initialorientation_); } else { initialorientation_ = NULL; } flags_ = from.flags_; clear_has_hasUseMultiBody(); switch (from.hasUseMultiBody_case()) { case kUseMultiBody: { set_usemultibody(from.usemultibody()); break; } case HASUSEMULTIBODY_NOT_SET: { break; } } clear_has_hasUseFixedBase(); switch (from.hasUseFixedBase_case()) { case kUseFixedBase: { set_usefixedbase(from.usefixedbase()); break; } case HASUSEFIXEDBASE_NOT_SET: { break; } } clear_has_hasGlobalScaling(); switch (from.hasGlobalScaling_case()) { case kGlobalScaling: { set_globalscaling(from.globalscaling()); break; } case HASGLOBALSCALING_NOT_SET: { break; } } // @@protoc_insertion_point(copy_constructor:pybullet_grpc.LoadUrdfCommand) } void LoadUrdfCommand::SharedCtor() { filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&initialposition_, 0, static_cast( reinterpret_cast(&flags_) - reinterpret_cast(&initialposition_)) + sizeof(flags_)); clear_has_hasUseMultiBody(); clear_has_hasUseFixedBase(); clear_has_hasGlobalScaling(); } LoadUrdfCommand::~LoadUrdfCommand() { // @@protoc_insertion_point(destructor:pybullet_grpc.LoadUrdfCommand) SharedDtor(); } void LoadUrdfCommand::SharedDtor() { filename_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete initialposition_; if (this != internal_default_instance()) delete initialorientation_; if (has_hasUseMultiBody()) { clear_hasUseMultiBody(); } if (has_hasUseFixedBase()) { clear_hasUseFixedBase(); } if (has_hasGlobalScaling()) { clear_hasGlobalScaling(); } } void LoadUrdfCommand::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* LoadUrdfCommand::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const LoadUrdfCommand& LoadUrdfCommand::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_LoadUrdfCommand.base); return *internal_default_instance(); } void LoadUrdfCommand::clear_hasUseMultiBody() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.LoadUrdfCommand) switch (hasUseMultiBody_case()) { case kUseMultiBody: { // No need to clear break; } case HASUSEMULTIBODY_NOT_SET: { break; } } _oneof_case_[0] = HASUSEMULTIBODY_NOT_SET; } void LoadUrdfCommand::clear_hasUseFixedBase() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.LoadUrdfCommand) switch (hasUseFixedBase_case()) { case kUseFixedBase: { // No need to clear break; } case HASUSEFIXEDBASE_NOT_SET: { break; } } _oneof_case_[1] = HASUSEFIXEDBASE_NOT_SET; } void LoadUrdfCommand::clear_hasGlobalScaling() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.LoadUrdfCommand) switch (hasGlobalScaling_case()) { case kGlobalScaling: { // No need to clear break; } case HASGLOBALSCALING_NOT_SET: { break; } } _oneof_case_[2] = HASGLOBALSCALING_NOT_SET; } 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_; } initialposition_ = NULL; if (GetArenaNoVirtual() == NULL && initialorientation_ != NULL) { delete initialorientation_; } initialorientation_ = NULL; flags_ = 0; clear_hasUseMultiBody(); clear_hasUseFixedBase(); clear_hasGlobalScaling(); _internal_metadata_.Clear(); } bool LoadUrdfCommand::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.LoadUrdfCommand) for (;;) { ::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 (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(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "pybullet_grpc.LoadUrdfCommand.fileName")); } else { goto handle_unusual; } break; } // .pybullet_grpc.vec3 initialPosition = 2; case 2: { 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; } break; } // .pybullet_grpc.quat4 initialOrientation = 3; case 3: { 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; } break; } // int32 useMultiBody = 4; case 4: { 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>( input, &hasUseMultiBody_.usemultibody_))); set_has_usemultibody(); } else { goto handle_unusual; } break; } // bool useFixedBase = 5; case 5: { 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>( input, &hasUseFixedBase_.usefixedbase_))); set_has_usefixedbase(); } else { goto handle_unusual; } break; } // int32 flags = 6; case 6: { 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>( input, &flags_))); } else { goto handle_unusual; } break; } // double globalScaling = 7; case 7: { 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>( input, &hasGlobalScaling_.globalscaling_))); set_has_globalscaling(); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.LoadUrdfCommand) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.LoadUrdfCommand) return false; #undef DO_ } 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(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.LoadUrdfCommand.fileName"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->filename(), output); } // .pybullet_grpc.vec3 initialPosition = 2; if (this->has_initialposition()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->_internal_initialposition(), output); } // .pybullet_grpc.quat4 initialOrientation = 3; if (this->has_initialorientation()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, this->_internal_initialorientation(), output); } // int32 useMultiBody = 4; if (has_usemultibody()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->usemultibody(), output); } // bool useFixedBase = 5; if (has_usefixedbase()) { ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->usefixedbase(), output); } // int32 flags = 6; if (this->flags() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->flags(), output); } // double globalScaling = 7; if (has_globalscaling()) { ::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 // @@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(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.LoadUrdfCommand.fileName"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->filename(), target); } // .pybullet_grpc.vec3 initialPosition = 2; if (this->has_initialposition()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, this->_internal_initialposition(), deterministic, target); } // .pybullet_grpc.quat4 initialOrientation = 3; if (this->has_initialorientation()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, this->_internal_initialorientation(), deterministic, target); } // int32 useMultiBody = 4; if (has_usemultibody()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->usemultibody(), target); } // bool useFixedBase = 5; if (has_usefixedbase()) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->usefixedbase(), target); } // int32 flags = 6; if (this->flags() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->flags(), target); } // double globalScaling = 7; if (has_globalscaling()) { 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; } 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 + ::google::protobuf::internal::WireFormatLite::StringSize( this->filename()); } // .pybullet_grpc.vec3 initialPosition = 2; if (this->has_initialposition()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *initialposition_); } // .pybullet_grpc.quat4 initialOrientation = 3; if (this->has_initialorientation()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *initialorientation_); } // int32 flags = 6; if (this->flags() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->flags()); } switch (hasUseMultiBody_case()) { // int32 useMultiBody = 4; case kUseMultiBody: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->usemultibody()); break; } case HASUSEMULTIBODY_NOT_SET: { break; } } switch (hasUseFixedBase_case()) { // bool useFixedBase = 5; case kUseFixedBase: { total_size += 1 + 1; break; } case HASUSEFIXEDBASE_NOT_SET: { break; } } switch (hasGlobalScaling_case()) { // double globalScaling = 7; case kGlobalScaling: { total_size += 1 + 8; break; } case HASGLOBALSCALING_NOT_SET: { break; } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void LoadUrdfCommand::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.LoadUrdfCommand) GOOGLE_DCHECK_NE(&from, this); const LoadUrdfCommand* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.LoadUrdfCommand) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.LoadUrdfCommand) MergeFrom(*source); } } 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_); } if (from.has_initialposition()) { mutable_initialposition()->::pybullet_grpc::vec3::MergeFrom(from.initialposition()); } if (from.has_initialorientation()) { mutable_initialorientation()->::pybullet_grpc::quat4::MergeFrom(from.initialorientation()); } if (from.flags() != 0) { set_flags(from.flags()); } switch (from.hasUseMultiBody_case()) { case kUseMultiBody: { set_usemultibody(from.usemultibody()); break; } case HASUSEMULTIBODY_NOT_SET: { break; } } switch (from.hasUseFixedBase_case()) { case kUseFixedBase: { set_usefixedbase(from.usefixedbase()); break; } case HASUSEFIXEDBASE_NOT_SET: { break; } } switch (from.hasGlobalScaling_case()) { case kGlobalScaling: { set_globalscaling(from.globalscaling()); break; } case HASGLOBALSCALING_NOT_SET: { break; } } } void LoadUrdfCommand::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.LoadUrdfCommand) if (&from == this) return; Clear(); MergeFrom(from); } void LoadUrdfCommand::CopyFrom(const LoadUrdfCommand& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.LoadUrdfCommand) if (&from == this) return; Clear(); MergeFrom(from); } bool LoadUrdfCommand::IsInitialized() const { return true; } void LoadUrdfCommand::Swap(LoadUrdfCommand* other) { if (other == this) return; InternalSwap(other); } void LoadUrdfCommand::InternalSwap(LoadUrdfCommand* other) { 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[kIndexInFileMessages]; } // =================================================================== void LoadUrdfStatus::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int LoadUrdfStatus::kBodyUniqueIdFieldNumber; const int LoadUrdfStatus::kBodyNameFieldNumber; const int LoadUrdfStatus::kFileNameFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 LoadUrdfStatus::LoadUrdfStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); bodyname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.bodyname().size() > 0) { bodyname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bodyname_); } filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.filename().size() > 0) { filename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_); } bodyuniqueid_ = from.bodyuniqueid_; // @@protoc_insertion_point(copy_constructor:pybullet_grpc.LoadUrdfStatus) } void LoadUrdfStatus::SharedCtor() { bodyname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); bodyuniqueid_ = 0; } LoadUrdfStatus::~LoadUrdfStatus() { // @@protoc_insertion_point(destructor:pybullet_grpc.LoadUrdfStatus) SharedDtor(); } void LoadUrdfStatus::SharedDtor() { bodyname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); filename_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void LoadUrdfStatus::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* LoadUrdfStatus::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const LoadUrdfStatus& LoadUrdfStatus::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_LoadUrdfStatus.base); return *internal_default_instance(); } 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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.LoadUrdfStatus) for (;;) { ::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 (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>( input, &bodyuniqueid_))); } else { goto handle_unusual; } break; } // string bodyName = 2; case 2: { 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(), static_cast(this->bodyname().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "pybullet_grpc.LoadUrdfStatus.bodyName")); } else { goto handle_unusual; } break; } // string fileName = 3; case 3: { 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(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "pybullet_grpc.LoadUrdfStatus.fileName")); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.LoadUrdfStatus) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.LoadUrdfStatus) return false; #undef DO_ } 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); } // string bodyName = 2; if (this->bodyname().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->bodyname().data(), static_cast(this->bodyname().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.LoadUrdfStatus.bodyName"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->bodyname(), output); } // string fileName = 3; if (this->filename().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 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 // @@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); } // string bodyName = 2; if (this->bodyname().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->bodyname().data(), static_cast(this->bodyname().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.LoadUrdfStatus.bodyName"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->bodyname(), target); } // string fileName = 3; if (this->filename().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->filename().data(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.LoadUrdfStatus.fileName"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 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; } 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 + ::google::protobuf::internal::WireFormatLite::StringSize( this->bodyname()); } // string fileName = 3; if (this->filename().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->filename()); } // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->bodyuniqueid()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void LoadUrdfStatus::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.LoadUrdfStatus) GOOGLE_DCHECK_NE(&from, this); const LoadUrdfStatus* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.LoadUrdfStatus) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.LoadUrdfStatus) MergeFrom(*source); } } 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_); } if (from.filename().size() > 0) { filename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_); } if (from.bodyuniqueid() != 0) { set_bodyuniqueid(from.bodyuniqueid()); } } void LoadUrdfStatus::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.LoadUrdfStatus) if (&from == this) return; Clear(); MergeFrom(from); } void LoadUrdfStatus::CopyFrom(const LoadUrdfStatus& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.LoadUrdfStatus) if (&from == this) return; Clear(); MergeFrom(from); } bool LoadUrdfStatus::IsInitialized() const { return true; } void LoadUrdfStatus::Swap(LoadUrdfStatus* other) { if (other == this) return; InternalSwap(other); } void LoadUrdfStatus::InternalSwap(LoadUrdfStatus* other) { 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[kIndexInFileMessages]; } // =================================================================== 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; const int LoadSdfCommand::kGlobalScalingFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 LoadSdfCommand::LoadSdfCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.filename().size() > 0) { filename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_); } clear_has_hasUseMultiBody(); switch (from.hasUseMultiBody_case()) { case kUseMultiBody: { set_usemultibody(from.usemultibody()); break; } case HASUSEMULTIBODY_NOT_SET: { break; } } clear_has_hasGlobalScaling(); switch (from.hasGlobalScaling_case()) { case kGlobalScaling: { set_globalscaling(from.globalscaling()); break; } case HASGLOBALSCALING_NOT_SET: { break; } } // @@protoc_insertion_point(copy_constructor:pybullet_grpc.LoadSdfCommand) } void LoadSdfCommand::SharedCtor() { filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_hasUseMultiBody(); clear_has_hasGlobalScaling(); } LoadSdfCommand::~LoadSdfCommand() { // @@protoc_insertion_point(destructor:pybullet_grpc.LoadSdfCommand) SharedDtor(); } void LoadSdfCommand::SharedDtor() { filename_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (has_hasUseMultiBody()) { clear_hasUseMultiBody(); } if (has_hasGlobalScaling()) { clear_hasGlobalScaling(); } } void LoadSdfCommand::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* LoadSdfCommand::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const LoadSdfCommand& LoadSdfCommand::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_LoadSdfCommand.base); return *internal_default_instance(); } void LoadSdfCommand::clear_hasUseMultiBody() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.LoadSdfCommand) switch (hasUseMultiBody_case()) { case kUseMultiBody: { // No need to clear break; } case HASUSEMULTIBODY_NOT_SET: { break; } } _oneof_case_[0] = HASUSEMULTIBODY_NOT_SET; } void LoadSdfCommand::clear_hasGlobalScaling() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.LoadSdfCommand) switch (hasGlobalScaling_case()) { case kGlobalScaling: { // No need to clear break; } case HASGLOBALSCALING_NOT_SET: { break; } } _oneof_case_[1] = HASGLOBALSCALING_NOT_SET; } 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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.LoadSdfCommand) for (;;) { ::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 (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(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "pybullet_grpc.LoadSdfCommand.fileName")); } else { goto handle_unusual; } break; } // int32 useMultiBody = 2; case 2: { 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>( input, &hasUseMultiBody_.usemultibody_))); set_has_usemultibody(); } else { goto handle_unusual; } break; } // double globalScaling = 3; case 3: { 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>( input, &hasGlobalScaling_.globalscaling_))); set_has_globalscaling(); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.LoadSdfCommand) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.LoadSdfCommand) return false; #undef DO_ } 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(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.LoadSdfCommand.fileName"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->filename(), output); } // int32 useMultiBody = 2; if (has_usemultibody()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->usemultibody(), output); } // double globalScaling = 3; if (has_globalscaling()) { ::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 // @@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(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.LoadSdfCommand.fileName"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->filename(), target); } // int32 useMultiBody = 2; if (has_usemultibody()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->usemultibody(), target); } // double globalScaling = 3; if (has_globalscaling()) { 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; } 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 + ::google::protobuf::internal::WireFormatLite::StringSize( this->filename()); } switch (hasUseMultiBody_case()) { // int32 useMultiBody = 2; case kUseMultiBody: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->usemultibody()); break; } case HASUSEMULTIBODY_NOT_SET: { break; } } switch (hasGlobalScaling_case()) { // double globalScaling = 3; case kGlobalScaling: { total_size += 1 + 8; break; } case HASGLOBALSCALING_NOT_SET: { break; } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void LoadSdfCommand::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.LoadSdfCommand) GOOGLE_DCHECK_NE(&from, this); const LoadSdfCommand* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.LoadSdfCommand) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.LoadSdfCommand) MergeFrom(*source); } } 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_); } switch (from.hasUseMultiBody_case()) { case kUseMultiBody: { set_usemultibody(from.usemultibody()); break; } case HASUSEMULTIBODY_NOT_SET: { break; } } switch (from.hasGlobalScaling_case()) { case kGlobalScaling: { set_globalscaling(from.globalscaling()); break; } case HASGLOBALSCALING_NOT_SET: { break; } } } void LoadSdfCommand::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.LoadSdfCommand) if (&from == this) return; Clear(); MergeFrom(from); } void LoadSdfCommand::CopyFrom(const LoadSdfCommand& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.LoadSdfCommand) if (&from == this) return; Clear(); MergeFrom(from); } bool LoadSdfCommand::IsInitialized() const { return true; } void LoadSdfCommand::Swap(LoadSdfCommand* other) { if (other == this) return; InternalSwap(other); } void LoadSdfCommand::InternalSwap(LoadSdfCommand* other) { 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[kIndexInFileMessages]; } // =================================================================== 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) { ::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_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.SdfLoadedStatus) } void SdfLoadedStatus::SharedCtor() { } SdfLoadedStatus::~SdfLoadedStatus() { // @@protoc_insertion_point(destructor:pybullet_grpc.SdfLoadedStatus) SharedDtor(); } void SdfLoadedStatus::SharedDtor() { } void SdfLoadedStatus::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* SdfLoadedStatus::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const SdfLoadedStatus& SdfLoadedStatus::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_SdfLoadedStatus.base); return *internal_default_instance(); } 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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.SdfLoadedStatus) for (;;) { ::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 (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 ( 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()))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.SdfLoadedStatus) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.SdfLoadedStatus) return false; #undef DO_ } 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(static_cast< ::google::protobuf::uint32>( _bodyuniqueids_cached_byte_size_)); } 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 // @@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( 2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _bodyuniqueids_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: 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; } 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( static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _bodyuniqueids_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void SdfLoadedStatus::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.SdfLoadedStatus) GOOGLE_DCHECK_NE(&from, this); const SdfLoadedStatus* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.SdfLoadedStatus) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.SdfLoadedStatus) MergeFrom(*source); } } 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_); } void SdfLoadedStatus::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.SdfLoadedStatus) if (&from == this) return; Clear(); MergeFrom(from); } void SdfLoadedStatus::CopyFrom(const SdfLoadedStatus& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.SdfLoadedStatus) if (&from == this) return; Clear(); MergeFrom(from); } bool SdfLoadedStatus::IsInitialized() const { return true; } void SdfLoadedStatus::Swap(SdfLoadedStatus* other) { if (other == this) return; InternalSwap(other); } void SdfLoadedStatus::InternalSwap(SdfLoadedStatus* other) { 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[kIndexInFileMessages]; } // =================================================================== void LoadMjcfCommand::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int LoadMjcfCommand::kFileNameFieldNumber; const int LoadMjcfCommand::kFlagsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 LoadMjcfCommand::LoadMjcfCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.filename().size() > 0) { filename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_); } flags_ = from.flags_; // @@protoc_insertion_point(copy_constructor:pybullet_grpc.LoadMjcfCommand) } void LoadMjcfCommand::SharedCtor() { filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); flags_ = 0; } LoadMjcfCommand::~LoadMjcfCommand() { // @@protoc_insertion_point(destructor:pybullet_grpc.LoadMjcfCommand) SharedDtor(); } void LoadMjcfCommand::SharedDtor() { filename_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void LoadMjcfCommand::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* LoadMjcfCommand::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const LoadMjcfCommand& LoadMjcfCommand::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_LoadMjcfCommand.base); return *internal_default_instance(); } 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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.LoadMjcfCommand) for (;;) { ::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 (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(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "pybullet_grpc.LoadMjcfCommand.fileName")); } else { goto handle_unusual; } break; } // int32 flags = 2; case 2: { 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>( input, &flags_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.LoadMjcfCommand) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.LoadMjcfCommand) return false; #undef DO_ } 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(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.LoadMjcfCommand.fileName"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->filename(), output); } // int32 flags = 2; if (this->flags() != 0) { ::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 // @@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(), static_cast(this->filename().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "pybullet_grpc.LoadMjcfCommand.fileName"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->filename(), target); } // int32 flags = 2; if (this->flags() != 0) { 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; } 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 + ::google::protobuf::internal::WireFormatLite::StringSize( this->filename()); } // int32 flags = 2; if (this->flags() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->flags()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void LoadMjcfCommand::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.LoadMjcfCommand) GOOGLE_DCHECK_NE(&from, this); const LoadMjcfCommand* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.LoadMjcfCommand) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.LoadMjcfCommand) MergeFrom(*source); } } 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_); } if (from.flags() != 0) { set_flags(from.flags()); } } void LoadMjcfCommand::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.LoadMjcfCommand) if (&from == this) return; Clear(); MergeFrom(from); } void LoadMjcfCommand::CopyFrom(const LoadMjcfCommand& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.LoadMjcfCommand) if (&from == this) return; Clear(); MergeFrom(from); } bool LoadMjcfCommand::IsInitialized() const { return true; } void LoadMjcfCommand::Swap(LoadMjcfCommand* other) { if (other == this) return; InternalSwap(other); } void LoadMjcfCommand::InternalSwap(LoadMjcfCommand* other) { 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[kIndexInFileMessages]; } // =================================================================== 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) { ::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_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.MjcfLoadedStatus) } void MjcfLoadedStatus::SharedCtor() { } MjcfLoadedStatus::~MjcfLoadedStatus() { // @@protoc_insertion_point(destructor:pybullet_grpc.MjcfLoadedStatus) SharedDtor(); } void MjcfLoadedStatus::SharedDtor() { } void MjcfLoadedStatus::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* MjcfLoadedStatus::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const MjcfLoadedStatus& MjcfLoadedStatus::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_MjcfLoadedStatus.base); return *internal_default_instance(); } 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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.MjcfLoadedStatus) for (;;) { ::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 (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 ( 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()))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.MjcfLoadedStatus) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.MjcfLoadedStatus) return false; #undef DO_ } 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(static_cast< ::google::protobuf::uint32>( _bodyuniqueids_cached_byte_size_)); } 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 // @@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( 2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _bodyuniqueids_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: 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; } 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( static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _bodyuniqueids_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void MjcfLoadedStatus::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.MjcfLoadedStatus) GOOGLE_DCHECK_NE(&from, this); const MjcfLoadedStatus* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.MjcfLoadedStatus) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.MjcfLoadedStatus) MergeFrom(*source); } } 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_); } void MjcfLoadedStatus::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.MjcfLoadedStatus) if (&from == this) return; Clear(); MergeFrom(from); } void MjcfLoadedStatus::CopyFrom(const MjcfLoadedStatus& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.MjcfLoadedStatus) if (&from == this) return; Clear(); MergeFrom(from); } bool MjcfLoadedStatus::IsInitialized() const { return true; } void MjcfLoadedStatus::Swap(MjcfLoadedStatus* other) { if (other == this) return; InternalSwap(other); } void MjcfLoadedStatus::InternalSwap(MjcfLoadedStatus* other) { 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[kIndexInFileMessages]; } // =================================================================== 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; const int ChangeDynamicsCommand::kMassFieldNumber; const int ChangeDynamicsCommand::kLateralFrictionFieldNumber; const int ChangeDynamicsCommand::kSpinningFrictionFieldNumber; const int ChangeDynamicsCommand::kRollingFrictionFieldNumber; const int ChangeDynamicsCommand::kRestitutionFieldNumber; const int ChangeDynamicsCommand::kLinearDampingFieldNumber; const int ChangeDynamicsCommand::kAngularDampingFieldNumber; const int ChangeDynamicsCommand::kContactStiffnessFieldNumber; const int ChangeDynamicsCommand::kContactDampingFieldNumber; const int ChangeDynamicsCommand::kLocalInertiaDiagonalFieldNumber; const int ChangeDynamicsCommand::kFrictionAnchorFieldNumber; const int ChangeDynamicsCommand::kCcdSweptSphereRadiusFieldNumber; const int ChangeDynamicsCommand::kContactProcessingThresholdFieldNumber; const int ChangeDynamicsCommand::kActivationStateFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ChangeDynamicsCommand::ChangeDynamicsCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&bodyuniqueid_, &from.bodyuniqueid_, static_cast(reinterpret_cast(&linkindex_) - reinterpret_cast(&bodyuniqueid_)) + sizeof(linkindex_)); clear_has_hasMass(); switch (from.hasMass_case()) { case kMass: { set_mass(from.mass()); break; } case HASMASS_NOT_SET: { break; } } clear_has_hasLateralFriction(); switch (from.hasLateralFriction_case()) { case kLateralFriction: { set_lateralfriction(from.lateralfriction()); break; } case HASLATERALFRICTION_NOT_SET: { break; } } clear_has_hasSpinningFriction(); switch (from.hasSpinningFriction_case()) { case kSpinningFriction: { set_spinningfriction(from.spinningfriction()); break; } case HASSPINNINGFRICTION_NOT_SET: { break; } } clear_has_hasRollingFriction(); switch (from.hasRollingFriction_case()) { case kRollingFriction: { set_rollingfriction(from.rollingfriction()); break; } case HASROLLINGFRICTION_NOT_SET: { break; } } clear_has_hasRestitution(); switch (from.hasRestitution_case()) { case kRestitution: { set_restitution(from.restitution()); break; } case HASRESTITUTION_NOT_SET: { break; } } clear_has_haslinearDamping(); switch (from.haslinearDamping_case()) { case kLinearDamping: { set_lineardamping(from.lineardamping()); break; } case HASLINEARDAMPING_NOT_SET: { break; } } clear_has_hasangularDamping(); switch (from.hasangularDamping_case()) { case kAngularDamping: { set_angulardamping(from.angulardamping()); break; } case HASANGULARDAMPING_NOT_SET: { break; } } clear_has_hasContactStiffness(); switch (from.hasContactStiffness_case()) { case kContactStiffness: { set_contactstiffness(from.contactstiffness()); break; } case HASCONTACTSTIFFNESS_NOT_SET: { break; } } clear_has_hasContactDamping(); switch (from.hasContactDamping_case()) { case kContactDamping: { set_contactdamping(from.contactdamping()); break; } case HASCONTACTDAMPING_NOT_SET: { break; } } clear_has_hasLocalInertiaDiagonal(); switch (from.hasLocalInertiaDiagonal_case()) { case kLocalInertiaDiagonal: { mutable_localinertiadiagonal()->::pybullet_grpc::vec3::MergeFrom(from.localinertiadiagonal()); break; } case HASLOCALINERTIADIAGONAL_NOT_SET: { break; } } clear_has_hasFrictionAnchor(); switch (from.hasFrictionAnchor_case()) { case kFrictionAnchor: { set_frictionanchor(from.frictionanchor()); break; } case HASFRICTIONANCHOR_NOT_SET: { break; } } clear_has_hasccdSweptSphereRadius(); switch (from.hasccdSweptSphereRadius_case()) { case kCcdSweptSphereRadius: { set_ccdsweptsphereradius(from.ccdsweptsphereradius()); break; } case HASCCDSWEPTSPHERERADIUS_NOT_SET: { break; } } clear_has_hasContactProcessingThreshold(); switch (from.hasContactProcessingThreshold_case()) { case kContactProcessingThreshold: { set_contactprocessingthreshold(from.contactprocessingthreshold()); break; } case HASCONTACTPROCESSINGTHRESHOLD_NOT_SET: { break; } } clear_has_hasActivationState(); switch (from.hasActivationState_case()) { case kActivationState: { set_activationstate(from.activationstate()); break; } case HASACTIVATIONSTATE_NOT_SET: { break; } } // @@protoc_insertion_point(copy_constructor:pybullet_grpc.ChangeDynamicsCommand) } void ChangeDynamicsCommand::SharedCtor() { ::memset(&bodyuniqueid_, 0, static_cast( reinterpret_cast(&linkindex_) - reinterpret_cast(&bodyuniqueid_)) + sizeof(linkindex_)); clear_has_hasMass(); clear_has_hasLateralFriction(); clear_has_hasSpinningFriction(); clear_has_hasRollingFriction(); clear_has_hasRestitution(); clear_has_haslinearDamping(); clear_has_hasangularDamping(); clear_has_hasContactStiffness(); clear_has_hasContactDamping(); clear_has_hasLocalInertiaDiagonal(); clear_has_hasFrictionAnchor(); clear_has_hasccdSweptSphereRadius(); clear_has_hasContactProcessingThreshold(); clear_has_hasActivationState(); } ChangeDynamicsCommand::~ChangeDynamicsCommand() { // @@protoc_insertion_point(destructor:pybullet_grpc.ChangeDynamicsCommand) SharedDtor(); } void ChangeDynamicsCommand::SharedDtor() { if (has_hasMass()) { clear_hasMass(); } if (has_hasLateralFriction()) { clear_hasLateralFriction(); } if (has_hasSpinningFriction()) { clear_hasSpinningFriction(); } if (has_hasRollingFriction()) { clear_hasRollingFriction(); } if (has_hasRestitution()) { clear_hasRestitution(); } if (has_haslinearDamping()) { clear_haslinearDamping(); } if (has_hasangularDamping()) { clear_hasangularDamping(); } if (has_hasContactStiffness()) { clear_hasContactStiffness(); } if (has_hasContactDamping()) { clear_hasContactDamping(); } if (has_hasLocalInertiaDiagonal()) { clear_hasLocalInertiaDiagonal(); } if (has_hasFrictionAnchor()) { clear_hasFrictionAnchor(); } if (has_hasccdSweptSphereRadius()) { clear_hasccdSweptSphereRadius(); } if (has_hasContactProcessingThreshold()) { clear_hasContactProcessingThreshold(); } if (has_hasActivationState()) { clear_hasActivationState(); } } void ChangeDynamicsCommand::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* ChangeDynamicsCommand::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const ChangeDynamicsCommand& ChangeDynamicsCommand::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_ChangeDynamicsCommand.base); return *internal_default_instance(); } void ChangeDynamicsCommand::clear_hasMass() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.ChangeDynamicsCommand) switch (hasMass_case()) { case kMass: { // No need to clear break; } case HASMASS_NOT_SET: { break; } } _oneof_case_[0] = HASMASS_NOT_SET; } void ChangeDynamicsCommand::clear_hasLateralFriction() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.ChangeDynamicsCommand) switch (hasLateralFriction_case()) { case kLateralFriction: { // No need to clear break; } case HASLATERALFRICTION_NOT_SET: { break; } } _oneof_case_[1] = HASLATERALFRICTION_NOT_SET; } void ChangeDynamicsCommand::clear_hasSpinningFriction() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.ChangeDynamicsCommand) switch (hasSpinningFriction_case()) { case kSpinningFriction: { // No need to clear break; } case HASSPINNINGFRICTION_NOT_SET: { break; } } _oneof_case_[2] = HASSPINNINGFRICTION_NOT_SET; } void ChangeDynamicsCommand::clear_hasRollingFriction() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.ChangeDynamicsCommand) switch (hasRollingFriction_case()) { case kRollingFriction: { // No need to clear break; } case HASROLLINGFRICTION_NOT_SET: { break; } } _oneof_case_[3] = HASROLLINGFRICTION_NOT_SET; } void ChangeDynamicsCommand::clear_hasRestitution() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.ChangeDynamicsCommand) switch (hasRestitution_case()) { case kRestitution: { // No need to clear break; } case HASRESTITUTION_NOT_SET: { break; } } _oneof_case_[4] = HASRESTITUTION_NOT_SET; } void ChangeDynamicsCommand::clear_haslinearDamping() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.ChangeDynamicsCommand) switch (haslinearDamping_case()) { case kLinearDamping: { // No need to clear break; } case HASLINEARDAMPING_NOT_SET: { break; } } _oneof_case_[5] = HASLINEARDAMPING_NOT_SET; } void ChangeDynamicsCommand::clear_hasangularDamping() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.ChangeDynamicsCommand) switch (hasangularDamping_case()) { case kAngularDamping: { // No need to clear break; } case HASANGULARDAMPING_NOT_SET: { break; } } _oneof_case_[6] = HASANGULARDAMPING_NOT_SET; } void ChangeDynamicsCommand::clear_hasContactStiffness() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.ChangeDynamicsCommand) switch (hasContactStiffness_case()) { case kContactStiffness: { // No need to clear break; } case HASCONTACTSTIFFNESS_NOT_SET: { break; } } _oneof_case_[7] = HASCONTACTSTIFFNESS_NOT_SET; } void ChangeDynamicsCommand::clear_hasContactDamping() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.ChangeDynamicsCommand) switch (hasContactDamping_case()) { case kContactDamping: { // No need to clear break; } case HASCONTACTDAMPING_NOT_SET: { break; } } _oneof_case_[8] = HASCONTACTDAMPING_NOT_SET; } void ChangeDynamicsCommand::clear_hasLocalInertiaDiagonal() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.ChangeDynamicsCommand) switch (hasLocalInertiaDiagonal_case()) { case kLocalInertiaDiagonal: { delete hasLocalInertiaDiagonal_.localinertiadiagonal_; break; } case HASLOCALINERTIADIAGONAL_NOT_SET: { break; } } _oneof_case_[9] = HASLOCALINERTIADIAGONAL_NOT_SET; } void ChangeDynamicsCommand::clear_hasFrictionAnchor() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.ChangeDynamicsCommand) switch (hasFrictionAnchor_case()) { case kFrictionAnchor: { // No need to clear break; } case HASFRICTIONANCHOR_NOT_SET: { break; } } _oneof_case_[10] = HASFRICTIONANCHOR_NOT_SET; } void ChangeDynamicsCommand::clear_hasccdSweptSphereRadius() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.ChangeDynamicsCommand) switch (hasccdSweptSphereRadius_case()) { case kCcdSweptSphereRadius: { // No need to clear break; } case HASCCDSWEPTSPHERERADIUS_NOT_SET: { break; } } _oneof_case_[11] = HASCCDSWEPTSPHERERADIUS_NOT_SET; } void ChangeDynamicsCommand::clear_hasContactProcessingThreshold() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.ChangeDynamicsCommand) switch (hasContactProcessingThreshold_case()) { case kContactProcessingThreshold: { // No need to clear break; } case HASCONTACTPROCESSINGTHRESHOLD_NOT_SET: { break; } } _oneof_case_[12] = HASCONTACTPROCESSINGTHRESHOLD_NOT_SET; } void ChangeDynamicsCommand::clear_hasActivationState() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.ChangeDynamicsCommand) switch (hasActivationState_case()) { case kActivationState: { // No need to clear break; } case HASACTIVATIONSTATE_NOT_SET: { break; } } _oneof_case_[13] = HASACTIVATIONSTATE_NOT_SET; } void ChangeDynamicsCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.ChangeDynamicsCommand) ::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(); clear_hasRollingFriction(); clear_hasRestitution(); clear_haslinearDamping(); clear_hasangularDamping(); clear_hasContactStiffness(); clear_hasContactDamping(); clear_hasLocalInertiaDiagonal(); clear_hasFrictionAnchor(); clear_hasccdSweptSphereRadius(); clear_hasContactProcessingThreshold(); clear_hasActivationState(); _internal_metadata_.Clear(); } bool ChangeDynamicsCommand::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.ChangeDynamicsCommand) for (;;) { ::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 (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>( input, &bodyuniqueid_))); } else { goto handle_unusual; } break; } // int32 linkIndex = 2; case 2: { 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>( input, &linkindex_))); } else { goto handle_unusual; } break; } // double mass = 3; case 3: { 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>( input, &hasMass_.mass_))); set_has_mass(); } else { goto handle_unusual; } break; } // double lateralFriction = 5; case 5: { 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>( input, &hasLateralFriction_.lateralfriction_))); set_has_lateralfriction(); } else { goto handle_unusual; } break; } // double spinningFriction = 6; case 6: { 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>( input, &hasSpinningFriction_.spinningfriction_))); set_has_spinningfriction(); } else { goto handle_unusual; } break; } // double rollingFriction = 7; case 7: { 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>( input, &hasRollingFriction_.rollingfriction_))); set_has_rollingfriction(); } else { goto handle_unusual; } break; } // double restitution = 8; case 8: { 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>( input, &hasRestitution_.restitution_))); set_has_restitution(); } else { goto handle_unusual; } break; } // double linearDamping = 9; case 9: { 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>( input, &haslinearDamping_.lineardamping_))); set_has_lineardamping(); } else { goto handle_unusual; } break; } // double angularDamping = 10; case 10: { 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>( input, &hasangularDamping_.angulardamping_))); set_has_angulardamping(); } else { goto handle_unusual; } break; } // double contactStiffness = 11; case 11: { 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>( input, &hasContactStiffness_.contactstiffness_))); set_has_contactstiffness(); } else { goto handle_unusual; } break; } // double contactDamping = 12; case 12: { 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>( input, &hasContactDamping_.contactdamping_))); set_has_contactdamping(); } else { goto handle_unusual; } break; } // .pybullet_grpc.vec3 localInertiaDiagonal = 13; case 13: { 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; } break; } // int32 frictionAnchor = 14; case 14: { 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>( input, &hasFrictionAnchor_.frictionanchor_))); set_has_frictionanchor(); } else { goto handle_unusual; } break; } // double ccdSweptSphereRadius = 15; case 15: { 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>( input, &hasccdSweptSphereRadius_.ccdsweptsphereradius_))); set_has_ccdsweptsphereradius(); } else { goto handle_unusual; } break; } // double contactProcessingThreshold = 16; case 16: { 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>( input, &hasContactProcessingThreshold_.contactprocessingthreshold_))); set_has_contactprocessingthreshold(); } else { goto handle_unusual; } break; } // int32 activationState = 17; case 17: { 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>( input, &hasActivationState_.activationstate_))); set_has_activationstate(); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.ChangeDynamicsCommand) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.ChangeDynamicsCommand) return false; #undef DO_ } 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); } // int32 linkIndex = 2; if (this->linkindex() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->linkindex(), output); } // double mass = 3; if (has_mass()) { ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->mass(), output); } // double lateralFriction = 5; if (has_lateralfriction()) { ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->lateralfriction(), output); } // double spinningFriction = 6; if (has_spinningfriction()) { ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->spinningfriction(), output); } // double rollingFriction = 7; if (has_rollingfriction()) { ::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->rollingfriction(), output); } // double restitution = 8; if (has_restitution()) { ::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->restitution(), output); } // double linearDamping = 9; if (has_lineardamping()) { ::google::protobuf::internal::WireFormatLite::WriteDouble(9, this->lineardamping(), output); } // double angularDamping = 10; if (has_angulardamping()) { ::google::protobuf::internal::WireFormatLite::WriteDouble(10, this->angulardamping(), output); } // double contactStiffness = 11; if (has_contactstiffness()) { ::google::protobuf::internal::WireFormatLite::WriteDouble(11, this->contactstiffness(), output); } // double contactDamping = 12; if (has_contactdamping()) { ::google::protobuf::internal::WireFormatLite::WriteDouble(12, this->contactdamping(), output); } // .pybullet_grpc.vec3 localInertiaDiagonal = 13; if (has_localinertiadiagonal()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 13, this->_internal_localinertiadiagonal(), output); } // int32 frictionAnchor = 14; if (has_frictionanchor()) { ::google::protobuf::internal::WireFormatLite::WriteInt32(14, this->frictionanchor(), output); } // double ccdSweptSphereRadius = 15; if (has_ccdsweptsphereradius()) { ::google::protobuf::internal::WireFormatLite::WriteDouble(15, this->ccdsweptsphereradius(), output); } // double contactProcessingThreshold = 16; if (has_contactprocessingthreshold()) { ::google::protobuf::internal::WireFormatLite::WriteDouble(16, this->contactprocessingthreshold(), output); } // int32 activationState = 17; if (has_activationstate()) { ::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 // @@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); } // int32 linkIndex = 2; if (this->linkindex() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->linkindex(), target); } // double mass = 3; if (has_mass()) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->mass(), target); } // double lateralFriction = 5; if (has_lateralfriction()) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->lateralfriction(), target); } // double spinningFriction = 6; if (has_spinningfriction()) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->spinningfriction(), target); } // double rollingFriction = 7; if (has_rollingfriction()) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->rollingfriction(), target); } // double restitution = 8; if (has_restitution()) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(8, this->restitution(), target); } // double linearDamping = 9; if (has_lineardamping()) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(9, this->lineardamping(), target); } // double angularDamping = 10; if (has_angulardamping()) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(10, this->angulardamping(), target); } // double contactStiffness = 11; if (has_contactstiffness()) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(11, this->contactstiffness(), target); } // double contactDamping = 12; if (has_contactdamping()) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(12, this->contactdamping(), target); } // .pybullet_grpc.vec3 localInertiaDiagonal = 13; if (has_localinertiadiagonal()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 13, this->_internal_localinertiadiagonal(), deterministic, target); } // int32 frictionAnchor = 14; if (has_frictionanchor()) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(14, this->frictionanchor(), target); } // double ccdSweptSphereRadius = 15; if (has_ccdsweptsphereradius()) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(15, this->ccdsweptsphereradius(), target); } // double contactProcessingThreshold = 16; if (has_contactprocessingthreshold()) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(16, this->contactprocessingthreshold(), target); } // int32 activationState = 17; if (has_activationstate()) { 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; } 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 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->bodyuniqueid()); } // int32 linkIndex = 2; if (this->linkindex() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->linkindex()); } switch (hasMass_case()) { // double mass = 3; case kMass: { total_size += 1 + 8; break; } case HASMASS_NOT_SET: { break; } } switch (hasLateralFriction_case()) { // double lateralFriction = 5; case kLateralFriction: { total_size += 1 + 8; break; } case HASLATERALFRICTION_NOT_SET: { break; } } switch (hasSpinningFriction_case()) { // double spinningFriction = 6; case kSpinningFriction: { total_size += 1 + 8; break; } case HASSPINNINGFRICTION_NOT_SET: { break; } } switch (hasRollingFriction_case()) { // double rollingFriction = 7; case kRollingFriction: { total_size += 1 + 8; break; } case HASROLLINGFRICTION_NOT_SET: { break; } } switch (hasRestitution_case()) { // double restitution = 8; case kRestitution: { total_size += 1 + 8; break; } case HASRESTITUTION_NOT_SET: { break; } } switch (haslinearDamping_case()) { // double linearDamping = 9; case kLinearDamping: { total_size += 1 + 8; break; } case HASLINEARDAMPING_NOT_SET: { break; } } switch (hasangularDamping_case()) { // double angularDamping = 10; case kAngularDamping: { total_size += 1 + 8; break; } case HASANGULARDAMPING_NOT_SET: { break; } } switch (hasContactStiffness_case()) { // double contactStiffness = 11; case kContactStiffness: { total_size += 1 + 8; break; } case HASCONTACTSTIFFNESS_NOT_SET: { break; } } switch (hasContactDamping_case()) { // double contactDamping = 12; case kContactDamping: { total_size += 1 + 8; break; } case HASCONTACTDAMPING_NOT_SET: { break; } } switch (hasLocalInertiaDiagonal_case()) { // .pybullet_grpc.vec3 localInertiaDiagonal = 13; case kLocalInertiaDiagonal: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *hasLocalInertiaDiagonal_.localinertiadiagonal_); break; } case HASLOCALINERTIADIAGONAL_NOT_SET: { break; } } switch (hasFrictionAnchor_case()) { // int32 frictionAnchor = 14; case kFrictionAnchor: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->frictionanchor()); break; } case HASFRICTIONANCHOR_NOT_SET: { break; } } switch (hasccdSweptSphereRadius_case()) { // double ccdSweptSphereRadius = 15; case kCcdSweptSphereRadius: { total_size += 1 + 8; break; } case HASCCDSWEPTSPHERERADIUS_NOT_SET: { break; } } switch (hasContactProcessingThreshold_case()) { // double contactProcessingThreshold = 16; case kContactProcessingThreshold: { total_size += 2 + 8; break; } case HASCONTACTPROCESSINGTHRESHOLD_NOT_SET: { break; } } switch (hasActivationState_case()) { // int32 activationState = 17; case kActivationState: { total_size += 2 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->activationstate()); break; } case HASACTIVATIONSTATE_NOT_SET: { break; } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ChangeDynamicsCommand::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.ChangeDynamicsCommand) GOOGLE_DCHECK_NE(&from, this); const ChangeDynamicsCommand* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.ChangeDynamicsCommand) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.ChangeDynamicsCommand) MergeFrom(*source); } } 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()); } if (from.linkindex() != 0) { set_linkindex(from.linkindex()); } switch (from.hasMass_case()) { case kMass: { set_mass(from.mass()); break; } case HASMASS_NOT_SET: { break; } } switch (from.hasLateralFriction_case()) { case kLateralFriction: { set_lateralfriction(from.lateralfriction()); break; } case HASLATERALFRICTION_NOT_SET: { break; } } switch (from.hasSpinningFriction_case()) { case kSpinningFriction: { set_spinningfriction(from.spinningfriction()); break; } case HASSPINNINGFRICTION_NOT_SET: { break; } } switch (from.hasRollingFriction_case()) { case kRollingFriction: { set_rollingfriction(from.rollingfriction()); break; } case HASROLLINGFRICTION_NOT_SET: { break; } } switch (from.hasRestitution_case()) { case kRestitution: { set_restitution(from.restitution()); break; } case HASRESTITUTION_NOT_SET: { break; } } switch (from.haslinearDamping_case()) { case kLinearDamping: { set_lineardamping(from.lineardamping()); break; } case HASLINEARDAMPING_NOT_SET: { break; } } switch (from.hasangularDamping_case()) { case kAngularDamping: { set_angulardamping(from.angulardamping()); break; } case HASANGULARDAMPING_NOT_SET: { break; } } switch (from.hasContactStiffness_case()) { case kContactStiffness: { set_contactstiffness(from.contactstiffness()); break; } case HASCONTACTSTIFFNESS_NOT_SET: { break; } } switch (from.hasContactDamping_case()) { case kContactDamping: { set_contactdamping(from.contactdamping()); break; } case HASCONTACTDAMPING_NOT_SET: { break; } } switch (from.hasLocalInertiaDiagonal_case()) { case kLocalInertiaDiagonal: { mutable_localinertiadiagonal()->::pybullet_grpc::vec3::MergeFrom(from.localinertiadiagonal()); break; } case HASLOCALINERTIADIAGONAL_NOT_SET: { break; } } switch (from.hasFrictionAnchor_case()) { case kFrictionAnchor: { set_frictionanchor(from.frictionanchor()); break; } case HASFRICTIONANCHOR_NOT_SET: { break; } } switch (from.hasccdSweptSphereRadius_case()) { case kCcdSweptSphereRadius: { set_ccdsweptsphereradius(from.ccdsweptsphereradius()); break; } case HASCCDSWEPTSPHERERADIUS_NOT_SET: { break; } } switch (from.hasContactProcessingThreshold_case()) { case kContactProcessingThreshold: { set_contactprocessingthreshold(from.contactprocessingthreshold()); break; } case HASCONTACTPROCESSINGTHRESHOLD_NOT_SET: { break; } } switch (from.hasActivationState_case()) { case kActivationState: { set_activationstate(from.activationstate()); break; } case HASACTIVATIONSTATE_NOT_SET: { break; } } } void ChangeDynamicsCommand::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.ChangeDynamicsCommand) if (&from == this) return; Clear(); MergeFrom(from); } void ChangeDynamicsCommand::CopyFrom(const ChangeDynamicsCommand& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.ChangeDynamicsCommand) if (&from == this) return; Clear(); MergeFrom(from); } bool ChangeDynamicsCommand::IsInitialized() const { return true; } void ChangeDynamicsCommand::Swap(ChangeDynamicsCommand* other) { if (other == this) return; InternalSwap(other); } void ChangeDynamicsCommand::InternalSwap(ChangeDynamicsCommand* other) { 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[kIndexInFileMessages]; } // =================================================================== void GetDynamicsCommand::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int GetDynamicsCommand::kBodyUniqueIdFieldNumber; const int GetDynamicsCommand::kLinkIndexFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetDynamicsCommand::GetDynamicsCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&bodyuniqueid_, &from.bodyuniqueid_, static_cast(reinterpret_cast(&linkindex_) - reinterpret_cast(&bodyuniqueid_)) + sizeof(linkindex_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.GetDynamicsCommand) } void GetDynamicsCommand::SharedCtor() { ::memset(&bodyuniqueid_, 0, static_cast( reinterpret_cast(&linkindex_) - reinterpret_cast(&bodyuniqueid_)) + sizeof(linkindex_)); } GetDynamicsCommand::~GetDynamicsCommand() { // @@protoc_insertion_point(destructor:pybullet_grpc.GetDynamicsCommand) SharedDtor(); } void GetDynamicsCommand::SharedDtor() { } void GetDynamicsCommand::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* GetDynamicsCommand::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const GetDynamicsCommand& GetDynamicsCommand::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_GetDynamicsCommand.base); return *internal_default_instance(); } void GetDynamicsCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.GetDynamicsCommand) ::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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.GetDynamicsCommand) for (;;) { ::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 (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>( input, &bodyuniqueid_))); } else { goto handle_unusual; } break; } // int32 linkIndex = 2; case 2: { 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>( input, &linkindex_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.GetDynamicsCommand) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.GetDynamicsCommand) return false; #undef DO_ } 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); } // int32 linkIndex = 2; if (this->linkindex() != 0) { ::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 // @@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); } // int32 linkIndex = 2; if (this->linkindex() != 0) { 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; } 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 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->bodyuniqueid()); } // int32 linkIndex = 2; if (this->linkindex() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->linkindex()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void GetDynamicsCommand::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.GetDynamicsCommand) GOOGLE_DCHECK_NE(&from, this); const GetDynamicsCommand* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.GetDynamicsCommand) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.GetDynamicsCommand) MergeFrom(*source); } } 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()); } if (from.linkindex() != 0) { set_linkindex(from.linkindex()); } } void GetDynamicsCommand::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.GetDynamicsCommand) if (&from == this) return; Clear(); MergeFrom(from); } void GetDynamicsCommand::CopyFrom(const GetDynamicsCommand& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.GetDynamicsCommand) if (&from == this) return; Clear(); MergeFrom(from); } bool GetDynamicsCommand::IsInitialized() const { return true; } void GetDynamicsCommand::Swap(GetDynamicsCommand* other) { if (other == this) return; InternalSwap(other); } void GetDynamicsCommand::InternalSwap(GetDynamicsCommand* other) { 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[kIndexInFileMessages]; } // =================================================================== 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; const int GetDynamicsStatus::kSpinningFrictionFieldNumber; const int GetDynamicsStatus::kRollingFrictionFieldNumber; const int GetDynamicsStatus::kRestitutionFieldNumber; const int GetDynamicsStatus::kLinearDampingFieldNumber; const int GetDynamicsStatus::kAngularDampingFieldNumber; const int GetDynamicsStatus::kContactStiffnessFieldNumber; const int GetDynamicsStatus::kContactDampingFieldNumber; const int GetDynamicsStatus::kLocalInertiaDiagonalFieldNumber; const int GetDynamicsStatus::kFrictionAnchorFieldNumber; const int GetDynamicsStatus::kCcdSweptSphereRadiusFieldNumber; const int GetDynamicsStatus::kContactProcessingThresholdFieldNumber; const int GetDynamicsStatus::kActivationStateFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetDynamicsStatus::GetDynamicsStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_localinertiadiagonal()) { localinertiadiagonal_ = new ::pybullet_grpc::vec3(*from.localinertiadiagonal_); } else { localinertiadiagonal_ = NULL; } ::memcpy(&mass_, &from.mass_, static_cast(reinterpret_cast(&contactprocessingthreshold_) - reinterpret_cast(&mass_)) + sizeof(contactprocessingthreshold_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.GetDynamicsStatus) } void GetDynamicsStatus::SharedCtor() { ::memset(&localinertiadiagonal_, 0, static_cast( reinterpret_cast(&contactprocessingthreshold_) - reinterpret_cast(&localinertiadiagonal_)) + sizeof(contactprocessingthreshold_)); } GetDynamicsStatus::~GetDynamicsStatus() { // @@protoc_insertion_point(destructor:pybullet_grpc.GetDynamicsStatus) SharedDtor(); } void GetDynamicsStatus::SharedDtor() { if (this != internal_default_instance()) delete localinertiadiagonal_; } void GetDynamicsStatus::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* GetDynamicsStatus::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const GetDynamicsStatus& GetDynamicsStatus::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_GetDynamicsStatus.base); return *internal_default_instance(); } 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, static_cast( reinterpret_cast(&contactprocessingthreshold_) - reinterpret_cast(&mass_)) + sizeof(contactprocessingthreshold_)); _internal_metadata_.Clear(); } bool GetDynamicsStatus::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.GetDynamicsStatus) for (;;) { ::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 (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>( input, &mass_))); } else { goto handle_unusual; } break; } // double lateralFriction = 5; case 5: { 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>( input, &lateralfriction_))); } else { goto handle_unusual; } break; } // double spinningFriction = 6; case 6: { 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>( input, &spinningfriction_))); } else { goto handle_unusual; } break; } // double rollingFriction = 7; case 7: { 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>( input, &rollingfriction_))); } else { goto handle_unusual; } break; } // double restitution = 8; case 8: { 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>( input, &restitution_))); } else { goto handle_unusual; } break; } // double linearDamping = 9; case 9: { 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>( input, &lineardamping_))); } else { goto handle_unusual; } break; } // double angularDamping = 10; case 10: { 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>( input, &angulardamping_))); } else { goto handle_unusual; } break; } // double contactStiffness = 11; case 11: { 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>( input, &contactstiffness_))); } else { goto handle_unusual; } break; } // double contactDamping = 12; case 12: { 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>( input, &contactdamping_))); } else { goto handle_unusual; } break; } // .pybullet_grpc.vec3 localInertiaDiagonal = 13; case 13: { 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; } break; } // int32 frictionAnchor = 14; case 14: { 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>( input, &frictionanchor_))); } else { goto handle_unusual; } break; } // double ccdSweptSphereRadius = 15; case 15: { 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>( input, &ccdsweptsphereradius_))); } else { goto handle_unusual; } break; } // double contactProcessingThreshold = 16; case 16: { 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>( input, &contactprocessingthreshold_))); } else { goto handle_unusual; } break; } // int32 activationState = 17; case 17: { 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>( input, &activationstate_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.GetDynamicsStatus) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.GetDynamicsStatus) return false; #undef DO_ } 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); } // double lateralFriction = 5; if (this->lateralfriction() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->lateralfriction(), output); } // double spinningFriction = 6; if (this->spinningfriction() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->spinningfriction(), output); } // double rollingFriction = 7; if (this->rollingfriction() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->rollingfriction(), output); } // double restitution = 8; if (this->restitution() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->restitution(), output); } // double linearDamping = 9; if (this->lineardamping() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(9, this->lineardamping(), output); } // double angularDamping = 10; if (this->angulardamping() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(10, this->angulardamping(), output); } // double contactStiffness = 11; if (this->contactstiffness() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(11, this->contactstiffness(), output); } // double contactDamping = 12; if (this->contactdamping() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(12, this->contactdamping(), output); } // .pybullet_grpc.vec3 localInertiaDiagonal = 13; if (this->has_localinertiadiagonal()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 13, this->_internal_localinertiadiagonal(), output); } // int32 frictionAnchor = 14; if (this->frictionanchor() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(14, this->frictionanchor(), output); } // double ccdSweptSphereRadius = 15; if (this->ccdsweptsphereradius() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(15, this->ccdsweptsphereradius(), output); } // double contactProcessingThreshold = 16; if (this->contactprocessingthreshold() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(16, this->contactprocessingthreshold(), output); } // int32 activationState = 17; if (this->activationstate() != 0) { ::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 // @@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); } // double lateralFriction = 5; if (this->lateralfriction() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->lateralfriction(), target); } // double spinningFriction = 6; if (this->spinningfriction() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->spinningfriction(), target); } // double rollingFriction = 7; if (this->rollingfriction() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->rollingfriction(), target); } // double restitution = 8; if (this->restitution() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(8, this->restitution(), target); } // double linearDamping = 9; if (this->lineardamping() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(9, this->lineardamping(), target); } // double angularDamping = 10; if (this->angulardamping() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(10, this->angulardamping(), target); } // double contactStiffness = 11; if (this->contactstiffness() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(11, this->contactstiffness(), target); } // double contactDamping = 12; if (this->contactdamping() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(12, this->contactdamping(), target); } // .pybullet_grpc.vec3 localInertiaDiagonal = 13; if (this->has_localinertiadiagonal()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 13, this->_internal_localinertiadiagonal(), deterministic, target); } // int32 frictionAnchor = 14; if (this->frictionanchor() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(14, this->frictionanchor(), target); } // double ccdSweptSphereRadius = 15; if (this->ccdsweptsphereradius() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(15, this->ccdsweptsphereradius(), target); } // double contactProcessingThreshold = 16; if (this->contactprocessingthreshold() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(16, this->contactprocessingthreshold(), target); } // int32 activationState = 17; if (this->activationstate() != 0) { 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; } 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::MessageSize( *localinertiadiagonal_); } // double mass = 3; if (this->mass() != 0) { total_size += 1 + 8; } // double lateralFriction = 5; if (this->lateralfriction() != 0) { total_size += 1 + 8; } // double spinningFriction = 6; if (this->spinningfriction() != 0) { total_size += 1 + 8; } // double rollingFriction = 7; if (this->rollingfriction() != 0) { total_size += 1 + 8; } // double restitution = 8; if (this->restitution() != 0) { total_size += 1 + 8; } // double linearDamping = 9; if (this->lineardamping() != 0) { total_size += 1 + 8; } // double angularDamping = 10; if (this->angulardamping() != 0) { total_size += 1 + 8; } // double contactStiffness = 11; if (this->contactstiffness() != 0) { total_size += 1 + 8; } // double contactDamping = 12; if (this->contactdamping() != 0) { total_size += 1 + 8; } // double ccdSweptSphereRadius = 15; if (this->ccdsweptsphereradius() != 0) { total_size += 1 + 8; } // int32 frictionAnchor = 14; if (this->frictionanchor() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->frictionanchor()); } // int32 activationState = 17; if (this->activationstate() != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->activationstate()); } // double contactProcessingThreshold = 16; if (this->contactprocessingthreshold() != 0) { total_size += 2 + 8; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void GetDynamicsStatus::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.GetDynamicsStatus) GOOGLE_DCHECK_NE(&from, this); const GetDynamicsStatus* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.GetDynamicsStatus) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.GetDynamicsStatus) MergeFrom(*source); } } 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()); } if (from.mass() != 0) { set_mass(from.mass()); } if (from.lateralfriction() != 0) { set_lateralfriction(from.lateralfriction()); } if (from.spinningfriction() != 0) { set_spinningfriction(from.spinningfriction()); } if (from.rollingfriction() != 0) { set_rollingfriction(from.rollingfriction()); } if (from.restitution() != 0) { set_restitution(from.restitution()); } if (from.lineardamping() != 0) { set_lineardamping(from.lineardamping()); } if (from.angulardamping() != 0) { set_angulardamping(from.angulardamping()); } if (from.contactstiffness() != 0) { set_contactstiffness(from.contactstiffness()); } if (from.contactdamping() != 0) { set_contactdamping(from.contactdamping()); } if (from.ccdsweptsphereradius() != 0) { set_ccdsweptsphereradius(from.ccdsweptsphereradius()); } if (from.frictionanchor() != 0) { set_frictionanchor(from.frictionanchor()); } if (from.activationstate() != 0) { set_activationstate(from.activationstate()); } if (from.contactprocessingthreshold() != 0) { set_contactprocessingthreshold(from.contactprocessingthreshold()); } } void GetDynamicsStatus::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.GetDynamicsStatus) if (&from == this) return; Clear(); MergeFrom(from); } void GetDynamicsStatus::CopyFrom(const GetDynamicsStatus& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.GetDynamicsStatus) if (&from == this) return; Clear(); MergeFrom(from); } bool GetDynamicsStatus::IsInitialized() const { return true; } void GetDynamicsStatus::Swap(GetDynamicsStatus* other) { if (other == this) return; InternalSwap(other); } void GetDynamicsStatus::InternalSwap(GetDynamicsStatus* other) { 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[kIndexInFileMessages]; } // =================================================================== void InitPoseCommand::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int InitPoseCommand::kBodyUniqueIdFieldNumber; const int InitPoseCommand::kUpdateflagsFieldNumber; const int InitPoseCommand::kHasInitialStateQFieldNumber; const int InitPoseCommand::kInitialStateQFieldNumber; const int InitPoseCommand::kHasInitialStateQdotFieldNumber; const int InitPoseCommand::kInitialStateQdotFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 InitPoseCommand::InitPoseCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_pybullet_2eproto::scc_info_InitPoseCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.InitPoseCommand) } InitPoseCommand::InitPoseCommand(const InitPoseCommand& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), hasinitialstateq_(from.hasinitialstateq_), initialstateq_(from.initialstateq_), hasinitialstateqdot_(from.hasinitialstateqdot_), initialstateqdot_(from.initialstateqdot_) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&bodyuniqueid_, &from.bodyuniqueid_, static_cast(reinterpret_cast(&updateflags_) - reinterpret_cast(&bodyuniqueid_)) + sizeof(updateflags_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.InitPoseCommand) } void InitPoseCommand::SharedCtor() { ::memset(&bodyuniqueid_, 0, static_cast( reinterpret_cast(&updateflags_) - reinterpret_cast(&bodyuniqueid_)) + sizeof(updateflags_)); } InitPoseCommand::~InitPoseCommand() { // @@protoc_insertion_point(destructor:pybullet_grpc.InitPoseCommand) SharedDtor(); } void InitPoseCommand::SharedDtor() { } void InitPoseCommand::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* InitPoseCommand::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const InitPoseCommand& InitPoseCommand::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_InitPoseCommand.base); return *internal_default_instance(); } 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, static_cast( reinterpret_cast(&updateflags_) - reinterpret_cast(&bodyuniqueid_)) + sizeof(updateflags_)); _internal_metadata_.Clear(); } bool InitPoseCommand::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.InitPoseCommand) for (;;) { ::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 (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>( input, &bodyuniqueid_))); } else { goto handle_unusual; } break; } // int32 updateflags = 2; case 2: { 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>( input, &updateflags_))); } else { goto handle_unusual; } break; } // repeated int32 hasInitialStateQ = 3; case 3: { 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 ( 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()))); } else { goto handle_unusual; } break; } // repeated double initialStateQ = 4; case 4: { 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 ( 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()))); } else { goto handle_unusual; } break; } // repeated int32 hasInitialStateQdot = 5; case 5: { 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 ( 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()))); } else { goto handle_unusual; } break; } // repeated double initialStateQdot = 6; case 6: { 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 ( 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()))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.InitPoseCommand) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.InitPoseCommand) return false; #undef DO_ } 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); } // int32 updateflags = 2; if (this->updateflags() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->updateflags(), output); } // 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(static_cast< ::google::protobuf::uint32>( _hasinitialstateq_cached_byte_size_)); } for (int i = 0, n = this->hasinitialstateq_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( this->hasinitialstateq(i), output); } // 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(static_cast< ::google::protobuf::uint32>( _initialstateq_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->initialstateq().data(), this->initialstateq_size(), output); } // 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(static_cast< ::google::protobuf::uint32>( _hasinitialstateqdot_cached_byte_size_)); } for (int i = 0, n = this->hasinitialstateqdot_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( this->hasinitialstateqdot(i), output); } // 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(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 // @@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); } // int32 updateflags = 2; if (this->updateflags() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->updateflags(), target); } // repeated int32 hasInitialStateQ = 3; if (this->hasinitialstateq_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _hasinitialstateq_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: WriteInt32NoTagToArray(this->hasinitialstateq_, target); } // repeated double initialStateQ = 4; if (this->initialstateq_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _initialstateq_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: WriteDoubleNoTagToArray(this->initialstateq_, target); } // repeated int32 hasInitialStateQdot = 5; if (this->hasinitialstateqdot_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _hasinitialstateqdot_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: WriteInt32NoTagToArray(this->hasinitialstateqdot_, target); } // repeated double initialStateQdot = 6; if (this->initialstateqdot_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _initialstateqdot_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: 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; } 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( static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _hasinitialstateq_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } // repeated double initialStateQ = 4; { 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( static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _initialstateq_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } // repeated int32 hasInitialStateQdot = 5; { size_t data_size = ::google::protobuf::internal::WireFormatLite:: Int32Size(this->hasinitialstateqdot_); if (data_size > 0) { total_size += 1 + ::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(); _hasinitialstateqdot_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } // repeated double initialStateQdot = 6; { 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( static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _initialstateqdot_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->bodyuniqueid()); } // int32 updateflags = 2; if (this->updateflags() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->updateflags()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void InitPoseCommand::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.InitPoseCommand) GOOGLE_DCHECK_NE(&from, this); const InitPoseCommand* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.InitPoseCommand) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.InitPoseCommand) MergeFrom(*source); } } 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_); initialstateqdot_.MergeFrom(from.initialstateqdot_); if (from.bodyuniqueid() != 0) { set_bodyuniqueid(from.bodyuniqueid()); } if (from.updateflags() != 0) { set_updateflags(from.updateflags()); } } void InitPoseCommand::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.InitPoseCommand) if (&from == this) return; Clear(); MergeFrom(from); } void InitPoseCommand::CopyFrom(const InitPoseCommand& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.InitPoseCommand) if (&from == this) return; Clear(); MergeFrom(from); } bool InitPoseCommand::IsInitialized() const { return true; } void InitPoseCommand::Swap(InitPoseCommand* other) { if (other == this) return; InternalSwap(other); } void InitPoseCommand::InternalSwap(InitPoseCommand* other) { 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[kIndexInFileMessages]; } // =================================================================== void RequestActualStateCommand::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int RequestActualStateCommand::kBodyUniqueIdFieldNumber; const int RequestActualStateCommand::kComputeForwardKinematicsFieldNumber; const int RequestActualStateCommand::kComputeLinkVelocitiesFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 RequestActualStateCommand::RequestActualStateCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&bodyuniqueid_, &from.bodyuniqueid_, static_cast(reinterpret_cast(&computelinkvelocities_) - reinterpret_cast(&bodyuniqueid_)) + sizeof(computelinkvelocities_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.RequestActualStateCommand) } void RequestActualStateCommand::SharedCtor() { ::memset(&bodyuniqueid_, 0, static_cast( reinterpret_cast(&computelinkvelocities_) - reinterpret_cast(&bodyuniqueid_)) + sizeof(computelinkvelocities_)); } RequestActualStateCommand::~RequestActualStateCommand() { // @@protoc_insertion_point(destructor:pybullet_grpc.RequestActualStateCommand) SharedDtor(); } void RequestActualStateCommand::SharedDtor() { } void RequestActualStateCommand::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* RequestActualStateCommand::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const RequestActualStateCommand& RequestActualStateCommand::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_RequestActualStateCommand.base); return *internal_default_instance(); } void RequestActualStateCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.RequestActualStateCommand) ::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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.RequestActualStateCommand) for (;;) { ::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 (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>( input, &bodyuniqueid_))); } else { goto handle_unusual; } break; } // bool computeForwardKinematics = 2; case 2: { 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>( input, &computeforwardkinematics_))); } else { goto handle_unusual; } break; } // bool computeLinkVelocities = 3; case 3: { 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>( input, &computelinkvelocities_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.RequestActualStateCommand) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.RequestActualStateCommand) return false; #undef DO_ } 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); } // bool computeForwardKinematics = 2; if (this->computeforwardkinematics() != 0) { ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->computeforwardkinematics(), output); } // bool computeLinkVelocities = 3; if (this->computelinkvelocities() != 0) { ::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 // @@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); } // bool computeForwardKinematics = 2; if (this->computeforwardkinematics() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->computeforwardkinematics(), target); } // bool computeLinkVelocities = 3; if (this->computelinkvelocities() != 0) { 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; } 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 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->bodyuniqueid()); } // bool computeForwardKinematics = 2; if (this->computeforwardkinematics() != 0) { total_size += 1 + 1; } // bool computeLinkVelocities = 3; if (this->computelinkvelocities() != 0) { total_size += 1 + 1; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void RequestActualStateCommand::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.RequestActualStateCommand) GOOGLE_DCHECK_NE(&from, this); const RequestActualStateCommand* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.RequestActualStateCommand) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.RequestActualStateCommand) MergeFrom(*source); } } 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()); } if (from.computeforwardkinematics() != 0) { set_computeforwardkinematics(from.computeforwardkinematics()); } if (from.computelinkvelocities() != 0) { set_computelinkvelocities(from.computelinkvelocities()); } } void RequestActualStateCommand::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.RequestActualStateCommand) if (&from == this) return; Clear(); MergeFrom(from); } void RequestActualStateCommand::CopyFrom(const RequestActualStateCommand& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.RequestActualStateCommand) if (&from == this) return; Clear(); MergeFrom(from); } bool RequestActualStateCommand::IsInitialized() const { return true; } void RequestActualStateCommand::Swap(RequestActualStateCommand* other) { if (other == this) return; InternalSwap(other); } void RequestActualStateCommand::InternalSwap(RequestActualStateCommand* other) { 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[kIndexInFileMessages]; } // =================================================================== void SendActualStateStatus::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int SendActualStateStatus::kBodyUniqueIdFieldNumber; const int SendActualStateStatus::kNumLinksFieldNumber; const int SendActualStateStatus::kNumDegreeOfFreedomQFieldNumber; const int SendActualStateStatus::kNumDegreeOfFreedomUFieldNumber; const int SendActualStateStatus::kRootLocalInertialFrameFieldNumber; const int SendActualStateStatus::kActualStateQFieldNumber; const int SendActualStateStatus::kActualStateQdotFieldNumber; const int SendActualStateStatus::kJointReactionForcesFieldNumber; const int SendActualStateStatus::kJointMotorForceFieldNumber; const int SendActualStateStatus::kLinkStateFieldNumber; const int SendActualStateStatus::kLinkWorldVelocitiesFieldNumber; const int SendActualStateStatus::kLinkLocalInertialFramesFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SendActualStateStatus::SendActualStateStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_pybullet_2eproto::scc_info_SendActualStateStatus.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.SendActualStateStatus) } SendActualStateStatus::SendActualStateStatus(const SendActualStateStatus& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), rootlocalinertialframe_(from.rootlocalinertialframe_), actualstateq_(from.actualstateq_), actualstateqdot_(from.actualstateqdot_), jointreactionforces_(from.jointreactionforces_), jointmotorforce_(from.jointmotorforce_), linkstate_(from.linkstate_), linkworldvelocities_(from.linkworldvelocities_), linklocalinertialframes_(from.linklocalinertialframes_) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&bodyuniqueid_, &from.bodyuniqueid_, static_cast(reinterpret_cast(&numdegreeoffreedomu_) - reinterpret_cast(&bodyuniqueid_)) + sizeof(numdegreeoffreedomu_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.SendActualStateStatus) } void SendActualStateStatus::SharedCtor() { ::memset(&bodyuniqueid_, 0, static_cast( reinterpret_cast(&numdegreeoffreedomu_) - reinterpret_cast(&bodyuniqueid_)) + sizeof(numdegreeoffreedomu_)); } SendActualStateStatus::~SendActualStateStatus() { // @@protoc_insertion_point(destructor:pybullet_grpc.SendActualStateStatus) SharedDtor(); } void SendActualStateStatus::SharedDtor() { } void SendActualStateStatus::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* SendActualStateStatus::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const SendActualStateStatus& SendActualStateStatus::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_SendActualStateStatus.base); return *internal_default_instance(); } 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(); jointreactionforces_.Clear(); jointmotorforce_.Clear(); linkstate_.Clear(); linkworldvelocities_.Clear(); linklocalinertialframes_.Clear(); ::memset(&bodyuniqueid_, 0, static_cast( reinterpret_cast(&numdegreeoffreedomu_) - reinterpret_cast(&bodyuniqueid_)) + sizeof(numdegreeoffreedomu_)); _internal_metadata_.Clear(); } bool SendActualStateStatus::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.SendActualStateStatus) for (;;) { ::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 (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>( input, &bodyuniqueid_))); } else { goto handle_unusual; } break; } // int32 numLinks = 2; case 2: { 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>( input, &numlinks_))); } else { goto handle_unusual; } break; } // int32 numDegreeOfFreedomQ = 3; case 3: { 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>( input, &numdegreeoffreedomq_))); } else { goto handle_unusual; } break; } // int32 numDegreeOfFreedomU = 4; case 4: { 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>( input, &numdegreeoffreedomu_))); } else { goto handle_unusual; } break; } // repeated double rootLocalInertialFrame = 5; case 5: { 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 ( 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()))); } else { goto handle_unusual; } break; } // repeated double actualStateQ = 6; case 6: { 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 ( 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()))); } else { goto handle_unusual; } break; } // repeated double actualStateQdot = 7; case 7: { 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 ( 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()))); } else { goto handle_unusual; } break; } // repeated double jointReactionForces = 8; case 8: { 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 ( 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()))); } else { goto handle_unusual; } break; } // repeated double jointMotorForce = 9; case 9: { 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 ( 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()))); } else { goto handle_unusual; } break; } // repeated double linkState = 10; case 10: { 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 ( 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()))); } else { goto handle_unusual; } break; } // repeated double linkWorldVelocities = 11; case 11: { 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 ( 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()))); } else { goto handle_unusual; } break; } // repeated double linkLocalInertialFrames = 12; case 12: { 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 ( 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()))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.SendActualStateStatus) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.SendActualStateStatus) return false; #undef DO_ } 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); } // int32 numLinks = 2; if (this->numlinks() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->numlinks(), output); } // int32 numDegreeOfFreedomQ = 3; if (this->numdegreeoffreedomq() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->numdegreeoffreedomq(), output); } // int32 numDegreeOfFreedomU = 4; if (this->numdegreeoffreedomu() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->numdegreeoffreedomu(), output); } // 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(static_cast< ::google::protobuf::uint32>( _rootlocalinertialframe_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->rootlocalinertialframe().data(), this->rootlocalinertialframe_size(), output); } // 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(static_cast< ::google::protobuf::uint32>( _actualstateq_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->actualstateq().data(), this->actualstateq_size(), output); } // 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(static_cast< ::google::protobuf::uint32>( _actualstateqdot_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->actualstateqdot().data(), this->actualstateqdot_size(), output); } // 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(static_cast< ::google::protobuf::uint32>( _jointreactionforces_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->jointreactionforces().data(), this->jointreactionforces_size(), output); } // 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(static_cast< ::google::protobuf::uint32>( _jointmotorforce_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->jointmotorforce().data(), this->jointmotorforce_size(), output); } // 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(static_cast< ::google::protobuf::uint32>( _linkstate_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->linkstate().data(), this->linkstate_size(), output); } // 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(static_cast< ::google::protobuf::uint32>( _linkworldvelocities_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->linkworldvelocities().data(), this->linkworldvelocities_size(), output); } // 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(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 // @@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); } // int32 numLinks = 2; if (this->numlinks() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->numlinks(), target); } // int32 numDegreeOfFreedomQ = 3; if (this->numdegreeoffreedomq() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->numdegreeoffreedomq(), target); } // int32 numDegreeOfFreedomU = 4; if (this->numdegreeoffreedomu() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->numdegreeoffreedomu(), target); } // repeated double rootLocalInertialFrame = 5; if (this->rootlocalinertialframe_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _rootlocalinertialframe_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: WriteDoubleNoTagToArray(this->rootlocalinertialframe_, target); } // repeated double actualStateQ = 6; if (this->actualstateq_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _actualstateq_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: WriteDoubleNoTagToArray(this->actualstateq_, target); } // repeated double actualStateQdot = 7; if (this->actualstateqdot_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 7, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _actualstateqdot_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: WriteDoubleNoTagToArray(this->actualstateqdot_, target); } // repeated double jointReactionForces = 8; if (this->jointreactionforces_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 8, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _jointreactionforces_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: WriteDoubleNoTagToArray(this->jointreactionforces_, target); } // repeated double jointMotorForce = 9; if (this->jointmotorforce_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 9, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _jointmotorforce_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: WriteDoubleNoTagToArray(this->jointmotorforce_, target); } // repeated double linkState = 10; if (this->linkstate_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 10, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _linkstate_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: WriteDoubleNoTagToArray(this->linkstate_, target); } // repeated double linkWorldVelocities = 11; if (this->linkworldvelocities_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 11, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _linkworldvelocities_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: WriteDoubleNoTagToArray(this->linkworldvelocities_, target); } // repeated double linkLocalInertialFrames = 12; if (this->linklocalinertialframes_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 12, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _linklocalinertialframes_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: 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; } 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 = static_cast(this->rootlocalinertialframe_size()); size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + ::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(); _rootlocalinertialframe_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } // repeated double actualStateQ = 6; { 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( static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _actualstateq_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } // repeated double actualStateQdot = 7; { 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( static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _actualstateqdot_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } // repeated double jointReactionForces = 8; { 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( static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _jointreactionforces_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } // repeated double jointMotorForce = 9; { 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( static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _jointmotorforce_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } // repeated double linkState = 10; { 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( static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _linkstate_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } // repeated double linkWorldVelocities = 11; { 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( static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _linkworldvelocities_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } // repeated double linkLocalInertialFrames = 12; { 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( static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _linklocalinertialframes_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->bodyuniqueid()); } // int32 numLinks = 2; if (this->numlinks() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->numlinks()); } // int32 numDegreeOfFreedomQ = 3; if (this->numdegreeoffreedomq() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->numdegreeoffreedomq()); } // int32 numDegreeOfFreedomU = 4; if (this->numdegreeoffreedomu() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->numdegreeoffreedomu()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void SendActualStateStatus::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.SendActualStateStatus) GOOGLE_DCHECK_NE(&from, this); const SendActualStateStatus* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.SendActualStateStatus) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.SendActualStateStatus) MergeFrom(*source); } } 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_); jointreactionforces_.MergeFrom(from.jointreactionforces_); jointmotorforce_.MergeFrom(from.jointmotorforce_); linkstate_.MergeFrom(from.linkstate_); linkworldvelocities_.MergeFrom(from.linkworldvelocities_); linklocalinertialframes_.MergeFrom(from.linklocalinertialframes_); if (from.bodyuniqueid() != 0) { set_bodyuniqueid(from.bodyuniqueid()); } if (from.numlinks() != 0) { set_numlinks(from.numlinks()); } if (from.numdegreeoffreedomq() != 0) { set_numdegreeoffreedomq(from.numdegreeoffreedomq()); } if (from.numdegreeoffreedomu() != 0) { set_numdegreeoffreedomu(from.numdegreeoffreedomu()); } } void SendActualStateStatus::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.SendActualStateStatus) if (&from == this) return; Clear(); MergeFrom(from); } void SendActualStateStatus::CopyFrom(const SendActualStateStatus& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.SendActualStateStatus) if (&from == this) return; Clear(); MergeFrom(from); } bool SendActualStateStatus::IsInitialized() const { return true; } void SendActualStateStatus::Swap(SendActualStateStatus* other) { if (other == this) return; InternalSwap(other); } void SendActualStateStatus::InternalSwap(SendActualStateStatus* other) { 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[kIndexInFileMessages]; } // =================================================================== 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; const int ConfigureOpenGLVisualizerCommand::kCameraPitchFieldNumber; const int ConfigureOpenGLVisualizerCommand::kCameraYawFieldNumber; const int ConfigureOpenGLVisualizerCommand::kCameraTargetPositionFieldNumber; const int ConfigureOpenGLVisualizerCommand::kSetFlagFieldNumber; const int ConfigureOpenGLVisualizerCommand::kSetEnabledFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ConfigureOpenGLVisualizerCommand::ConfigureOpenGLVisualizerCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_cameratargetposition()) { cameratargetposition_ = new ::pybullet_grpc::vec3(*from.cameratargetposition_); } else { cameratargetposition_ = NULL; } ::memcpy(&cameradistance_, &from.cameradistance_, static_cast(reinterpret_cast(&setenabled_) - reinterpret_cast(&cameradistance_)) + sizeof(setenabled_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.ConfigureOpenGLVisualizerCommand) } void ConfigureOpenGLVisualizerCommand::SharedCtor() { ::memset(&cameratargetposition_, 0, static_cast( reinterpret_cast(&setenabled_) - reinterpret_cast(&cameratargetposition_)) + sizeof(setenabled_)); } ConfigureOpenGLVisualizerCommand::~ConfigureOpenGLVisualizerCommand() { // @@protoc_insertion_point(destructor:pybullet_grpc.ConfigureOpenGLVisualizerCommand) SharedDtor(); } void ConfigureOpenGLVisualizerCommand::SharedDtor() { if (this != internal_default_instance()) delete cameratargetposition_; } void ConfigureOpenGLVisualizerCommand::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* ConfigureOpenGLVisualizerCommand::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const ConfigureOpenGLVisualizerCommand& ConfigureOpenGLVisualizerCommand::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_ConfigureOpenGLVisualizerCommand.base); return *internal_default_instance(); } 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, static_cast( reinterpret_cast(&setenabled_) - reinterpret_cast(&cameradistance_)) + sizeof(setenabled_)); _internal_metadata_.Clear(); } bool ConfigureOpenGLVisualizerCommand::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.ConfigureOpenGLVisualizerCommand) for (;;) { ::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 (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>( input, &updateflags_))); } else { goto handle_unusual; } break; } // double cameraDistance = 2; case 2: { 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>( input, &cameradistance_))); } else { goto handle_unusual; } break; } // double cameraPitch = 3; case 3: { 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>( input, &camerapitch_))); } else { goto handle_unusual; } break; } // double cameraYaw = 4; case 4: { 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>( input, &camerayaw_))); } else { goto handle_unusual; } break; } // .pybullet_grpc.vec3 cameraTargetPosition = 5; case 5: { 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; } break; } // int32 setFlag = 6; case 6: { 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>( input, &setflag_))); } else { goto handle_unusual; } break; } // int32 setEnabled = 7; case 7: { 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>( input, &setenabled_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.ConfigureOpenGLVisualizerCommand) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.ConfigureOpenGLVisualizerCommand) return false; #undef DO_ } 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); } // double cameraDistance = 2; if (this->cameradistance() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->cameradistance(), output); } // double cameraPitch = 3; if (this->camerapitch() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->camerapitch(), output); } // double cameraYaw = 4; if (this->camerayaw() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->camerayaw(), output); } // .pybullet_grpc.vec3 cameraTargetPosition = 5; if (this->has_cameratargetposition()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, this->_internal_cameratargetposition(), output); } // int32 setFlag = 6; if (this->setflag() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->setflag(), output); } // int32 setEnabled = 7; if (this->setenabled() != 0) { ::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 // @@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); } // double cameraDistance = 2; if (this->cameradistance() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->cameradistance(), target); } // double cameraPitch = 3; if (this->camerapitch() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->camerapitch(), target); } // double cameraYaw = 4; if (this->camerayaw() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->camerayaw(), target); } // .pybullet_grpc.vec3 cameraTargetPosition = 5; if (this->has_cameratargetposition()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 5, this->_internal_cameratargetposition(), deterministic, target); } // int32 setFlag = 6; if (this->setflag() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->setflag(), target); } // int32 setEnabled = 7; if (this->setenabled() != 0) { 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; } 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::MessageSize( *cameratargetposition_); } // double cameraDistance = 2; if (this->cameradistance() != 0) { total_size += 1 + 8; } // double cameraPitch = 3; if (this->camerapitch() != 0) { total_size += 1 + 8; } // int32 updateFlags = 1; if (this->updateflags() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->updateflags()); } // int32 setFlag = 6; if (this->setflag() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->setflag()); } // double cameraYaw = 4; if (this->camerayaw() != 0) { total_size += 1 + 8; } // int32 setEnabled = 7; if (this->setenabled() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->setenabled()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ConfigureOpenGLVisualizerCommand::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.ConfigureOpenGLVisualizerCommand) GOOGLE_DCHECK_NE(&from, this); const ConfigureOpenGLVisualizerCommand* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.ConfigureOpenGLVisualizerCommand) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.ConfigureOpenGLVisualizerCommand) MergeFrom(*source); } } void ConfigureOpenGLVisualizerCommand::MergeFrom(const ConfigureOpenGLVisualizerCommand& from) { // @@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()); } if (from.cameradistance() != 0) { set_cameradistance(from.cameradistance()); } if (from.camerapitch() != 0) { set_camerapitch(from.camerapitch()); } if (from.updateflags() != 0) { set_updateflags(from.updateflags()); } if (from.setflag() != 0) { set_setflag(from.setflag()); } if (from.camerayaw() != 0) { set_camerayaw(from.camerayaw()); } if (from.setenabled() != 0) { set_setenabled(from.setenabled()); } } void ConfigureOpenGLVisualizerCommand::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.ConfigureOpenGLVisualizerCommand) if (&from == this) return; Clear(); MergeFrom(from); } void ConfigureOpenGLVisualizerCommand::CopyFrom(const ConfigureOpenGLVisualizerCommand& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.ConfigureOpenGLVisualizerCommand) if (&from == this) return; Clear(); MergeFrom(from); } bool ConfigureOpenGLVisualizerCommand::IsInitialized() const { return true; } void ConfigureOpenGLVisualizerCommand::Swap(ConfigureOpenGLVisualizerCommand* other) { if (other == this) return; InternalSwap(other); } void ConfigureOpenGLVisualizerCommand::InternalSwap(ConfigureOpenGLVisualizerCommand* other) { 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[kIndexInFileMessages]; } // =================================================================== 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; const int PhysicsSimulationParameters::kNumSimulationSubStepsFieldNumber; const int PhysicsSimulationParameters::kNumSolverIterationsFieldNumber; const int PhysicsSimulationParameters::kUseRealTimeSimulationFieldNumber; const int PhysicsSimulationParameters::kUseSplitImpulseFieldNumber; const int PhysicsSimulationParameters::kSplitImpulsePenetrationThresholdFieldNumber; const int PhysicsSimulationParameters::kContactBreakingThresholdFieldNumber; const int PhysicsSimulationParameters::kInternalSimFlagsFieldNumber; const int PhysicsSimulationParameters::kDefaultContactERPFieldNumber; const int PhysicsSimulationParameters::kCollisionFilterModeFieldNumber; const int PhysicsSimulationParameters::kEnableFileCachingFieldNumber; const int PhysicsSimulationParameters::kRestitutionVelocityThresholdFieldNumber; const int PhysicsSimulationParameters::kDefaultNonContactERPFieldNumber; const int PhysicsSimulationParameters::kFrictionERPFieldNumber; const int PhysicsSimulationParameters::kDefaultGlobalCFMFieldNumber; const int PhysicsSimulationParameters::kFrictionCFMFieldNumber; const int PhysicsSimulationParameters::kEnableConeFrictionFieldNumber; const int PhysicsSimulationParameters::kDeterministicOverlappingPairsFieldNumber; const int PhysicsSimulationParameters::kAllowedCcdPenetrationFieldNumber; const int PhysicsSimulationParameters::kJointFeedbackModeFieldNumber; const int PhysicsSimulationParameters::kSolverResidualThresholdFieldNumber; const int PhysicsSimulationParameters::kContactSlopFieldNumber; const int PhysicsSimulationParameters::kEnableSATFieldNumber; const int PhysicsSimulationParameters::kConstraintSolverTypeFieldNumber; const int PhysicsSimulationParameters::kMinimumSolverIslandSizeFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 PhysicsSimulationParameters::PhysicsSimulationParameters() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_gravityacceleration()) { gravityacceleration_ = new ::pybullet_grpc::vec3(*from.gravityacceleration_); } else { gravityacceleration_ = NULL; } ::memcpy(&deltatime_, &from.deltatime_, static_cast(reinterpret_cast(&minimumsolverislandsize_) - reinterpret_cast(&deltatime_)) + sizeof(minimumsolverislandsize_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.PhysicsSimulationParameters) } void PhysicsSimulationParameters::SharedCtor() { ::memset(&gravityacceleration_, 0, static_cast( reinterpret_cast(&minimumsolverislandsize_) - reinterpret_cast(&gravityacceleration_)) + sizeof(minimumsolverislandsize_)); } PhysicsSimulationParameters::~PhysicsSimulationParameters() { // @@protoc_insertion_point(destructor:pybullet_grpc.PhysicsSimulationParameters) SharedDtor(); } void PhysicsSimulationParameters::SharedDtor() { if (this != internal_default_instance()) delete gravityacceleration_; } void PhysicsSimulationParameters::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* PhysicsSimulationParameters::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const PhysicsSimulationParameters& PhysicsSimulationParameters::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_PhysicsSimulationParameters.base); return *internal_default_instance(); } 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, static_cast( reinterpret_cast(&minimumsolverislandsize_) - reinterpret_cast(&deltatime_)) + sizeof(minimumsolverislandsize_)); _internal_metadata_.Clear(); } bool PhysicsSimulationParameters::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.PhysicsSimulationParameters) for (;;) { ::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 (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>( input, &deltatime_))); } else { goto handle_unusual; } break; } // .pybullet_grpc.vec3 gravityAcceleration = 2; case 2: { 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; } break; } // int32 numSimulationSubSteps = 3; case 3: { 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>( input, &numsimulationsubsteps_))); } else { goto handle_unusual; } break; } // int32 numSolverIterations = 4; case 4: { 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>( input, &numsolveriterations_))); } else { goto handle_unusual; } break; } // int32 useRealTimeSimulation = 5; case 5: { 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>( input, &userealtimesimulation_))); } else { goto handle_unusual; } break; } // int32 useSplitImpulse = 6; case 6: { 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>( input, &usesplitimpulse_))); } else { goto handle_unusual; } break; } // double splitImpulsePenetrationThreshold = 7; case 7: { 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>( input, &splitimpulsepenetrationthreshold_))); } else { goto handle_unusual; } break; } // double contactBreakingThreshold = 8; case 8: { 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>( input, &contactbreakingthreshold_))); } else { goto handle_unusual; } break; } // int32 internalSimFlags = 9; case 9: { 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>( input, &internalsimflags_))); } else { goto handle_unusual; } break; } // double defaultContactERP = 10; case 10: { 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>( input, &defaultcontacterp_))); } else { goto handle_unusual; } break; } // int32 collisionFilterMode = 11; case 11: { 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>( input, &collisionfiltermode_))); } else { goto handle_unusual; } break; } // int32 enableFileCaching = 12; case 12: { 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>( input, &enablefilecaching_))); } else { goto handle_unusual; } break; } // double restitutionVelocityThreshold = 13; case 13: { 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>( input, &restitutionvelocitythreshold_))); } else { goto handle_unusual; } break; } // double defaultNonContactERP = 14; case 14: { 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>( input, &defaultnoncontacterp_))); } else { goto handle_unusual; } break; } // double frictionERP = 15; case 15: { 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>( input, &frictionerp_))); } else { goto handle_unusual; } break; } // double defaultGlobalCFM = 16; case 16: { 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>( input, &defaultglobalcfm_))); } else { goto handle_unusual; } break; } // double frictionCFM = 17; case 17: { 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>( input, &frictioncfm_))); } else { goto handle_unusual; } break; } // int32 enableConeFriction = 18; case 18: { 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>( input, &enableconefriction_))); } else { goto handle_unusual; } break; } // int32 deterministicOverlappingPairs = 19; case 19: { 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>( input, &deterministicoverlappingpairs_))); } else { goto handle_unusual; } break; } // double allowedCcdPenetration = 20; case 20: { 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>( input, &allowedccdpenetration_))); } else { goto handle_unusual; } break; } // int32 jointFeedbackMode = 21; case 21: { 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>( input, &jointfeedbackmode_))); } else { goto handle_unusual; } break; } // double solverResidualThreshold = 22; case 22: { 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>( input, &solverresidualthreshold_))); } else { goto handle_unusual; } break; } // double contactSlop = 23; case 23: { 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>( input, &contactslop_))); } else { goto handle_unusual; } break; } // int32 enableSAT = 24; case 24: { 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>( input, &enablesat_))); } else { goto handle_unusual; } break; } // int32 constraintSolverType = 25; case 25: { 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>( input, &constraintsolvertype_))); } else { goto handle_unusual; } break; } // int32 minimumSolverIslandSize = 26; case 26: { 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>( input, &minimumsolverislandsize_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.PhysicsSimulationParameters) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.PhysicsSimulationParameters) return false; #undef DO_ } 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); } // .pybullet_grpc.vec3 gravityAcceleration = 2; if (this->has_gravityacceleration()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->_internal_gravityacceleration(), output); } // int32 numSimulationSubSteps = 3; if (this->numsimulationsubsteps() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->numsimulationsubsteps(), output); } // int32 numSolverIterations = 4; if (this->numsolveriterations() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->numsolveriterations(), output); } // int32 useRealTimeSimulation = 5; if (this->userealtimesimulation() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->userealtimesimulation(), output); } // int32 useSplitImpulse = 6; if (this->usesplitimpulse() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->usesplitimpulse(), output); } // double splitImpulsePenetrationThreshold = 7; if (this->splitimpulsepenetrationthreshold() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->splitimpulsepenetrationthreshold(), output); } // double contactBreakingThreshold = 8; if (this->contactbreakingthreshold() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->contactbreakingthreshold(), output); } // int32 internalSimFlags = 9; if (this->internalsimflags() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->internalsimflags(), output); } // double defaultContactERP = 10; if (this->defaultcontacterp() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(10, this->defaultcontacterp(), output); } // int32 collisionFilterMode = 11; if (this->collisionfiltermode() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(11, this->collisionfiltermode(), output); } // int32 enableFileCaching = 12; if (this->enablefilecaching() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(12, this->enablefilecaching(), output); } // double restitutionVelocityThreshold = 13; if (this->restitutionvelocitythreshold() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(13, this->restitutionvelocitythreshold(), output); } // double defaultNonContactERP = 14; if (this->defaultnoncontacterp() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(14, this->defaultnoncontacterp(), output); } // double frictionERP = 15; if (this->frictionerp() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(15, this->frictionerp(), output); } // double defaultGlobalCFM = 16; if (this->defaultglobalcfm() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(16, this->defaultglobalcfm(), output); } // double frictionCFM = 17; if (this->frictioncfm() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(17, this->frictioncfm(), output); } // int32 enableConeFriction = 18; if (this->enableconefriction() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(18, this->enableconefriction(), output); } // int32 deterministicOverlappingPairs = 19; if (this->deterministicoverlappingpairs() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(19, this->deterministicoverlappingpairs(), output); } // double allowedCcdPenetration = 20; if (this->allowedccdpenetration() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(20, this->allowedccdpenetration(), output); } // int32 jointFeedbackMode = 21; if (this->jointfeedbackmode() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(21, this->jointfeedbackmode(), output); } // double solverResidualThreshold = 22; if (this->solverresidualthreshold() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(22, this->solverresidualthreshold(), output); } // double contactSlop = 23; if (this->contactslop() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(23, this->contactslop(), output); } // int32 enableSAT = 24; if (this->enablesat() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(24, this->enablesat(), output); } // int32 constraintSolverType = 25; if (this->constraintsolvertype() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(25, this->constraintsolvertype(), output); } // int32 minimumSolverIslandSize = 26; if (this->minimumsolverislandsize() != 0) { ::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 // @@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); } // .pybullet_grpc.vec3 gravityAcceleration = 2; if (this->has_gravityacceleration()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, this->_internal_gravityacceleration(), deterministic, target); } // int32 numSimulationSubSteps = 3; if (this->numsimulationsubsteps() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->numsimulationsubsteps(), target); } // int32 numSolverIterations = 4; if (this->numsolveriterations() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->numsolveriterations(), target); } // int32 useRealTimeSimulation = 5; if (this->userealtimesimulation() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->userealtimesimulation(), target); } // int32 useSplitImpulse = 6; if (this->usesplitimpulse() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->usesplitimpulse(), target); } // double splitImpulsePenetrationThreshold = 7; if (this->splitimpulsepenetrationthreshold() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->splitimpulsepenetrationthreshold(), target); } // double contactBreakingThreshold = 8; if (this->contactbreakingthreshold() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(8, this->contactbreakingthreshold(), target); } // int32 internalSimFlags = 9; if (this->internalsimflags() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->internalsimflags(), target); } // double defaultContactERP = 10; if (this->defaultcontacterp() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(10, this->defaultcontacterp(), target); } // int32 collisionFilterMode = 11; if (this->collisionfiltermode() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(11, this->collisionfiltermode(), target); } // int32 enableFileCaching = 12; if (this->enablefilecaching() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(12, this->enablefilecaching(), target); } // double restitutionVelocityThreshold = 13; if (this->restitutionvelocitythreshold() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(13, this->restitutionvelocitythreshold(), target); } // double defaultNonContactERP = 14; if (this->defaultnoncontacterp() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(14, this->defaultnoncontacterp(), target); } // double frictionERP = 15; if (this->frictionerp() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(15, this->frictionerp(), target); } // double defaultGlobalCFM = 16; if (this->defaultglobalcfm() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(16, this->defaultglobalcfm(), target); } // double frictionCFM = 17; if (this->frictioncfm() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(17, this->frictioncfm(), target); } // int32 enableConeFriction = 18; if (this->enableconefriction() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(18, this->enableconefriction(), target); } // int32 deterministicOverlappingPairs = 19; if (this->deterministicoverlappingpairs() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(19, this->deterministicoverlappingpairs(), target); } // double allowedCcdPenetration = 20; if (this->allowedccdpenetration() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(20, this->allowedccdpenetration(), target); } // int32 jointFeedbackMode = 21; if (this->jointfeedbackmode() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(21, this->jointfeedbackmode(), target); } // double solverResidualThreshold = 22; if (this->solverresidualthreshold() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(22, this->solverresidualthreshold(), target); } // double contactSlop = 23; if (this->contactslop() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(23, this->contactslop(), target); } // int32 enableSAT = 24; if (this->enablesat() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(24, this->enablesat(), target); } // int32 constraintSolverType = 25; if (this->constraintsolvertype() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(25, this->constraintsolvertype(), target); } // int32 minimumSolverIslandSize = 26; if (this->minimumsolverislandsize() != 0) { 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; } 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::MessageSize( *gravityacceleration_); } // double deltaTime = 1; if (this->deltatime() != 0) { total_size += 1 + 8; } // int32 numSimulationSubSteps = 3; if (this->numsimulationsubsteps() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->numsimulationsubsteps()); } // int32 numSolverIterations = 4; if (this->numsolveriterations() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->numsolveriterations()); } // int32 useRealTimeSimulation = 5; if (this->userealtimesimulation() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->userealtimesimulation()); } // int32 useSplitImpulse = 6; if (this->usesplitimpulse() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->usesplitimpulse()); } // double splitImpulsePenetrationThreshold = 7; if (this->splitimpulsepenetrationthreshold() != 0) { total_size += 1 + 8; } // double contactBreakingThreshold = 8; if (this->contactbreakingthreshold() != 0) { total_size += 1 + 8; } // double defaultContactERP = 10; if (this->defaultcontacterp() != 0) { total_size += 1 + 8; } // int32 internalSimFlags = 9; if (this->internalsimflags() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->internalsimflags()); } // int32 collisionFilterMode = 11; if (this->collisionfiltermode() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->collisionfiltermode()); } // double restitutionVelocityThreshold = 13; if (this->restitutionvelocitythreshold() != 0) { total_size += 1 + 8; } // double defaultNonContactERP = 14; if (this->defaultnoncontacterp() != 0) { total_size += 1 + 8; } // double frictionERP = 15; if (this->frictionerp() != 0) { total_size += 1 + 8; } // int32 enableFileCaching = 12; if (this->enablefilecaching() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->enablefilecaching()); } // int32 enableConeFriction = 18; if (this->enableconefriction() != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->enableconefriction()); } // double defaultGlobalCFM = 16; if (this->defaultglobalcfm() != 0) { total_size += 2 + 8; } // double frictionCFM = 17; if (this->frictioncfm() != 0) { total_size += 2 + 8; } // double allowedCcdPenetration = 20; if (this->allowedccdpenetration() != 0) { total_size += 2 + 8; } // int32 deterministicOverlappingPairs = 19; if (this->deterministicoverlappingpairs() != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->deterministicoverlappingpairs()); } // int32 jointFeedbackMode = 21; if (this->jointfeedbackmode() != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->jointfeedbackmode()); } // double solverResidualThreshold = 22; if (this->solverresidualthreshold() != 0) { total_size += 2 + 8; } // double contactSlop = 23; if (this->contactslop() != 0) { total_size += 2 + 8; } // int32 enableSAT = 24; if (this->enablesat() != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->enablesat()); } // int32 constraintSolverType = 25; if (this->constraintsolvertype() != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->constraintsolvertype()); } // int32 minimumSolverIslandSize = 26; if (this->minimumsolverislandsize() != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->minimumsolverislandsize()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void PhysicsSimulationParameters::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.PhysicsSimulationParameters) GOOGLE_DCHECK_NE(&from, this); const PhysicsSimulationParameters* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.PhysicsSimulationParameters) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.PhysicsSimulationParameters) MergeFrom(*source); } } void PhysicsSimulationParameters::MergeFrom(const PhysicsSimulationParameters& from) { // @@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()); } if (from.deltatime() != 0) { set_deltatime(from.deltatime()); } if (from.numsimulationsubsteps() != 0) { set_numsimulationsubsteps(from.numsimulationsubsteps()); } if (from.numsolveriterations() != 0) { set_numsolveriterations(from.numsolveriterations()); } if (from.userealtimesimulation() != 0) { set_userealtimesimulation(from.userealtimesimulation()); } if (from.usesplitimpulse() != 0) { set_usesplitimpulse(from.usesplitimpulse()); } if (from.splitimpulsepenetrationthreshold() != 0) { set_splitimpulsepenetrationthreshold(from.splitimpulsepenetrationthreshold()); } if (from.contactbreakingthreshold() != 0) { set_contactbreakingthreshold(from.contactbreakingthreshold()); } if (from.defaultcontacterp() != 0) { set_defaultcontacterp(from.defaultcontacterp()); } if (from.internalsimflags() != 0) { set_internalsimflags(from.internalsimflags()); } if (from.collisionfiltermode() != 0) { set_collisionfiltermode(from.collisionfiltermode()); } if (from.restitutionvelocitythreshold() != 0) { set_restitutionvelocitythreshold(from.restitutionvelocitythreshold()); } if (from.defaultnoncontacterp() != 0) { set_defaultnoncontacterp(from.defaultnoncontacterp()); } if (from.frictionerp() != 0) { set_frictionerp(from.frictionerp()); } if (from.enablefilecaching() != 0) { set_enablefilecaching(from.enablefilecaching()); } if (from.enableconefriction() != 0) { set_enableconefriction(from.enableconefriction()); } if (from.defaultglobalcfm() != 0) { set_defaultglobalcfm(from.defaultglobalcfm()); } if (from.frictioncfm() != 0) { set_frictioncfm(from.frictioncfm()); } if (from.allowedccdpenetration() != 0) { set_allowedccdpenetration(from.allowedccdpenetration()); } if (from.deterministicoverlappingpairs() != 0) { set_deterministicoverlappingpairs(from.deterministicoverlappingpairs()); } if (from.jointfeedbackmode() != 0) { set_jointfeedbackmode(from.jointfeedbackmode()); } if (from.solverresidualthreshold() != 0) { set_solverresidualthreshold(from.solverresidualthreshold()); } if (from.contactslop() != 0) { set_contactslop(from.contactslop()); } if (from.enablesat() != 0) { set_enablesat(from.enablesat()); } if (from.constraintsolvertype() != 0) { set_constraintsolvertype(from.constraintsolvertype()); } if (from.minimumsolverislandsize() != 0) { set_minimumsolverislandsize(from.minimumsolverislandsize()); } } void PhysicsSimulationParameters::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.PhysicsSimulationParameters) if (&from == this) return; Clear(); MergeFrom(from); } void PhysicsSimulationParameters::CopyFrom(const PhysicsSimulationParameters& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.PhysicsSimulationParameters) if (&from == this) return; Clear(); MergeFrom(from); } bool PhysicsSimulationParameters::IsInitialized() const { return true; } void PhysicsSimulationParameters::Swap(PhysicsSimulationParameters* other) { if (other == this) return; InternalSwap(other); } void PhysicsSimulationParameters::InternalSwap(PhysicsSimulationParameters* other) { 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[kIndexInFileMessages]; } // =================================================================== 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; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 PhysicsSimulationParametersCommand::PhysicsSimulationParametersCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_params()) { params_ = new ::pybullet_grpc::PhysicsSimulationParameters(*from.params_); } else { params_ = NULL; } updateflags_ = from.updateflags_; // @@protoc_insertion_point(copy_constructor:pybullet_grpc.PhysicsSimulationParametersCommand) } void PhysicsSimulationParametersCommand::SharedCtor() { ::memset(¶ms_, 0, static_cast( reinterpret_cast(&updateflags_) - reinterpret_cast(¶ms_)) + sizeof(updateflags_)); } PhysicsSimulationParametersCommand::~PhysicsSimulationParametersCommand() { // @@protoc_insertion_point(destructor:pybullet_grpc.PhysicsSimulationParametersCommand) SharedDtor(); } void PhysicsSimulationParametersCommand::SharedDtor() { if (this != internal_default_instance()) delete params_; } void PhysicsSimulationParametersCommand::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* PhysicsSimulationParametersCommand::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const PhysicsSimulationParametersCommand& PhysicsSimulationParametersCommand::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_PhysicsSimulationParametersCommand.base); return *internal_default_instance(); } 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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.PhysicsSimulationParametersCommand) for (;;) { ::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 (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>( input, &updateflags_))); } else { goto handle_unusual; } break; } // .pybullet_grpc.PhysicsSimulationParameters params = 2; case 2: { 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; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.PhysicsSimulationParametersCommand) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.PhysicsSimulationParametersCommand) return false; #undef DO_ } 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); } // .pybullet_grpc.PhysicsSimulationParameters params = 2; if (this->has_params()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 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 // @@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); } // .pybullet_grpc.PhysicsSimulationParameters params = 2; if (this->has_params()) { target = ::google::protobuf::internal::WireFormatLite:: 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; } 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::MessageSize( *params_); } // int32 updateFlags = 1; if (this->updateflags() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->updateflags()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void PhysicsSimulationParametersCommand::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.PhysicsSimulationParametersCommand) GOOGLE_DCHECK_NE(&from, this); const PhysicsSimulationParametersCommand* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.PhysicsSimulationParametersCommand) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.PhysicsSimulationParametersCommand) MergeFrom(*source); } } void PhysicsSimulationParametersCommand::MergeFrom(const PhysicsSimulationParametersCommand& from) { // @@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()); } if (from.updateflags() != 0) { set_updateflags(from.updateflags()); } } void PhysicsSimulationParametersCommand::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.PhysicsSimulationParametersCommand) if (&from == this) return; Clear(); MergeFrom(from); } void PhysicsSimulationParametersCommand::CopyFrom(const PhysicsSimulationParametersCommand& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.PhysicsSimulationParametersCommand) if (&from == this) return; Clear(); MergeFrom(from); } bool PhysicsSimulationParametersCommand::IsInitialized() const { return true; } void PhysicsSimulationParametersCommand::Swap(PhysicsSimulationParametersCommand* other) { if (other == this) return; InternalSwap(other); } void PhysicsSimulationParametersCommand::InternalSwap(PhysicsSimulationParametersCommand* other) { 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[kIndexInFileMessages]; } // =================================================================== void JointMotorControlCommand::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int JointMotorControlCommand::kBodyUniqueIdFieldNumber; const int JointMotorControlCommand::kControlModeFieldNumber; const int JointMotorControlCommand::kUpdateFlagsFieldNumber; const int JointMotorControlCommand::kKpFieldNumber; const int JointMotorControlCommand::kKdFieldNumber; const int JointMotorControlCommand::kMaxVelocityFieldNumber; const int JointMotorControlCommand::kHasDesiredStateFlagsFieldNumber; const int JointMotorControlCommand::kDesiredStateQFieldNumber; const int JointMotorControlCommand::kDesiredStateQdotFieldNumber; const int JointMotorControlCommand::kDesiredStateForceTorqueFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 JointMotorControlCommand::JointMotorControlCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_pybullet_2eproto::scc_info_JointMotorControlCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.JointMotorControlCommand) } JointMotorControlCommand::JointMotorControlCommand(const JointMotorControlCommand& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), kp_(from.kp_), kd_(from.kd_), maxvelocity_(from.maxvelocity_), hasdesiredstateflags_(from.hasdesiredstateflags_), desiredstateq_(from.desiredstateq_), desiredstateqdot_(from.desiredstateqdot_), desiredstateforcetorque_(from.desiredstateforcetorque_) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&bodyuniqueid_, &from.bodyuniqueid_, static_cast(reinterpret_cast(&updateflags_) - reinterpret_cast(&bodyuniqueid_)) + sizeof(updateflags_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.JointMotorControlCommand) } void JointMotorControlCommand::SharedCtor() { ::memset(&bodyuniqueid_, 0, static_cast( reinterpret_cast(&updateflags_) - reinterpret_cast(&bodyuniqueid_)) + sizeof(updateflags_)); } JointMotorControlCommand::~JointMotorControlCommand() { // @@protoc_insertion_point(destructor:pybullet_grpc.JointMotorControlCommand) SharedDtor(); } void JointMotorControlCommand::SharedDtor() { } void JointMotorControlCommand::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* JointMotorControlCommand::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const JointMotorControlCommand& JointMotorControlCommand::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_JointMotorControlCommand.base); return *internal_default_instance(); } 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(); hasdesiredstateflags_.Clear(); desiredstateq_.Clear(); desiredstateqdot_.Clear(); desiredstateforcetorque_.Clear(); ::memset(&bodyuniqueid_, 0, static_cast( reinterpret_cast(&updateflags_) - reinterpret_cast(&bodyuniqueid_)) + sizeof(updateflags_)); _internal_metadata_.Clear(); } bool JointMotorControlCommand::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.JointMotorControlCommand) for (;;) { ::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 (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>( input, &bodyuniqueid_))); } else { goto handle_unusual; } break; } // int32 controlMode = 2; case 2: { 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>( input, &controlmode_))); } else { goto handle_unusual; } break; } // int32 updateFlags = 3; case 3: { 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>( input, &updateflags_))); } else { goto handle_unusual; } break; } // repeated double Kp = 4; case 4: { 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 ( 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()))); } else { goto handle_unusual; } break; } // repeated double Kd = 5; case 5: { 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 ( 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()))); } else { goto handle_unusual; } break; } // repeated double maxVelocity = 6; case 6: { 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 ( 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()))); } else { goto handle_unusual; } break; } // repeated int32 hasDesiredStateFlags = 7; case 7: { 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 ( 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()))); } else { goto handle_unusual; } break; } // repeated double desiredStateQ = 8; case 8: { 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 ( 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()))); } else { goto handle_unusual; } break; } // repeated double desiredStateQdot = 9; case 9: { 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 ( 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()))); } else { goto handle_unusual; } break; } // repeated double desiredStateForceTorque = 10; case 10: { 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 ( 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()))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.JointMotorControlCommand) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.JointMotorControlCommand) return false; #undef DO_ } 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); } // int32 controlMode = 2; if (this->controlmode() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->controlmode(), output); } // int32 updateFlags = 3; if (this->updateflags() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->updateflags(), output); } // 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(static_cast< ::google::protobuf::uint32>( _kp_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->kp().data(), this->kp_size(), output); } // 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(static_cast< ::google::protobuf::uint32>( _kd_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->kd().data(), this->kd_size(), output); } // 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(static_cast< ::google::protobuf::uint32>( _maxvelocity_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->maxvelocity().data(), this->maxvelocity_size(), output); } // 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(static_cast< ::google::protobuf::uint32>( _hasdesiredstateflags_cached_byte_size_)); } for (int i = 0, n = this->hasdesiredstateflags_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( this->hasdesiredstateflags(i), output); } // 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(static_cast< ::google::protobuf::uint32>( _desiredstateq_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->desiredstateq().data(), this->desiredstateq_size(), output); } // 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(static_cast< ::google::protobuf::uint32>( _desiredstateqdot_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteDoubleArray( this->desiredstateqdot().data(), this->desiredstateqdot_size(), output); } // 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(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 // @@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); } // int32 controlMode = 2; if (this->controlmode() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->controlmode(), target); } // int32 updateFlags = 3; if (this->updateflags() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->updateflags(), target); } // repeated double Kp = 4; if (this->kp_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _kp_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: WriteDoubleNoTagToArray(this->kp_, target); } // repeated double Kd = 5; if (this->kd_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _kd_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: WriteDoubleNoTagToArray(this->kd_, target); } // repeated double maxVelocity = 6; if (this->maxvelocity_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _maxvelocity_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: WriteDoubleNoTagToArray(this->maxvelocity_, target); } // repeated int32 hasDesiredStateFlags = 7; if (this->hasdesiredstateflags_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 7, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _hasdesiredstateflags_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: WriteInt32NoTagToArray(this->hasdesiredstateflags_, target); } // repeated double desiredStateQ = 8; if (this->desiredstateq_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 8, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _desiredstateq_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: WriteDoubleNoTagToArray(this->desiredstateq_, target); } // repeated double desiredStateQdot = 9; if (this->desiredstateqdot_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 9, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _desiredstateqdot_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: WriteDoubleNoTagToArray(this->desiredstateqdot_, target); } // repeated double desiredStateForceTorque = 10; if (this->desiredstateforcetorque_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 10, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _desiredstateforcetorque_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: 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; } 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 = static_cast(this->kp_size()); size_t data_size = 8UL * count; if (data_size > 0) { total_size += 1 + ::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(); _kp_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } // repeated double Kd = 5; { 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( static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _kd_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } // repeated double maxVelocity = 6; { 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( static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _maxvelocity_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } // repeated int32 hasDesiredStateFlags = 7; { size_t data_size = ::google::protobuf::internal::WireFormatLite:: Int32Size(this->hasdesiredstateflags_); if (data_size > 0) { total_size += 1 + ::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(); _hasdesiredstateflags_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } // repeated double desiredStateQ = 8; { 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( static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _desiredstateq_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } // repeated double desiredStateQdot = 9; { 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( static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _desiredstateqdot_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } // repeated double desiredStateForceTorque = 10; { 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( static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _desiredstateforcetorque_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } // int32 bodyUniqueId = 1; if (this->bodyuniqueid() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->bodyuniqueid()); } // int32 controlMode = 2; if (this->controlmode() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->controlmode()); } // int32 updateFlags = 3; if (this->updateflags() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->updateflags()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void JointMotorControlCommand::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.JointMotorControlCommand) GOOGLE_DCHECK_NE(&from, this); const JointMotorControlCommand* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.JointMotorControlCommand) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.JointMotorControlCommand) MergeFrom(*source); } } 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_); hasdesiredstateflags_.MergeFrom(from.hasdesiredstateflags_); desiredstateq_.MergeFrom(from.desiredstateq_); desiredstateqdot_.MergeFrom(from.desiredstateqdot_); desiredstateforcetorque_.MergeFrom(from.desiredstateforcetorque_); if (from.bodyuniqueid() != 0) { set_bodyuniqueid(from.bodyuniqueid()); } if (from.controlmode() != 0) { set_controlmode(from.controlmode()); } if (from.updateflags() != 0) { set_updateflags(from.updateflags()); } } void JointMotorControlCommand::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.JointMotorControlCommand) if (&from == this) return; Clear(); MergeFrom(from); } void JointMotorControlCommand::CopyFrom(const JointMotorControlCommand& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.JointMotorControlCommand) if (&from == this) return; Clear(); MergeFrom(from); } bool JointMotorControlCommand::IsInitialized() const { return true; } void JointMotorControlCommand::Swap(JointMotorControlCommand* other) { if (other == this) return; InternalSwap(other); } void JointMotorControlCommand::InternalSwap(JointMotorControlCommand* other) { 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[kIndexInFileMessages]; } // =================================================================== 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; const int UserConstraintCommand::kChildBodyIndexFieldNumber; const int UserConstraintCommand::kChildJointIndexFieldNumber; const int UserConstraintCommand::kParentFrameFieldNumber; const int UserConstraintCommand::kChildFrameFieldNumber; const int UserConstraintCommand::kJointAxisFieldNumber; const int UserConstraintCommand::kJointTypeFieldNumber; const int UserConstraintCommand::kMaxAppliedForceFieldNumber; const int UserConstraintCommand::kUserConstraintUniqueIdFieldNumber; const int UserConstraintCommand::kGearRatioFieldNumber; const int UserConstraintCommand::kGearAuxLinkFieldNumber; const int UserConstraintCommand::kRelativePositionTargetFieldNumber; const int UserConstraintCommand::kErpFieldNumber; const int UserConstraintCommand::kUpdateFlagsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 UserConstraintCommand::UserConstraintCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_parentframe()) { parentframe_ = new ::pybullet_grpc::transform(*from.parentframe_); } else { parentframe_ = NULL; } if (from.has_childframe()) { childframe_ = new ::pybullet_grpc::transform(*from.childframe_); } else { childframe_ = NULL; } if (from.has_jointaxis()) { jointaxis_ = new ::pybullet_grpc::vec3(*from.jointaxis_); } else { jointaxis_ = NULL; } ::memcpy(&parentbodyindex_, &from.parentbodyindex_, static_cast(reinterpret_cast(&erp_) - reinterpret_cast(&parentbodyindex_)) + sizeof(erp_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.UserConstraintCommand) } void UserConstraintCommand::SharedCtor() { ::memset(&parentframe_, 0, static_cast( reinterpret_cast(&erp_) - reinterpret_cast(&parentframe_)) + sizeof(erp_)); } UserConstraintCommand::~UserConstraintCommand() { // @@protoc_insertion_point(destructor:pybullet_grpc.UserConstraintCommand) SharedDtor(); } void UserConstraintCommand::SharedDtor() { 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 { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* UserConstraintCommand::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const UserConstraintCommand& UserConstraintCommand::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_UserConstraintCommand.base); return *internal_default_instance(); } 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_; } parentframe_ = NULL; if (GetArenaNoVirtual() == NULL && childframe_ != NULL) { delete childframe_; } childframe_ = NULL; if (GetArenaNoVirtual() == NULL && jointaxis_ != NULL) { delete jointaxis_; } jointaxis_ = NULL; ::memset(&parentbodyindex_, 0, static_cast( reinterpret_cast(&erp_) - reinterpret_cast(&parentbodyindex_)) + sizeof(erp_)); _internal_metadata_.Clear(); } bool UserConstraintCommand::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.UserConstraintCommand) for (;;) { ::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 (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>( input, &parentbodyindex_))); } else { goto handle_unusual; } break; } // int32 parentJointIndex = 2; case 2: { 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>( input, &parentjointindex_))); } else { goto handle_unusual; } break; } // int32 childBodyIndex = 3; case 3: { 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>( input, &childbodyindex_))); } else { goto handle_unusual; } break; } // int32 childJointIndex = 4; case 4: { 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>( input, &childjointindex_))); } else { goto handle_unusual; } break; } // .pybullet_grpc.transform parentFrame = 5; case 5: { 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; } break; } // .pybullet_grpc.transform childFrame = 6; case 6: { 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; } break; } // .pybullet_grpc.vec3 jointAxis = 7; case 7: { 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; } break; } // int32 jointType = 8; case 8: { 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>( input, &jointtype_))); } else { goto handle_unusual; } break; } // double maxAppliedForce = 9; case 9: { 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>( input, &maxappliedforce_))); } else { goto handle_unusual; } break; } // int32 userConstraintUniqueId = 10; case 10: { 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>( input, &userconstraintuniqueid_))); } else { goto handle_unusual; } break; } // double gearRatio = 11; case 11: { 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>( input, &gearratio_))); } else { goto handle_unusual; } break; } // int32 gearAuxLink = 12; case 12: { 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>( input, &gearauxlink_))); } else { goto handle_unusual; } break; } // double relativePositionTarget = 13; case 13: { 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>( input, &relativepositiontarget_))); } else { goto handle_unusual; } break; } // double erp = 14; case 14: { 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>( input, &erp_))); } else { goto handle_unusual; } break; } // int32 updateFlags = 15; case 15: { 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>( input, &updateflags_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.UserConstraintCommand) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.UserConstraintCommand) return false; #undef DO_ } 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); } // int32 parentJointIndex = 2; if (this->parentjointindex() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->parentjointindex(), output); } // int32 childBodyIndex = 3; if (this->childbodyindex() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->childbodyindex(), output); } // int32 childJointIndex = 4; if (this->childjointindex() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->childjointindex(), output); } // .pybullet_grpc.transform parentFrame = 5; if (this->has_parentframe()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, this->_internal_parentframe(), output); } // .pybullet_grpc.transform childFrame = 6; if (this->has_childframe()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 6, this->_internal_childframe(), output); } // .pybullet_grpc.vec3 jointAxis = 7; if (this->has_jointaxis()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 7, this->_internal_jointaxis(), output); } // int32 jointType = 8; if (this->jointtype() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->jointtype(), output); } // double maxAppliedForce = 9; if (this->maxappliedforce() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(9, this->maxappliedforce(), output); } // int32 userConstraintUniqueId = 10; if (this->userconstraintuniqueid() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->userconstraintuniqueid(), output); } // double gearRatio = 11; if (this->gearratio() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(11, this->gearratio(), output); } // int32 gearAuxLink = 12; if (this->gearauxlink() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(12, this->gearauxlink(), output); } // double relativePositionTarget = 13; if (this->relativepositiontarget() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(13, this->relativepositiontarget(), output); } // double erp = 14; if (this->erp() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(14, this->erp(), output); } // int32 updateFlags = 15; if (this->updateflags() != 0) { ::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 // @@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); } // int32 parentJointIndex = 2; if (this->parentjointindex() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->parentjointindex(), target); } // int32 childBodyIndex = 3; if (this->childbodyindex() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->childbodyindex(), target); } // int32 childJointIndex = 4; if (this->childjointindex() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->childjointindex(), target); } // .pybullet_grpc.transform parentFrame = 5; if (this->has_parentframe()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 5, this->_internal_parentframe(), deterministic, target); } // .pybullet_grpc.transform childFrame = 6; if (this->has_childframe()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 6, this->_internal_childframe(), deterministic, target); } // .pybullet_grpc.vec3 jointAxis = 7; if (this->has_jointaxis()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 7, this->_internal_jointaxis(), deterministic, target); } // int32 jointType = 8; if (this->jointtype() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->jointtype(), target); } // double maxAppliedForce = 9; if (this->maxappliedforce() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(9, this->maxappliedforce(), target); } // int32 userConstraintUniqueId = 10; if (this->userconstraintuniqueid() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->userconstraintuniqueid(), target); } // double gearRatio = 11; if (this->gearratio() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(11, this->gearratio(), target); } // int32 gearAuxLink = 12; if (this->gearauxlink() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(12, this->gearauxlink(), target); } // double relativePositionTarget = 13; if (this->relativepositiontarget() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(13, this->relativepositiontarget(), target); } // double erp = 14; if (this->erp() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(14, this->erp(), target); } // int32 updateFlags = 15; if (this->updateflags() != 0) { 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; } 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::MessageSize( *parentframe_); } // .pybullet_grpc.transform childFrame = 6; if (this->has_childframe()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *childframe_); } // .pybullet_grpc.vec3 jointAxis = 7; if (this->has_jointaxis()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *jointaxis_); } // int32 parentBodyIndex = 1; if (this->parentbodyindex() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->parentbodyindex()); } // int32 parentJointIndex = 2; if (this->parentjointindex() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->parentjointindex()); } // int32 childBodyIndex = 3; if (this->childbodyindex() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->childbodyindex()); } // int32 childJointIndex = 4; if (this->childjointindex() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->childjointindex()); } // double maxAppliedForce = 9; if (this->maxappliedforce() != 0) { total_size += 1 + 8; } // int32 jointType = 8; if (this->jointtype() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->jointtype()); } // int32 userConstraintUniqueId = 10; if (this->userconstraintuniqueid() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->userconstraintuniqueid()); } // double gearRatio = 11; if (this->gearratio() != 0) { total_size += 1 + 8; } // double relativePositionTarget = 13; if (this->relativepositiontarget() != 0) { total_size += 1 + 8; } // int32 gearAuxLink = 12; if (this->gearauxlink() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->gearauxlink()); } // int32 updateFlags = 15; if (this->updateflags() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->updateflags()); } // double erp = 14; if (this->erp() != 0) { total_size += 1 + 8; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void UserConstraintCommand::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.UserConstraintCommand) GOOGLE_DCHECK_NE(&from, this); const UserConstraintCommand* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.UserConstraintCommand) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.UserConstraintCommand) MergeFrom(*source); } } 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()); } if (from.has_childframe()) { mutable_childframe()->::pybullet_grpc::transform::MergeFrom(from.childframe()); } if (from.has_jointaxis()) { mutable_jointaxis()->::pybullet_grpc::vec3::MergeFrom(from.jointaxis()); } if (from.parentbodyindex() != 0) { set_parentbodyindex(from.parentbodyindex()); } if (from.parentjointindex() != 0) { set_parentjointindex(from.parentjointindex()); } if (from.childbodyindex() != 0) { set_childbodyindex(from.childbodyindex()); } if (from.childjointindex() != 0) { set_childjointindex(from.childjointindex()); } if (from.maxappliedforce() != 0) { set_maxappliedforce(from.maxappliedforce()); } if (from.jointtype() != 0) { set_jointtype(from.jointtype()); } if (from.userconstraintuniqueid() != 0) { set_userconstraintuniqueid(from.userconstraintuniqueid()); } if (from.gearratio() != 0) { set_gearratio(from.gearratio()); } if (from.relativepositiontarget() != 0) { set_relativepositiontarget(from.relativepositiontarget()); } if (from.gearauxlink() != 0) { set_gearauxlink(from.gearauxlink()); } if (from.updateflags() != 0) { set_updateflags(from.updateflags()); } if (from.erp() != 0) { set_erp(from.erp()); } } void UserConstraintCommand::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.UserConstraintCommand) if (&from == this) return; Clear(); MergeFrom(from); } void UserConstraintCommand::CopyFrom(const UserConstraintCommand& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.UserConstraintCommand) if (&from == this) return; Clear(); MergeFrom(from); } bool UserConstraintCommand::IsInitialized() const { return true; } void UserConstraintCommand::Swap(UserConstraintCommand* other) { if (other == this) return; InternalSwap(other); } void UserConstraintCommand::InternalSwap(UserConstraintCommand* other) { 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[kIndexInFileMessages]; } // =================================================================== void UserConstraintStatus::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int UserConstraintStatus::kMaxAppliedForceFieldNumber; const int UserConstraintStatus::kUserConstraintUniqueIdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 UserConstraintStatus::UserConstraintStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::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(&userconstraintuniqueid_, 0, static_cast( reinterpret_cast(&maxappliedforce_) - reinterpret_cast(&userconstraintuniqueid_)) + sizeof(maxappliedforce_)); } UserConstraintStatus::~UserConstraintStatus() { // @@protoc_insertion_point(destructor:pybullet_grpc.UserConstraintStatus) SharedDtor(); } void UserConstraintStatus::SharedDtor() { } void UserConstraintStatus::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* UserConstraintStatus::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const UserConstraintStatus& UserConstraintStatus::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_UserConstraintStatus.base); return *internal_default_instance(); } void UserConstraintStatus::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.UserConstraintStatus) ::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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.UserConstraintStatus) for (;;) { ::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 (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>( input, &maxappliedforce_))); } else { goto handle_unusual; } break; } // int32 userConstraintUniqueId = 10; case 10: { 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>( input, &userconstraintuniqueid_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.UserConstraintStatus) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.UserConstraintStatus) return false; #undef DO_ } 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); } // int32 userConstraintUniqueId = 10; if (this->userconstraintuniqueid() != 0) { ::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 // @@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); } // int32 userConstraintUniqueId = 10; if (this->userconstraintuniqueid() != 0) { 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; } size_t UserConstraintStatus::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.UserConstraintStatus) 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 userConstraintUniqueId = 10; if (this->userconstraintuniqueid() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->userconstraintuniqueid()); } // double maxAppliedForce = 9; if (this->maxappliedforce() != 0) { total_size += 1 + 8; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void UserConstraintStatus::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.UserConstraintStatus) GOOGLE_DCHECK_NE(&from, this); const UserConstraintStatus* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.UserConstraintStatus) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.UserConstraintStatus) MergeFrom(*source); } } 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_); ::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) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.UserConstraintStatus) if (&from == this) return; Clear(); MergeFrom(from); } void UserConstraintStatus::CopyFrom(const UserConstraintStatus& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.UserConstraintStatus) if (&from == this) return; Clear(); MergeFrom(from); } bool UserConstraintStatus::IsInitialized() const { return true; } void UserConstraintStatus::Swap(UserConstraintStatus* other) { if (other == this) return; InternalSwap(other); } void UserConstraintStatus::InternalSwap(UserConstraintStatus* other) { 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[kIndexInFileMessages]; } // =================================================================== 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; const int UserConstraintStateStatus::kNumDofsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 UserConstraintStateStatus::UserConstraintStateStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_appliedconstraintforceslinear()) { appliedconstraintforceslinear_ = new ::pybullet_grpc::vec3(*from.appliedconstraintforceslinear_); } else { appliedconstraintforceslinear_ = NULL; } if (from.has_appliedconstraintforcesangular()) { appliedconstraintforcesangular_ = new ::pybullet_grpc::vec3(*from.appliedconstraintforcesangular_); } else { appliedconstraintforcesangular_ = NULL; } numdofs_ = from.numdofs_; // @@protoc_insertion_point(copy_constructor:pybullet_grpc.UserConstraintStateStatus) } void UserConstraintStateStatus::SharedCtor() { ::memset(&appliedconstraintforceslinear_, 0, static_cast( reinterpret_cast(&numdofs_) - reinterpret_cast(&appliedconstraintforceslinear_)) + sizeof(numdofs_)); } UserConstraintStateStatus::~UserConstraintStateStatus() { // @@protoc_insertion_point(destructor:pybullet_grpc.UserConstraintStateStatus) SharedDtor(); } void UserConstraintStateStatus::SharedDtor() { if (this != internal_default_instance()) delete appliedconstraintforceslinear_; if (this != internal_default_instance()) delete appliedconstraintforcesangular_; } void UserConstraintStateStatus::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* UserConstraintStateStatus::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const UserConstraintStateStatus& UserConstraintStateStatus::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_UserConstraintStateStatus.base); return *internal_default_instance(); } 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_; } appliedconstraintforceslinear_ = NULL; if (GetArenaNoVirtual() == NULL && appliedconstraintforcesangular_ != NULL) { delete appliedconstraintforcesangular_; } appliedconstraintforcesangular_ = NULL; numdofs_ = 0; _internal_metadata_.Clear(); } bool UserConstraintStateStatus::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.UserConstraintStateStatus) for (;;) { ::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 (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; } break; } // .pybullet_grpc.vec3 appliedConstraintForcesAngular = 2; case 2: { 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; } break; } // int32 numDofs = 3; case 3: { 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>( input, &numdofs_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.UserConstraintStateStatus) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.UserConstraintStateStatus) return false; #undef DO_ } 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->_internal_appliedconstraintforceslinear(), output); } // .pybullet_grpc.vec3 appliedConstraintForcesAngular = 2; if (this->has_appliedconstraintforcesangular()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->_internal_appliedconstraintforcesangular(), output); } // int32 numDofs = 3; if (this->numdofs() != 0) { ::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 // @@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:: InternalWriteMessageToArray( 1, this->_internal_appliedconstraintforceslinear(), deterministic, target); } // .pybullet_grpc.vec3 appliedConstraintForcesAngular = 2; if (this->has_appliedconstraintforcesangular()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, this->_internal_appliedconstraintforcesangular(), deterministic, target); } // int32 numDofs = 3; if (this->numdofs() != 0) { 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; } 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::MessageSize( *appliedconstraintforceslinear_); } // .pybullet_grpc.vec3 appliedConstraintForcesAngular = 2; if (this->has_appliedconstraintforcesangular()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *appliedconstraintforcesangular_); } // int32 numDofs = 3; if (this->numdofs() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->numdofs()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void UserConstraintStateStatus::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.UserConstraintStateStatus) GOOGLE_DCHECK_NE(&from, this); const UserConstraintStateStatus* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.UserConstraintStateStatus) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.UserConstraintStateStatus) MergeFrom(*source); } } 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()); } if (from.has_appliedconstraintforcesangular()) { mutable_appliedconstraintforcesangular()->::pybullet_grpc::vec3::MergeFrom(from.appliedconstraintforcesangular()); } if (from.numdofs() != 0) { set_numdofs(from.numdofs()); } } void UserConstraintStateStatus::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.UserConstraintStateStatus) if (&from == this) return; Clear(); MergeFrom(from); } void UserConstraintStateStatus::CopyFrom(const UserConstraintStateStatus& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.UserConstraintStateStatus) if (&from == this) return; Clear(); MergeFrom(from); } bool UserConstraintStateStatus::IsInitialized() const { return true; } void UserConstraintStateStatus::Swap(UserConstraintStateStatus* other) { if (other == this) return; InternalSwap(other); } void UserConstraintStateStatus::InternalSwap(UserConstraintStateStatus* other) { 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[kIndexInFileMessages]; } // =================================================================== 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) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.RequestKeyboardEventsCommand) } void RequestKeyboardEventsCommand::SharedCtor() { } RequestKeyboardEventsCommand::~RequestKeyboardEventsCommand() { // @@protoc_insertion_point(destructor:pybullet_grpc.RequestKeyboardEventsCommand) SharedDtor(); } void RequestKeyboardEventsCommand::SharedDtor() { } void RequestKeyboardEventsCommand::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* RequestKeyboardEventsCommand::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const RequestKeyboardEventsCommand& RequestKeyboardEventsCommand::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_RequestKeyboardEventsCommand.base); return *internal_default_instance(); } 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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.RequestKeyboardEventsCommand) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.RequestKeyboardEventsCommand) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.RequestKeyboardEventsCommand) return false; #undef DO_ } 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 // @@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; } 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); SetCachedSize(cached_size); return total_size; } void RequestKeyboardEventsCommand::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.RequestKeyboardEventsCommand) GOOGLE_DCHECK_NE(&from, this); const RequestKeyboardEventsCommand* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.RequestKeyboardEventsCommand) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.RequestKeyboardEventsCommand) MergeFrom(*source); } } void RequestKeyboardEventsCommand::MergeFrom(const RequestKeyboardEventsCommand& from) { // @@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) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.RequestKeyboardEventsCommand) if (&from == this) return; Clear(); MergeFrom(from); } void RequestKeyboardEventsCommand::CopyFrom(const RequestKeyboardEventsCommand& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.RequestKeyboardEventsCommand) if (&from == this) return; Clear(); MergeFrom(from); } bool RequestKeyboardEventsCommand::IsInitialized() const { return true; } void RequestKeyboardEventsCommand::Swap(RequestKeyboardEventsCommand* other) { if (other == this) return; InternalSwap(other); } void RequestKeyboardEventsCommand::InternalSwap(RequestKeyboardEventsCommand* other) { 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[kIndexInFileMessages]; } // =================================================================== void KeyboardEvent::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int KeyboardEvent::kKeyCodeFieldNumber; const int KeyboardEvent::kKeyStateFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 KeyboardEvent::KeyboardEvent() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&keycode_, &from.keycode_, static_cast(reinterpret_cast(&keystate_) - reinterpret_cast(&keycode_)) + sizeof(keystate_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.KeyboardEvent) } void KeyboardEvent::SharedCtor() { ::memset(&keycode_, 0, static_cast( reinterpret_cast(&keystate_) - reinterpret_cast(&keycode_)) + sizeof(keystate_)); } KeyboardEvent::~KeyboardEvent() { // @@protoc_insertion_point(destructor:pybullet_grpc.KeyboardEvent) SharedDtor(); } void KeyboardEvent::SharedDtor() { } void KeyboardEvent::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* KeyboardEvent::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const KeyboardEvent& KeyboardEvent::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_KeyboardEvent.base); return *internal_default_instance(); } void KeyboardEvent::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.KeyboardEvent) ::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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.KeyboardEvent) for (;;) { ::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 (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>( input, &keycode_))); } else { goto handle_unusual; } break; } // int32 keyState = 2; case 2: { 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>( input, &keystate_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.KeyboardEvent) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.KeyboardEvent) return false; #undef DO_ } 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); } // int32 keyState = 2; if (this->keystate() != 0) { ::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 // @@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); } // int32 keyState = 2; if (this->keystate() != 0) { 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; } 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 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->keycode()); } // int32 keyState = 2; if (this->keystate() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->keystate()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void KeyboardEvent::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.KeyboardEvent) GOOGLE_DCHECK_NE(&from, this); const KeyboardEvent* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.KeyboardEvent) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.KeyboardEvent) MergeFrom(*source); } } 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()); } if (from.keystate() != 0) { set_keystate(from.keystate()); } } void KeyboardEvent::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.KeyboardEvent) if (&from == this) return; Clear(); MergeFrom(from); } void KeyboardEvent::CopyFrom(const KeyboardEvent& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.KeyboardEvent) if (&from == this) return; Clear(); MergeFrom(from); } bool KeyboardEvent::IsInitialized() const { return true; } void KeyboardEvent::Swap(KeyboardEvent* other) { if (other == this) return; InternalSwap(other); } void KeyboardEvent::InternalSwap(KeyboardEvent* other) { 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[kIndexInFileMessages]; } // =================================================================== 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) { ::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_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.KeyboardEventsStatus) } void KeyboardEventsStatus::SharedCtor() { } KeyboardEventsStatus::~KeyboardEventsStatus() { // @@protoc_insertion_point(destructor:pybullet_grpc.KeyboardEventsStatus) SharedDtor(); } void KeyboardEventsStatus::SharedDtor() { } void KeyboardEventsStatus::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* KeyboardEventsStatus::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const KeyboardEventsStatus& KeyboardEventsStatus::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_KeyboardEventsStatus.base); return *internal_default_instance(); } 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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.KeyboardEventsStatus) for (;;) { ::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 (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; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.KeyboardEventsStatus) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.KeyboardEventsStatus) return false; #undef DO_ } 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 = static_cast(this->keyboardevents_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 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 // @@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 = static_cast(this->keyboardevents_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: 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; } 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 = static_cast(this->keyboardevents_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->keyboardevents(static_cast(i))); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void KeyboardEventsStatus::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.KeyboardEventsStatus) GOOGLE_DCHECK_NE(&from, this); const KeyboardEventsStatus* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.KeyboardEventsStatus) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.KeyboardEventsStatus) MergeFrom(*source); } } 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_); } void KeyboardEventsStatus::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.KeyboardEventsStatus) if (&from == this) return; Clear(); MergeFrom(from); } void KeyboardEventsStatus::CopyFrom(const KeyboardEventsStatus& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.KeyboardEventsStatus) if (&from == this) return; Clear(); MergeFrom(from); } bool KeyboardEventsStatus::IsInitialized() const { return true; } void KeyboardEventsStatus::Swap(KeyboardEventsStatus* other) { if (other == this) return; InternalSwap(other); } void KeyboardEventsStatus::InternalSwap(KeyboardEventsStatus* other) { 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[kIndexInFileMessages]; } // =================================================================== 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; const int RequestCameraImageCommand::kViewMatrixFieldNumber; const int RequestCameraImageCommand::kProjectionMatrixFieldNumber; const int RequestCameraImageCommand::kStartPixelIndexFieldNumber; const int RequestCameraImageCommand::kPixelWidthFieldNumber; const int RequestCameraImageCommand::kPixelHeightFieldNumber; const int RequestCameraImageCommand::kLightDirectionFieldNumber; const int RequestCameraImageCommand::kLightColorFieldNumber; const int RequestCameraImageCommand::kLightDistanceFieldNumber; const int RequestCameraImageCommand::kLightAmbientCoeffFieldNumber; const int RequestCameraImageCommand::kLightDiffuseCoeffFieldNumber; const int RequestCameraImageCommand::kLightSpecularCoeffFieldNumber; const int RequestCameraImageCommand::kHasShadowFieldNumber; const int RequestCameraImageCommand::kProjectiveTextureViewMatrixFieldNumber; const int RequestCameraImageCommand::kProjectiveTextureProjectionMatrixFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 RequestCameraImageCommand::RequestCameraImageCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_viewmatrix()) { viewmatrix_ = new ::pybullet_grpc::matrix4x4(*from.viewmatrix_); } else { viewmatrix_ = NULL; } if (from.has_projectionmatrix()) { projectionmatrix_ = new ::pybullet_grpc::matrix4x4(*from.projectionmatrix_); } else { projectionmatrix_ = NULL; } if (from.has_lightdirection()) { lightdirection_ = new ::pybullet_grpc::vec3(*from.lightdirection_); } else { lightdirection_ = NULL; } if (from.has_lightcolor()) { lightcolor_ = new ::pybullet_grpc::vec3(*from.lightcolor_); } else { lightcolor_ = NULL; } if (from.has_projectivetextureviewmatrix()) { projectivetextureviewmatrix_ = new ::pybullet_grpc::matrix4x4(*from.projectivetextureviewmatrix_); } else { projectivetextureviewmatrix_ = NULL; } if (from.has_projectivetextureprojectionmatrix()) { projectivetextureprojectionmatrix_ = new ::pybullet_grpc::matrix4x4(*from.projectivetextureprojectionmatrix_); } else { projectivetextureprojectionmatrix_ = NULL; } ::memcpy(&updateflags_, &from.updateflags_, static_cast(reinterpret_cast(&lightspecularcoeff_) - reinterpret_cast(&updateflags_)) + sizeof(lightspecularcoeff_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.RequestCameraImageCommand) } void RequestCameraImageCommand::SharedCtor() { ::memset(&viewmatrix_, 0, static_cast( reinterpret_cast(&lightspecularcoeff_) - reinterpret_cast(&viewmatrix_)) + sizeof(lightspecularcoeff_)); } RequestCameraImageCommand::~RequestCameraImageCommand() { // @@protoc_insertion_point(destructor:pybullet_grpc.RequestCameraImageCommand) SharedDtor(); } 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_; } void RequestCameraImageCommand::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* RequestCameraImageCommand::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const RequestCameraImageCommand& RequestCameraImageCommand::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_RequestCameraImageCommand.base); return *internal_default_instance(); } 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_; } viewmatrix_ = NULL; if (GetArenaNoVirtual() == NULL && projectionmatrix_ != NULL) { delete projectionmatrix_; } projectionmatrix_ = NULL; if (GetArenaNoVirtual() == NULL && lightdirection_ != NULL) { delete lightdirection_; } lightdirection_ = NULL; if (GetArenaNoVirtual() == NULL && lightcolor_ != NULL) { delete lightcolor_; } lightcolor_ = NULL; if (GetArenaNoVirtual() == NULL && projectivetextureviewmatrix_ != NULL) { delete projectivetextureviewmatrix_; } projectivetextureviewmatrix_ = NULL; if (GetArenaNoVirtual() == NULL && projectivetextureprojectionmatrix_ != NULL) { delete projectivetextureprojectionmatrix_; } projectivetextureprojectionmatrix_ = NULL; ::memset(&updateflags_, 0, static_cast( reinterpret_cast(&lightspecularcoeff_) - reinterpret_cast(&updateflags_)) + sizeof(lightspecularcoeff_)); _internal_metadata_.Clear(); } bool RequestCameraImageCommand::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.RequestCameraImageCommand) for (;;) { ::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 (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>( input, &updateflags_))); } else { goto handle_unusual; } break; } // int32 cameraFlags = 2; case 2: { 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>( input, &cameraflags_))); } else { goto handle_unusual; } break; } // .pybullet_grpc.matrix4x4 viewMatrix = 3; case 3: { 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; } break; } // .pybullet_grpc.matrix4x4 projectionMatrix = 4; case 4: { 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; } break; } // int32 startPixelIndex = 5; case 5: { 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>( input, &startpixelindex_))); } else { goto handle_unusual; } break; } // int32 pixelWidth = 6; case 6: { 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>( input, &pixelwidth_))); } else { goto handle_unusual; } break; } // int32 pixelHeight = 7; case 7: { 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>( input, &pixelheight_))); } else { goto handle_unusual; } break; } // .pybullet_grpc.vec3 lightDirection = 8; case 8: { 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; } break; } // .pybullet_grpc.vec3 lightColor = 9; case 9: { 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; } break; } // double lightDistance = 10; case 10: { 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>( input, &lightdistance_))); } else { goto handle_unusual; } break; } // double lightAmbientCoeff = 11; case 11: { 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>( input, &lightambientcoeff_))); } else { goto handle_unusual; } break; } // double lightDiffuseCoeff = 12; case 12: { 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>( input, &lightdiffusecoeff_))); } else { goto handle_unusual; } break; } // double lightSpecularCoeff = 13; case 13: { 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>( input, &lightspecularcoeff_))); } else { goto handle_unusual; } break; } // int32 hasShadow = 14; case 14: { 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>( input, &hasshadow_))); } else { goto handle_unusual; } break; } // .pybullet_grpc.matrix4x4 projectiveTextureViewMatrix = 15; case 15: { 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; } break; } // .pybullet_grpc.matrix4x4 projectiveTextureProjectionMatrix = 16; case 16: { 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; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.RequestCameraImageCommand) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.RequestCameraImageCommand) return false; #undef DO_ } 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); } // int32 cameraFlags = 2; if (this->cameraflags() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->cameraflags(), output); } // .pybullet_grpc.matrix4x4 viewMatrix = 3; if (this->has_viewmatrix()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, this->_internal_viewmatrix(), output); } // .pybullet_grpc.matrix4x4 projectionMatrix = 4; if (this->has_projectionmatrix()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->_internal_projectionmatrix(), output); } // int32 startPixelIndex = 5; if (this->startpixelindex() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->startpixelindex(), output); } // int32 pixelWidth = 6; if (this->pixelwidth() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->pixelwidth(), output); } // int32 pixelHeight = 7; if (this->pixelheight() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->pixelheight(), output); } // .pybullet_grpc.vec3 lightDirection = 8; if (this->has_lightdirection()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 8, this->_internal_lightdirection(), output); } // .pybullet_grpc.vec3 lightColor = 9; if (this->has_lightcolor()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 9, this->_internal_lightcolor(), output); } // double lightDistance = 10; if (this->lightdistance() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(10, this->lightdistance(), output); } // double lightAmbientCoeff = 11; if (this->lightambientcoeff() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(11, this->lightambientcoeff(), output); } // double lightDiffuseCoeff = 12; if (this->lightdiffusecoeff() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(12, this->lightdiffusecoeff(), output); } // double lightSpecularCoeff = 13; if (this->lightspecularcoeff() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(13, this->lightspecularcoeff(), output); } // int32 hasShadow = 14; if (this->hasshadow() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(14, this->hasshadow(), output); } // .pybullet_grpc.matrix4x4 projectiveTextureViewMatrix = 15; if (this->has_projectivetextureviewmatrix()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 15, this->_internal_projectivetextureviewmatrix(), output); } // .pybullet_grpc.matrix4x4 projectiveTextureProjectionMatrix = 16; if (this->has_projectivetextureprojectionmatrix()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 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 // @@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); } // int32 cameraFlags = 2; if (this->cameraflags() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->cameraflags(), target); } // .pybullet_grpc.matrix4x4 viewMatrix = 3; if (this->has_viewmatrix()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, this->_internal_viewmatrix(), deterministic, target); } // .pybullet_grpc.matrix4x4 projectionMatrix = 4; if (this->has_projectionmatrix()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, this->_internal_projectionmatrix(), deterministic, target); } // int32 startPixelIndex = 5; if (this->startpixelindex() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->startpixelindex(), target); } // int32 pixelWidth = 6; if (this->pixelwidth() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->pixelwidth(), target); } // int32 pixelHeight = 7; if (this->pixelheight() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->pixelheight(), target); } // .pybullet_grpc.vec3 lightDirection = 8; if (this->has_lightdirection()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 8, this->_internal_lightdirection(), deterministic, target); } // .pybullet_grpc.vec3 lightColor = 9; if (this->has_lightcolor()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 9, this->_internal_lightcolor(), deterministic, target); } // double lightDistance = 10; if (this->lightdistance() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(10, this->lightdistance(), target); } // double lightAmbientCoeff = 11; if (this->lightambientcoeff() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(11, this->lightambientcoeff(), target); } // double lightDiffuseCoeff = 12; if (this->lightdiffusecoeff() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(12, this->lightdiffusecoeff(), target); } // double lightSpecularCoeff = 13; if (this->lightspecularcoeff() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(13, this->lightspecularcoeff(), target); } // int32 hasShadow = 14; if (this->hasshadow() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(14, this->hasshadow(), target); } // .pybullet_grpc.matrix4x4 projectiveTextureViewMatrix = 15; if (this->has_projectivetextureviewmatrix()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 15, this->_internal_projectivetextureviewmatrix(), deterministic, target); } // .pybullet_grpc.matrix4x4 projectiveTextureProjectionMatrix = 16; if (this->has_projectivetextureprojectionmatrix()) { target = ::google::protobuf::internal::WireFormatLite:: 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; } 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::MessageSize( *viewmatrix_); } // .pybullet_grpc.matrix4x4 projectionMatrix = 4; if (this->has_projectionmatrix()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *projectionmatrix_); } // .pybullet_grpc.vec3 lightDirection = 8; if (this->has_lightdirection()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *lightdirection_); } // .pybullet_grpc.vec3 lightColor = 9; if (this->has_lightcolor()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *lightcolor_); } // .pybullet_grpc.matrix4x4 projectiveTextureViewMatrix = 15; if (this->has_projectivetextureviewmatrix()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *projectivetextureviewmatrix_); } // .pybullet_grpc.matrix4x4 projectiveTextureProjectionMatrix = 16; if (this->has_projectivetextureprojectionmatrix()) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize( *projectivetextureprojectionmatrix_); } // int32 updateFlags = 1; if (this->updateflags() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->updateflags()); } // int32 cameraFlags = 2; if (this->cameraflags() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->cameraflags()); } // int32 startPixelIndex = 5; if (this->startpixelindex() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->startpixelindex()); } // int32 pixelWidth = 6; if (this->pixelwidth() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->pixelwidth()); } // double lightDistance = 10; if (this->lightdistance() != 0) { total_size += 1 + 8; } // int32 pixelHeight = 7; if (this->pixelheight() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->pixelheight()); } // int32 hasShadow = 14; if (this->hasshadow() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->hasshadow()); } // double lightAmbientCoeff = 11; if (this->lightambientcoeff() != 0) { total_size += 1 + 8; } // double lightDiffuseCoeff = 12; if (this->lightdiffusecoeff() != 0) { total_size += 1 + 8; } // double lightSpecularCoeff = 13; if (this->lightspecularcoeff() != 0) { total_size += 1 + 8; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void RequestCameraImageCommand::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.RequestCameraImageCommand) GOOGLE_DCHECK_NE(&from, this); const RequestCameraImageCommand* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.RequestCameraImageCommand) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.RequestCameraImageCommand) MergeFrom(*source); } } 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()); } if (from.has_projectionmatrix()) { mutable_projectionmatrix()->::pybullet_grpc::matrix4x4::MergeFrom(from.projectionmatrix()); } if (from.has_lightdirection()) { mutable_lightdirection()->::pybullet_grpc::vec3::MergeFrom(from.lightdirection()); } if (from.has_lightcolor()) { mutable_lightcolor()->::pybullet_grpc::vec3::MergeFrom(from.lightcolor()); } if (from.has_projectivetextureviewmatrix()) { mutable_projectivetextureviewmatrix()->::pybullet_grpc::matrix4x4::MergeFrom(from.projectivetextureviewmatrix()); } if (from.has_projectivetextureprojectionmatrix()) { mutable_projectivetextureprojectionmatrix()->::pybullet_grpc::matrix4x4::MergeFrom(from.projectivetextureprojectionmatrix()); } if (from.updateflags() != 0) { set_updateflags(from.updateflags()); } if (from.cameraflags() != 0) { set_cameraflags(from.cameraflags()); } if (from.startpixelindex() != 0) { set_startpixelindex(from.startpixelindex()); } if (from.pixelwidth() != 0) { set_pixelwidth(from.pixelwidth()); } if (from.lightdistance() != 0) { set_lightdistance(from.lightdistance()); } if (from.pixelheight() != 0) { set_pixelheight(from.pixelheight()); } if (from.hasshadow() != 0) { set_hasshadow(from.hasshadow()); } if (from.lightambientcoeff() != 0) { set_lightambientcoeff(from.lightambientcoeff()); } if (from.lightdiffusecoeff() != 0) { set_lightdiffusecoeff(from.lightdiffusecoeff()); } if (from.lightspecularcoeff() != 0) { set_lightspecularcoeff(from.lightspecularcoeff()); } } void RequestCameraImageCommand::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.RequestCameraImageCommand) if (&from == this) return; Clear(); MergeFrom(from); } void RequestCameraImageCommand::CopyFrom(const RequestCameraImageCommand& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.RequestCameraImageCommand) if (&from == this) return; Clear(); MergeFrom(from); } bool RequestCameraImageCommand::IsInitialized() const { return true; } void RequestCameraImageCommand::Swap(RequestCameraImageCommand* other) { if (other == this) return; InternalSwap(other); } void RequestCameraImageCommand::InternalSwap(RequestCameraImageCommand* other) { 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[kIndexInFileMessages]; } // =================================================================== void RequestCameraImageStatus::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int RequestCameraImageStatus::kImageWidthFieldNumber; const int RequestCameraImageStatus::kImageHeightFieldNumber; const int RequestCameraImageStatus::kStartingPixelIndexFieldNumber; const int RequestCameraImageStatus::kNumPixelsCopiedFieldNumber; const int RequestCameraImageStatus::kNumRemainingPixelsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 RequestCameraImageStatus::RequestCameraImageStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::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) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&imagewidth_, &from.imagewidth_, static_cast(reinterpret_cast(&numremainingpixels_) - reinterpret_cast(&imagewidth_)) + sizeof(numremainingpixels_)); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.RequestCameraImageStatus) } void RequestCameraImageStatus::SharedCtor() { ::memset(&imagewidth_, 0, static_cast( reinterpret_cast(&numremainingpixels_) - reinterpret_cast(&imagewidth_)) + sizeof(numremainingpixels_)); } RequestCameraImageStatus::~RequestCameraImageStatus() { // @@protoc_insertion_point(destructor:pybullet_grpc.RequestCameraImageStatus) SharedDtor(); } void RequestCameraImageStatus::SharedDtor() { } void RequestCameraImageStatus::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* RequestCameraImageStatus::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const RequestCameraImageStatus& RequestCameraImageStatus::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_RequestCameraImageStatus.base); return *internal_default_instance(); } void RequestCameraImageStatus::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.RequestCameraImageStatus) ::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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.RequestCameraImageStatus) for (;;) { ::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 (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>( input, &imagewidth_))); } else { goto handle_unusual; } break; } // int32 imageHeight = 2; case 2: { 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>( input, &imageheight_))); } else { goto handle_unusual; } break; } // int32 startingPixelIndex = 3; case 3: { 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>( input, &startingpixelindex_))); } else { goto handle_unusual; } break; } // int32 numPixelsCopied = 4; case 4: { 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>( input, &numpixelscopied_))); } else { goto handle_unusual; } break; } // int32 numRemainingPixels = 5; case 5: { 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>( input, &numremainingpixels_))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.RequestCameraImageStatus) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.RequestCameraImageStatus) return false; #undef DO_ } 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); } // int32 imageHeight = 2; if (this->imageheight() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->imageheight(), output); } // int32 startingPixelIndex = 3; if (this->startingpixelindex() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->startingpixelindex(), output); } // int32 numPixelsCopied = 4; if (this->numpixelscopied() != 0) { ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->numpixelscopied(), output); } // int32 numRemainingPixels = 5; if (this->numremainingpixels() != 0) { ::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 // @@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); } // int32 imageHeight = 2; if (this->imageheight() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->imageheight(), target); } // int32 startingPixelIndex = 3; if (this->startingpixelindex() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->startingpixelindex(), target); } // int32 numPixelsCopied = 4; if (this->numpixelscopied() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->numpixelscopied(), target); } // int32 numRemainingPixels = 5; if (this->numremainingpixels() != 0) { 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; } 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 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->imagewidth()); } // int32 imageHeight = 2; if (this->imageheight() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->imageheight()); } // int32 startingPixelIndex = 3; if (this->startingpixelindex() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->startingpixelindex()); } // int32 numPixelsCopied = 4; if (this->numpixelscopied() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->numpixelscopied()); } // int32 numRemainingPixels = 5; if (this->numremainingpixels() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->numremainingpixels()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void RequestCameraImageStatus::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.RequestCameraImageStatus) GOOGLE_DCHECK_NE(&from, this); const RequestCameraImageStatus* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.RequestCameraImageStatus) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.RequestCameraImageStatus) MergeFrom(*source); } } 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()); } if (from.imageheight() != 0) { set_imageheight(from.imageheight()); } if (from.startingpixelindex() != 0) { set_startingpixelindex(from.startingpixelindex()); } if (from.numpixelscopied() != 0) { set_numpixelscopied(from.numpixelscopied()); } if (from.numremainingpixels() != 0) { set_numremainingpixels(from.numremainingpixels()); } } void RequestCameraImageStatus::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.RequestCameraImageStatus) if (&from == this) return; Clear(); MergeFrom(from); } void RequestCameraImageStatus::CopyFrom(const RequestCameraImageStatus& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.RequestCameraImageStatus) if (&from == this) return; Clear(); MergeFrom(from); } bool RequestCameraImageStatus::IsInitialized() const { return true; } void RequestCameraImageStatus::Swap(RequestCameraImageStatus* other) { if (other == this) return; InternalSwap(other); } void RequestCameraImageStatus::InternalSwap(RequestCameraImageStatus* other) { 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[kIndexInFileMessages]; } // =================================================================== void ResetSimulationCommand::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ResetSimulationCommand::ResetSimulationCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_pybullet_2eproto::scc_info_ResetSimulationCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.ResetSimulationCommand) } ResetSimulationCommand::ResetSimulationCommand(const ResetSimulationCommand& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:pybullet_grpc.ResetSimulationCommand) } void ResetSimulationCommand::SharedCtor() { } ResetSimulationCommand::~ResetSimulationCommand() { // @@protoc_insertion_point(destructor:pybullet_grpc.ResetSimulationCommand) SharedDtor(); } void ResetSimulationCommand::SharedDtor() { } void ResetSimulationCommand::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* ResetSimulationCommand::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const ResetSimulationCommand& ResetSimulationCommand::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_ResetSimulationCommand.base); return *internal_default_instance(); } void ResetSimulationCommand::Clear() { // @@protoc_insertion_point(message_clear_start:pybullet_grpc.ResetSimulationCommand) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _internal_metadata_.Clear(); } bool ResetSimulationCommand::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.ResetSimulationCommand) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.ResetSimulationCommand) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.ResetSimulationCommand) return false; #undef DO_ } void ResetSimulationCommand::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:pybullet_grpc.ResetSimulationCommand) ::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.ResetSimulationCommand) } ::google::protobuf::uint8* ResetSimulationCommand::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:pybullet_grpc.ResetSimulationCommand) ::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.ResetSimulationCommand) return target; } size_t ResetSimulationCommand::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:pybullet_grpc.ResetSimulationCommand) 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); SetCachedSize(cached_size); return total_size; } void ResetSimulationCommand::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.ResetSimulationCommand) GOOGLE_DCHECK_NE(&from, this); const ResetSimulationCommand* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.ResetSimulationCommand) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.ResetSimulationCommand) MergeFrom(*source); } } void ResetSimulationCommand::MergeFrom(const ResetSimulationCommand& from) { // @@protoc_insertion_point(class_specific_merge_from_start:pybullet_grpc.ResetSimulationCommand) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; } void ResetSimulationCommand::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.ResetSimulationCommand) if (&from == this) return; Clear(); MergeFrom(from); } void ResetSimulationCommand::CopyFrom(const ResetSimulationCommand& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.ResetSimulationCommand) if (&from == this) return; Clear(); MergeFrom(from); } bool ResetSimulationCommand::IsInitialized() const { return true; } void ResetSimulationCommand::Swap(ResetSimulationCommand* other) { if (other == this) return; InternalSwap(other); } void ResetSimulationCommand::InternalSwap(ResetSimulationCommand* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata ResetSimulationCommand::GetMetadata() const { protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== 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()); ::pybullet_grpc::_PyBulletCommand_default_instance_.resetsimulationcommand_ = const_cast< ::pybullet_grpc::ResetSimulationCommand*>( ::pybullet_grpc::ResetSimulationCommand::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) } void PyBulletCommand::set_allocated_resetsimulationcommand(::pybullet_grpc::ResetSimulationCommand* resetsimulationcommand) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_commands(); if (resetsimulationcommand) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { resetsimulationcommand = ::google::protobuf::internal::GetOwnedMessage( message_arena, resetsimulationcommand, submessage_arena); } set_has_resetsimulationcommand(); commands_.resetsimulationcommand_ = resetsimulationcommand; } // @@protoc_insertion_point(field_set_allocated:pybullet_grpc.PyBulletCommand.resetSimulationCommand) } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int PyBulletCommand::kCommandTypeFieldNumber; const int PyBulletCommand::kBinaryBlobFieldNumber; const int PyBulletCommand::kUnknownCommandBinaryBlobFieldNumber; const int PyBulletCommand::kLoadUrdfCommandFieldNumber; const int PyBulletCommand::kTerminateServerCommandFieldNumber; const int PyBulletCommand::kStepSimulationCommandFieldNumber; const int PyBulletCommand::kLoadSdfCommandFieldNumber; const int PyBulletCommand::kLoadMjcfCommandFieldNumber; const int PyBulletCommand::kChangeDynamicsCommandFieldNumber; const int PyBulletCommand::kGetDynamicsCommandFieldNumber; const int PyBulletCommand::kInitPoseCommandFieldNumber; const int PyBulletCommand::kRequestActualStateCommandFieldNumber; const int PyBulletCommand::kConfigureOpenGLVisualizerCommandFieldNumber; const int PyBulletCommand::kSyncBodiesCommandFieldNumber; const int PyBulletCommand::kRequestBodyInfoCommandFieldNumber; const int PyBulletCommand::kSetPhysicsSimulationParametersCommandFieldNumber; const int PyBulletCommand::kJointMotorControlCommandFieldNumber; const int PyBulletCommand::kUserConstraintCommandFieldNumber; const int PyBulletCommand::kCheckVersionCommandFieldNumber; const int PyBulletCommand::kRequestKeyboardEventsCommandFieldNumber; const int PyBulletCommand::kRequestCameraImageCommandFieldNumber; const int PyBulletCommand::kResetSimulationCommandFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 PyBulletCommand::PyBulletCommand() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_pybullet_2eproto::scc_info_PyBulletCommand.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.PyBulletCommand) } PyBulletCommand::PyBulletCommand(const PyBulletCommand& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), binaryblob_(from.binaryblob_), unknowncommandbinaryblob_(from.unknowncommandbinaryblob_) { _internal_metadata_.MergeFrom(from._internal_metadata_); commandtype_ = from.commandtype_; clear_has_commands(); switch (from.commands_case()) { case kLoadUrdfCommand: { mutable_loadurdfcommand()->::pybullet_grpc::LoadUrdfCommand::MergeFrom(from.loadurdfcommand()); break; } case kTerminateServerCommand: { mutable_terminateservercommand()->::pybullet_grpc::TerminateServerCommand::MergeFrom(from.terminateservercommand()); break; } case kStepSimulationCommand: { mutable_stepsimulationcommand()->::pybullet_grpc::StepSimulationCommand::MergeFrom(from.stepsimulationcommand()); break; } case kLoadSdfCommand: { mutable_loadsdfcommand()->::pybullet_grpc::LoadSdfCommand::MergeFrom(from.loadsdfcommand()); break; } case kLoadMjcfCommand: { mutable_loadmjcfcommand()->::pybullet_grpc::LoadMjcfCommand::MergeFrom(from.loadmjcfcommand()); break; } case kChangeDynamicsCommand: { mutable_changedynamicscommand()->::pybullet_grpc::ChangeDynamicsCommand::MergeFrom(from.changedynamicscommand()); break; } case kGetDynamicsCommand: { mutable_getdynamicscommand()->::pybullet_grpc::GetDynamicsCommand::MergeFrom(from.getdynamicscommand()); break; } case kInitPoseCommand: { mutable_initposecommand()->::pybullet_grpc::InitPoseCommand::MergeFrom(from.initposecommand()); break; } case kRequestActualStateCommand: { mutable_requestactualstatecommand()->::pybullet_grpc::RequestActualStateCommand::MergeFrom(from.requestactualstatecommand()); break; } case kConfigureOpenGLVisualizerCommand: { mutable_configureopenglvisualizercommand()->::pybullet_grpc::ConfigureOpenGLVisualizerCommand::MergeFrom(from.configureopenglvisualizercommand()); break; } case kSyncBodiesCommand: { mutable_syncbodiescommand()->::pybullet_grpc::SyncBodiesCommand::MergeFrom(from.syncbodiescommand()); break; } case kRequestBodyInfoCommand: { mutable_requestbodyinfocommand()->::pybullet_grpc::RequestBodyInfoCommand::MergeFrom(from.requestbodyinfocommand()); break; } case kSetPhysicsSimulationParametersCommand: { mutable_setphysicssimulationparameterscommand()->::pybullet_grpc::PhysicsSimulationParametersCommand::MergeFrom(from.setphysicssimulationparameterscommand()); break; } case kJointMotorControlCommand: { mutable_jointmotorcontrolcommand()->::pybullet_grpc::JointMotorControlCommand::MergeFrom(from.jointmotorcontrolcommand()); break; } case kUserConstraintCommand: { mutable_userconstraintcommand()->::pybullet_grpc::UserConstraintCommand::MergeFrom(from.userconstraintcommand()); break; } case kCheckVersionCommand: { mutable_checkversioncommand()->::pybullet_grpc::CheckVersionCommand::MergeFrom(from.checkversioncommand()); break; } case kRequestKeyboardEventsCommand: { mutable_requestkeyboardeventscommand()->::pybullet_grpc::RequestKeyboardEventsCommand::MergeFrom(from.requestkeyboardeventscommand()); break; } case kRequestCameraImageCommand: { mutable_requestcameraimagecommand()->::pybullet_grpc::RequestCameraImageCommand::MergeFrom(from.requestcameraimagecommand()); break; } case kResetSimulationCommand: { mutable_resetsimulationcommand()->::pybullet_grpc::ResetSimulationCommand::MergeFrom(from.resetsimulationcommand()); break; } case COMMANDS_NOT_SET: { break; } } // @@protoc_insertion_point(copy_constructor:pybullet_grpc.PyBulletCommand) } void PyBulletCommand::SharedCtor() { commandtype_ = 0; clear_has_commands(); } PyBulletCommand::~PyBulletCommand() { // @@protoc_insertion_point(destructor:pybullet_grpc.PyBulletCommand) SharedDtor(); } void PyBulletCommand::SharedDtor() { if (has_commands()) { clear_commands(); } } void PyBulletCommand::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* PyBulletCommand::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const PyBulletCommand& PyBulletCommand::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_PyBulletCommand.base); return *internal_default_instance(); } void PyBulletCommand::clear_commands() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.PyBulletCommand) switch (commands_case()) { case kLoadUrdfCommand: { delete commands_.loadurdfcommand_; break; } case kTerminateServerCommand: { delete commands_.terminateservercommand_; break; } case kStepSimulationCommand: { delete commands_.stepsimulationcommand_; break; } case kLoadSdfCommand: { delete commands_.loadsdfcommand_; break; } case kLoadMjcfCommand: { delete commands_.loadmjcfcommand_; break; } case kChangeDynamicsCommand: { delete commands_.changedynamicscommand_; break; } case kGetDynamicsCommand: { delete commands_.getdynamicscommand_; break; } case kInitPoseCommand: { delete commands_.initposecommand_; break; } case kRequestActualStateCommand: { delete commands_.requestactualstatecommand_; break; } case kConfigureOpenGLVisualizerCommand: { delete commands_.configureopenglvisualizercommand_; break; } case kSyncBodiesCommand: { delete commands_.syncbodiescommand_; break; } case kRequestBodyInfoCommand: { delete commands_.requestbodyinfocommand_; break; } case kSetPhysicsSimulationParametersCommand: { delete commands_.setphysicssimulationparameterscommand_; break; } case kJointMotorControlCommand: { delete commands_.jointmotorcontrolcommand_; break; } case kUserConstraintCommand: { delete commands_.userconstraintcommand_; break; } case kCheckVersionCommand: { delete commands_.checkversioncommand_; break; } case kRequestKeyboardEventsCommand: { delete commands_.requestkeyboardeventscommand_; break; } case kRequestCameraImageCommand: { delete commands_.requestcameraimagecommand_; break; } case kResetSimulationCommand: { delete commands_.resetsimulationcommand_; break; } case COMMANDS_NOT_SET: { break; } } _oneof_case_[0] = COMMANDS_NOT_SET; } 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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.PyBulletCommand) for (;;) { ::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 (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>( input, &commandtype_))); } else { goto handle_unusual; } break; } // repeated bytes binaryBlob = 2; case 2: { 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 { goto handle_unusual; } break; } // repeated bytes unknownCommandBinaryBlob = 3; case 3: { 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 { goto handle_unusual; } break; } // .pybullet_grpc.LoadUrdfCommand loadUrdfCommand = 4; case 4: { 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; } break; } // .pybullet_grpc.TerminateServerCommand terminateServerCommand = 5; case 5: { 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; } break; } // .pybullet_grpc.StepSimulationCommand stepSimulationCommand = 6; case 6: { 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; } break; } // .pybullet_grpc.LoadSdfCommand loadSdfCommand = 7; case 7: { 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; } break; } // .pybullet_grpc.LoadMjcfCommand loadMjcfCommand = 8; case 8: { 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; } break; } // .pybullet_grpc.ChangeDynamicsCommand changeDynamicsCommand = 9; case 9: { 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; } break; } // .pybullet_grpc.GetDynamicsCommand getDynamicsCommand = 10; case 10: { 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; } break; } // .pybullet_grpc.InitPoseCommand initPoseCommand = 11; case 11: { 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; } break; } // .pybullet_grpc.RequestActualStateCommand requestActualStateCommand = 12; case 12: { 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; } break; } // .pybullet_grpc.ConfigureOpenGLVisualizerCommand configureOpenGLVisualizerCommand = 13; case 13: { 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; } break; } // .pybullet_grpc.SyncBodiesCommand syncBodiesCommand = 14; case 14: { 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; } break; } // .pybullet_grpc.RequestBodyInfoCommand requestBodyInfoCommand = 15; case 15: { 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; } break; } // .pybullet_grpc.PhysicsSimulationParametersCommand setPhysicsSimulationParametersCommand = 16; case 16: { 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; } break; } // .pybullet_grpc.JointMotorControlCommand jointMotorControlCommand = 17; case 17: { 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; } break; } // .pybullet_grpc.UserConstraintCommand userConstraintCommand = 18; case 18: { 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; } break; } // .pybullet_grpc.CheckVersionCommand checkVersionCommand = 19; case 19: { 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; } break; } // .pybullet_grpc.RequestKeyboardEventsCommand requestKeyboardEventsCommand = 20; case 20: { 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; } break; } // .pybullet_grpc.RequestCameraImageCommand requestCameraImageCommand = 21; case 21: { 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; } break; } // .pybullet_grpc.ResetSimulationCommand resetSimulationCommand = 22; case 22: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(178u /* 178 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_resetsimulationcommand())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.PyBulletCommand) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.PyBulletCommand) return false; #undef DO_ } 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, 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, n = this->unknowncommandbinaryblob_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteBytes( 3, this->unknowncommandbinaryblob(i), output); } // .pybullet_grpc.LoadUrdfCommand loadUrdfCommand = 4; if (has_loadurdfcommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->_internal_loadurdfcommand(), output); } // .pybullet_grpc.TerminateServerCommand terminateServerCommand = 5; if (has_terminateservercommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, this->_internal_terminateservercommand(), output); } // .pybullet_grpc.StepSimulationCommand stepSimulationCommand = 6; if (has_stepsimulationcommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 6, this->_internal_stepsimulationcommand(), output); } // .pybullet_grpc.LoadSdfCommand loadSdfCommand = 7; if (has_loadsdfcommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 7, this->_internal_loadsdfcommand(), output); } // .pybullet_grpc.LoadMjcfCommand loadMjcfCommand = 8; if (has_loadmjcfcommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 8, this->_internal_loadmjcfcommand(), output); } // .pybullet_grpc.ChangeDynamicsCommand changeDynamicsCommand = 9; if (has_changedynamicscommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 9, this->_internal_changedynamicscommand(), output); } // .pybullet_grpc.GetDynamicsCommand getDynamicsCommand = 10; if (has_getdynamicscommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 10, this->_internal_getdynamicscommand(), output); } // .pybullet_grpc.InitPoseCommand initPoseCommand = 11; if (has_initposecommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 11, this->_internal_initposecommand(), output); } // .pybullet_grpc.RequestActualStateCommand requestActualStateCommand = 12; if (has_requestactualstatecommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 12, this->_internal_requestactualstatecommand(), output); } // .pybullet_grpc.ConfigureOpenGLVisualizerCommand configureOpenGLVisualizerCommand = 13; if (has_configureopenglvisualizercommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 13, this->_internal_configureopenglvisualizercommand(), output); } // .pybullet_grpc.SyncBodiesCommand syncBodiesCommand = 14; if (has_syncbodiescommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 14, this->_internal_syncbodiescommand(), output); } // .pybullet_grpc.RequestBodyInfoCommand requestBodyInfoCommand = 15; if (has_requestbodyinfocommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 15, this->_internal_requestbodyinfocommand(), output); } // .pybullet_grpc.PhysicsSimulationParametersCommand setPhysicsSimulationParametersCommand = 16; if (has_setphysicssimulationparameterscommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 16, this->_internal_setphysicssimulationparameterscommand(), output); } // .pybullet_grpc.JointMotorControlCommand jointMotorControlCommand = 17; if (has_jointmotorcontrolcommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 17, this->_internal_jointmotorcontrolcommand(), output); } // .pybullet_grpc.UserConstraintCommand userConstraintCommand = 18; if (has_userconstraintcommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 18, this->_internal_userconstraintcommand(), output); } // .pybullet_grpc.CheckVersionCommand checkVersionCommand = 19; if (has_checkversioncommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 19, this->_internal_checkversioncommand(), output); } // .pybullet_grpc.RequestKeyboardEventsCommand requestKeyboardEventsCommand = 20; if (has_requestkeyboardeventscommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 20, this->_internal_requestkeyboardeventscommand(), output); } // .pybullet_grpc.RequestCameraImageCommand requestCameraImageCommand = 21; if (has_requestcameraimagecommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 21, this->_internal_requestcameraimagecommand(), output); } // .pybullet_grpc.ResetSimulationCommand resetSimulationCommand = 22; if (has_resetsimulationcommand()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 22, this->_internal_resetsimulationcommand(), 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 // @@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, 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, n = this->unknowncommandbinaryblob_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteBytesToArray(3, this->unknowncommandbinaryblob(i), target); } // .pybullet_grpc.LoadUrdfCommand loadUrdfCommand = 4; if (has_loadurdfcommand()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, this->_internal_loadurdfcommand(), deterministic, target); } // .pybullet_grpc.TerminateServerCommand terminateServerCommand = 5; if (has_terminateservercommand()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 5, this->_internal_terminateservercommand(), deterministic, target); } // .pybullet_grpc.StepSimulationCommand stepSimulationCommand = 6; if (has_stepsimulationcommand()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 6, this->_internal_stepsimulationcommand(), deterministic, target); } // .pybullet_grpc.LoadSdfCommand loadSdfCommand = 7; if (has_loadsdfcommand()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 7, this->_internal_loadsdfcommand(), deterministic, target); } // .pybullet_grpc.LoadMjcfCommand loadMjcfCommand = 8; if (has_loadmjcfcommand()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 8, this->_internal_loadmjcfcommand(), deterministic, target); } // .pybullet_grpc.ChangeDynamicsCommand changeDynamicsCommand = 9; if (has_changedynamicscommand()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 9, this->_internal_changedynamicscommand(), deterministic, target); } // .pybullet_grpc.GetDynamicsCommand getDynamicsCommand = 10; if (has_getdynamicscommand()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 10, this->_internal_getdynamicscommand(), deterministic, target); } // .pybullet_grpc.InitPoseCommand initPoseCommand = 11; if (has_initposecommand()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 11, this->_internal_initposecommand(), deterministic, target); } // .pybullet_grpc.RequestActualStateCommand requestActualStateCommand = 12; if (has_requestactualstatecommand()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 12, this->_internal_requestactualstatecommand(), deterministic, target); } // .pybullet_grpc.ConfigureOpenGLVisualizerCommand configureOpenGLVisualizerCommand = 13; if (has_configureopenglvisualizercommand()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 13, this->_internal_configureopenglvisualizercommand(), deterministic, target); } // .pybullet_grpc.SyncBodiesCommand syncBodiesCommand = 14; if (has_syncbodiescommand()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 14, this->_internal_syncbodiescommand(), deterministic, target); } // .pybullet_grpc.RequestBodyInfoCommand requestBodyInfoCommand = 15; if (has_requestbodyinfocommand()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 15, this->_internal_requestbodyinfocommand(), deterministic, target); } // .pybullet_grpc.PhysicsSimulationParametersCommand setPhysicsSimulationParametersCommand = 16; if (has_setphysicssimulationparameterscommand()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 16, this->_internal_setphysicssimulationparameterscommand(), deterministic, target); } // .pybullet_grpc.JointMotorControlCommand jointMotorControlCommand = 17; if (has_jointmotorcontrolcommand()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 17, this->_internal_jointmotorcontrolcommand(), deterministic, target); } // .pybullet_grpc.UserConstraintCommand userConstraintCommand = 18; if (has_userconstraintcommand()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 18, this->_internal_userconstraintcommand(), deterministic, target); } // .pybullet_grpc.CheckVersionCommand checkVersionCommand = 19; if (has_checkversioncommand()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 19, this->_internal_checkversioncommand(), deterministic, target); } // .pybullet_grpc.RequestKeyboardEventsCommand requestKeyboardEventsCommand = 20; if (has_requestkeyboardeventscommand()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 20, this->_internal_requestkeyboardeventscommand(), deterministic, target); } // .pybullet_grpc.RequestCameraImageCommand requestCameraImageCommand = 21; if (has_requestcameraimagecommand()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 21, this->_internal_requestcameraimagecommand(), deterministic, target); } // .pybullet_grpc.ResetSimulationCommand resetSimulationCommand = 22; if (has_resetsimulationcommand()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 22, this->_internal_resetsimulationcommand(), 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; } 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, n = this->binaryblob_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( this->binaryblob(i)); } // repeated bytes unknownCommandBinaryBlob = 3; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->unknowncommandbinaryblob_size()); for (int i = 0, n = this->unknowncommandbinaryblob_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( this->unknowncommandbinaryblob(i)); } // int32 commandType = 1; if (this->commandtype() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->commandtype()); } switch (commands_case()) { // .pybullet_grpc.LoadUrdfCommand loadUrdfCommand = 4; case kLoadUrdfCommand: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.loadurdfcommand_); break; } // .pybullet_grpc.TerminateServerCommand terminateServerCommand = 5; case kTerminateServerCommand: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.terminateservercommand_); break; } // .pybullet_grpc.StepSimulationCommand stepSimulationCommand = 6; case kStepSimulationCommand: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.stepsimulationcommand_); break; } // .pybullet_grpc.LoadSdfCommand loadSdfCommand = 7; case kLoadSdfCommand: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.loadsdfcommand_); break; } // .pybullet_grpc.LoadMjcfCommand loadMjcfCommand = 8; case kLoadMjcfCommand: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.loadmjcfcommand_); break; } // .pybullet_grpc.ChangeDynamicsCommand changeDynamicsCommand = 9; case kChangeDynamicsCommand: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.changedynamicscommand_); break; } // .pybullet_grpc.GetDynamicsCommand getDynamicsCommand = 10; case kGetDynamicsCommand: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.getdynamicscommand_); break; } // .pybullet_grpc.InitPoseCommand initPoseCommand = 11; case kInitPoseCommand: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.initposecommand_); break; } // .pybullet_grpc.RequestActualStateCommand requestActualStateCommand = 12; case kRequestActualStateCommand: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.requestactualstatecommand_); break; } // .pybullet_grpc.ConfigureOpenGLVisualizerCommand configureOpenGLVisualizerCommand = 13; case kConfigureOpenGLVisualizerCommand: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.configureopenglvisualizercommand_); break; } // .pybullet_grpc.SyncBodiesCommand syncBodiesCommand = 14; case kSyncBodiesCommand: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.syncbodiescommand_); break; } // .pybullet_grpc.RequestBodyInfoCommand requestBodyInfoCommand = 15; case kRequestBodyInfoCommand: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.requestbodyinfocommand_); break; } // .pybullet_grpc.PhysicsSimulationParametersCommand setPhysicsSimulationParametersCommand = 16; case kSetPhysicsSimulationParametersCommand: { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.setphysicssimulationparameterscommand_); break; } // .pybullet_grpc.JointMotorControlCommand jointMotorControlCommand = 17; case kJointMotorControlCommand: { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.jointmotorcontrolcommand_); break; } // .pybullet_grpc.UserConstraintCommand userConstraintCommand = 18; case kUserConstraintCommand: { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.userconstraintcommand_); break; } // .pybullet_grpc.CheckVersionCommand checkVersionCommand = 19; case kCheckVersionCommand: { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.checkversioncommand_); break; } // .pybullet_grpc.RequestKeyboardEventsCommand requestKeyboardEventsCommand = 20; case kRequestKeyboardEventsCommand: { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.requestkeyboardeventscommand_); break; } // .pybullet_grpc.RequestCameraImageCommand requestCameraImageCommand = 21; case kRequestCameraImageCommand: { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.requestcameraimagecommand_); break; } // .pybullet_grpc.ResetSimulationCommand resetSimulationCommand = 22; case kResetSimulationCommand: { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize( *commands_.resetsimulationcommand_); break; } case COMMANDS_NOT_SET: { break; } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void PyBulletCommand::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.PyBulletCommand) GOOGLE_DCHECK_NE(&from, this); const PyBulletCommand* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.PyBulletCommand) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.PyBulletCommand) MergeFrom(*source); } } 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) { set_commandtype(from.commandtype()); } switch (from.commands_case()) { case kLoadUrdfCommand: { mutable_loadurdfcommand()->::pybullet_grpc::LoadUrdfCommand::MergeFrom(from.loadurdfcommand()); break; } case kTerminateServerCommand: { mutable_terminateservercommand()->::pybullet_grpc::TerminateServerCommand::MergeFrom(from.terminateservercommand()); break; } case kStepSimulationCommand: { mutable_stepsimulationcommand()->::pybullet_grpc::StepSimulationCommand::MergeFrom(from.stepsimulationcommand()); break; } case kLoadSdfCommand: { mutable_loadsdfcommand()->::pybullet_grpc::LoadSdfCommand::MergeFrom(from.loadsdfcommand()); break; } case kLoadMjcfCommand: { mutable_loadmjcfcommand()->::pybullet_grpc::LoadMjcfCommand::MergeFrom(from.loadmjcfcommand()); break; } case kChangeDynamicsCommand: { mutable_changedynamicscommand()->::pybullet_grpc::ChangeDynamicsCommand::MergeFrom(from.changedynamicscommand()); break; } case kGetDynamicsCommand: { mutable_getdynamicscommand()->::pybullet_grpc::GetDynamicsCommand::MergeFrom(from.getdynamicscommand()); break; } case kInitPoseCommand: { mutable_initposecommand()->::pybullet_grpc::InitPoseCommand::MergeFrom(from.initposecommand()); break; } case kRequestActualStateCommand: { mutable_requestactualstatecommand()->::pybullet_grpc::RequestActualStateCommand::MergeFrom(from.requestactualstatecommand()); break; } case kConfigureOpenGLVisualizerCommand: { mutable_configureopenglvisualizercommand()->::pybullet_grpc::ConfigureOpenGLVisualizerCommand::MergeFrom(from.configureopenglvisualizercommand()); break; } case kSyncBodiesCommand: { mutable_syncbodiescommand()->::pybullet_grpc::SyncBodiesCommand::MergeFrom(from.syncbodiescommand()); break; } case kRequestBodyInfoCommand: { mutable_requestbodyinfocommand()->::pybullet_grpc::RequestBodyInfoCommand::MergeFrom(from.requestbodyinfocommand()); break; } case kSetPhysicsSimulationParametersCommand: { mutable_setphysicssimulationparameterscommand()->::pybullet_grpc::PhysicsSimulationParametersCommand::MergeFrom(from.setphysicssimulationparameterscommand()); break; } case kJointMotorControlCommand: { mutable_jointmotorcontrolcommand()->::pybullet_grpc::JointMotorControlCommand::MergeFrom(from.jointmotorcontrolcommand()); break; } case kUserConstraintCommand: { mutable_userconstraintcommand()->::pybullet_grpc::UserConstraintCommand::MergeFrom(from.userconstraintcommand()); break; } case kCheckVersionCommand: { mutable_checkversioncommand()->::pybullet_grpc::CheckVersionCommand::MergeFrom(from.checkversioncommand()); break; } case kRequestKeyboardEventsCommand: { mutable_requestkeyboardeventscommand()->::pybullet_grpc::RequestKeyboardEventsCommand::MergeFrom(from.requestkeyboardeventscommand()); break; } case kRequestCameraImageCommand: { mutable_requestcameraimagecommand()->::pybullet_grpc::RequestCameraImageCommand::MergeFrom(from.requestcameraimagecommand()); break; } case kResetSimulationCommand: { mutable_resetsimulationcommand()->::pybullet_grpc::ResetSimulationCommand::MergeFrom(from.resetsimulationcommand()); break; } case COMMANDS_NOT_SET: { break; } } } void PyBulletCommand::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.PyBulletCommand) if (&from == this) return; Clear(); MergeFrom(from); } void PyBulletCommand::CopyFrom(const PyBulletCommand& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.PyBulletCommand) if (&from == this) return; Clear(); MergeFrom(from); } bool PyBulletCommand::IsInitialized() const { return true; } void PyBulletCommand::Swap(PyBulletCommand* other) { if (other == this) return; InternalSwap(other); } void PyBulletCommand::InternalSwap(PyBulletCommand* other) { 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[kIndexInFileMessages]; } // =================================================================== 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; const int PyBulletStatus::kUnknownStatusBinaryBlobFieldNumber; const int PyBulletStatus::kUrdfStatusFieldNumber; const int PyBulletStatus::kSdfStatusFieldNumber; const int PyBulletStatus::kMjcfStatusFieldNumber; const int PyBulletStatus::kGetDynamicsStatusFieldNumber; const int PyBulletStatus::kActualStateStatusFieldNumber; const int PyBulletStatus::kSyncBodiesStatusFieldNumber; const int PyBulletStatus::kRequestBodyInfoStatusFieldNumber; const int PyBulletStatus::kRequestPhysicsSimulationParametersStatusFieldNumber; const int PyBulletStatus::kCheckVersionStatusFieldNumber; const int PyBulletStatus::kUserConstraintStatusFieldNumber; const int PyBulletStatus::kUserConstraintStateStatusFieldNumber; const int PyBulletStatus::kKeyboardEventsStatusFieldNumber; const int PyBulletStatus::kRequestCameraImageStatusFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 PyBulletStatus::PyBulletStatus() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_pybullet_2eproto::scc_info_PyBulletStatus.base); SharedCtor(); // @@protoc_insertion_point(constructor:pybullet_grpc.PyBulletStatus) } PyBulletStatus::PyBulletStatus(const PyBulletStatus& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), binaryblob_(from.binaryblob_), unknownstatusbinaryblob_(from.unknownstatusbinaryblob_) { _internal_metadata_.MergeFrom(from._internal_metadata_); statustype_ = from.statustype_; clear_has_status(); switch (from.status_case()) { case kUrdfStatus: { mutable_urdfstatus()->::pybullet_grpc::LoadUrdfStatus::MergeFrom(from.urdfstatus()); break; } case kSdfStatus: { mutable_sdfstatus()->::pybullet_grpc::SdfLoadedStatus::MergeFrom(from.sdfstatus()); break; } case kMjcfStatus: { mutable_mjcfstatus()->::pybullet_grpc::MjcfLoadedStatus::MergeFrom(from.mjcfstatus()); break; } case kGetDynamicsStatus: { mutable_getdynamicsstatus()->::pybullet_grpc::GetDynamicsStatus::MergeFrom(from.getdynamicsstatus()); break; } case kActualStateStatus: { mutable_actualstatestatus()->::pybullet_grpc::SendActualStateStatus::MergeFrom(from.actualstatestatus()); break; } case kSyncBodiesStatus: { mutable_syncbodiesstatus()->::pybullet_grpc::SyncBodiesStatus::MergeFrom(from.syncbodiesstatus()); break; } case kRequestBodyInfoStatus: { mutable_requestbodyinfostatus()->::pybullet_grpc::RequestBodyInfoStatus::MergeFrom(from.requestbodyinfostatus()); break; } case kRequestPhysicsSimulationParametersStatus: { mutable_requestphysicssimulationparametersstatus()->::pybullet_grpc::PhysicsSimulationParameters::MergeFrom(from.requestphysicssimulationparametersstatus()); break; } case kCheckVersionStatus: { mutable_checkversionstatus()->::pybullet_grpc::CheckVersionStatus::MergeFrom(from.checkversionstatus()); break; } case kUserConstraintStatus: { mutable_userconstraintstatus()->::pybullet_grpc::UserConstraintStatus::MergeFrom(from.userconstraintstatus()); break; } case kUserConstraintStateStatus: { mutable_userconstraintstatestatus()->::pybullet_grpc::UserConstraintStateStatus::MergeFrom(from.userconstraintstatestatus()); break; } case kKeyboardEventsStatus: { mutable_keyboardeventsstatus()->::pybullet_grpc::KeyboardEventsStatus::MergeFrom(from.keyboardeventsstatus()); break; } case kRequestCameraImageStatus: { mutable_requestcameraimagestatus()->::pybullet_grpc::RequestCameraImageStatus::MergeFrom(from.requestcameraimagestatus()); break; } case STATUS_NOT_SET: { break; } } // @@protoc_insertion_point(copy_constructor:pybullet_grpc.PyBulletStatus) } void PyBulletStatus::SharedCtor() { statustype_ = 0; clear_has_status(); } PyBulletStatus::~PyBulletStatus() { // @@protoc_insertion_point(destructor:pybullet_grpc.PyBulletStatus) SharedDtor(); } void PyBulletStatus::SharedDtor() { if (has_status()) { clear_status(); } } void PyBulletStatus::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* PyBulletStatus::descriptor() { ::protobuf_pybullet_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_pybullet_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const PyBulletStatus& PyBulletStatus::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_pybullet_2eproto::scc_info_PyBulletStatus.base); return *internal_default_instance(); } void PyBulletStatus::clear_status() { // @@protoc_insertion_point(one_of_clear_start:pybullet_grpc.PyBulletStatus) switch (status_case()) { case kUrdfStatus: { delete status_.urdfstatus_; break; } case kSdfStatus: { delete status_.sdfstatus_; break; } case kMjcfStatus: { delete status_.mjcfstatus_; break; } case kGetDynamicsStatus: { delete status_.getdynamicsstatus_; break; } case kActualStateStatus: { delete status_.actualstatestatus_; break; } case kSyncBodiesStatus: { delete status_.syncbodiesstatus_; break; } case kRequestBodyInfoStatus: { delete status_.requestbodyinfostatus_; break; } case kRequestPhysicsSimulationParametersStatus: { delete status_.requestphysicssimulationparametersstatus_; break; } case kCheckVersionStatus: { delete status_.checkversionstatus_; break; } case kUserConstraintStatus: { delete status_.userconstraintstatus_; break; } case kUserConstraintStateStatus: { delete status_.userconstraintstatestatus_; break; } case kKeyboardEventsStatus: { delete status_.keyboardeventsstatus_; break; } case kRequestCameraImageStatus: { delete status_.requestcameraimagestatus_; break; } case STATUS_NOT_SET: { break; } } _oneof_case_[0] = STATUS_NOT_SET; } 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( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:pybullet_grpc.PyBulletStatus) for (;;) { ::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 (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>( input, &statustype_))); } else { goto handle_unusual; } break; } // repeated bytes binaryBlob = 2; case 2: { 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 { goto handle_unusual; } break; } // repeated bytes unknownStatusBinaryBlob = 3; case 3: { 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 { goto handle_unusual; } break; } // .pybullet_grpc.LoadUrdfStatus urdfStatus = 4; case 4: { 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; } break; } // .pybullet_grpc.SdfLoadedStatus sdfStatus = 5; case 5: { 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; } break; } // .pybullet_grpc.MjcfLoadedStatus mjcfStatus = 6; case 6: { 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; } break; } // .pybullet_grpc.GetDynamicsStatus getDynamicsStatus = 7; case 7: { 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; } break; } // .pybullet_grpc.SendActualStateStatus actualStateStatus = 8; case 8: { 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; } break; } // .pybullet_grpc.SyncBodiesStatus syncBodiesStatus = 9; case 9: { 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; } break; } // .pybullet_grpc.RequestBodyInfoStatus requestBodyInfoStatus = 10; case 10: { 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; } break; } // .pybullet_grpc.PhysicsSimulationParameters requestPhysicsSimulationParametersStatus = 11; case 11: { 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; } break; } // .pybullet_grpc.CheckVersionStatus checkVersionStatus = 12; case 12: { 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; } break; } // .pybullet_grpc.UserConstraintStatus userConstraintStatus = 13; case 13: { 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; } break; } // .pybullet_grpc.UserConstraintStateStatus userConstraintStateStatus = 14; case 14: { 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; } break; } // .pybullet_grpc.KeyboardEventsStatus keyboardEventsStatus = 15; case 15: { 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; } break; } // .pybullet_grpc.RequestCameraImageStatus requestCameraImageStatus = 16; case 16: { 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; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:pybullet_grpc.PyBulletStatus) return true; failure: // @@protoc_insertion_point(parse_failure:pybullet_grpc.PyBulletStatus) return false; #undef DO_ } 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, 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, n = this->unknownstatusbinaryblob_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteBytes( 3, this->unknownstatusbinaryblob(i), output); } // .pybullet_grpc.LoadUrdfStatus urdfStatus = 4; if (has_urdfstatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->_internal_urdfstatus(), output); } // .pybullet_grpc.SdfLoadedStatus sdfStatus = 5; if (has_sdfstatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, this->_internal_sdfstatus(), output); } // .pybullet_grpc.MjcfLoadedStatus mjcfStatus = 6; if (has_mjcfstatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 6, this->_internal_mjcfstatus(), output); } // .pybullet_grpc.GetDynamicsStatus getDynamicsStatus = 7; if (has_getdynamicsstatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 7, this->_internal_getdynamicsstatus(), output); } // .pybullet_grpc.SendActualStateStatus actualStateStatus = 8; if (has_actualstatestatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 8, this->_internal_actualstatestatus(), output); } // .pybullet_grpc.SyncBodiesStatus syncBodiesStatus = 9; if (has_syncbodiesstatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 9, this->_internal_syncbodiesstatus(), output); } // .pybullet_grpc.RequestBodyInfoStatus requestBodyInfoStatus = 10; if (has_requestbodyinfostatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 10, this->_internal_requestbodyinfostatus(), output); } // .pybullet_grpc.PhysicsSimulationParameters requestPhysicsSimulationParametersStatus = 11; if (has_requestphysicssimulationparametersstatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 11, this->_internal_requestphysicssimulationparametersstatus(), output); } // .pybullet_grpc.CheckVersionStatus checkVersionStatus = 12; if (has_checkversionstatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 12, this->_internal_checkversionstatus(), output); } // .pybullet_grpc.UserConstraintStatus userConstraintStatus = 13; if (has_userconstraintstatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 13, this->_internal_userconstraintstatus(), output); } // .pybullet_grpc.UserConstraintStateStatus userConstraintStateStatus = 14; if (has_userconstraintstatestatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 14, this->_internal_userconstraintstatestatus(), output); } // .pybullet_grpc.KeyboardEventsStatus keyboardEventsStatus = 15; if (has_keyboardeventsstatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 15, this->_internal_keyboardeventsstatus(), output); } // .pybullet_grpc.RequestCameraImageStatus requestCameraImageStatus = 16; if (has_requestcameraimagestatus()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 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 // @@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, 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, n = this->unknownstatusbinaryblob_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteBytesToArray(3, this->unknownstatusbinaryblob(i), target); } // .pybullet_grpc.LoadUrdfStatus urdfStatus = 4; if (has_urdfstatus()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 4, this->_internal_urdfstatus(), deterministic, target); } // .pybullet_grpc.SdfLoadedStatus sdfStatus = 5; if (has_sdfstatus()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 5, this->_internal_sdfstatus(), deterministic, target); } // .pybullet_grpc.MjcfLoadedStatus mjcfStatus = 6; if (has_mjcfstatus()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 6, this->_internal_mjcfstatus(), deterministic, target); } // .pybullet_grpc.GetDynamicsStatus getDynamicsStatus = 7; if (has_getdynamicsstatus()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 7, this->_internal_getdynamicsstatus(), deterministic, target); } // .pybullet_grpc.SendActualStateStatus actualStateStatus = 8; if (has_actualstatestatus()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 8, this->_internal_actualstatestatus(), deterministic, target); } // .pybullet_grpc.SyncBodiesStatus syncBodiesStatus = 9; if (has_syncbodiesstatus()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 9, this->_internal_syncbodiesstatus(), deterministic, target); } // .pybullet_grpc.RequestBodyInfoStatus requestBodyInfoStatus = 10; if (has_requestbodyinfostatus()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 10, this->_internal_requestbodyinfostatus(), deterministic, target); } // .pybullet_grpc.PhysicsSimulationParameters requestPhysicsSimulationParametersStatus = 11; if (has_requestphysicssimulationparametersstatus()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 11, this->_internal_requestphysicssimulationparametersstatus(), deterministic, target); } // .pybullet_grpc.CheckVersionStatus checkVersionStatus = 12; if (has_checkversionstatus()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 12, this->_internal_checkversionstatus(), deterministic, target); } // .pybullet_grpc.UserConstraintStatus userConstraintStatus = 13; if (has_userconstraintstatus()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 13, this->_internal_userconstraintstatus(), deterministic, target); } // .pybullet_grpc.UserConstraintStateStatus userConstraintStateStatus = 14; if (has_userconstraintstatestatus()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 14, this->_internal_userconstraintstatestatus(), deterministic, target); } // .pybullet_grpc.KeyboardEventsStatus keyboardEventsStatus = 15; if (has_keyboardeventsstatus()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 15, this->_internal_keyboardeventsstatus(), deterministic, target); } // .pybullet_grpc.RequestCameraImageStatus requestCameraImageStatus = 16; if (has_requestcameraimagestatus()) { target = ::google::protobuf::internal::WireFormatLite:: 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; } 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, n = this->binaryblob_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( this->binaryblob(i)); } // repeated bytes unknownStatusBinaryBlob = 3; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->unknownstatusbinaryblob_size()); for (int i = 0, n = this->unknownstatusbinaryblob_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( this->unknownstatusbinaryblob(i)); } // int32 statusType = 1; if (this->statustype() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->statustype()); } switch (status_case()) { // .pybullet_grpc.LoadUrdfStatus urdfStatus = 4; case kUrdfStatus: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.urdfstatus_); break; } // .pybullet_grpc.SdfLoadedStatus sdfStatus = 5; case kSdfStatus: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.sdfstatus_); break; } // .pybullet_grpc.MjcfLoadedStatus mjcfStatus = 6; case kMjcfStatus: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.mjcfstatus_); break; } // .pybullet_grpc.GetDynamicsStatus getDynamicsStatus = 7; case kGetDynamicsStatus: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.getdynamicsstatus_); break; } // .pybullet_grpc.SendActualStateStatus actualStateStatus = 8; case kActualStateStatus: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.actualstatestatus_); break; } // .pybullet_grpc.SyncBodiesStatus syncBodiesStatus = 9; case kSyncBodiesStatus: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.syncbodiesstatus_); break; } // .pybullet_grpc.RequestBodyInfoStatus requestBodyInfoStatus = 10; case kRequestBodyInfoStatus: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.requestbodyinfostatus_); break; } // .pybullet_grpc.PhysicsSimulationParameters requestPhysicsSimulationParametersStatus = 11; case kRequestPhysicsSimulationParametersStatus: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.requestphysicssimulationparametersstatus_); break; } // .pybullet_grpc.CheckVersionStatus checkVersionStatus = 12; case kCheckVersionStatus: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.checkversionstatus_); break; } // .pybullet_grpc.UserConstraintStatus userConstraintStatus = 13; case kUserConstraintStatus: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.userconstraintstatus_); break; } // .pybullet_grpc.UserConstraintStateStatus userConstraintStateStatus = 14; case kUserConstraintStateStatus: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.userconstraintstatestatus_); break; } // .pybullet_grpc.KeyboardEventsStatus keyboardEventsStatus = 15; case kKeyboardEventsStatus: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.keyboardeventsstatus_); break; } // .pybullet_grpc.RequestCameraImageStatus requestCameraImageStatus = 16; case kRequestCameraImageStatus: { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_.requestcameraimagestatus_); break; } case STATUS_NOT_SET: { break; } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void PyBulletStatus::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:pybullet_grpc.PyBulletStatus) GOOGLE_DCHECK_NE(&from, this); const PyBulletStatus* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:pybullet_grpc.PyBulletStatus) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:pybullet_grpc.PyBulletStatus) MergeFrom(*source); } } 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) { set_statustype(from.statustype()); } switch (from.status_case()) { case kUrdfStatus: { mutable_urdfstatus()->::pybullet_grpc::LoadUrdfStatus::MergeFrom(from.urdfstatus()); break; } case kSdfStatus: { mutable_sdfstatus()->::pybullet_grpc::SdfLoadedStatus::MergeFrom(from.sdfstatus()); break; } case kMjcfStatus: { mutable_mjcfstatus()->::pybullet_grpc::MjcfLoadedStatus::MergeFrom(from.mjcfstatus()); break; } case kGetDynamicsStatus: { mutable_getdynamicsstatus()->::pybullet_grpc::GetDynamicsStatus::MergeFrom(from.getdynamicsstatus()); break; } case kActualStateStatus: { mutable_actualstatestatus()->::pybullet_grpc::SendActualStateStatus::MergeFrom(from.actualstatestatus()); break; } case kSyncBodiesStatus: { mutable_syncbodiesstatus()->::pybullet_grpc::SyncBodiesStatus::MergeFrom(from.syncbodiesstatus()); break; } case kRequestBodyInfoStatus: { mutable_requestbodyinfostatus()->::pybullet_grpc::RequestBodyInfoStatus::MergeFrom(from.requestbodyinfostatus()); break; } case kRequestPhysicsSimulationParametersStatus: { mutable_requestphysicssimulationparametersstatus()->::pybullet_grpc::PhysicsSimulationParameters::MergeFrom(from.requestphysicssimulationparametersstatus()); break; } case kCheckVersionStatus: { mutable_checkversionstatus()->::pybullet_grpc::CheckVersionStatus::MergeFrom(from.checkversionstatus()); break; } case kUserConstraintStatus: { mutable_userconstraintstatus()->::pybullet_grpc::UserConstraintStatus::MergeFrom(from.userconstraintstatus()); break; } case kUserConstraintStateStatus: { mutable_userconstraintstatestatus()->::pybullet_grpc::UserConstraintStateStatus::MergeFrom(from.userconstraintstatestatus()); break; } case kKeyboardEventsStatus: { mutable_keyboardeventsstatus()->::pybullet_grpc::KeyboardEventsStatus::MergeFrom(from.keyboardeventsstatus()); break; } case kRequestCameraImageStatus: { mutable_requestcameraimagestatus()->::pybullet_grpc::RequestCameraImageStatus::MergeFrom(from.requestcameraimagestatus()); break; } case STATUS_NOT_SET: { break; } } } void PyBulletStatus::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:pybullet_grpc.PyBulletStatus) if (&from == this) return; Clear(); MergeFrom(from); } void PyBulletStatus::CopyFrom(const PyBulletStatus& from) { // @@protoc_insertion_point(class_specific_copy_from_start:pybullet_grpc.PyBulletStatus) if (&from == this) return; Clear(); MergeFrom(from); } bool PyBulletStatus::IsInitialized() const { return true; } void PyBulletStatus::Swap(PyBulletStatus* other) { if (other == this) return; InternalSwap(other); } void PyBulletStatus::InternalSwap(PyBulletStatus* other) { 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[kIndexInFileMessages]; } // @@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::ResetSimulationCommand* Arena::CreateMaybeMessage< ::pybullet_grpc::ResetSimulationCommand >(Arena* arena) { return Arena::CreateInternal< ::pybullet_grpc::ResetSimulationCommand >(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)