@@ -1826,30 +1826,6 @@ class Baz final {
1826
1826
FOLLY_ERASE ::apache::thrift::union_field_ref<T&&> intField_ref () && {
1827
1827
return {std::move (value_.intField ), fbthrift_type_, folly::to_underlying (Type::intField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
1828
1828
}
1829
-
1830
- /* * Glean { "field": "intField" } */
1831
- template <typename ..., typename T = ::apache::thrift::adapt_detail::adapted_field_t <::my::Adapter1, 1 , ::facebook::thrift::test::i32_5137, Baz>>
1832
- FOLLY_ERASE ::apache::thrift::union_field_ref<const T&> intField () const & {
1833
- return {value_.intField , fbthrift_type_, folly::to_underlying (Type::intField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
1834
- }
1835
-
1836
- /* * Glean { "field": "intField" } */
1837
- template <typename ..., typename T = ::apache::thrift::adapt_detail::adapted_field_t <::my::Adapter1, 1 , ::facebook::thrift::test::i32_5137, Baz>>
1838
- FOLLY_ERASE ::apache::thrift::union_field_ref<const T&&> intField () const && {
1839
- return {std::move (value_.intField ), fbthrift_type_, folly::to_underlying (Type::intField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
1840
- }
1841
-
1842
- /* * Glean { "field": "intField" } */
1843
- template <typename ..., typename T = ::apache::thrift::adapt_detail::adapted_field_t <::my::Adapter1, 1 , ::facebook::thrift::test::i32_5137, Baz>>
1844
- FOLLY_ERASE ::apache::thrift::union_field_ref<T&> intField () & {
1845
- return {value_.intField , fbthrift_type_, folly::to_underlying (Type::intField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
1846
- }
1847
-
1848
- /* * Glean { "field": "intField" } */
1849
- template <typename ..., typename T = ::apache::thrift::adapt_detail::adapted_field_t <::my::Adapter1, 1 , ::facebook::thrift::test::i32_5137, Baz>>
1850
- FOLLY_ERASE ::apache::thrift::union_field_ref<T&&> intField () && {
1851
- return {std::move (value_.intField ), fbthrift_type_, folly::to_underlying (Type::intField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
1852
- }
1853
1829
/* * Glean { "field": "setField" } */
1854
1830
template <typename ..., typename T = ::facebook::thrift::test::SetWithAdapter>
1855
1831
FOLLY_ERASE ::apache::thrift::union_field_ref<const T&> setField_ref () const & {
@@ -1873,30 +1849,6 @@ class Baz final {
1873
1849
FOLLY_ERASE ::apache::thrift::union_field_ref<T&&> setField_ref () && {
1874
1850
return {std::move (value_.setField ), fbthrift_type_, folly::to_underlying (Type::setField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
1875
1851
}
1876
-
1877
- /* * Glean { "field": "setField" } */
1878
- template <typename ..., typename T = ::facebook::thrift::test::SetWithAdapter>
1879
- FOLLY_ERASE ::apache::thrift::union_field_ref<const T&> setField () const & {
1880
- return {value_.setField , fbthrift_type_, folly::to_underlying (Type::setField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
1881
- }
1882
-
1883
- /* * Glean { "field": "setField" } */
1884
- template <typename ..., typename T = ::facebook::thrift::test::SetWithAdapter>
1885
- FOLLY_ERASE ::apache::thrift::union_field_ref<const T&&> setField () const && {
1886
- return {std::move (value_.setField ), fbthrift_type_, folly::to_underlying (Type::setField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
1887
- }
1888
-
1889
- /* * Glean { "field": "setField" } */
1890
- template <typename ..., typename T = ::facebook::thrift::test::SetWithAdapter>
1891
- FOLLY_ERASE ::apache::thrift::union_field_ref<T&> setField () & {
1892
- return {value_.setField , fbthrift_type_, folly::to_underlying (Type::setField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
1893
- }
1894
-
1895
- /* * Glean { "field": "setField" } */
1896
- template <typename ..., typename T = ::facebook::thrift::test::SetWithAdapter>
1897
- FOLLY_ERASE ::apache::thrift::union_field_ref<T&&> setField () && {
1898
- return {std::move (value_.setField ), fbthrift_type_, folly::to_underlying (Type::setField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
1899
- }
1900
1852
/* * Glean { "field": "mapField" } */
1901
1853
template <typename ..., typename T = ::apache::thrift::adapt_detail::adapted_field_t <::my::Adapter3, 6 , ::facebook::thrift::test::map_string_ListWithElemAdapter_withAdapter_8454, Baz>>
1902
1854
FOLLY_ERASE ::apache::thrift::union_field_ref<const T&> mapField_ref () const & {
@@ -1920,30 +1872,6 @@ class Baz final {
1920
1872
FOLLY_ERASE ::apache::thrift::union_field_ref<T&&> mapField_ref () && {
1921
1873
return {std::move (value_.mapField ), fbthrift_type_, folly::to_underlying (Type::mapField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
1922
1874
}
1923
-
1924
- /* * Glean { "field": "mapField" } */
1925
- template <typename ..., typename T = ::apache::thrift::adapt_detail::adapted_field_t <::my::Adapter3, 6 , ::facebook::thrift::test::map_string_ListWithElemAdapter_withAdapter_8454, Baz>>
1926
- FOLLY_ERASE ::apache::thrift::union_field_ref<const T&> mapField () const & {
1927
- return {value_.mapField , fbthrift_type_, folly::to_underlying (Type::mapField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
1928
- }
1929
-
1930
- /* * Glean { "field": "mapField" } */
1931
- template <typename ..., typename T = ::apache::thrift::adapt_detail::adapted_field_t <::my::Adapter3, 6 , ::facebook::thrift::test::map_string_ListWithElemAdapter_withAdapter_8454, Baz>>
1932
- FOLLY_ERASE ::apache::thrift::union_field_ref<const T&&> mapField () const && {
1933
- return {std::move (value_.mapField ), fbthrift_type_, folly::to_underlying (Type::mapField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
1934
- }
1935
-
1936
- /* * Glean { "field": "mapField" } */
1937
- template <typename ..., typename T = ::apache::thrift::adapt_detail::adapted_field_t <::my::Adapter3, 6 , ::facebook::thrift::test::map_string_ListWithElemAdapter_withAdapter_8454, Baz>>
1938
- FOLLY_ERASE ::apache::thrift::union_field_ref<T&> mapField () & {
1939
- return {value_.mapField , fbthrift_type_, folly::to_underlying (Type::mapField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
1940
- }
1941
-
1942
- /* * Glean { "field": "mapField" } */
1943
- template <typename ..., typename T = ::apache::thrift::adapt_detail::adapted_field_t <::my::Adapter3, 6 , ::facebook::thrift::test::map_string_ListWithElemAdapter_withAdapter_8454, Baz>>
1944
- FOLLY_ERASE ::apache::thrift::union_field_ref<T&&> mapField () && {
1945
- return {std::move (value_.mapField ), fbthrift_type_, folly::to_underlying (Type::mapField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
1946
- }
1947
1875
/* * Glean { "field": "binaryField" } */
1948
1876
template <typename ..., typename T = ::apache::thrift::adapt_detail::adapted_field_t <::my::Adapter1, 8 , ::facebook::thrift::test::binary_5673, Baz>>
1949
1877
FOLLY_ERASE ::apache::thrift::union_field_ref<const T&> binaryField_ref () const & {
@@ -1967,30 +1895,6 @@ class Baz final {
1967
1895
FOLLY_ERASE ::apache::thrift::union_field_ref<T&&> binaryField_ref () && {
1968
1896
return {std::move (value_.binaryField ), fbthrift_type_, folly::to_underlying (Type::binaryField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
1969
1897
}
1970
-
1971
- /* * Glean { "field": "binaryField" } */
1972
- template <typename ..., typename T = ::apache::thrift::adapt_detail::adapted_field_t <::my::Adapter1, 8 , ::facebook::thrift::test::binary_5673, Baz>>
1973
- FOLLY_ERASE ::apache::thrift::union_field_ref<const T&> binaryField () const & {
1974
- return {value_.binaryField , fbthrift_type_, folly::to_underlying (Type::binaryField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
1975
- }
1976
-
1977
- /* * Glean { "field": "binaryField" } */
1978
- template <typename ..., typename T = ::apache::thrift::adapt_detail::adapted_field_t <::my::Adapter1, 8 , ::facebook::thrift::test::binary_5673, Baz>>
1979
- FOLLY_ERASE ::apache::thrift::union_field_ref<const T&&> binaryField () const && {
1980
- return {std::move (value_.binaryField ), fbthrift_type_, folly::to_underlying (Type::binaryField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
1981
- }
1982
-
1983
- /* * Glean { "field": "binaryField" } */
1984
- template <typename ..., typename T = ::apache::thrift::adapt_detail::adapted_field_t <::my::Adapter1, 8 , ::facebook::thrift::test::binary_5673, Baz>>
1985
- FOLLY_ERASE ::apache::thrift::union_field_ref<T&> binaryField () & {
1986
- return {value_.binaryField , fbthrift_type_, folly::to_underlying (Type::binaryField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
1987
- }
1988
-
1989
- /* * Glean { "field": "binaryField" } */
1990
- template <typename ..., typename T = ::apache::thrift::adapt_detail::adapted_field_t <::my::Adapter1, 8 , ::facebook::thrift::test::binary_5673, Baz>>
1991
- FOLLY_ERASE ::apache::thrift::union_field_ref<T&&> binaryField () && {
1992
- return {std::move (value_.binaryField ), fbthrift_type_, folly::to_underlying (Type::binaryField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
1993
- }
1994
1898
/* * Glean { "field": "longField" } */
1995
1899
template <typename ..., typename T = ::facebook::thrift::test::MyI64>
1996
1900
FOLLY_ERASE ::apache::thrift::union_field_ref<const T&> longField_ref () const & {
@@ -2014,30 +1918,6 @@ class Baz final {
2014
1918
FOLLY_ERASE ::apache::thrift::union_field_ref<T&&> longField_ref () && {
2015
1919
return {std::move (value_.longField ), fbthrift_type_, folly::to_underlying (Type::longField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
2016
1920
}
2017
-
2018
- /* * Glean { "field": "longField" } */
2019
- template <typename ..., typename T = ::facebook::thrift::test::MyI64>
2020
- FOLLY_ERASE ::apache::thrift::union_field_ref<const T&> longField () const & {
2021
- return {value_.longField , fbthrift_type_, folly::to_underlying (Type::longField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
2022
- }
2023
-
2024
- /* * Glean { "field": "longField" } */
2025
- template <typename ..., typename T = ::facebook::thrift::test::MyI64>
2026
- FOLLY_ERASE ::apache::thrift::union_field_ref<const T&&> longField () const && {
2027
- return {std::move (value_.longField ), fbthrift_type_, folly::to_underlying (Type::longField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
2028
- }
2029
-
2030
- /* * Glean { "field": "longField" } */
2031
- template <typename ..., typename T = ::facebook::thrift::test::MyI64>
2032
- FOLLY_ERASE ::apache::thrift::union_field_ref<T&> longField () & {
2033
- return {value_.longField , fbthrift_type_, folly::to_underlying (Type::longField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
2034
- }
2035
-
2036
- /* * Glean { "field": "longField" } */
2037
- template <typename ..., typename T = ::facebook::thrift::test::MyI64>
2038
- FOLLY_ERASE ::apache::thrift::union_field_ref<T&&> longField () && {
2039
- return {std::move (value_.longField ), fbthrift_type_, folly::to_underlying (Type::longField), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
2040
- }
2041
1921
Type getType () const { return static_cast <Type>(fbthrift_type_); }
2042
1922
2043
1923
template <class Protocol_ >
@@ -6115,30 +5995,6 @@ class ThriftAdaptTestUnion final {
6115
5995
FOLLY_ERASE ::apache::thrift::union_field_ref<T&&> delay_ref () && {
6116
5996
return {std::move (value_.delay ), fbthrift_type_, folly::to_underlying (Type::delay), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
6117
5997
}
6118
-
6119
- /* * Glean { "field": "delay" } */
6120
- template <typename ..., typename T = ::facebook::thrift::test::DurationMs>
6121
- FOLLY_ERASE ::apache::thrift::union_field_ref<const T&> delay () const & {
6122
- return {value_.delay , fbthrift_type_, folly::to_underlying (Type::delay), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
6123
- }
6124
-
6125
- /* * Glean { "field": "delay" } */
6126
- template <typename ..., typename T = ::facebook::thrift::test::DurationMs>
6127
- FOLLY_ERASE ::apache::thrift::union_field_ref<const T&&> delay () const && {
6128
- return {std::move (value_.delay ), fbthrift_type_, folly::to_underlying (Type::delay), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
6129
- }
6130
-
6131
- /* * Glean { "field": "delay" } */
6132
- template <typename ..., typename T = ::facebook::thrift::test::DurationMs>
6133
- FOLLY_ERASE ::apache::thrift::union_field_ref<T&> delay () & {
6134
- return {value_.delay , fbthrift_type_, folly::to_underlying (Type::delay), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
6135
- }
6136
-
6137
- /* * Glean { "field": "delay" } */
6138
- template <typename ..., typename T = ::facebook::thrift::test::DurationMs>
6139
- FOLLY_ERASE ::apache::thrift::union_field_ref<T&&> delay () && {
6140
- return {std::move (value_.delay ), fbthrift_type_, folly::to_underlying (Type::delay), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
6141
- }
6142
5998
/* * Glean { "field": "custom" } */
6143
5999
template <typename ..., typename T = ::facebook::thrift::test::CustomProtocolType>
6144
6000
FOLLY_ERASE ::apache::thrift::union_field_ref<const T&> custom_ref () const & {
@@ -6162,30 +6018,6 @@ class ThriftAdaptTestUnion final {
6162
6018
FOLLY_ERASE ::apache::thrift::union_field_ref<T&&> custom_ref () && {
6163
6019
return {std::move (value_.custom ), fbthrift_type_, folly::to_underlying (Type::custom), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
6164
6020
}
6165
-
6166
- /* * Glean { "field": "custom" } */
6167
- template <typename ..., typename T = ::facebook::thrift::test::CustomProtocolType>
6168
- FOLLY_ERASE ::apache::thrift::union_field_ref<const T&> custom () const & {
6169
- return {value_.custom , fbthrift_type_, folly::to_underlying (Type::custom), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
6170
- }
6171
-
6172
- /* * Glean { "field": "custom" } */
6173
- template <typename ..., typename T = ::facebook::thrift::test::CustomProtocolType>
6174
- FOLLY_ERASE ::apache::thrift::union_field_ref<const T&&> custom () const && {
6175
- return {std::move (value_.custom ), fbthrift_type_, folly::to_underlying (Type::custom), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
6176
- }
6177
-
6178
- /* * Glean { "field": "custom" } */
6179
- template <typename ..., typename T = ::facebook::thrift::test::CustomProtocolType>
6180
- FOLLY_ERASE ::apache::thrift::union_field_ref<T&> custom () & {
6181
- return {value_.custom , fbthrift_type_, folly::to_underlying (Type::custom), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
6182
- }
6183
-
6184
- /* * Glean { "field": "custom" } */
6185
- template <typename ..., typename T = ::facebook::thrift::test::CustomProtocolType>
6186
- FOLLY_ERASE ::apache::thrift::union_field_ref<T&&> custom () && {
6187
- return {std::move (value_.custom ), fbthrift_type_, folly::to_underlying (Type::custom), this , ::apache::thrift::detail::union_field_ref_owner_vtable_for<decltype (*this )>};
6188
- }
6189
6021
Type getType () const { return static_cast <Type>(fbthrift_type_); }
6190
6022
6191
6023
template <class Protocol_ >
0 commit comments