You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Standard types (numbers, string, enums, messages, etc)
supported
Repeated fields
supported
Packed attributes
supported
Extensions
alpha
Unknown fields
beta
Service (RPC)
not supported yet
64bit values
EXPERIMENTAL
PHP specific features
__sleep and __wakeup method support.
You can use above magic methods when enabling UseWakeupAndSleep flag. Be careful, this feature is not part of protocolbuffers specification.
these method will call when parseFromString and serializeToString (also supports ProtocolBuffers::decode and ProtocolBuffers::encode)
$phpoptions = $descriptor_builder->getOptions()->getExtension(ProtocolBuffers::PHP_MESSAGE_OPTION);
$phpoptions->setUseWakeupAndSleep(true); // default is off
$descriptor = $descriptor_builder->build();