@@ -12,8 +12,8 @@ static void google_protobuf_empty_proto_AddDescriptor();
1212static void google_protobuf_field_mask_proto_AddDescriptor ();
1313static void google_protobuf_source_context_proto_AddDescriptor ();
1414static void google_protobuf_struct_proto_AddDescriptor ();
15- static void google_protobuf_timestamp_proto_AddDescriptor ();
1615static void google_protobuf_type_proto_AddDescriptor ();
16+ static void google_protobuf_timestamp_proto_AddDescriptor ();
1717static void google_protobuf_wrappers_proto_AddDescriptor ();
1818/* google/protobuf/any.proto */
1919
@@ -1610,127 +1610,6 @@ static void google_protobuf_NullValue_ModuleInit() {
16101610 strlen (" NULL_VALUE" ), 0 );
16111611}
16121612
1613- /* google/protobuf/timestamp.proto */
1614-
1615- zend_class_entry* GPBMetadata_Google_Protobuf_Timestamp_ce;
1616-
1617- const char google_protobuf_timestamp_proto_descriptor [239 ] = {
1618- ' \n ' , ' \037 ' , ' g' , ' o' , ' o' , ' g' , ' l' , ' e' , ' /' , ' p' , ' r' , ' o' , ' t' , ' o' , ' b' , ' u' , ' f' , ' /' , ' t' , ' i' , ' m' , ' e' , ' s' , ' t' , ' a' ,
1619- ' m' , ' p' , ' .' , ' p' , ' r' , ' o' , ' t' , ' o' , ' \022 ' , ' \017 ' , ' g' , ' o' , ' o' , ' g' , ' l' , ' e' , ' .' , ' p' , ' r' , ' o' , ' t' , ' o' , ' b' , ' u' , ' f' ,
1620- ' \" ' , ' +' , ' \n ' , ' \t ' , ' T' , ' i' , ' m' , ' e' , ' s' , ' t' , ' a' , ' m' , ' p' , ' \022 ' , ' \017 ' , ' \n ' , ' \007 ' , ' s' , ' e' , ' c' , ' o' , ' n' , ' d' , ' s' , ' \030 ' ,
1621- ' \001 ' , ' ' , ' \001 ' , ' (' , ' \003 ' , ' \022 ' , ' \r ' , ' \n ' , ' \005 ' , ' n' , ' a' , ' n' , ' o' , ' s' , ' \030 ' , ' \002 ' , ' ' , ' \001 ' , ' (' , ' \005 ' , ' B' , ' \205 ' , ' \001 ' , ' \n ' , ' \023 ' ,
1622- ' c' , ' o' , ' m' , ' .' , ' g' , ' o' , ' o' , ' g' , ' l' , ' e' , ' .' , ' p' , ' r' , ' o' , ' t' , ' o' , ' b' , ' u' , ' f' , ' B' , ' \016 ' , ' T' , ' i' , ' m' , ' e' ,
1623- ' s' , ' t' , ' a' , ' m' , ' p' , ' P' , ' r' , ' o' , ' t' , ' o' , ' P' , ' \001 ' , ' Z' , ' 2' , ' g' , ' o' , ' o' , ' g' , ' l' , ' e' , ' .' , ' g' , ' o' , ' l' , ' a' ,
1624- ' n' , ' g' , ' .' , ' o' , ' r' , ' g' , ' /' , ' p' , ' r' , ' o' , ' t' , ' o' , ' b' , ' u' , ' f' , ' /' , ' t' , ' y' , ' p' , ' e' , ' s' , ' /' , ' k' , ' n' , ' o' ,
1625- ' w' , ' n' , ' /' , ' t' , ' i' , ' m' , ' e' , ' s' , ' t' , ' a' , ' m' , ' p' , ' p' , ' b' , ' \370 ' , ' \001 ' , ' \001 ' , ' \242 ' , ' \002 ' , ' \003 ' , ' G' , ' P' , ' B' , ' \252 ' , ' \002 ' ,
1626- ' \036 ' , ' G' , ' o' , ' o' , ' g' , ' l' , ' e' , ' .' , ' P' , ' r' , ' o' , ' t' , ' o' , ' b' , ' u' , ' f' , ' .' , ' W' , ' e' , ' l' , ' l' , ' K' , ' n' , ' o' , ' w' ,
1627- ' n' , ' T' , ' y' , ' p' , ' e' , ' s' , ' b' , ' \006 ' , ' p' , ' r' , ' o' , ' t' , ' o' , ' 3' ,
1628- };
1629-
1630- static void google_protobuf_timestamp_proto_AddDescriptor () {
1631- if (DescriptorPool_HasFile (" google/protobuf/timestamp.proto" )) return ;
1632- DescriptorPool_AddDescriptor (" google/protobuf/timestamp.proto" , google_protobuf_timestamp_proto_descriptor,
1633- sizeof (google_protobuf_timestamp_proto_descriptor));
1634- }
1635-
1636- static PHP_METHOD (GPBMetadata_Google_Protobuf_Timestamp, initOnce) {
1637- google_protobuf_timestamp_proto_AddDescriptor ();
1638- }
1639-
1640- static zend_function_entry GPBMetadata_Google_Protobuf_Timestamp_methods[] = {
1641- PHP_ME (GPBMetadata_Google_Protobuf_Timestamp, initOnce, arginfo_void, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
1642- ZEND_FE_END
1643- };
1644-
1645- static void GPBMetadata_Google_Protobuf_Timestamp_ModuleInit () {
1646- zend_class_entry tmp_ce;
1647-
1648- INIT_CLASS_ENTRY (tmp_ce, " GPBMetadata\\ Google\\ Protobuf\\ Timestamp" ,
1649- GPBMetadata_Google_Protobuf_Timestamp_methods);
1650-
1651- GPBMetadata_Google_Protobuf_Timestamp_ce = zend_register_internal_class (&tmp_ce);
1652- }
1653-
1654- /* google_protobuf_Timestamp */
1655-
1656- zend_class_entry* google_protobuf_Timestamp_ce;
1657-
1658- static PHP_METHOD (google_protobuf_Timestamp, __construct) {
1659- google_protobuf_timestamp_proto_AddDescriptor ();
1660- zim_Message___construct (INTERNAL_FUNCTION_PARAM_PASSTHRU);
1661- }
1662-
1663- static PHP_METHOD (google_protobuf_Timestamp, getSeconds) {
1664- Message* intern = (Message*)Z_OBJ_P (getThis ());
1665- const upb_FieldDef *f = upb_MessageDef_FindFieldByName (
1666- intern->desc ->msgdef , " seconds" );
1667- zval ret;
1668- Message_get (intern, f, &ret);
1669- RETURN_COPY_VALUE (&ret);
1670- }
1671-
1672- static PHP_METHOD (google_protobuf_Timestamp, setSeconds) {
1673- Message* intern = (Message*)Z_OBJ_P (getThis ());
1674- const upb_FieldDef *f = upb_MessageDef_FindFieldByName (
1675- intern->desc ->msgdef , " seconds" );
1676- zval *val;
1677- if (zend_parse_parameters (ZEND_NUM_ARGS (), " z" , &val)
1678- == FAILURE) {
1679- return ;
1680- }
1681- Message_set (intern, f, val);
1682- RETURN_COPY (getThis ());
1683- }
1684-
1685- static PHP_METHOD (google_protobuf_Timestamp, getNanos) {
1686- Message* intern = (Message*)Z_OBJ_P (getThis ());
1687- const upb_FieldDef *f = upb_MessageDef_FindFieldByName (
1688- intern->desc ->msgdef , " nanos" );
1689- zval ret;
1690- Message_get (intern, f, &ret);
1691- RETURN_COPY_VALUE (&ret);
1692- }
1693-
1694- static PHP_METHOD (google_protobuf_Timestamp, setNanos) {
1695- Message* intern = (Message*)Z_OBJ_P (getThis ());
1696- const upb_FieldDef *f = upb_MessageDef_FindFieldByName (
1697- intern->desc ->msgdef , " nanos" );
1698- zval *val;
1699- if (zend_parse_parameters (ZEND_NUM_ARGS (), " z" , &val)
1700- == FAILURE) {
1701- return ;
1702- }
1703- Message_set (intern, f, val);
1704- RETURN_COPY (getThis ());
1705- }
1706-
1707- ZEND_BEGIN_ARG_INFO_EX (arginfo_timestamp_fromdatetime, 0 , 0 , 1 )
1708- ZEND_ARG_INFO(0 , datetime)
1709- ZEND_END_ARG_INFO()
1710-
1711- static zend_function_entry google_protobuf_Timestamp_phpmethods[] = {
1712- PHP_ME (google_protobuf_Timestamp, __construct, arginfo_construct, ZEND_ACC_PUBLIC)
1713- PHP_ME (google_protobuf_Timestamp, getSeconds, arginfo_void, ZEND_ACC_PUBLIC)
1714- PHP_ME (google_protobuf_Timestamp, setSeconds, arginfo_setter, ZEND_ACC_PUBLIC)
1715- PHP_ME (google_protobuf_Timestamp, getNanos, arginfo_void, ZEND_ACC_PUBLIC)
1716- PHP_ME (google_protobuf_Timestamp, setNanos, arginfo_setter, ZEND_ACC_PUBLIC)
1717- PHP_ME (google_protobuf_Timestamp, fromDateTime, arginfo_timestamp_fromdatetime, ZEND_ACC_PUBLIC)
1718- PHP_ME (google_protobuf_Timestamp, toDateTime, arginfo_void, ZEND_ACC_PUBLIC)
1719- ZEND_FE_END
1720- };
1721-
1722- static void google_protobuf_Timestamp_ModuleInit () {
1723- zend_class_entry tmp_ce;
1724-
1725- INIT_CLASS_ENTRY (tmp_ce, " Google\\ Protobuf\\ Timestamp" ,
1726- google_protobuf_Timestamp_phpmethods);
1727-
1728- google_protobuf_Timestamp_ce = zend_register_internal_class (&tmp_ce);
1729- google_protobuf_Timestamp_ce->ce_flags |= ZEND_ACC_FINAL;
1730- google_protobuf_Timestamp_ce->create_object = Message_create;
1731- zend_do_inheritance (google_protobuf_Timestamp_ce, message_ce);
1732- }
1733-
17341613/* google/protobuf/type.proto */
17351614
17361615zend_class_entry* GPBMetadata_Google_Protobuf_Type_ce;
@@ -2894,6 +2773,127 @@ static void google_protobuf_Syntax_ModuleInit() {
28942773 strlen (" SYNTAX_EDITIONS" ), 2 );
28952774}
28962775
2776+ /* google/protobuf/timestamp.proto */
2777+
2778+ zend_class_entry* GPBMetadata_Google_Protobuf_Timestamp_ce;
2779+
2780+ const char google_protobuf_timestamp_proto_descriptor [239 ] = {
2781+ ' \n ' , ' \037 ' , ' g' , ' o' , ' o' , ' g' , ' l' , ' e' , ' /' , ' p' , ' r' , ' o' , ' t' , ' o' , ' b' , ' u' , ' f' , ' /' , ' t' , ' i' , ' m' , ' e' , ' s' , ' t' , ' a' ,
2782+ ' m' , ' p' , ' .' , ' p' , ' r' , ' o' , ' t' , ' o' , ' \022 ' , ' \017 ' , ' g' , ' o' , ' o' , ' g' , ' l' , ' e' , ' .' , ' p' , ' r' , ' o' , ' t' , ' o' , ' b' , ' u' , ' f' ,
2783+ ' \" ' , ' +' , ' \n ' , ' \t ' , ' T' , ' i' , ' m' , ' e' , ' s' , ' t' , ' a' , ' m' , ' p' , ' \022 ' , ' \017 ' , ' \n ' , ' \007 ' , ' s' , ' e' , ' c' , ' o' , ' n' , ' d' , ' s' , ' \030 ' ,
2784+ ' \001 ' , ' ' , ' \001 ' , ' (' , ' \003 ' , ' \022 ' , ' \r ' , ' \n ' , ' \005 ' , ' n' , ' a' , ' n' , ' o' , ' s' , ' \030 ' , ' \002 ' , ' ' , ' \001 ' , ' (' , ' \005 ' , ' B' , ' \205 ' , ' \001 ' , ' \n ' , ' \023 ' ,
2785+ ' c' , ' o' , ' m' , ' .' , ' g' , ' o' , ' o' , ' g' , ' l' , ' e' , ' .' , ' p' , ' r' , ' o' , ' t' , ' o' , ' b' , ' u' , ' f' , ' B' , ' \016 ' , ' T' , ' i' , ' m' , ' e' ,
2786+ ' s' , ' t' , ' a' , ' m' , ' p' , ' P' , ' r' , ' o' , ' t' , ' o' , ' P' , ' \001 ' , ' Z' , ' 2' , ' g' , ' o' , ' o' , ' g' , ' l' , ' e' , ' .' , ' g' , ' o' , ' l' , ' a' ,
2787+ ' n' , ' g' , ' .' , ' o' , ' r' , ' g' , ' /' , ' p' , ' r' , ' o' , ' t' , ' o' , ' b' , ' u' , ' f' , ' /' , ' t' , ' y' , ' p' , ' e' , ' s' , ' /' , ' k' , ' n' , ' o' ,
2788+ ' w' , ' n' , ' /' , ' t' , ' i' , ' m' , ' e' , ' s' , ' t' , ' a' , ' m' , ' p' , ' p' , ' b' , ' \370 ' , ' \001 ' , ' \001 ' , ' \242 ' , ' \002 ' , ' \003 ' , ' G' , ' P' , ' B' , ' \252 ' , ' \002 ' ,
2789+ ' \036 ' , ' G' , ' o' , ' o' , ' g' , ' l' , ' e' , ' .' , ' P' , ' r' , ' o' , ' t' , ' o' , ' b' , ' u' , ' f' , ' .' , ' W' , ' e' , ' l' , ' l' , ' K' , ' n' , ' o' , ' w' ,
2790+ ' n' , ' T' , ' y' , ' p' , ' e' , ' s' , ' b' , ' \006 ' , ' p' , ' r' , ' o' , ' t' , ' o' , ' 3' ,
2791+ };
2792+
2793+ static void google_protobuf_timestamp_proto_AddDescriptor () {
2794+ if (DescriptorPool_HasFile (" google/protobuf/timestamp.proto" )) return ;
2795+ DescriptorPool_AddDescriptor (" google/protobuf/timestamp.proto" , google_protobuf_timestamp_proto_descriptor,
2796+ sizeof (google_protobuf_timestamp_proto_descriptor));
2797+ }
2798+
2799+ static PHP_METHOD (GPBMetadata_Google_Protobuf_Timestamp, initOnce) {
2800+ google_protobuf_timestamp_proto_AddDescriptor ();
2801+ }
2802+
2803+ static zend_function_entry GPBMetadata_Google_Protobuf_Timestamp_methods[] = {
2804+ PHP_ME (GPBMetadata_Google_Protobuf_Timestamp, initOnce, arginfo_void, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
2805+ ZEND_FE_END
2806+ };
2807+
2808+ static void GPBMetadata_Google_Protobuf_Timestamp_ModuleInit () {
2809+ zend_class_entry tmp_ce;
2810+
2811+ INIT_CLASS_ENTRY (tmp_ce, " GPBMetadata\\ Google\\ Protobuf\\ Timestamp" ,
2812+ GPBMetadata_Google_Protobuf_Timestamp_methods);
2813+
2814+ GPBMetadata_Google_Protobuf_Timestamp_ce = zend_register_internal_class (&tmp_ce);
2815+ }
2816+
2817+ /* google_protobuf_Timestamp */
2818+
2819+ zend_class_entry* google_protobuf_Timestamp_ce;
2820+
2821+ static PHP_METHOD (google_protobuf_Timestamp, __construct) {
2822+ google_protobuf_timestamp_proto_AddDescriptor ();
2823+ zim_Message___construct (INTERNAL_FUNCTION_PARAM_PASSTHRU);
2824+ }
2825+
2826+ static PHP_METHOD (google_protobuf_Timestamp, getSeconds) {
2827+ Message* intern = (Message*)Z_OBJ_P (getThis ());
2828+ const upb_FieldDef *f = upb_MessageDef_FindFieldByName (
2829+ intern->desc ->msgdef , " seconds" );
2830+ zval ret;
2831+ Message_get (intern, f, &ret);
2832+ RETURN_COPY_VALUE (&ret);
2833+ }
2834+
2835+ static PHP_METHOD (google_protobuf_Timestamp, setSeconds) {
2836+ Message* intern = (Message*)Z_OBJ_P (getThis ());
2837+ const upb_FieldDef *f = upb_MessageDef_FindFieldByName (
2838+ intern->desc ->msgdef , " seconds" );
2839+ zval *val;
2840+ if (zend_parse_parameters (ZEND_NUM_ARGS (), " z" , &val)
2841+ == FAILURE) {
2842+ return ;
2843+ }
2844+ Message_set (intern, f, val);
2845+ RETURN_COPY (getThis ());
2846+ }
2847+
2848+ static PHP_METHOD (google_protobuf_Timestamp, getNanos) {
2849+ Message* intern = (Message*)Z_OBJ_P (getThis ());
2850+ const upb_FieldDef *f = upb_MessageDef_FindFieldByName (
2851+ intern->desc ->msgdef , " nanos" );
2852+ zval ret;
2853+ Message_get (intern, f, &ret);
2854+ RETURN_COPY_VALUE (&ret);
2855+ }
2856+
2857+ static PHP_METHOD (google_protobuf_Timestamp, setNanos) {
2858+ Message* intern = (Message*)Z_OBJ_P (getThis ());
2859+ const upb_FieldDef *f = upb_MessageDef_FindFieldByName (
2860+ intern->desc ->msgdef , " nanos" );
2861+ zval *val;
2862+ if (zend_parse_parameters (ZEND_NUM_ARGS (), " z" , &val)
2863+ == FAILURE) {
2864+ return ;
2865+ }
2866+ Message_set (intern, f, val);
2867+ RETURN_COPY (getThis ());
2868+ }
2869+
2870+ ZEND_BEGIN_ARG_INFO_EX (arginfo_timestamp_fromdatetime, 0 , 0 , 1 )
2871+ ZEND_ARG_INFO(0 , datetime)
2872+ ZEND_END_ARG_INFO()
2873+
2874+ static zend_function_entry google_protobuf_Timestamp_phpmethods[] = {
2875+ PHP_ME (google_protobuf_Timestamp, __construct, arginfo_construct, ZEND_ACC_PUBLIC)
2876+ PHP_ME (google_protobuf_Timestamp, getSeconds, arginfo_void, ZEND_ACC_PUBLIC)
2877+ PHP_ME (google_protobuf_Timestamp, setSeconds, arginfo_setter, ZEND_ACC_PUBLIC)
2878+ PHP_ME (google_protobuf_Timestamp, getNanos, arginfo_void, ZEND_ACC_PUBLIC)
2879+ PHP_ME (google_protobuf_Timestamp, setNanos, arginfo_setter, ZEND_ACC_PUBLIC)
2880+ PHP_ME (google_protobuf_Timestamp, fromDateTime, arginfo_timestamp_fromdatetime, ZEND_ACC_PUBLIC)
2881+ PHP_ME (google_protobuf_Timestamp, toDateTime, arginfo_void, ZEND_ACC_PUBLIC)
2882+ ZEND_FE_END
2883+ };
2884+
2885+ static void google_protobuf_Timestamp_ModuleInit () {
2886+ zend_class_entry tmp_ce;
2887+
2888+ INIT_CLASS_ENTRY (tmp_ce, " Google\\ Protobuf\\ Timestamp" ,
2889+ google_protobuf_Timestamp_phpmethods);
2890+
2891+ google_protobuf_Timestamp_ce = zend_register_internal_class (&tmp_ce);
2892+ google_protobuf_Timestamp_ce->ce_flags |= ZEND_ACC_FINAL;
2893+ google_protobuf_Timestamp_ce->create_object = Message_create;
2894+ zend_do_inheritance (google_protobuf_Timestamp_ce, message_ce);
2895+ }
2896+
28972897/* google/protobuf/wrappers.proto */
28982898
28992899zend_class_entry* GPBMetadata_Google_Protobuf_Wrappers_ce;
@@ -3415,8 +3415,6 @@ static void WellKnownTypes_ModuleInit() {
34153415 google_protobuf_Value_ModuleInit ();
34163416 google_protobuf_ListValue_ModuleInit ();
34173417 google_protobuf_NullValue_ModuleInit ();
3418- GPBMetadata_Google_Protobuf_Timestamp_ModuleInit ();
3419- google_protobuf_Timestamp_ModuleInit ();
34203418 GPBMetadata_Google_Protobuf_Type_ModuleInit ();
34213419 google_protobuf_Type_ModuleInit ();
34223420 google_protobuf_Field_ModuleInit ();
@@ -3426,6 +3424,8 @@ static void WellKnownTypes_ModuleInit() {
34263424 google_protobuf_EnumValue_ModuleInit ();
34273425 google_protobuf_Option_ModuleInit ();
34283426 google_protobuf_Syntax_ModuleInit ();
3427+ GPBMetadata_Google_Protobuf_Timestamp_ModuleInit ();
3428+ google_protobuf_Timestamp_ModuleInit ();
34293429 GPBMetadata_Google_Protobuf_Wrappers_ModuleInit ();
34303430 google_protobuf_DoubleValue_ModuleInit ();
34313431 google_protobuf_FloatValue_ModuleInit ();
0 commit comments