@@ -1213,6 +1213,14 @@ static PHP_METHOD(google_protobuf_Value, __construct) {
1213
1213
zim_Message___construct (INTERNAL_FUNCTION_PARAM_PASSTHRU);
1214
1214
}
1215
1215
1216
+ static PHP_METHOD (google_protobuf_Value, hasNullValue) {
1217
+ Message* intern = (Message*)Z_OBJ_P (getThis ());
1218
+ const upb_FieldDef *f = upb_MessageDef_FindFieldByName (
1219
+ intern->desc ->msgdef , " null_value" );
1220
+
1221
+ RETVAL_BOOL (upb_Message_HasFieldByDef (intern->msg , f));
1222
+ }
1223
+
1216
1224
static PHP_METHOD (google_protobuf_Value, getNullValue) {
1217
1225
Message* intern = (Message*)Z_OBJ_P (getThis ());
1218
1226
const upb_FieldDef *f = upb_MessageDef_FindFieldByName (
@@ -1235,6 +1243,14 @@ static PHP_METHOD(google_protobuf_Value, setNullValue) {
1235
1243
RETURN_COPY (getThis ());
1236
1244
}
1237
1245
1246
+ static PHP_METHOD (google_protobuf_Value, hasNumberValue) {
1247
+ Message* intern = (Message*)Z_OBJ_P (getThis ());
1248
+ const upb_FieldDef *f = upb_MessageDef_FindFieldByName (
1249
+ intern->desc ->msgdef , " number_value" );
1250
+
1251
+ RETVAL_BOOL (upb_Message_HasFieldByDef (intern->msg , f));
1252
+ }
1253
+
1238
1254
static PHP_METHOD (google_protobuf_Value, getNumberValue) {
1239
1255
Message* intern = (Message*)Z_OBJ_P (getThis ());
1240
1256
const upb_FieldDef *f = upb_MessageDef_FindFieldByName (
@@ -1257,6 +1273,14 @@ static PHP_METHOD(google_protobuf_Value, setNumberValue) {
1257
1273
RETURN_COPY (getThis ());
1258
1274
}
1259
1275
1276
+ static PHP_METHOD (google_protobuf_Value, hasStringValue) {
1277
+ Message* intern = (Message*)Z_OBJ_P (getThis ());
1278
+ const upb_FieldDef *f = upb_MessageDef_FindFieldByName (
1279
+ intern->desc ->msgdef , " string_value" );
1280
+
1281
+ RETVAL_BOOL (upb_Message_HasFieldByDef (intern->msg , f));
1282
+ }
1283
+
1260
1284
static PHP_METHOD (google_protobuf_Value, getStringValue) {
1261
1285
Message* intern = (Message*)Z_OBJ_P (getThis ());
1262
1286
const upb_FieldDef *f = upb_MessageDef_FindFieldByName (
@@ -1279,6 +1303,14 @@ static PHP_METHOD(google_protobuf_Value, setStringValue) {
1279
1303
RETURN_COPY (getThis ());
1280
1304
}
1281
1305
1306
+ static PHP_METHOD (google_protobuf_Value, hasBoolValue) {
1307
+ Message* intern = (Message*)Z_OBJ_P (getThis ());
1308
+ const upb_FieldDef *f = upb_MessageDef_FindFieldByName (
1309
+ intern->desc ->msgdef , " bool_value" );
1310
+
1311
+ RETVAL_BOOL (upb_Message_HasFieldByDef (intern->msg , f));
1312
+ }
1313
+
1282
1314
static PHP_METHOD (google_protobuf_Value, getBoolValue) {
1283
1315
Message* intern = (Message*)Z_OBJ_P (getThis ());
1284
1316
const upb_FieldDef *f = upb_MessageDef_FindFieldByName (
@@ -1301,6 +1333,14 @@ static PHP_METHOD(google_protobuf_Value, setBoolValue) {
1301
1333
RETURN_COPY (getThis ());
1302
1334
}
1303
1335
1336
+ static PHP_METHOD (google_protobuf_Value, hasStructValue) {
1337
+ Message* intern = (Message*)Z_OBJ_P (getThis ());
1338
+ const upb_FieldDef *f = upb_MessageDef_FindFieldByName (
1339
+ intern->desc ->msgdef , " struct_value" );
1340
+
1341
+ RETVAL_BOOL (upb_Message_HasFieldByDef (intern->msg , f));
1342
+ }
1343
+
1304
1344
static PHP_METHOD (google_protobuf_Value, getStructValue) {
1305
1345
Message* intern = (Message*)Z_OBJ_P (getThis ());
1306
1346
const upb_FieldDef *f = upb_MessageDef_FindFieldByName (
@@ -1323,6 +1363,14 @@ static PHP_METHOD(google_protobuf_Value, setStructValue) {
1323
1363
RETURN_COPY (getThis ());
1324
1364
}
1325
1365
1366
+ static PHP_METHOD (google_protobuf_Value, hasListValue) {
1367
+ Message* intern = (Message*)Z_OBJ_P (getThis ());
1368
+ const upb_FieldDef *f = upb_MessageDef_FindFieldByName (
1369
+ intern->desc ->msgdef , " list_value" );
1370
+
1371
+ RETVAL_BOOL (upb_Message_HasFieldByDef (intern->msg , f));
1372
+ }
1373
+
1326
1374
static PHP_METHOD (google_protobuf_Value, getListValue) {
1327
1375
Message* intern = (Message*)Z_OBJ_P (getThis ());
1328
1376
const upb_FieldDef *f = upb_MessageDef_FindFieldByName (
@@ -1355,16 +1403,22 @@ static PHP_METHOD(google_protobuf_Value, getKind) {
1355
1403
}
1356
1404
static zend_function_entry google_protobuf_Value_phpmethods[] = {
1357
1405
PHP_ME (google_protobuf_Value, __construct, arginfo_construct, ZEND_ACC_PUBLIC)
1406
+ PHP_ME (google_protobuf_Value, hasNullValue, arginfo_void, ZEND_ACC_PUBLIC)
1358
1407
PHP_ME (google_protobuf_Value, getNullValue, arginfo_void, ZEND_ACC_PUBLIC)
1359
1408
PHP_ME (google_protobuf_Value, setNullValue, arginfo_setter, ZEND_ACC_PUBLIC)
1409
+ PHP_ME (google_protobuf_Value, hasNumberValue, arginfo_void, ZEND_ACC_PUBLIC)
1360
1410
PHP_ME (google_protobuf_Value, getNumberValue, arginfo_void, ZEND_ACC_PUBLIC)
1361
1411
PHP_ME (google_protobuf_Value, setNumberValue, arginfo_setter, ZEND_ACC_PUBLIC)
1412
+ PHP_ME (google_protobuf_Value, hasStringValue, arginfo_void, ZEND_ACC_PUBLIC)
1362
1413
PHP_ME (google_protobuf_Value, getStringValue, arginfo_void, ZEND_ACC_PUBLIC)
1363
1414
PHP_ME (google_protobuf_Value, setStringValue, arginfo_setter, ZEND_ACC_PUBLIC)
1415
+ PHP_ME (google_protobuf_Value, hasBoolValue, arginfo_void, ZEND_ACC_PUBLIC)
1364
1416
PHP_ME (google_protobuf_Value, getBoolValue, arginfo_void, ZEND_ACC_PUBLIC)
1365
1417
PHP_ME (google_protobuf_Value, setBoolValue, arginfo_setter, ZEND_ACC_PUBLIC)
1418
+ PHP_ME (google_protobuf_Value, hasStructValue, arginfo_void, ZEND_ACC_PUBLIC)
1366
1419
PHP_ME (google_protobuf_Value, getStructValue, arginfo_void, ZEND_ACC_PUBLIC)
1367
1420
PHP_ME (google_protobuf_Value, setStructValue, arginfo_setter, ZEND_ACC_PUBLIC)
1421
+ PHP_ME (google_protobuf_Value, hasListValue, arginfo_void, ZEND_ACC_PUBLIC)
1368
1422
PHP_ME (google_protobuf_Value, getListValue, arginfo_void, ZEND_ACC_PUBLIC)
1369
1423
PHP_ME (google_protobuf_Value, setListValue, arginfo_setter, ZEND_ACC_PUBLIC)
1370
1424
PHP_ME (google_protobuf_Value, getKind, arginfo_void, ZEND_ACC_PUBLIC)
0 commit comments