1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: attr_value.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_attr_5fvalue_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_attr_5fvalue_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3019000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3019001 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/map.h> // IWYU pragma: export
#include <google/protobuf/map_entry.h>
#include <google/protobuf/map_field_inl.h>
#include <google/protobuf/unknown_field_set.h>
#include "tensor.pb.h"
#include "tensor_shape.pb.h"
#include "types.pb.h"
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_attr_5fvalue_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_attr_5fvalue_2eproto {
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
static const uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_attr_5fvalue_2eproto;
namespace opencv_tensorflow {
class AttrValue;
struct AttrValueDefaultTypeInternal;
extern AttrValueDefaultTypeInternal _AttrValue_default_instance_;
class AttrValue_ListValue;
struct AttrValue_ListValueDefaultTypeInternal;
extern AttrValue_ListValueDefaultTypeInternal _AttrValue_ListValue_default_instance_;
class NameAttrList;
struct NameAttrListDefaultTypeInternal;
extern NameAttrListDefaultTypeInternal _NameAttrList_default_instance_;
class NameAttrList_AttrEntry_DoNotUse;
struct NameAttrList_AttrEntry_DoNotUseDefaultTypeInternal;
extern NameAttrList_AttrEntry_DoNotUseDefaultTypeInternal _NameAttrList_AttrEntry_DoNotUse_default_instance_;
} // namespace opencv_tensorflow
PROTOBUF_NAMESPACE_OPEN
template<> ::opencv_tensorflow::AttrValue* Arena::CreateMaybeMessage<::opencv_tensorflow::AttrValue>(Arena*);
template<> ::opencv_tensorflow::AttrValue_ListValue* Arena::CreateMaybeMessage<::opencv_tensorflow::AttrValue_ListValue>(Arena*);
template<> ::opencv_tensorflow::NameAttrList* Arena::CreateMaybeMessage<::opencv_tensorflow::NameAttrList>(Arena*);
template<> ::opencv_tensorflow::NameAttrList_AttrEntry_DoNotUse* Arena::CreateMaybeMessage<::opencv_tensorflow::NameAttrList_AttrEntry_DoNotUse>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace opencv_tensorflow {
// ===================================================================
class AttrValue_ListValue final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.AttrValue.ListValue) */ {
public:
inline AttrValue_ListValue() : AttrValue_ListValue(nullptr) {}
~AttrValue_ListValue() override;
explicit constexpr AttrValue_ListValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
AttrValue_ListValue(const AttrValue_ListValue& from);
AttrValue_ListValue(AttrValue_ListValue&& from) noexcept
: AttrValue_ListValue() {
*this = ::std::move(from);
}
inline AttrValue_ListValue& operator=(const AttrValue_ListValue& from) {
CopyFrom(from);
return *this;
}
inline AttrValue_ListValue& operator=(AttrValue_ListValue&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const AttrValue_ListValue& default_instance() {
return *internal_default_instance();
}
static inline const AttrValue_ListValue* internal_default_instance() {
return reinterpret_cast<const AttrValue_ListValue*>(
&_AttrValue_ListValue_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(AttrValue_ListValue& a, AttrValue_ListValue& b) {
a.Swap(&b);
}
inline void Swap(AttrValue_ListValue* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(AttrValue_ListValue* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
AttrValue_ListValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<AttrValue_ListValue>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const AttrValue_ListValue& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const AttrValue_ListValue& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(AttrValue_ListValue* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "opencv_tensorflow.AttrValue.ListValue";
}
protected:
explicit AttrValue_ListValue(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kSFieldNumber = 2,
kIFieldNumber = 3,
kFFieldNumber = 4,
kBFieldNumber = 5,
kTypeFieldNumber = 6,
kShapeFieldNumber = 7,
kTensorFieldNumber = 8,
};
// repeated bytes s = 2;
int s_size() const;
private:
int _internal_s_size() const;
public:
void clear_s();
const std::string& s(int index) const;
std::string* mutable_s(int index);
void set_s(int index, const std::string& value);
void set_s(int index, std::string&& value);
void set_s(int index, const char* value);
void set_s(int index, const void* value, size_t size);
std::string* add_s();
void add_s(const std::string& value);
void add_s(std::string&& value);
void add_s(const char* value);
void add_s(const void* value, size_t size);
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& s() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_s();
private:
const std::string& _internal_s(int index) const;
std::string* _internal_add_s();
public:
// repeated int64 i = 3 [packed = true];
int i_size() const;
private:
int _internal_i_size() const;
public:
void clear_i();
private:
int64_t _internal_i(int index) const;
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
_internal_i() const;
void _internal_add_i(int64_t value);
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
_internal_mutable_i();
public:
int64_t i(int index) const;
void set_i(int index, int64_t value);
void add_i(int64_t value);
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
i() const;
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
mutable_i();
// repeated float f = 4 [packed = true];
int f_size() const;
private:
int _internal_f_size() const;
public:
void clear_f();
private:
float _internal_f(int index) const;
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
_internal_f() const;
void _internal_add_f(float value);
::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
_internal_mutable_f();
public:
float f(int index) const;
void set_f(int index, float value);
void add_f(float value);
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
f() const;
::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
mutable_f();
// repeated bool b = 5 [packed = true];
int b_size() const;
private:
int _internal_b_size() const;
public:
void clear_b();
private:
bool _internal_b(int index) const;
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >&
_internal_b() const;
void _internal_add_b(bool value);
::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >*
_internal_mutable_b();
public:
bool b(int index) const;
void set_b(int index, bool value);
void add_b(bool value);
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >&
b() const;
::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >*
mutable_b();
// repeated .opencv_tensorflow.DataType type = 6 [packed = true];
int type_size() const;
private:
int _internal_type_size() const;
public:
void clear_type();
private:
::opencv_tensorflow::DataType _internal_type(int index) const;
void _internal_add_type(::opencv_tensorflow::DataType value);
::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* _internal_mutable_type();
public:
::opencv_tensorflow::DataType type(int index) const;
void set_type(int index, ::opencv_tensorflow::DataType value);
void add_type(::opencv_tensorflow::DataType value);
const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& type() const;
::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* mutable_type();
// repeated .opencv_tensorflow.TensorShapeProto shape = 7;
int shape_size() const;
private:
int _internal_shape_size() const;
public:
void clear_shape();
::opencv_tensorflow::TensorShapeProto* mutable_shape(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto >*
mutable_shape();
private:
const ::opencv_tensorflow::TensorShapeProto& _internal_shape(int index) const;
::opencv_tensorflow::TensorShapeProto* _internal_add_shape();
public:
const ::opencv_tensorflow::TensorShapeProto& shape(int index) const;
::opencv_tensorflow::TensorShapeProto* add_shape();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto >&
shape() const;
// repeated .opencv_tensorflow.TensorProto tensor = 8;
int tensor_size() const;
private:
int _internal_tensor_size() const;
public:
void clear_tensor();
::opencv_tensorflow::TensorProto* mutable_tensor(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorProto >*
mutable_tensor();
private:
const ::opencv_tensorflow::TensorProto& _internal_tensor(int index) const;
::opencv_tensorflow::TensorProto* _internal_add_tensor();
public:
const ::opencv_tensorflow::TensorProto& tensor(int index) const;
::opencv_tensorflow::TensorProto* add_tensor();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorProto >&
tensor() const;
// @@protoc_insertion_point(class_scope:opencv_tensorflow.AttrValue.ListValue)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> s_;
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > i_;
mutable std::atomic<int> _i_cached_byte_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedField< float > f_;
::PROTOBUF_NAMESPACE_ID::RepeatedField< bool > b_;
::PROTOBUF_NAMESPACE_ID::RepeatedField<int> type_;
mutable std::atomic<int> _type_cached_byte_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto > shape_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorProto > tensor_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_attr_5fvalue_2eproto;
};
// -------------------------------------------------------------------
class AttrValue final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.AttrValue) */ {
public:
inline AttrValue() : AttrValue(nullptr) {}
~AttrValue() override;
explicit constexpr AttrValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
AttrValue(const AttrValue& from);
AttrValue(AttrValue&& from) noexcept
: AttrValue() {
*this = ::std::move(from);
}
inline AttrValue& operator=(const AttrValue& from) {
CopyFrom(from);
return *this;
}
inline AttrValue& operator=(AttrValue&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const AttrValue& default_instance() {
return *internal_default_instance();
}
enum ValueCase {
kS = 2,
kI = 3,
kF = 4,
kB = 5,
kType = 6,
kShape = 7,
kTensor = 8,
kList = 1,
kFunc = 10,
kPlaceholder = 9,
VALUE_NOT_SET = 0,
};
static inline const AttrValue* internal_default_instance() {
return reinterpret_cast<const AttrValue*>(
&_AttrValue_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
friend void swap(AttrValue& a, AttrValue& b) {
a.Swap(&b);
}
inline void Swap(AttrValue* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(AttrValue* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
AttrValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<AttrValue>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const AttrValue& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const AttrValue& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(AttrValue* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "opencv_tensorflow.AttrValue";
}
protected:
explicit AttrValue(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef AttrValue_ListValue ListValue;
// accessors -------------------------------------------------------
enum : int {
kSFieldNumber = 2,
kIFieldNumber = 3,
kFFieldNumber = 4,
kBFieldNumber = 5,
kTypeFieldNumber = 6,
kShapeFieldNumber = 7,
kTensorFieldNumber = 8,
kListFieldNumber = 1,
kFuncFieldNumber = 10,
kPlaceholderFieldNumber = 9,
};
// bytes s = 2;
bool has_s() const;
private:
bool _internal_has_s() const;
public:
void clear_s();
const std::string& s() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_s(ArgT0&& arg0, ArgT... args);
std::string* mutable_s();
PROTOBUF_NODISCARD std::string* release_s();
void set_allocated_s(std::string* s);
private:
const std::string& _internal_s() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_s(const std::string& value);
std::string* _internal_mutable_s();
public:
// int64 i = 3;
bool has_i() const;
private:
bool _internal_has_i() const;
public:
void clear_i();
int64_t i() const;
void set_i(int64_t value);
private:
int64_t _internal_i() const;
void _internal_set_i(int64_t value);
public:
// float f = 4;
bool has_f() const;
private:
bool _internal_has_f() const;
public:
void clear_f();
float f() const;
void set_f(float value);
private:
float _internal_f() const;
void _internal_set_f(float value);
public:
// bool b = 5;
bool has_b() const;
private:
bool _internal_has_b() const;
public:
void clear_b();
bool b() const;
void set_b(bool value);
private:
bool _internal_b() const;
void _internal_set_b(bool value);
public:
// .opencv_tensorflow.DataType type = 6;
bool has_type() const;
private:
bool _internal_has_type() const;
public:
void clear_type();
::opencv_tensorflow::DataType type() const;
void set_type(::opencv_tensorflow::DataType value);
private:
::opencv_tensorflow::DataType _internal_type() const;
void _internal_set_type(::opencv_tensorflow::DataType value);
public:
// .opencv_tensorflow.TensorShapeProto shape = 7;
bool has_shape() const;
private:
bool _internal_has_shape() const;
public:
void clear_shape();
const ::opencv_tensorflow::TensorShapeProto& shape() const;
PROTOBUF_NODISCARD ::opencv_tensorflow::TensorShapeProto* release_shape();
::opencv_tensorflow::TensorShapeProto* mutable_shape();
void set_allocated_shape(::opencv_tensorflow::TensorShapeProto* shape);
private:
const ::opencv_tensorflow::TensorShapeProto& _internal_shape() const;
::opencv_tensorflow::TensorShapeProto* _internal_mutable_shape();
public:
void unsafe_arena_set_allocated_shape(
::opencv_tensorflow::TensorShapeProto* shape);
::opencv_tensorflow::TensorShapeProto* unsafe_arena_release_shape();
// .opencv_tensorflow.TensorProto tensor = 8;
bool has_tensor() const;
private:
bool _internal_has_tensor() const;
public:
void clear_tensor();
const ::opencv_tensorflow::TensorProto& tensor() const;
PROTOBUF_NODISCARD ::opencv_tensorflow::TensorProto* release_tensor();
::opencv_tensorflow::TensorProto* mutable_tensor();
void set_allocated_tensor(::opencv_tensorflow::TensorProto* tensor);
private:
const ::opencv_tensorflow::TensorProto& _internal_tensor() const;
::opencv_tensorflow::TensorProto* _internal_mutable_tensor();
public:
void unsafe_arena_set_allocated_tensor(
::opencv_tensorflow::TensorProto* tensor);
::opencv_tensorflow::TensorProto* unsafe_arena_release_tensor();
// .opencv_tensorflow.AttrValue.ListValue list = 1;
bool has_list() const;
private:
bool _internal_has_list() const;
public:
void clear_list();
const ::opencv_tensorflow::AttrValue_ListValue& list() const;
PROTOBUF_NODISCARD ::opencv_tensorflow::AttrValue_ListValue* release_list();
::opencv_tensorflow::AttrValue_ListValue* mutable_list();
void set_allocated_list(::opencv_tensorflow::AttrValue_ListValue* list);
private:
const ::opencv_tensorflow::AttrValue_ListValue& _internal_list() const;
::opencv_tensorflow::AttrValue_ListValue* _internal_mutable_list();
public:
void unsafe_arena_set_allocated_list(
::opencv_tensorflow::AttrValue_ListValue* list);
::opencv_tensorflow::AttrValue_ListValue* unsafe_arena_release_list();
// .opencv_tensorflow.NameAttrList func = 10;
bool has_func() const;
private:
bool _internal_has_func() const;
public:
void clear_func();
const ::opencv_tensorflow::NameAttrList& func() const;
PROTOBUF_NODISCARD ::opencv_tensorflow::NameAttrList* release_func();
::opencv_tensorflow::NameAttrList* mutable_func();
void set_allocated_func(::opencv_tensorflow::NameAttrList* func);
private:
const ::opencv_tensorflow::NameAttrList& _internal_func() const;
::opencv_tensorflow::NameAttrList* _internal_mutable_func();
public:
void unsafe_arena_set_allocated_func(
::opencv_tensorflow::NameAttrList* func);
::opencv_tensorflow::NameAttrList* unsafe_arena_release_func();
// string placeholder = 9;
bool has_placeholder() const;
private:
bool _internal_has_placeholder() const;
public:
void clear_placeholder();
const std::string& placeholder() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_placeholder(ArgT0&& arg0, ArgT... args);
std::string* mutable_placeholder();
PROTOBUF_NODISCARD std::string* release_placeholder();
void set_allocated_placeholder(std::string* placeholder);
private:
const std::string& _internal_placeholder() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_placeholder(const std::string& value);
std::string* _internal_mutable_placeholder();
public:
void clear_value();
ValueCase value_case() const;
// @@protoc_insertion_point(class_scope:opencv_tensorflow.AttrValue)
private:
class _Internal;
void set_has_s();
void set_has_i();
void set_has_f();
void set_has_b();
void set_has_type();
void set_has_shape();
void set_has_tensor();
void set_has_list();
void set_has_func();
void set_has_placeholder();
inline bool has_value() const;
inline void clear_has_value();
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
union ValueUnion {
constexpr ValueUnion() : _constinit_{} {}
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr s_;
int64_t i_;
float f_;
bool b_;
int type_;
::opencv_tensorflow::TensorShapeProto* shape_;
::opencv_tensorflow::TensorProto* tensor_;
::opencv_tensorflow::AttrValue_ListValue* list_;
::opencv_tensorflow::NameAttrList* func_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr placeholder_;
} value_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
uint32_t _oneof_case_[1];
friend struct ::TableStruct_attr_5fvalue_2eproto;
};
// -------------------------------------------------------------------
class NameAttrList_AttrEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<NameAttrList_AttrEntry_DoNotUse,
std::string, ::opencv_tensorflow::AttrValue,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> {
public:
typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<NameAttrList_AttrEntry_DoNotUse,
std::string, ::opencv_tensorflow::AttrValue,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> SuperType;
NameAttrList_AttrEntry_DoNotUse();
explicit constexpr NameAttrList_AttrEntry_DoNotUse(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
explicit NameAttrList_AttrEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void MergeFrom(const NameAttrList_AttrEntry_DoNotUse& other);
static const NameAttrList_AttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const NameAttrList_AttrEntry_DoNotUse*>(&_NameAttrList_AttrEntry_DoNotUse_default_instance_); }
static bool ValidateKey(std::string* s) {
return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "opencv_tensorflow.NameAttrList.AttrEntry.key");
}
static bool ValidateValue(void*) { return true; }
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
};
// -------------------------------------------------------------------
class NameAttrList final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_tensorflow.NameAttrList) */ {
public:
inline NameAttrList() : NameAttrList(nullptr) {}
~NameAttrList() override;
explicit constexpr NameAttrList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
NameAttrList(const NameAttrList& from);
NameAttrList(NameAttrList&& from) noexcept
: NameAttrList() {
*this = ::std::move(from);
}
inline NameAttrList& operator=(const NameAttrList& from) {
CopyFrom(from);
return *this;
}
inline NameAttrList& operator=(NameAttrList&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const NameAttrList& default_instance() {
return *internal_default_instance();
}
static inline const NameAttrList* internal_default_instance() {
return reinterpret_cast<const NameAttrList*>(
&_NameAttrList_default_instance_);
}
static constexpr int kIndexInFileMessages =
3;
friend void swap(NameAttrList& a, NameAttrList& b) {
a.Swap(&b);
}
inline void Swap(NameAttrList* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(NameAttrList* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
NameAttrList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<NameAttrList>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const NameAttrList& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const NameAttrList& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(NameAttrList* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "opencv_tensorflow.NameAttrList";
}
protected:
explicit NameAttrList(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kAttrFieldNumber = 2,
kNameFieldNumber = 1,
};
// map<string, .opencv_tensorflow.AttrValue> attr = 2;
int attr_size() const;
private:
int _internal_attr_size() const;
public:
void clear_attr();
private:
const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >&
_internal_attr() const;
::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >*
_internal_mutable_attr();
public:
const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >&
attr() const;
::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >*
mutable_attr();
// string name = 1;
void clear_name();
const std::string& name() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_name(ArgT0&& arg0, ArgT... args);
std::string* mutable_name();
PROTOBUF_NODISCARD std::string* release_name();
void set_allocated_name(std::string* name);
private:
const std::string& _internal_name() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
std::string* _internal_mutable_name();
public:
// @@protoc_insertion_point(class_scope:opencv_tensorflow.NameAttrList)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::internal::MapField<
NameAttrList_AttrEntry_DoNotUse,
std::string, ::opencv_tensorflow::AttrValue,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> attr_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_attr_5fvalue_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// AttrValue_ListValue
// repeated bytes s = 2;
inline int AttrValue_ListValue::_internal_s_size() const {
return s_.size();
}
inline int AttrValue_ListValue::s_size() const {
return _internal_s_size();
}
inline void AttrValue_ListValue::clear_s() {
s_.Clear();
}
inline std::string* AttrValue_ListValue::add_s() {
std::string* _s = _internal_add_s();
// @@protoc_insertion_point(field_add_mutable:opencv_tensorflow.AttrValue.ListValue.s)
return _s;
}
inline const std::string& AttrValue_ListValue::_internal_s(int index) const {
return s_.Get(index);
}
inline const std::string& AttrValue_ListValue::s(int index) const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.ListValue.s)
return _internal_s(index);
}
inline std::string* AttrValue_ListValue::mutable_s(int index) {
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.AttrValue.ListValue.s)
return s_.Mutable(index);
}
inline void AttrValue_ListValue::set_s(int index, const std::string& value) {
s_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.ListValue.s)
}
inline void AttrValue_ListValue::set_s(int index, std::string&& value) {
s_.Mutable(index)->assign(std::move(value));
// @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.ListValue.s)
}
inline void AttrValue_ListValue::set_s(int index, const char* value) {
GOOGLE_DCHECK(value != nullptr);
s_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:opencv_tensorflow.AttrValue.ListValue.s)
}
inline void AttrValue_ListValue::set_s(int index, const void* value, size_t size) {
s_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:opencv_tensorflow.AttrValue.ListValue.s)
}
inline std::string* AttrValue_ListValue::_internal_add_s() {
return s_.Add();
}
inline void AttrValue_ListValue::add_s(const std::string& value) {
s_.Add()->assign(value);
// @@protoc_insertion_point(field_add:opencv_tensorflow.AttrValue.ListValue.s)
}
inline void AttrValue_ListValue::add_s(std::string&& value) {
s_.Add(std::move(value));
// @@protoc_insertion_point(field_add:opencv_tensorflow.AttrValue.ListValue.s)
}
inline void AttrValue_ListValue::add_s(const char* value) {
GOOGLE_DCHECK(value != nullptr);
s_.Add()->assign(value);
// @@protoc_insertion_point(field_add_char:opencv_tensorflow.AttrValue.ListValue.s)
}
inline void AttrValue_ListValue::add_s(const void* value, size_t size) {
s_.Add()->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:opencv_tensorflow.AttrValue.ListValue.s)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
AttrValue_ListValue::s() const {
// @@protoc_insertion_point(field_list:opencv_tensorflow.AttrValue.ListValue.s)
return s_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
AttrValue_ListValue::mutable_s() {
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.AttrValue.ListValue.s)
return &s_;
}
// repeated int64 i = 3 [packed = true];
inline int AttrValue_ListValue::_internal_i_size() const {
return i_.size();
}
inline int AttrValue_ListValue::i_size() const {
return _internal_i_size();
}
inline void AttrValue_ListValue::clear_i() {
i_.Clear();
}
inline int64_t AttrValue_ListValue::_internal_i(int index) const {
return i_.Get(index);
}
inline int64_t AttrValue_ListValue::i(int index) const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.ListValue.i)
return _internal_i(index);
}
inline void AttrValue_ListValue::set_i(int index, int64_t value) {
i_.Set(index, value);
// @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.ListValue.i)
}
inline void AttrValue_ListValue::_internal_add_i(int64_t value) {
i_.Add(value);
}
inline void AttrValue_ListValue::add_i(int64_t value) {
_internal_add_i(value);
// @@protoc_insertion_point(field_add:opencv_tensorflow.AttrValue.ListValue.i)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
AttrValue_ListValue::_internal_i() const {
return i_;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
AttrValue_ListValue::i() const {
// @@protoc_insertion_point(field_list:opencv_tensorflow.AttrValue.ListValue.i)
return _internal_i();
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
AttrValue_ListValue::_internal_mutable_i() {
return &i_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
AttrValue_ListValue::mutable_i() {
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.AttrValue.ListValue.i)
return _internal_mutable_i();
}
// repeated float f = 4 [packed = true];
inline int AttrValue_ListValue::_internal_f_size() const {
return f_.size();
}
inline int AttrValue_ListValue::f_size() const {
return _internal_f_size();
}
inline void AttrValue_ListValue::clear_f() {
f_.Clear();
}
inline float AttrValue_ListValue::_internal_f(int index) const {
return f_.Get(index);
}
inline float AttrValue_ListValue::f(int index) const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.ListValue.f)
return _internal_f(index);
}
inline void AttrValue_ListValue::set_f(int index, float value) {
f_.Set(index, value);
// @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.ListValue.f)
}
inline void AttrValue_ListValue::_internal_add_f(float value) {
f_.Add(value);
}
inline void AttrValue_ListValue::add_f(float value) {
_internal_add_f(value);
// @@protoc_insertion_point(field_add:opencv_tensorflow.AttrValue.ListValue.f)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
AttrValue_ListValue::_internal_f() const {
return f_;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
AttrValue_ListValue::f() const {
// @@protoc_insertion_point(field_list:opencv_tensorflow.AttrValue.ListValue.f)
return _internal_f();
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
AttrValue_ListValue::_internal_mutable_f() {
return &f_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
AttrValue_ListValue::mutable_f() {
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.AttrValue.ListValue.f)
return _internal_mutable_f();
}
// repeated bool b = 5 [packed = true];
inline int AttrValue_ListValue::_internal_b_size() const {
return b_.size();
}
inline int AttrValue_ListValue::b_size() const {
return _internal_b_size();
}
inline void AttrValue_ListValue::clear_b() {
b_.Clear();
}
inline bool AttrValue_ListValue::_internal_b(int index) const {
return b_.Get(index);
}
inline bool AttrValue_ListValue::b(int index) const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.ListValue.b)
return _internal_b(index);
}
inline void AttrValue_ListValue::set_b(int index, bool value) {
b_.Set(index, value);
// @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.ListValue.b)
}
inline void AttrValue_ListValue::_internal_add_b(bool value) {
b_.Add(value);
}
inline void AttrValue_ListValue::add_b(bool value) {
_internal_add_b(value);
// @@protoc_insertion_point(field_add:opencv_tensorflow.AttrValue.ListValue.b)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >&
AttrValue_ListValue::_internal_b() const {
return b_;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >&
AttrValue_ListValue::b() const {
// @@protoc_insertion_point(field_list:opencv_tensorflow.AttrValue.ListValue.b)
return _internal_b();
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >*
AttrValue_ListValue::_internal_mutable_b() {
return &b_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >*
AttrValue_ListValue::mutable_b() {
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.AttrValue.ListValue.b)
return _internal_mutable_b();
}
// repeated .opencv_tensorflow.DataType type = 6 [packed = true];
inline int AttrValue_ListValue::_internal_type_size() const {
return type_.size();
}
inline int AttrValue_ListValue::type_size() const {
return _internal_type_size();
}
inline void AttrValue_ListValue::clear_type() {
type_.Clear();
}
inline ::opencv_tensorflow::DataType AttrValue_ListValue::_internal_type(int index) const {
return static_cast< ::opencv_tensorflow::DataType >(type_.Get(index));
}
inline ::opencv_tensorflow::DataType AttrValue_ListValue::type(int index) const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.ListValue.type)
return _internal_type(index);
}
inline void AttrValue_ListValue::set_type(int index, ::opencv_tensorflow::DataType value) {
type_.Set(index, value);
// @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.ListValue.type)
}
inline void AttrValue_ListValue::_internal_add_type(::opencv_tensorflow::DataType value) {
type_.Add(value);
}
inline void AttrValue_ListValue::add_type(::opencv_tensorflow::DataType value) {
_internal_add_type(value);
// @@protoc_insertion_point(field_add:opencv_tensorflow.AttrValue.ListValue.type)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>&
AttrValue_ListValue::type() const {
// @@protoc_insertion_point(field_list:opencv_tensorflow.AttrValue.ListValue.type)
return type_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>*
AttrValue_ListValue::_internal_mutable_type() {
return &type_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>*
AttrValue_ListValue::mutable_type() {
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.AttrValue.ListValue.type)
return _internal_mutable_type();
}
// repeated .opencv_tensorflow.TensorShapeProto shape = 7;
inline int AttrValue_ListValue::_internal_shape_size() const {
return shape_.size();
}
inline int AttrValue_ListValue::shape_size() const {
return _internal_shape_size();
}
inline ::opencv_tensorflow::TensorShapeProto* AttrValue_ListValue::mutable_shape(int index) {
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.AttrValue.ListValue.shape)
return shape_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto >*
AttrValue_ListValue::mutable_shape() {
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.AttrValue.ListValue.shape)
return &shape_;
}
inline const ::opencv_tensorflow::TensorShapeProto& AttrValue_ListValue::_internal_shape(int index) const {
return shape_.Get(index);
}
inline const ::opencv_tensorflow::TensorShapeProto& AttrValue_ListValue::shape(int index) const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.ListValue.shape)
return _internal_shape(index);
}
inline ::opencv_tensorflow::TensorShapeProto* AttrValue_ListValue::_internal_add_shape() {
return shape_.Add();
}
inline ::opencv_tensorflow::TensorShapeProto* AttrValue_ListValue::add_shape() {
::opencv_tensorflow::TensorShapeProto* _add = _internal_add_shape();
// @@protoc_insertion_point(field_add:opencv_tensorflow.AttrValue.ListValue.shape)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorShapeProto >&
AttrValue_ListValue::shape() const {
// @@protoc_insertion_point(field_list:opencv_tensorflow.AttrValue.ListValue.shape)
return shape_;
}
// repeated .opencv_tensorflow.TensorProto tensor = 8;
inline int AttrValue_ListValue::_internal_tensor_size() const {
return tensor_.size();
}
inline int AttrValue_ListValue::tensor_size() const {
return _internal_tensor_size();
}
inline ::opencv_tensorflow::TensorProto* AttrValue_ListValue::mutable_tensor(int index) {
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.AttrValue.ListValue.tensor)
return tensor_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorProto >*
AttrValue_ListValue::mutable_tensor() {
// @@protoc_insertion_point(field_mutable_list:opencv_tensorflow.AttrValue.ListValue.tensor)
return &tensor_;
}
inline const ::opencv_tensorflow::TensorProto& AttrValue_ListValue::_internal_tensor(int index) const {
return tensor_.Get(index);
}
inline const ::opencv_tensorflow::TensorProto& AttrValue_ListValue::tensor(int index) const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.ListValue.tensor)
return _internal_tensor(index);
}
inline ::opencv_tensorflow::TensorProto* AttrValue_ListValue::_internal_add_tensor() {
return tensor_.Add();
}
inline ::opencv_tensorflow::TensorProto* AttrValue_ListValue::add_tensor() {
::opencv_tensorflow::TensorProto* _add = _internal_add_tensor();
// @@protoc_insertion_point(field_add:opencv_tensorflow.AttrValue.ListValue.tensor)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_tensorflow::TensorProto >&
AttrValue_ListValue::tensor() const {
// @@protoc_insertion_point(field_list:opencv_tensorflow.AttrValue.ListValue.tensor)
return tensor_;
}
// -------------------------------------------------------------------
// AttrValue
// bytes s = 2;
inline bool AttrValue::_internal_has_s() const {
return value_case() == kS;
}
inline bool AttrValue::has_s() const {
return _internal_has_s();
}
inline void AttrValue::set_has_s() {
_oneof_case_[0] = kS;
}
inline void AttrValue::clear_s() {
if (_internal_has_s()) {
value_.s_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
clear_has_value();
}
}
inline const std::string& AttrValue::s() const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.s)
return _internal_s();
}
template <typename ArgT0, typename... ArgT>
inline void AttrValue::set_s(ArgT0&& arg0, ArgT... args) {
if (!_internal_has_s()) {
clear_value();
set_has_s();
value_.s_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
value_.s_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.s)
}
inline std::string* AttrValue::mutable_s() {
std::string* _s = _internal_mutable_s();
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.AttrValue.s)
return _s;
}
inline const std::string& AttrValue::_internal_s() const {
if (_internal_has_s()) {
return value_.s_.Get();
}
return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
}
inline void AttrValue::_internal_set_s(const std::string& value) {
if (!_internal_has_s()) {
clear_value();
set_has_s();
value_.s_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
value_.s_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
}
inline std::string* AttrValue::_internal_mutable_s() {
if (!_internal_has_s()) {
clear_value();
set_has_s();
value_.s_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
return value_.s_.Mutable(
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
}
inline std::string* AttrValue::release_s() {
// @@protoc_insertion_point(field_release:opencv_tensorflow.AttrValue.s)
if (_internal_has_s()) {
clear_has_value();
return value_.s_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
} else {
return nullptr;
}
}
inline void AttrValue::set_allocated_s(std::string* s) {
if (has_value()) {
clear_value();
}
if (s != nullptr) {
set_has_s();
value_.s_.UnsafeSetDefault(s);
::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation();
if (arena != nullptr) {
arena->Own(s);
}
}
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.AttrValue.s)
}
// int64 i = 3;
inline bool AttrValue::_internal_has_i() const {
return value_case() == kI;
}
inline bool AttrValue::has_i() const {
return _internal_has_i();
}
inline void AttrValue::set_has_i() {
_oneof_case_[0] = kI;
}
inline void AttrValue::clear_i() {
if (_internal_has_i()) {
value_.i_ = int64_t{0};
clear_has_value();
}
}
inline int64_t AttrValue::_internal_i() const {
if (_internal_has_i()) {
return value_.i_;
}
return int64_t{0};
}
inline void AttrValue::_internal_set_i(int64_t value) {
if (!_internal_has_i()) {
clear_value();
set_has_i();
}
value_.i_ = value;
}
inline int64_t AttrValue::i() const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.i)
return _internal_i();
}
inline void AttrValue::set_i(int64_t value) {
_internal_set_i(value);
// @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.i)
}
// float f = 4;
inline bool AttrValue::_internal_has_f() const {
return value_case() == kF;
}
inline bool AttrValue::has_f() const {
return _internal_has_f();
}
inline void AttrValue::set_has_f() {
_oneof_case_[0] = kF;
}
inline void AttrValue::clear_f() {
if (_internal_has_f()) {
value_.f_ = 0;
clear_has_value();
}
}
inline float AttrValue::_internal_f() const {
if (_internal_has_f()) {
return value_.f_;
}
return 0;
}
inline void AttrValue::_internal_set_f(float value) {
if (!_internal_has_f()) {
clear_value();
set_has_f();
}
value_.f_ = value;
}
inline float AttrValue::f() const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.f)
return _internal_f();
}
inline void AttrValue::set_f(float value) {
_internal_set_f(value);
// @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.f)
}
// bool b = 5;
inline bool AttrValue::_internal_has_b() const {
return value_case() == kB;
}
inline bool AttrValue::has_b() const {
return _internal_has_b();
}
inline void AttrValue::set_has_b() {
_oneof_case_[0] = kB;
}
inline void AttrValue::clear_b() {
if (_internal_has_b()) {
value_.b_ = false;
clear_has_value();
}
}
inline bool AttrValue::_internal_b() const {
if (_internal_has_b()) {
return value_.b_;
}
return false;
}
inline void AttrValue::_internal_set_b(bool value) {
if (!_internal_has_b()) {
clear_value();
set_has_b();
}
value_.b_ = value;
}
inline bool AttrValue::b() const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.b)
return _internal_b();
}
inline void AttrValue::set_b(bool value) {
_internal_set_b(value);
// @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.b)
}
// .opencv_tensorflow.DataType type = 6;
inline bool AttrValue::_internal_has_type() const {
return value_case() == kType;
}
inline bool AttrValue::has_type() const {
return _internal_has_type();
}
inline void AttrValue::set_has_type() {
_oneof_case_[0] = kType;
}
inline void AttrValue::clear_type() {
if (_internal_has_type()) {
value_.type_ = 0;
clear_has_value();
}
}
inline ::opencv_tensorflow::DataType AttrValue::_internal_type() const {
if (_internal_has_type()) {
return static_cast< ::opencv_tensorflow::DataType >(value_.type_);
}
return static_cast< ::opencv_tensorflow::DataType >(0);
}
inline ::opencv_tensorflow::DataType AttrValue::type() const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.type)
return _internal_type();
}
inline void AttrValue::_internal_set_type(::opencv_tensorflow::DataType value) {
if (!_internal_has_type()) {
clear_value();
set_has_type();
}
value_.type_ = value;
}
inline void AttrValue::set_type(::opencv_tensorflow::DataType value) {
_internal_set_type(value);
// @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.type)
}
// .opencv_tensorflow.TensorShapeProto shape = 7;
inline bool AttrValue::_internal_has_shape() const {
return value_case() == kShape;
}
inline bool AttrValue::has_shape() const {
return _internal_has_shape();
}
inline void AttrValue::set_has_shape() {
_oneof_case_[0] = kShape;
}
inline ::opencv_tensorflow::TensorShapeProto* AttrValue::release_shape() {
// @@protoc_insertion_point(field_release:opencv_tensorflow.AttrValue.shape)
if (_internal_has_shape()) {
clear_has_value();
::opencv_tensorflow::TensorShapeProto* temp = value_.shape_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
value_.shape_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::opencv_tensorflow::TensorShapeProto& AttrValue::_internal_shape() const {
return _internal_has_shape()
? *value_.shape_
: reinterpret_cast< ::opencv_tensorflow::TensorShapeProto&>(::opencv_tensorflow::_TensorShapeProto_default_instance_);
}
inline const ::opencv_tensorflow::TensorShapeProto& AttrValue::shape() const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.shape)
return _internal_shape();
}
inline ::opencv_tensorflow::TensorShapeProto* AttrValue::unsafe_arena_release_shape() {
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.AttrValue.shape)
if (_internal_has_shape()) {
clear_has_value();
::opencv_tensorflow::TensorShapeProto* temp = value_.shape_;
value_.shape_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void AttrValue::unsafe_arena_set_allocated_shape(::opencv_tensorflow::TensorShapeProto* shape) {
clear_value();
if (shape) {
set_has_shape();
value_.shape_ = shape;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.AttrValue.shape)
}
inline ::opencv_tensorflow::TensorShapeProto* AttrValue::_internal_mutable_shape() {
if (!_internal_has_shape()) {
clear_value();
set_has_shape();
value_.shape_ = CreateMaybeMessage< ::opencv_tensorflow::TensorShapeProto >(GetArenaForAllocation());
}
return value_.shape_;
}
inline ::opencv_tensorflow::TensorShapeProto* AttrValue::mutable_shape() {
::opencv_tensorflow::TensorShapeProto* _msg = _internal_mutable_shape();
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.AttrValue.shape)
return _msg;
}
// .opencv_tensorflow.TensorProto tensor = 8;
inline bool AttrValue::_internal_has_tensor() const {
return value_case() == kTensor;
}
inline bool AttrValue::has_tensor() const {
return _internal_has_tensor();
}
inline void AttrValue::set_has_tensor() {
_oneof_case_[0] = kTensor;
}
inline ::opencv_tensorflow::TensorProto* AttrValue::release_tensor() {
// @@protoc_insertion_point(field_release:opencv_tensorflow.AttrValue.tensor)
if (_internal_has_tensor()) {
clear_has_value();
::opencv_tensorflow::TensorProto* temp = value_.tensor_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
value_.tensor_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::opencv_tensorflow::TensorProto& AttrValue::_internal_tensor() const {
return _internal_has_tensor()
? *value_.tensor_
: reinterpret_cast< ::opencv_tensorflow::TensorProto&>(::opencv_tensorflow::_TensorProto_default_instance_);
}
inline const ::opencv_tensorflow::TensorProto& AttrValue::tensor() const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.tensor)
return _internal_tensor();
}
inline ::opencv_tensorflow::TensorProto* AttrValue::unsafe_arena_release_tensor() {
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.AttrValue.tensor)
if (_internal_has_tensor()) {
clear_has_value();
::opencv_tensorflow::TensorProto* temp = value_.tensor_;
value_.tensor_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void AttrValue::unsafe_arena_set_allocated_tensor(::opencv_tensorflow::TensorProto* tensor) {
clear_value();
if (tensor) {
set_has_tensor();
value_.tensor_ = tensor;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.AttrValue.tensor)
}
inline ::opencv_tensorflow::TensorProto* AttrValue::_internal_mutable_tensor() {
if (!_internal_has_tensor()) {
clear_value();
set_has_tensor();
value_.tensor_ = CreateMaybeMessage< ::opencv_tensorflow::TensorProto >(GetArenaForAllocation());
}
return value_.tensor_;
}
inline ::opencv_tensorflow::TensorProto* AttrValue::mutable_tensor() {
::opencv_tensorflow::TensorProto* _msg = _internal_mutable_tensor();
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.AttrValue.tensor)
return _msg;
}
// .opencv_tensorflow.AttrValue.ListValue list = 1;
inline bool AttrValue::_internal_has_list() const {
return value_case() == kList;
}
inline bool AttrValue::has_list() const {
return _internal_has_list();
}
inline void AttrValue::set_has_list() {
_oneof_case_[0] = kList;
}
inline void AttrValue::clear_list() {
if (_internal_has_list()) {
if (GetArenaForAllocation() == nullptr) {
delete value_.list_;
}
clear_has_value();
}
}
inline ::opencv_tensorflow::AttrValue_ListValue* AttrValue::release_list() {
// @@protoc_insertion_point(field_release:opencv_tensorflow.AttrValue.list)
if (_internal_has_list()) {
clear_has_value();
::opencv_tensorflow::AttrValue_ListValue* temp = value_.list_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
value_.list_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::opencv_tensorflow::AttrValue_ListValue& AttrValue::_internal_list() const {
return _internal_has_list()
? *value_.list_
: reinterpret_cast< ::opencv_tensorflow::AttrValue_ListValue&>(::opencv_tensorflow::_AttrValue_ListValue_default_instance_);
}
inline const ::opencv_tensorflow::AttrValue_ListValue& AttrValue::list() const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.list)
return _internal_list();
}
inline ::opencv_tensorflow::AttrValue_ListValue* AttrValue::unsafe_arena_release_list() {
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.AttrValue.list)
if (_internal_has_list()) {
clear_has_value();
::opencv_tensorflow::AttrValue_ListValue* temp = value_.list_;
value_.list_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void AttrValue::unsafe_arena_set_allocated_list(::opencv_tensorflow::AttrValue_ListValue* list) {
clear_value();
if (list) {
set_has_list();
value_.list_ = list;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.AttrValue.list)
}
inline ::opencv_tensorflow::AttrValue_ListValue* AttrValue::_internal_mutable_list() {
if (!_internal_has_list()) {
clear_value();
set_has_list();
value_.list_ = CreateMaybeMessage< ::opencv_tensorflow::AttrValue_ListValue >(GetArenaForAllocation());
}
return value_.list_;
}
inline ::opencv_tensorflow::AttrValue_ListValue* AttrValue::mutable_list() {
::opencv_tensorflow::AttrValue_ListValue* _msg = _internal_mutable_list();
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.AttrValue.list)
return _msg;
}
// .opencv_tensorflow.NameAttrList func = 10;
inline bool AttrValue::_internal_has_func() const {
return value_case() == kFunc;
}
inline bool AttrValue::has_func() const {
return _internal_has_func();
}
inline void AttrValue::set_has_func() {
_oneof_case_[0] = kFunc;
}
inline void AttrValue::clear_func() {
if (_internal_has_func()) {
if (GetArenaForAllocation() == nullptr) {
delete value_.func_;
}
clear_has_value();
}
}
inline ::opencv_tensorflow::NameAttrList* AttrValue::release_func() {
// @@protoc_insertion_point(field_release:opencv_tensorflow.AttrValue.func)
if (_internal_has_func()) {
clear_has_value();
::opencv_tensorflow::NameAttrList* temp = value_.func_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
value_.func_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::opencv_tensorflow::NameAttrList& AttrValue::_internal_func() const {
return _internal_has_func()
? *value_.func_
: reinterpret_cast< ::opencv_tensorflow::NameAttrList&>(::opencv_tensorflow::_NameAttrList_default_instance_);
}
inline const ::opencv_tensorflow::NameAttrList& AttrValue::func() const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.func)
return _internal_func();
}
inline ::opencv_tensorflow::NameAttrList* AttrValue::unsafe_arena_release_func() {
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_tensorflow.AttrValue.func)
if (_internal_has_func()) {
clear_has_value();
::opencv_tensorflow::NameAttrList* temp = value_.func_;
value_.func_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void AttrValue::unsafe_arena_set_allocated_func(::opencv_tensorflow::NameAttrList* func) {
clear_value();
if (func) {
set_has_func();
value_.func_ = func;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_tensorflow.AttrValue.func)
}
inline ::opencv_tensorflow::NameAttrList* AttrValue::_internal_mutable_func() {
if (!_internal_has_func()) {
clear_value();
set_has_func();
value_.func_ = CreateMaybeMessage< ::opencv_tensorflow::NameAttrList >(GetArenaForAllocation());
}
return value_.func_;
}
inline ::opencv_tensorflow::NameAttrList* AttrValue::mutable_func() {
::opencv_tensorflow::NameAttrList* _msg = _internal_mutable_func();
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.AttrValue.func)
return _msg;
}
// string placeholder = 9;
inline bool AttrValue::_internal_has_placeholder() const {
return value_case() == kPlaceholder;
}
inline bool AttrValue::has_placeholder() const {
return _internal_has_placeholder();
}
inline void AttrValue::set_has_placeholder() {
_oneof_case_[0] = kPlaceholder;
}
inline void AttrValue::clear_placeholder() {
if (_internal_has_placeholder()) {
value_.placeholder_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
clear_has_value();
}
}
inline const std::string& AttrValue::placeholder() const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.AttrValue.placeholder)
return _internal_placeholder();
}
template <typename ArgT0, typename... ArgT>
inline void AttrValue::set_placeholder(ArgT0&& arg0, ArgT... args) {
if (!_internal_has_placeholder()) {
clear_value();
set_has_placeholder();
value_.placeholder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
value_.placeholder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:opencv_tensorflow.AttrValue.placeholder)
}
inline std::string* AttrValue::mutable_placeholder() {
std::string* _s = _internal_mutable_placeholder();
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.AttrValue.placeholder)
return _s;
}
inline const std::string& AttrValue::_internal_placeholder() const {
if (_internal_has_placeholder()) {
return value_.placeholder_.Get();
}
return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
}
inline void AttrValue::_internal_set_placeholder(const std::string& value) {
if (!_internal_has_placeholder()) {
clear_value();
set_has_placeholder();
value_.placeholder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
value_.placeholder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
}
inline std::string* AttrValue::_internal_mutable_placeholder() {
if (!_internal_has_placeholder()) {
clear_value();
set_has_placeholder();
value_.placeholder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
return value_.placeholder_.Mutable(
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
}
inline std::string* AttrValue::release_placeholder() {
// @@protoc_insertion_point(field_release:opencv_tensorflow.AttrValue.placeholder)
if (_internal_has_placeholder()) {
clear_has_value();
return value_.placeholder_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
} else {
return nullptr;
}
}
inline void AttrValue::set_allocated_placeholder(std::string* placeholder) {
if (has_value()) {
clear_value();
}
if (placeholder != nullptr) {
set_has_placeholder();
value_.placeholder_.UnsafeSetDefault(placeholder);
::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation();
if (arena != nullptr) {
arena->Own(placeholder);
}
}
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.AttrValue.placeholder)
}
inline bool AttrValue::has_value() const {
return value_case() != VALUE_NOT_SET;
}
inline void AttrValue::clear_has_value() {
_oneof_case_[0] = VALUE_NOT_SET;
}
inline AttrValue::ValueCase AttrValue::value_case() const {
return AttrValue::ValueCase(_oneof_case_[0]);
}
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// NameAttrList
// string name = 1;
inline void NameAttrList::clear_name() {
name_.ClearToEmpty();
}
inline const std::string& NameAttrList::name() const {
// @@protoc_insertion_point(field_get:opencv_tensorflow.NameAttrList.name)
return _internal_name();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void NameAttrList::set_name(ArgT0&& arg0, ArgT... args) {
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:opencv_tensorflow.NameAttrList.name)
}
inline std::string* NameAttrList::mutable_name() {
std::string* _s = _internal_mutable_name();
// @@protoc_insertion_point(field_mutable:opencv_tensorflow.NameAttrList.name)
return _s;
}
inline const std::string& NameAttrList::_internal_name() const {
return name_.Get();
}
inline void NameAttrList::_internal_set_name(const std::string& value) {
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
}
inline std::string* NameAttrList::_internal_mutable_name() {
return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
}
inline std::string* NameAttrList::release_name() {
// @@protoc_insertion_point(field_release:opencv_tensorflow.NameAttrList.name)
return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
}
inline void NameAttrList::set_allocated_name(std::string* name) {
if (name != nullptr) {
} else {
}
name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:opencv_tensorflow.NameAttrList.name)
}
// map<string, .opencv_tensorflow.AttrValue> attr = 2;
inline int NameAttrList::_internal_attr_size() const {
return attr_.size();
}
inline int NameAttrList::attr_size() const {
return _internal_attr_size();
}
inline void NameAttrList::clear_attr() {
attr_.Clear();
}
inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >&
NameAttrList::_internal_attr() const {
return attr_.GetMap();
}
inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >&
NameAttrList::attr() const {
// @@protoc_insertion_point(field_map:opencv_tensorflow.NameAttrList.attr)
return _internal_attr();
}
inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >*
NameAttrList::_internal_mutable_attr() {
return attr_.MutableMap();
}
inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >*
NameAttrList::mutable_attr() {
// @@protoc_insertion_point(field_mutable_map:opencv_tensorflow.NameAttrList.attr)
return _internal_mutable_attr();
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
} // namespace opencv_tensorflow
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_attr_5fvalue_2eproto
|