A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/protocolbuffers/protobuf/commit/01a7429792ce5efeb2c6187baf4646a04652f1b2 below:

Add missing has* methods and other well known … · protocolbuffers/protobuf@01a7429 · GitHub

@@ -319,6 +319,13 @@ static PHP_METHOD(google_protobuf_Api, setSourceContext) {

319 319

RETURN_COPY(getThis());

320 320

}

321 321 322 +

static PHP_METHOD(google_protobuf_Api, hasSourceContext) {

323 +

Message* intern = (Message*)Z_OBJ_P(getThis());

324 +

const upb_FieldDef *f = upb_MessageDef_FindFieldByName(

325 +

intern->desc->msgdef, "source_context");

326 +

RETVAL_BOOL(upb_Message_HasFieldByDef(intern->msg, f));

327 +

}

328 + 322 329

static PHP_METHOD(google_protobuf_Api, getMixins) {

323 330

Message* intern = (Message*)Z_OBJ_P(getThis());

324 331

const upb_FieldDef *f = upb_MessageDef_FindFieldByName(

@@ -375,6 +382,7 @@ static zend_function_entry google_protobuf_Api_phpmethods[] = {

375 382

PHP_ME(google_protobuf_Api, setVersion, arginfo_setter, ZEND_ACC_PUBLIC)

376 383

PHP_ME(google_protobuf_Api, getSourceContext, arginfo_void, ZEND_ACC_PUBLIC)

377 384

PHP_ME(google_protobuf_Api, setSourceContext, arginfo_setter, ZEND_ACC_PUBLIC)

385 +

PHP_ME(google_protobuf_Api, hasSourceContext, arginfo_void, ZEND_ACC_PUBLIC)

378 386

PHP_ME(google_protobuf_Api, getMixins, arginfo_void, ZEND_ACC_PUBLIC)

379 387

PHP_ME(google_protobuf_Api, setMixins, arginfo_setter, ZEND_ACC_PUBLIC)

380 388

PHP_ME(google_protobuf_Api, getSyntax, arginfo_void, ZEND_ACC_PUBLIC)

@@ -1183,12 +1191,20 @@ static PHP_METHOD(google_protobuf_Struct_FieldsEntry, setValue) {

1183 1191

RETURN_COPY(getThis());

1184 1192

}

1185 1193 1194 +

static PHP_METHOD(google_protobuf_Struct_FieldsEntry, hasValue) {

1195 +

Message* intern = (Message*)Z_OBJ_P(getThis());

1196 +

const upb_FieldDef *f = upb_MessageDef_FindFieldByName(

1197 +

intern->desc->msgdef, "value");

1198 +

RETVAL_BOOL(upb_Message_HasFieldByDef(intern->msg, f));

1199 +

}

1200 + 1186 1201

static zend_function_entry google_protobuf_Struct_FieldsEntry_phpmethods[] = {

1187 1202

PHP_ME(google_protobuf_Struct_FieldsEntry, __construct, arginfo_construct, ZEND_ACC_PUBLIC)

1188 1203

PHP_ME(google_protobuf_Struct_FieldsEntry, getKey, arginfo_void, ZEND_ACC_PUBLIC)

1189 1204

PHP_ME(google_protobuf_Struct_FieldsEntry, setKey, arginfo_setter, ZEND_ACC_PUBLIC)

1190 1205

PHP_ME(google_protobuf_Struct_FieldsEntry, getValue, arginfo_void, ZEND_ACC_PUBLIC)

1191 1206

PHP_ME(google_protobuf_Struct_FieldsEntry, setValue, arginfo_setter, ZEND_ACC_PUBLIC)

1207 +

PHP_ME(google_protobuf_Struct_FieldsEntry, hasValue, arginfo_void, ZEND_ACC_PUBLIC)

1192 1208

ZEND_FE_END

1193 1209

};

1194 1210

@@ -1235,6 +1251,13 @@ static PHP_METHOD(google_protobuf_Value, setNullValue) {

1235 1251

RETURN_COPY(getThis());

1236 1252

}

1237 1253 1254 +

static PHP_METHOD(google_protobuf_Value, hasNullValue) {

1255 +

Message* intern = (Message*)Z_OBJ_P(getThis());

1256 +

const upb_FieldDef *f = upb_MessageDef_FindFieldByName(

1257 +

intern->desc->msgdef, "null_value");

1258 +

RETVAL_BOOL(upb_Message_HasFieldByDef(intern->msg, f));

1259 +

}

1260 + 1238 1261

static PHP_METHOD(google_protobuf_Value, getNumberValue) {

1239 1262

Message* intern = (Message*)Z_OBJ_P(getThis());

1240 1263

const upb_FieldDef *f = upb_MessageDef_FindFieldByName(

@@ -1257,6 +1280,13 @@ static PHP_METHOD(google_protobuf_Value, setNumberValue) {

1257 1280

RETURN_COPY(getThis());

1258 1281

}

1259 1282 1283 +

static PHP_METHOD(google_protobuf_Value, hasNumberValue) {

1284 +

Message* intern = (Message*)Z_OBJ_P(getThis());

1285 +

const upb_FieldDef *f = upb_MessageDef_FindFieldByName(

1286 +

intern->desc->msgdef, "number_value");

1287 +

RETVAL_BOOL(upb_Message_HasFieldByDef(intern->msg, f));

1288 +

}

1289 + 1260 1290

static PHP_METHOD(google_protobuf_Value, getStringValue) {

1261 1291

Message* intern = (Message*)Z_OBJ_P(getThis());

1262 1292

const upb_FieldDef *f = upb_MessageDef_FindFieldByName(

@@ -1279,6 +1309,13 @@ static PHP_METHOD(google_protobuf_Value, setStringValue) {

1279 1309

RETURN_COPY(getThis());

1280 1310

}

1281 1311 1312 +

static PHP_METHOD(google_protobuf_Value, hasStringValue) {

1313 +

Message* intern = (Message*)Z_OBJ_P(getThis());

1314 +

const upb_FieldDef *f = upb_MessageDef_FindFieldByName(

1315 +

intern->desc->msgdef, "string_value");

1316 +

RETVAL_BOOL(upb_Message_HasFieldByDef(intern->msg, f));

1317 +

}

1318 + 1282 1319

static PHP_METHOD(google_protobuf_Value, getBoolValue) {

1283 1320

Message* intern = (Message*)Z_OBJ_P(getThis());

1284 1321

const upb_FieldDef *f = upb_MessageDef_FindFieldByName(

@@ -1301,6 +1338,13 @@ static PHP_METHOD(google_protobuf_Value, setBoolValue) {

1301 1338

RETURN_COPY(getThis());

1302 1339

}

1303 1340 1341 +

static PHP_METHOD(google_protobuf_Value, hasBoolValue) {

1342 +

Message* intern = (Message*)Z_OBJ_P(getThis());

1343 +

const upb_FieldDef *f = upb_MessageDef_FindFieldByName(

1344 +

intern->desc->msgdef, "bool_value");

1345 +

RETVAL_BOOL(upb_Message_HasFieldByDef(intern->msg, f));

1346 +

}

1347 + 1304 1348

static PHP_METHOD(google_protobuf_Value, getStructValue) {

1305 1349

Message* intern = (Message*)Z_OBJ_P(getThis());

1306 1350

const upb_FieldDef *f = upb_MessageDef_FindFieldByName(

@@ -1323,6 +1367,13 @@ static PHP_METHOD(google_protobuf_Value, setStructValue) {

1323 1367

RETURN_COPY(getThis());

1324 1368

}

1325 1369 1370 +

static PHP_METHOD(google_protobuf_Value, hasStructValue) {

1371 +

Message* intern = (Message*)Z_OBJ_P(getThis());

1372 +

const upb_FieldDef *f = upb_MessageDef_FindFieldByName(

1373 +

intern->desc->msgdef, "struct_value");

1374 +

RETVAL_BOOL(upb_Message_HasFieldByDef(intern->msg, f));

1375 +

}

1376 + 1326 1377

static PHP_METHOD(google_protobuf_Value, getListValue) {

1327 1378

Message* intern = (Message*)Z_OBJ_P(getThis());

1328 1379

const upb_FieldDef *f = upb_MessageDef_FindFieldByName(

@@ -1345,6 +1396,13 @@ static PHP_METHOD(google_protobuf_Value, setListValue) {

1345 1396

RETURN_COPY(getThis());

1346 1397

}

1347 1398 1399 +

static PHP_METHOD(google_protobuf_Value, hasListValue) {

1400 +

Message* intern = (Message*)Z_OBJ_P(getThis());

1401 +

const upb_FieldDef *f = upb_MessageDef_FindFieldByName(

1402 +

intern->desc->msgdef, "list_value");

1403 +

RETVAL_BOOL(upb_Message_HasFieldByDef(intern->msg, f));

1404 +

}

1405 + 1348 1406

static PHP_METHOD(google_protobuf_Value, getKind) {

1349 1407

Message* intern = (Message*)Z_OBJ_P(getThis());

1350 1408

const upb_OneofDef *oneof = upb_MessageDef_FindOneofByName(

@@ -1357,16 +1415,22 @@ static zend_function_entry google_protobuf_Value_phpmethods[] = {

1357 1415

PHP_ME(google_protobuf_Value, __construct, arginfo_construct, ZEND_ACC_PUBLIC)

1358 1416

PHP_ME(google_protobuf_Value, getNullValue, arginfo_void, ZEND_ACC_PUBLIC)

1359 1417

PHP_ME(google_protobuf_Value, setNullValue, arginfo_setter, ZEND_ACC_PUBLIC)

1418 +

PHP_ME(google_protobuf_Value, hasNullValue, arginfo_void, ZEND_ACC_PUBLIC)

1360 1419

PHP_ME(google_protobuf_Value, getNumberValue, arginfo_void, ZEND_ACC_PUBLIC)

1361 1420

PHP_ME(google_protobuf_Value, setNumberValue, arginfo_setter, ZEND_ACC_PUBLIC)

1421 +

PHP_ME(google_protobuf_Value, hasNumberValue, arginfo_void, ZEND_ACC_PUBLIC)

1362 1422

PHP_ME(google_protobuf_Value, getStringValue, arginfo_void, ZEND_ACC_PUBLIC)

1363 1423

PHP_ME(google_protobuf_Value, setStringValue, arginfo_setter, ZEND_ACC_PUBLIC)

1424 +

PHP_ME(google_protobuf_Value, hasStringValue, arginfo_void, ZEND_ACC_PUBLIC)

1364 1425

PHP_ME(google_protobuf_Value, getBoolValue, arginfo_void, ZEND_ACC_PUBLIC)

1365 1426

PHP_ME(google_protobuf_Value, setBoolValue, arginfo_setter, ZEND_ACC_PUBLIC)

1427 +

PHP_ME(google_protobuf_Value, hasBoolValue, arginfo_void, ZEND_ACC_PUBLIC)

1366 1428

PHP_ME(google_protobuf_Value, getStructValue, arginfo_void, ZEND_ACC_PUBLIC)

1367 1429

PHP_ME(google_protobuf_Value, setStructValue, arginfo_setter, ZEND_ACC_PUBLIC)

1430 +

PHP_ME(google_protobuf_Value, hasStructValue, arginfo_void, ZEND_ACC_PUBLIC)

1368 1431

PHP_ME(google_protobuf_Value, getListValue, arginfo_void, ZEND_ACC_PUBLIC)

1369 1432

PHP_ME(google_protobuf_Value, setListValue, arginfo_setter, ZEND_ACC_PUBLIC)

1433 +

PHP_ME(google_protobuf_Value, hasListValue, arginfo_void, ZEND_ACC_PUBLIC)

1370 1434

PHP_ME(google_protobuf_Value, getKind, arginfo_void, ZEND_ACC_PUBLIC)

1371 1435

ZEND_FE_END

1372 1436

};

@@ -1836,6 +1900,13 @@ static PHP_METHOD(google_protobuf_Type, setSourceContext) {

1836 1900

RETURN_COPY(getThis());

1837 1901

}

1838 1902 1903 +

static PHP_METHOD(google_protobuf_Type, hasSourceContext) {

1904 +

Message* intern = (Message*)Z_OBJ_P(getThis());

1905 +

const upb_FieldDef *f = upb_MessageDef_FindFieldByName(

1906 +

intern->desc->msgdef, "source_context");

1907 +

RETVAL_BOOL(upb_Message_HasFieldByDef(intern->msg, f));

1908 +

}

1909 + 1839 1910

static PHP_METHOD(google_protobuf_Type, getSyntax) {

1840 1911

Message* intern = (Message*)Z_OBJ_P(getThis());

1841 1912

const upb_FieldDef *f = upb_MessageDef_FindFieldByName(

@@ -1892,6 +1963,7 @@ static zend_function_entry google_protobuf_Type_phpmethods[] = {

1892 1963

PHP_ME(google_protobuf_Type, setOptions, arginfo_setter, ZEND_ACC_PUBLIC)

1893 1964

PHP_ME(google_protobuf_Type, getSourceContext, arginfo_void, ZEND_ACC_PUBLIC)

1894 1965

PHP_ME(google_protobuf_Type, setSourceContext, arginfo_setter, ZEND_ACC_PUBLIC)

1966 +

PHP_ME(google_protobuf_Type, hasSourceContext, arginfo_void, ZEND_ACC_PUBLIC)

1895 1967

PHP_ME(google_protobuf_Type, getSyntax, arginfo_void, ZEND_ACC_PUBLIC)

1896 1968

PHP_ME(google_protobuf_Type, setSyntax, arginfo_setter, ZEND_ACC_PUBLIC)

1897 1969

PHP_ME(google_protobuf_Type, getEdition, arginfo_void, ZEND_ACC_PUBLIC)

@@ -2444,6 +2516,13 @@ static PHP_METHOD(google_protobuf_Enum, setSourceContext) {

2444 2516

RETURN_COPY(getThis());

2445 2517

}

2446 2518 2519 +

static PHP_METHOD(google_protobuf_Enum, hasSourceContext) {

2520 +

Message* intern = (Message*)Z_OBJ_P(getThis());

2521 +

const upb_FieldDef *f = upb_MessageDef_FindFieldByName(

2522 +

intern->desc->msgdef, "source_context");

2523 +

RETVAL_BOOL(upb_Message_HasFieldByDef(intern->msg, f));

2524 +

}

2525 + 2447 2526

static PHP_METHOD(google_protobuf_Enum, getSyntax) {

2448 2527

Message* intern = (Message*)Z_OBJ_P(getThis());

2449 2528

const upb_FieldDef *f = upb_MessageDef_FindFieldByName(

@@ -2498,6 +2577,7 @@ static zend_function_entry google_protobuf_Enum_phpmethods[] = {

2498 2577

PHP_ME(google_protobuf_Enum, setOptions, arginfo_setter, ZEND_ACC_PUBLIC)

2499 2578

PHP_ME(google_protobuf_Enum, getSourceContext, arginfo_void, ZEND_ACC_PUBLIC)

2500 2579

PHP_ME(google_protobuf_Enum, setSourceContext, arginfo_setter, ZEND_ACC_PUBLIC)

2580 +

PHP_ME(google_protobuf_Enum, hasSourceContext, arginfo_void, ZEND_ACC_PUBLIC)

2501 2581

PHP_ME(google_protobuf_Enum, getSyntax, arginfo_void, ZEND_ACC_PUBLIC)

2502 2582

PHP_ME(google_protobuf_Enum, setSyntax, arginfo_setter, ZEND_ACC_PUBLIC)

2503 2583

PHP_ME(google_protobuf_Enum, getEdition, arginfo_void, ZEND_ACC_PUBLIC)

@@ -2668,12 +2748,20 @@ static PHP_METHOD(google_protobuf_Option, setValue) {

2668 2748

RETURN_COPY(getThis());

2669 2749

}

2670 2750 2751 +

static PHP_METHOD(google_protobuf_Option, hasValue) {

2752 +

Message* intern = (Message*)Z_OBJ_P(getThis());

2753 +

const upb_FieldDef *f = upb_MessageDef_FindFieldByName(

2754 +

intern->desc->msgdef, "value");

2755 +

RETVAL_BOOL(upb_Message_HasFieldByDef(intern->msg, f));

2756 +

}

2757 + 2671 2758

static zend_function_entry google_protobuf_Option_phpmethods[] = {

2672 2759

PHP_ME(google_protobuf_Option, __construct, arginfo_construct, ZEND_ACC_PUBLIC)

2673 2760

PHP_ME(google_protobuf_Option, getName, arginfo_void, ZEND_ACC_PUBLIC)

2674 2761

PHP_ME(google_protobuf_Option, setName, arginfo_setter, ZEND_ACC_PUBLIC)

2675 2762

PHP_ME(google_protobuf_Option, getValue, arginfo_void, ZEND_ACC_PUBLIC)

2676 2763

PHP_ME(google_protobuf_Option, setValue, arginfo_setter, ZEND_ACC_PUBLIC)

2764 +

PHP_ME(google_protobuf_Option, hasValue, arginfo_void, ZEND_ACC_PUBLIC)

2677 2765

ZEND_FE_END

2678 2766

};

2679 2767

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4