1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/util/test_log.proto |
3 | |
4 | #include "tensorflow/core/util/test_log.pb.h" |
5 | |
6 | #include <algorithm> |
7 | |
8 | #include <google/protobuf/stubs/common.h> |
9 | #include <google/protobuf/io/coded_stream.h> |
10 | #include <google/protobuf/extension_set.h> |
11 | #include <google/protobuf/wire_format_lite.h> |
12 | #include <google/protobuf/descriptor.h> |
13 | #include <google/protobuf/generated_message_reflection.h> |
14 | #include <google/protobuf/reflection_ops.h> |
15 | #include <google/protobuf/wire_format.h> |
16 | // @@protoc_insertion_point(includes) |
17 | #include <google/protobuf/port_def.inc> |
18 | extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fany_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Any_google_2fprotobuf_2fany_2eproto; |
19 | extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fwrappers_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DoubleValue_google_2fprotobuf_2fwrappers_2eproto; |
20 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2ftest_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AvailableDeviceInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto; |
21 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2ftest_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_BenchmarkEntries_tensorflow_2fcore_2futil_2ftest_5flog_2eproto; |
22 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2ftest_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_BenchmarkEntry_tensorflow_2fcore_2futil_2ftest_5flog_2eproto; |
23 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2ftest_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> ; |
24 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2ftest_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_BuildConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto; |
25 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2ftest_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CPUInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto; |
26 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2ftest_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CPUInfo_CacheSizeEntry_DoNotUse_tensorflow_2fcore_2futil_2ftest_5flog_2eproto; |
27 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2ftest_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CommitId_tensorflow_2fcore_2futil_2ftest_5flog_2eproto; |
28 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2ftest_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EntryValue_tensorflow_2fcore_2futil_2ftest_5flog_2eproto; |
29 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2ftest_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_MachineConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto; |
30 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2ftest_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MemoryInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto; |
31 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2ftest_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MetricEntry_tensorflow_2fcore_2futil_2ftest_5flog_2eproto; |
32 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2ftest_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlatformInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto; |
33 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2ftest_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_RunConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto; |
34 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2ftest_5flog_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RunConfiguration_EnvVarsEntry_DoNotUse_tensorflow_2fcore_2futil_2ftest_5flog_2eproto; |
35 | namespace tensorflow { |
36 | class EntryValueDefaultTypeInternal { |
37 | public: |
38 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<EntryValue> _instance; |
39 | double double_value_; |
40 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_; |
41 | } _EntryValue_default_instance_; |
42 | class MetricEntryDefaultTypeInternal { |
43 | public: |
44 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MetricEntry> _instance; |
45 | } _MetricEntry_default_instance_; |
46 | class { |
47 | public: |
48 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<BenchmarkEntry_ExtrasEntry_DoNotUse> ; |
49 | } ; |
50 | class BenchmarkEntryDefaultTypeInternal { |
51 | public: |
52 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<BenchmarkEntry> _instance; |
53 | } _BenchmarkEntry_default_instance_; |
54 | class BenchmarkEntriesDefaultTypeInternal { |
55 | public: |
56 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<BenchmarkEntries> _instance; |
57 | } _BenchmarkEntries_default_instance_; |
58 | class BuildConfigurationDefaultTypeInternal { |
59 | public: |
60 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<BuildConfiguration> _instance; |
61 | } _BuildConfiguration_default_instance_; |
62 | class CommitIdDefaultTypeInternal { |
63 | public: |
64 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CommitId> _instance; |
65 | ::PROTOBUF_NAMESPACE_ID::int64 changelist_; |
66 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr hash_; |
67 | } _CommitId_default_instance_; |
68 | class CPUInfo_CacheSizeEntry_DoNotUseDefaultTypeInternal { |
69 | public: |
70 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CPUInfo_CacheSizeEntry_DoNotUse> _instance; |
71 | } _CPUInfo_CacheSizeEntry_DoNotUse_default_instance_; |
72 | class CPUInfoDefaultTypeInternal { |
73 | public: |
74 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CPUInfo> _instance; |
75 | } _CPUInfo_default_instance_; |
76 | class MemoryInfoDefaultTypeInternal { |
77 | public: |
78 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MemoryInfo> _instance; |
79 | } _MemoryInfo_default_instance_; |
80 | class GPUInfoDefaultTypeInternal { |
81 | public: |
82 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<GPUInfo> _instance; |
83 | } _GPUInfo_default_instance_; |
84 | class PlatformInfoDefaultTypeInternal { |
85 | public: |
86 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PlatformInfo> _instance; |
87 | } _PlatformInfo_default_instance_; |
88 | class AvailableDeviceInfoDefaultTypeInternal { |
89 | public: |
90 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<AvailableDeviceInfo> _instance; |
91 | } _AvailableDeviceInfo_default_instance_; |
92 | class MachineConfigurationDefaultTypeInternal { |
93 | public: |
94 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MachineConfiguration> _instance; |
95 | } _MachineConfiguration_default_instance_; |
96 | class RunConfiguration_EnvVarsEntry_DoNotUseDefaultTypeInternal { |
97 | public: |
98 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RunConfiguration_EnvVarsEntry_DoNotUse> _instance; |
99 | } _RunConfiguration_EnvVarsEntry_DoNotUse_default_instance_; |
100 | class RunConfigurationDefaultTypeInternal { |
101 | public: |
102 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RunConfiguration> _instance; |
103 | } _RunConfiguration_default_instance_; |
104 | class TestResultsDefaultTypeInternal { |
105 | public: |
106 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<TestResults> _instance; |
107 | } _TestResults_default_instance_; |
108 | } // namespace tensorflow |
109 | static void InitDefaultsscc_info_AvailableDeviceInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto() { |
110 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
111 | |
112 | { |
113 | void* ptr = &::tensorflow::_AvailableDeviceInfo_default_instance_; |
114 | new (ptr) ::tensorflow::AvailableDeviceInfo(); |
115 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
116 | } |
117 | ::tensorflow::AvailableDeviceInfo::InitAsDefaultInstance(); |
118 | } |
119 | |
120 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AvailableDeviceInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto = |
121 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_AvailableDeviceInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto}, {}}; |
122 | |
123 | static void InitDefaultsscc_info_BenchmarkEntries_tensorflow_2fcore_2futil_2ftest_5flog_2eproto() { |
124 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
125 | |
126 | { |
127 | void* ptr = &::tensorflow::_BenchmarkEntries_default_instance_; |
128 | new (ptr) ::tensorflow::BenchmarkEntries(); |
129 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
130 | } |
131 | ::tensorflow::BenchmarkEntries::InitAsDefaultInstance(); |
132 | } |
133 | |
134 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_BenchmarkEntries_tensorflow_2fcore_2futil_2ftest_5flog_2eproto = |
135 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_BenchmarkEntries_tensorflow_2fcore_2futil_2ftest_5flog_2eproto}, { |
136 | &scc_info_BenchmarkEntry_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base,}}; |
137 | |
138 | static void InitDefaultsscc_info_BenchmarkEntry_tensorflow_2fcore_2futil_2ftest_5flog_2eproto() { |
139 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
140 | |
141 | { |
142 | void* ptr = &::tensorflow::_BenchmarkEntry_default_instance_; |
143 | new (ptr) ::tensorflow::BenchmarkEntry(); |
144 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
145 | } |
146 | ::tensorflow::BenchmarkEntry::InitAsDefaultInstance(); |
147 | } |
148 | |
149 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_BenchmarkEntry_tensorflow_2fcore_2futil_2ftest_5flog_2eproto = |
150 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_BenchmarkEntry_tensorflow_2fcore_2futil_2ftest_5flog_2eproto}, { |
151 | &scc_info_BenchmarkEntry_ExtrasEntry_DoNotUse_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
152 | &scc_info_MetricEntry_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base,}}; |
153 | |
154 | static void () { |
155 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
156 | |
157 | { |
158 | void* ptr = &::tensorflow::_BenchmarkEntry_ExtrasEntry_DoNotUse_default_instance_; |
159 | new (ptr) ::tensorflow::BenchmarkEntry_ExtrasEntry_DoNotUse(); |
160 | } |
161 | ::tensorflow::BenchmarkEntry_ExtrasEntry_DoNotUse::InitAsDefaultInstance(); |
162 | } |
163 | |
164 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> = |
165 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_BenchmarkEntry_ExtrasEntry_DoNotUse_tensorflow_2fcore_2futil_2ftest_5flog_2eproto}, { |
166 | &scc_info_EntryValue_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base,}}; |
167 | |
168 | static void InitDefaultsscc_info_BuildConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto() { |
169 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
170 | |
171 | { |
172 | void* ptr = &::tensorflow::_BuildConfiguration_default_instance_; |
173 | new (ptr) ::tensorflow::BuildConfiguration(); |
174 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
175 | } |
176 | ::tensorflow::BuildConfiguration::InitAsDefaultInstance(); |
177 | } |
178 | |
179 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_BuildConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto = |
180 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_BuildConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto}, {}}; |
181 | |
182 | static void InitDefaultsscc_info_CPUInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto() { |
183 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
184 | |
185 | { |
186 | void* ptr = &::tensorflow::_CPUInfo_default_instance_; |
187 | new (ptr) ::tensorflow::CPUInfo(); |
188 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
189 | } |
190 | ::tensorflow::CPUInfo::InitAsDefaultInstance(); |
191 | } |
192 | |
193 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CPUInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto = |
194 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CPUInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto}, { |
195 | &scc_info_CPUInfo_CacheSizeEntry_DoNotUse_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base,}}; |
196 | |
197 | static void InitDefaultsscc_info_CPUInfo_CacheSizeEntry_DoNotUse_tensorflow_2fcore_2futil_2ftest_5flog_2eproto() { |
198 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
199 | |
200 | { |
201 | void* ptr = &::tensorflow::_CPUInfo_CacheSizeEntry_DoNotUse_default_instance_; |
202 | new (ptr) ::tensorflow::CPUInfo_CacheSizeEntry_DoNotUse(); |
203 | } |
204 | ::tensorflow::CPUInfo_CacheSizeEntry_DoNotUse::InitAsDefaultInstance(); |
205 | } |
206 | |
207 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CPUInfo_CacheSizeEntry_DoNotUse_tensorflow_2fcore_2futil_2ftest_5flog_2eproto = |
208 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CPUInfo_CacheSizeEntry_DoNotUse_tensorflow_2fcore_2futil_2ftest_5flog_2eproto}, {}}; |
209 | |
210 | static void InitDefaultsscc_info_CommitId_tensorflow_2fcore_2futil_2ftest_5flog_2eproto() { |
211 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
212 | |
213 | { |
214 | void* ptr = &::tensorflow::_CommitId_default_instance_; |
215 | new (ptr) ::tensorflow::CommitId(); |
216 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
217 | } |
218 | ::tensorflow::CommitId::InitAsDefaultInstance(); |
219 | } |
220 | |
221 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CommitId_tensorflow_2fcore_2futil_2ftest_5flog_2eproto = |
222 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CommitId_tensorflow_2fcore_2futil_2ftest_5flog_2eproto}, {}}; |
223 | |
224 | static void InitDefaultsscc_info_EntryValue_tensorflow_2fcore_2futil_2ftest_5flog_2eproto() { |
225 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
226 | |
227 | { |
228 | void* ptr = &::tensorflow::_EntryValue_default_instance_; |
229 | new (ptr) ::tensorflow::EntryValue(); |
230 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
231 | } |
232 | ::tensorflow::EntryValue::InitAsDefaultInstance(); |
233 | } |
234 | |
235 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EntryValue_tensorflow_2fcore_2futil_2ftest_5flog_2eproto = |
236 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_EntryValue_tensorflow_2fcore_2futil_2ftest_5flog_2eproto}, {}}; |
237 | |
238 | static void InitDefaultsscc_info_GPUInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto() { |
239 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
240 | |
241 | { |
242 | void* ptr = &::tensorflow::_GPUInfo_default_instance_; |
243 | new (ptr) ::tensorflow::GPUInfo(); |
244 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
245 | } |
246 | ::tensorflow::GPUInfo::InitAsDefaultInstance(); |
247 | } |
248 | |
249 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GPUInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto = |
250 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GPUInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto}, {}}; |
251 | |
252 | static void InitDefaultsscc_info_MachineConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto() { |
253 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
254 | |
255 | { |
256 | void* ptr = &::tensorflow::_MachineConfiguration_default_instance_; |
257 | new (ptr) ::tensorflow::MachineConfiguration(); |
258 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
259 | } |
260 | ::tensorflow::MachineConfiguration::InitAsDefaultInstance(); |
261 | } |
262 | |
263 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_MachineConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto = |
264 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 5, InitDefaultsscc_info_MachineConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto}, { |
265 | &scc_info_PlatformInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
266 | &scc_info_CPUInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
267 | &scc_info_Any_google_2fprotobuf_2fany_2eproto.base, |
268 | &scc_info_AvailableDeviceInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
269 | &scc_info_MemoryInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base,}}; |
270 | |
271 | static void InitDefaultsscc_info_MemoryInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto() { |
272 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
273 | |
274 | { |
275 | void* ptr = &::tensorflow::_MemoryInfo_default_instance_; |
276 | new (ptr) ::tensorflow::MemoryInfo(); |
277 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
278 | } |
279 | ::tensorflow::MemoryInfo::InitAsDefaultInstance(); |
280 | } |
281 | |
282 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MemoryInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto = |
283 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_MemoryInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto}, {}}; |
284 | |
285 | static void InitDefaultsscc_info_MetricEntry_tensorflow_2fcore_2futil_2ftest_5flog_2eproto() { |
286 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
287 | |
288 | { |
289 | void* ptr = &::tensorflow::_MetricEntry_default_instance_; |
290 | new (ptr) ::tensorflow::MetricEntry(); |
291 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
292 | } |
293 | ::tensorflow::MetricEntry::InitAsDefaultInstance(); |
294 | } |
295 | |
296 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_MetricEntry_tensorflow_2fcore_2futil_2ftest_5flog_2eproto = |
297 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_MetricEntry_tensorflow_2fcore_2futil_2ftest_5flog_2eproto}, { |
298 | &scc_info_DoubleValue_google_2fprotobuf_2fwrappers_2eproto.base,}}; |
299 | |
300 | static void InitDefaultsscc_info_PlatformInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto() { |
301 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
302 | |
303 | { |
304 | void* ptr = &::tensorflow::_PlatformInfo_default_instance_; |
305 | new (ptr) ::tensorflow::PlatformInfo(); |
306 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
307 | } |
308 | ::tensorflow::PlatformInfo::InitAsDefaultInstance(); |
309 | } |
310 | |
311 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PlatformInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto = |
312 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_PlatformInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto}, {}}; |
313 | |
314 | static void InitDefaultsscc_info_RunConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto() { |
315 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
316 | |
317 | { |
318 | void* ptr = &::tensorflow::_RunConfiguration_default_instance_; |
319 | new (ptr) ::tensorflow::RunConfiguration(); |
320 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
321 | } |
322 | ::tensorflow::RunConfiguration::InitAsDefaultInstance(); |
323 | } |
324 | |
325 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_RunConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto = |
326 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_RunConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto}, { |
327 | &scc_info_RunConfiguration_EnvVarsEntry_DoNotUse_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base,}}; |
328 | |
329 | static void InitDefaultsscc_info_RunConfiguration_EnvVarsEntry_DoNotUse_tensorflow_2fcore_2futil_2ftest_5flog_2eproto() { |
330 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
331 | |
332 | { |
333 | void* ptr = &::tensorflow::_RunConfiguration_EnvVarsEntry_DoNotUse_default_instance_; |
334 | new (ptr) ::tensorflow::RunConfiguration_EnvVarsEntry_DoNotUse(); |
335 | } |
336 | ::tensorflow::RunConfiguration_EnvVarsEntry_DoNotUse::InitAsDefaultInstance(); |
337 | } |
338 | |
339 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RunConfiguration_EnvVarsEntry_DoNotUse_tensorflow_2fcore_2futil_2ftest_5flog_2eproto = |
340 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_RunConfiguration_EnvVarsEntry_DoNotUse_tensorflow_2fcore_2futil_2ftest_5flog_2eproto}, {}}; |
341 | |
342 | static void InitDefaultsscc_info_TestResults_tensorflow_2fcore_2futil_2ftest_5flog_2eproto() { |
343 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
344 | |
345 | { |
346 | void* ptr = &::tensorflow::_TestResults_default_instance_; |
347 | new (ptr) ::tensorflow::TestResults(); |
348 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
349 | } |
350 | ::tensorflow::TestResults::InitAsDefaultInstance(); |
351 | } |
352 | |
353 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_TestResults_tensorflow_2fcore_2futil_2ftest_5flog_2eproto = |
354 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 5, InitDefaultsscc_info_TestResults_tensorflow_2fcore_2futil_2ftest_5flog_2eproto}, { |
355 | &scc_info_BenchmarkEntries_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
356 | &scc_info_BuildConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
357 | &scc_info_CommitId_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
358 | &scc_info_MachineConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
359 | &scc_info_RunConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base,}}; |
360 | |
361 | static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2futil_2ftest_5flog_2eproto[17]; |
362 | static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_tensorflow_2fcore_2futil_2ftest_5flog_2eproto[1]; |
363 | static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2futil_2ftest_5flog_2eproto = nullptr; |
364 | |
365 | const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2futil_2ftest_5flog_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
366 | ~0u, // no _has_bits_ |
367 | PROTOBUF_FIELD_OFFSET(::tensorflow::EntryValue, _internal_metadata_), |
368 | ~0u, // no _extensions_ |
369 | PROTOBUF_FIELD_OFFSET(::tensorflow::EntryValue, _oneof_case_[0]), |
370 | ~0u, // no _weak_field_map_ |
371 | offsetof(::tensorflow::EntryValueDefaultTypeInternal, double_value_), |
372 | offsetof(::tensorflow::EntryValueDefaultTypeInternal, string_value_), |
373 | PROTOBUF_FIELD_OFFSET(::tensorflow::EntryValue, kind_), |
374 | ~0u, // no _has_bits_ |
375 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetricEntry, _internal_metadata_), |
376 | ~0u, // no _extensions_ |
377 | ~0u, // no _oneof_case_ |
378 | ~0u, // no _weak_field_map_ |
379 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetricEntry, name_), |
380 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetricEntry, value_), |
381 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetricEntry, min_value_), |
382 | PROTOBUF_FIELD_OFFSET(::tensorflow::MetricEntry, max_value_), |
383 | PROTOBUF_FIELD_OFFSET(::tensorflow::BenchmarkEntry_ExtrasEntry_DoNotUse, _has_bits_), |
384 | PROTOBUF_FIELD_OFFSET(::tensorflow::BenchmarkEntry_ExtrasEntry_DoNotUse, _internal_metadata_), |
385 | ~0u, // no _extensions_ |
386 | ~0u, // no _oneof_case_ |
387 | ~0u, // no _weak_field_map_ |
388 | PROTOBUF_FIELD_OFFSET(::tensorflow::BenchmarkEntry_ExtrasEntry_DoNotUse, key_), |
389 | PROTOBUF_FIELD_OFFSET(::tensorflow::BenchmarkEntry_ExtrasEntry_DoNotUse, value_), |
390 | 0, |
391 | 1, |
392 | ~0u, // no _has_bits_ |
393 | PROTOBUF_FIELD_OFFSET(::tensorflow::BenchmarkEntry, _internal_metadata_), |
394 | ~0u, // no _extensions_ |
395 | ~0u, // no _oneof_case_ |
396 | ~0u, // no _weak_field_map_ |
397 | PROTOBUF_FIELD_OFFSET(::tensorflow::BenchmarkEntry, name_), |
398 | PROTOBUF_FIELD_OFFSET(::tensorflow::BenchmarkEntry, iters_), |
399 | PROTOBUF_FIELD_OFFSET(::tensorflow::BenchmarkEntry, cpu_time_), |
400 | PROTOBUF_FIELD_OFFSET(::tensorflow::BenchmarkEntry, wall_time_), |
401 | PROTOBUF_FIELD_OFFSET(::tensorflow::BenchmarkEntry, throughput_), |
402 | PROTOBUF_FIELD_OFFSET(::tensorflow::BenchmarkEntry, extras_), |
403 | PROTOBUF_FIELD_OFFSET(::tensorflow::BenchmarkEntry, metrics_), |
404 | ~0u, // no _has_bits_ |
405 | PROTOBUF_FIELD_OFFSET(::tensorflow::BenchmarkEntries, _internal_metadata_), |
406 | ~0u, // no _extensions_ |
407 | ~0u, // no _oneof_case_ |
408 | ~0u, // no _weak_field_map_ |
409 | PROTOBUF_FIELD_OFFSET(::tensorflow::BenchmarkEntries, entry_), |
410 | ~0u, // no _has_bits_ |
411 | PROTOBUF_FIELD_OFFSET(::tensorflow::BuildConfiguration, _internal_metadata_), |
412 | ~0u, // no _extensions_ |
413 | ~0u, // no _oneof_case_ |
414 | ~0u, // no _weak_field_map_ |
415 | PROTOBUF_FIELD_OFFSET(::tensorflow::BuildConfiguration, mode_), |
416 | PROTOBUF_FIELD_OFFSET(::tensorflow::BuildConfiguration, cc_flags_), |
417 | PROTOBUF_FIELD_OFFSET(::tensorflow::BuildConfiguration, opts_), |
418 | ~0u, // no _has_bits_ |
419 | PROTOBUF_FIELD_OFFSET(::tensorflow::CommitId, _internal_metadata_), |
420 | ~0u, // no _extensions_ |
421 | PROTOBUF_FIELD_OFFSET(::tensorflow::CommitId, _oneof_case_[0]), |
422 | ~0u, // no _weak_field_map_ |
423 | offsetof(::tensorflow::CommitIdDefaultTypeInternal, changelist_), |
424 | offsetof(::tensorflow::CommitIdDefaultTypeInternal, hash_), |
425 | PROTOBUF_FIELD_OFFSET(::tensorflow::CommitId, snapshot_), |
426 | PROTOBUF_FIELD_OFFSET(::tensorflow::CommitId, pending_changelist_), |
427 | PROTOBUF_FIELD_OFFSET(::tensorflow::CommitId, kind_), |
428 | PROTOBUF_FIELD_OFFSET(::tensorflow::CPUInfo_CacheSizeEntry_DoNotUse, _has_bits_), |
429 | PROTOBUF_FIELD_OFFSET(::tensorflow::CPUInfo_CacheSizeEntry_DoNotUse, _internal_metadata_), |
430 | ~0u, // no _extensions_ |
431 | ~0u, // no _oneof_case_ |
432 | ~0u, // no _weak_field_map_ |
433 | PROTOBUF_FIELD_OFFSET(::tensorflow::CPUInfo_CacheSizeEntry_DoNotUse, key_), |
434 | PROTOBUF_FIELD_OFFSET(::tensorflow::CPUInfo_CacheSizeEntry_DoNotUse, value_), |
435 | 0, |
436 | 1, |
437 | ~0u, // no _has_bits_ |
438 | PROTOBUF_FIELD_OFFSET(::tensorflow::CPUInfo, _internal_metadata_), |
439 | ~0u, // no _extensions_ |
440 | ~0u, // no _oneof_case_ |
441 | ~0u, // no _weak_field_map_ |
442 | PROTOBUF_FIELD_OFFSET(::tensorflow::CPUInfo, num_cores_), |
443 | PROTOBUF_FIELD_OFFSET(::tensorflow::CPUInfo, num_cores_allowed_), |
444 | PROTOBUF_FIELD_OFFSET(::tensorflow::CPUInfo, mhz_per_cpu_), |
445 | PROTOBUF_FIELD_OFFSET(::tensorflow::CPUInfo, cpu_info_), |
446 | PROTOBUF_FIELD_OFFSET(::tensorflow::CPUInfo, cpu_governor_), |
447 | PROTOBUF_FIELD_OFFSET(::tensorflow::CPUInfo, cache_size_), |
448 | ~0u, // no _has_bits_ |
449 | PROTOBUF_FIELD_OFFSET(::tensorflow::MemoryInfo, _internal_metadata_), |
450 | ~0u, // no _extensions_ |
451 | ~0u, // no _oneof_case_ |
452 | ~0u, // no _weak_field_map_ |
453 | PROTOBUF_FIELD_OFFSET(::tensorflow::MemoryInfo, total_), |
454 | PROTOBUF_FIELD_OFFSET(::tensorflow::MemoryInfo, available_), |
455 | ~0u, // no _has_bits_ |
456 | PROTOBUF_FIELD_OFFSET(::tensorflow::GPUInfo, _internal_metadata_), |
457 | ~0u, // no _extensions_ |
458 | ~0u, // no _oneof_case_ |
459 | ~0u, // no _weak_field_map_ |
460 | PROTOBUF_FIELD_OFFSET(::tensorflow::GPUInfo, model_), |
461 | PROTOBUF_FIELD_OFFSET(::tensorflow::GPUInfo, uuid_), |
462 | PROTOBUF_FIELD_OFFSET(::tensorflow::GPUInfo, bus_id_), |
463 | ~0u, // no _has_bits_ |
464 | PROTOBUF_FIELD_OFFSET(::tensorflow::PlatformInfo, _internal_metadata_), |
465 | ~0u, // no _extensions_ |
466 | ~0u, // no _oneof_case_ |
467 | ~0u, // no _weak_field_map_ |
468 | PROTOBUF_FIELD_OFFSET(::tensorflow::PlatformInfo, bits_), |
469 | PROTOBUF_FIELD_OFFSET(::tensorflow::PlatformInfo, linkage_), |
470 | PROTOBUF_FIELD_OFFSET(::tensorflow::PlatformInfo, machine_), |
471 | PROTOBUF_FIELD_OFFSET(::tensorflow::PlatformInfo, release_), |
472 | PROTOBUF_FIELD_OFFSET(::tensorflow::PlatformInfo, system_), |
473 | PROTOBUF_FIELD_OFFSET(::tensorflow::PlatformInfo, version_), |
474 | ~0u, // no _has_bits_ |
475 | PROTOBUF_FIELD_OFFSET(::tensorflow::AvailableDeviceInfo, _internal_metadata_), |
476 | ~0u, // no _extensions_ |
477 | ~0u, // no _oneof_case_ |
478 | ~0u, // no _weak_field_map_ |
479 | PROTOBUF_FIELD_OFFSET(::tensorflow::AvailableDeviceInfo, name_), |
480 | PROTOBUF_FIELD_OFFSET(::tensorflow::AvailableDeviceInfo, type_), |
481 | PROTOBUF_FIELD_OFFSET(::tensorflow::AvailableDeviceInfo, memory_limit_), |
482 | PROTOBUF_FIELD_OFFSET(::tensorflow::AvailableDeviceInfo, physical_description_), |
483 | ~0u, // no _has_bits_ |
484 | PROTOBUF_FIELD_OFFSET(::tensorflow::MachineConfiguration, _internal_metadata_), |
485 | ~0u, // no _extensions_ |
486 | ~0u, // no _oneof_case_ |
487 | ~0u, // no _weak_field_map_ |
488 | PROTOBUF_FIELD_OFFSET(::tensorflow::MachineConfiguration, hostname_), |
489 | PROTOBUF_FIELD_OFFSET(::tensorflow::MachineConfiguration, serial_identifier_), |
490 | PROTOBUF_FIELD_OFFSET(::tensorflow::MachineConfiguration, platform_info_), |
491 | PROTOBUF_FIELD_OFFSET(::tensorflow::MachineConfiguration, cpu_info_), |
492 | PROTOBUF_FIELD_OFFSET(::tensorflow::MachineConfiguration, device_info_), |
493 | PROTOBUF_FIELD_OFFSET(::tensorflow::MachineConfiguration, available_device_info_), |
494 | PROTOBUF_FIELD_OFFSET(::tensorflow::MachineConfiguration, memory_info_), |
495 | PROTOBUF_FIELD_OFFSET(::tensorflow::RunConfiguration_EnvVarsEntry_DoNotUse, _has_bits_), |
496 | PROTOBUF_FIELD_OFFSET(::tensorflow::RunConfiguration_EnvVarsEntry_DoNotUse, _internal_metadata_), |
497 | ~0u, // no _extensions_ |
498 | ~0u, // no _oneof_case_ |
499 | ~0u, // no _weak_field_map_ |
500 | PROTOBUF_FIELD_OFFSET(::tensorflow::RunConfiguration_EnvVarsEntry_DoNotUse, key_), |
501 | PROTOBUF_FIELD_OFFSET(::tensorflow::RunConfiguration_EnvVarsEntry_DoNotUse, value_), |
502 | 0, |
503 | 1, |
504 | ~0u, // no _has_bits_ |
505 | PROTOBUF_FIELD_OFFSET(::tensorflow::RunConfiguration, _internal_metadata_), |
506 | ~0u, // no _extensions_ |
507 | ~0u, // no _oneof_case_ |
508 | ~0u, // no _weak_field_map_ |
509 | PROTOBUF_FIELD_OFFSET(::tensorflow::RunConfiguration, argument_), |
510 | PROTOBUF_FIELD_OFFSET(::tensorflow::RunConfiguration, env_vars_), |
511 | ~0u, // no _has_bits_ |
512 | PROTOBUF_FIELD_OFFSET(::tensorflow::TestResults, _internal_metadata_), |
513 | ~0u, // no _extensions_ |
514 | ~0u, // no _oneof_case_ |
515 | ~0u, // no _weak_field_map_ |
516 | PROTOBUF_FIELD_OFFSET(::tensorflow::TestResults, target_), |
517 | PROTOBUF_FIELD_OFFSET(::tensorflow::TestResults, entries_), |
518 | PROTOBUF_FIELD_OFFSET(::tensorflow::TestResults, build_configuration_), |
519 | PROTOBUF_FIELD_OFFSET(::tensorflow::TestResults, commit_id_), |
520 | PROTOBUF_FIELD_OFFSET(::tensorflow::TestResults, start_time_), |
521 | PROTOBUF_FIELD_OFFSET(::tensorflow::TestResults, run_time_), |
522 | PROTOBUF_FIELD_OFFSET(::tensorflow::TestResults, machine_configuration_), |
523 | PROTOBUF_FIELD_OFFSET(::tensorflow::TestResults, run_configuration_), |
524 | PROTOBUF_FIELD_OFFSET(::tensorflow::TestResults, name_), |
525 | PROTOBUF_FIELD_OFFSET(::tensorflow::TestResults, benchmark_type_), |
526 | PROTOBUF_FIELD_OFFSET(::tensorflow::TestResults, run_mode_), |
527 | PROTOBUF_FIELD_OFFSET(::tensorflow::TestResults, tf_version_), |
528 | }; |
529 | static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
530 | { 0, -1, sizeof(::tensorflow::EntryValue)}, |
531 | { 8, -1, sizeof(::tensorflow::MetricEntry)}, |
532 | { 17, 24, sizeof(::tensorflow::BenchmarkEntry_ExtrasEntry_DoNotUse)}, |
533 | { 26, -1, sizeof(::tensorflow::BenchmarkEntry)}, |
534 | { 38, -1, sizeof(::tensorflow::BenchmarkEntries)}, |
535 | { 44, -1, sizeof(::tensorflow::BuildConfiguration)}, |
536 | { 52, -1, sizeof(::tensorflow::CommitId)}, |
537 | { 62, 69, sizeof(::tensorflow::CPUInfo_CacheSizeEntry_DoNotUse)}, |
538 | { 71, -1, sizeof(::tensorflow::CPUInfo)}, |
539 | { 82, -1, sizeof(::tensorflow::MemoryInfo)}, |
540 | { 89, -1, sizeof(::tensorflow::GPUInfo)}, |
541 | { 97, -1, sizeof(::tensorflow::PlatformInfo)}, |
542 | { 108, -1, sizeof(::tensorflow::AvailableDeviceInfo)}, |
543 | { 117, -1, sizeof(::tensorflow::MachineConfiguration)}, |
544 | { 129, 136, sizeof(::tensorflow::RunConfiguration_EnvVarsEntry_DoNotUse)}, |
545 | { 138, -1, sizeof(::tensorflow::RunConfiguration)}, |
546 | { 145, -1, sizeof(::tensorflow::TestResults)}, |
547 | }; |
548 | |
549 | static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { |
550 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_EntryValue_default_instance_), |
551 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_MetricEntry_default_instance_), |
552 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_BenchmarkEntry_ExtrasEntry_DoNotUse_default_instance_), |
553 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_BenchmarkEntry_default_instance_), |
554 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_BenchmarkEntries_default_instance_), |
555 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_BuildConfiguration_default_instance_), |
556 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CommitId_default_instance_), |
557 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CPUInfo_CacheSizeEntry_DoNotUse_default_instance_), |
558 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_CPUInfo_default_instance_), |
559 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_MemoryInfo_default_instance_), |
560 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_GPUInfo_default_instance_), |
561 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_PlatformInfo_default_instance_), |
562 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_AvailableDeviceInfo_default_instance_), |
563 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_MachineConfiguration_default_instance_), |
564 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_RunConfiguration_EnvVarsEntry_DoNotUse_default_instance_), |
565 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_RunConfiguration_default_instance_), |
566 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_TestResults_default_instance_), |
567 | }; |
568 | |
569 | const char descriptor_table_protodef_tensorflow_2fcore_2futil_2ftest_5flog_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
570 | "\n#tensorflow/core/util/test_log.proto\022\nt" |
571 | "ensorflow\032\031google/protobuf/any.proto\032\036go" |
572 | "ogle/protobuf/wrappers.proto\"D\n\nEntryVal" |
573 | "ue\022\026\n\014double_value\030\001 \001(\001H\000\022\026\n\014string_val" |
574 | "ue\030\002 \001(\tH\000B\006\n\004kind\"\214\001\n\013MetricEntry\022\014\n\004na" |
575 | "me\030\001 \001(\t\022\r\n\005value\030\002 \001(\001\022/\n\tmin_value\030\003 \001" |
576 | "(\0132\034.google.protobuf.DoubleValue\022/\n\tmax_" |
577 | "value\030\004 \001(\0132\034.google.protobuf.DoubleValu" |
578 | "e\"\217\002\n\016BenchmarkEntry\022\014\n\004name\030\001 \001(\t\022\r\n\005it" |
579 | "ers\030\002 \001(\003\022\020\n\010cpu_time\030\003 \001(\001\022\021\n\twall_time" |
580 | "\030\004 \001(\001\022\022\n\nthroughput\030\005 \001(\001\0226\n\006extras\030\006 \003" |
581 | "(\0132&.tensorflow.BenchmarkEntry.ExtrasEnt" |
582 | "ry\022(\n\007metrics\030\007 \003(\0132\027.tensorflow.MetricE" |
583 | "ntry\032E\n\013ExtrasEntry\022\013\n\003key\030\001 \001(\t\022%\n\005valu" |
584 | "e\030\002 \001(\0132\026.tensorflow.EntryValue:\0028\001\"=\n\020B" |
585 | "enchmarkEntries\022)\n\005entry\030\001 \003(\0132\032.tensorf" |
586 | "low.BenchmarkEntry\"B\n\022BuildConfiguration" |
587 | "\022\014\n\004mode\030\001 \001(\t\022\020\n\010cc_flags\030\002 \003(\t\022\014\n\004opts" |
588 | "\030\003 \003(\t\"f\n\010CommitId\022\024\n\nchangelist\030\001 \001(\003H\000" |
589 | "\022\016\n\004hash\030\002 \001(\tH\000\022\020\n\010snapshot\030\003 \001(\t\022\032\n\022pe" |
590 | "nding_changelist\030\004 \001(\003B\006\n\004kind\"\336\001\n\007CPUIn" |
591 | "fo\022\021\n\tnum_cores\030\001 \001(\003\022\031\n\021num_cores_allow" |
592 | "ed\030\002 \001(\003\022\023\n\013mhz_per_cpu\030\003 \001(\001\022\020\n\010cpu_inf" |
593 | "o\030\004 \001(\t\022\024\n\014cpu_governor\030\005 \001(\t\0226\n\ncache_s" |
594 | "ize\030\006 \003(\0132\".tensorflow.CPUInfo.CacheSize" |
595 | "Entry\0320\n\016CacheSizeEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" |
596 | "value\030\002 \001(\003:\0028\001\".\n\nMemoryInfo\022\r\n\005total\030\001" |
597 | " \001(\003\022\021\n\tavailable\030\002 \001(\003\"6\n\007GPUInfo\022\r\n\005mo" |
598 | "del\030\001 \001(\t\022\014\n\004uuid\030\002 \001(\t\022\016\n\006bus_id\030\003 \001(\t\"" |
599 | "p\n\014PlatformInfo\022\014\n\004bits\030\001 \001(\t\022\017\n\007linkage" |
600 | "\030\002 \001(\t\022\017\n\007machine\030\003 \001(\t\022\017\n\007release\030\004 \001(\t" |
601 | "\022\016\n\006system\030\005 \001(\t\022\017\n\007version\030\006 \001(\t\"e\n\023Ava" |
602 | "ilableDeviceInfo\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002" |
603 | " \001(\t\022\024\n\014memory_limit\030\003 \001(\003\022\034\n\024physical_d" |
604 | "escription\030\004 \001(\t\"\263\002\n\024MachineConfiguratio" |
605 | "n\022\020\n\010hostname\030\001 \001(\t\022\031\n\021serial_identifier" |
606 | "\030\007 \001(\t\022/\n\rplatform_info\030\002 \001(\0132\030.tensorfl" |
607 | "ow.PlatformInfo\022%\n\010cpu_info\030\003 \001(\0132\023.tens" |
608 | "orflow.CPUInfo\022)\n\013device_info\030\004 \003(\0132\024.go" |
609 | "ogle.protobuf.Any\022>\n\025available_device_in" |
610 | "fo\030\005 \003(\0132\037.tensorflow.AvailableDeviceInf" |
611 | "o\022+\n\013memory_info\030\006 \001(\0132\026.tensorflow.Memo" |
612 | "ryInfo\"\221\001\n\020RunConfiguration\022\020\n\010argument\030" |
613 | "\001 \003(\t\022;\n\010env_vars\030\002 \003(\0132).tensorflow.Run" |
614 | "Configuration.EnvVarsEntry\032.\n\014EnvVarsEnt" |
615 | "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\320\004\n\013T" |
616 | "estResults\022\016\n\006target\030\001 \001(\t\022-\n\007entries\030\002 " |
617 | "\001(\0132\034.tensorflow.BenchmarkEntries\022;\n\023bui" |
618 | "ld_configuration\030\003 \001(\0132\036.tensorflow.Buil" |
619 | "dConfiguration\022\'\n\tcommit_id\030\004 \001(\0132\024.tens" |
620 | "orflow.CommitId\022\022\n\nstart_time\030\005 \001(\003\022\020\n\010r" |
621 | "un_time\030\006 \001(\001\022\?\n\025machine_configuration\030\007" |
622 | " \001(\0132 .tensorflow.MachineConfiguration\0227" |
623 | "\n\021run_configuration\030\010 \001(\0132\034.tensorflow.R" |
624 | "unConfiguration\022\014\n\004name\030\t \001(\t\022=\n\016benchma" |
625 | "rk_type\030\n \001(\0162%.tensorflow.TestResults.B" |
626 | "enchmarkType\022\020\n\010run_mode\030\013 \001(\t\022\022\n\ntf_ver" |
627 | "sion\030\014 \001(\t\"\210\001\n\rBenchmarkType\022\013\n\007UNKNOWN\020" |
628 | "\000\022\026\n\022CPP_MICROBENCHMARK\020\001\022\024\n\020PYTHON_BENC" |
629 | "HMARK\020\002\022\025\n\021ANDROID_BENCHMARK\020\003\022\022\n\016EDGE_B" |
630 | "ENCHMARK\020\004\022\021\n\rIOS_BENCHMARK\020\005B1\n\033org.ten" |
631 | "sorflow.util.testlogB\rTestLogProtosP\001\370\001\001" |
632 | "b\006proto3" |
633 | ; |
634 | static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2futil_2ftest_5flog_2eproto_deps[2] = { |
635 | &::descriptor_table_google_2fprotobuf_2fany_2eproto, |
636 | &::descriptor_table_google_2fprotobuf_2fwrappers_2eproto, |
637 | }; |
638 | static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2futil_2ftest_5flog_2eproto_sccs[17] = { |
639 | &scc_info_AvailableDeviceInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
640 | &scc_info_BenchmarkEntries_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
641 | &scc_info_BenchmarkEntry_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
642 | &scc_info_BenchmarkEntry_ExtrasEntry_DoNotUse_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
643 | &scc_info_BuildConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
644 | &scc_info_CPUInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
645 | &scc_info_CPUInfo_CacheSizeEntry_DoNotUse_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
646 | &scc_info_CommitId_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
647 | &scc_info_EntryValue_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
648 | &scc_info_GPUInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
649 | &scc_info_MachineConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
650 | &scc_info_MemoryInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
651 | &scc_info_MetricEntry_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
652 | &scc_info_PlatformInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
653 | &scc_info_RunConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
654 | &scc_info_RunConfiguration_EnvVarsEntry_DoNotUse_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
655 | &scc_info_TestResults_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base, |
656 | }; |
657 | static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2futil_2ftest_5flog_2eproto_once; |
658 | static bool descriptor_table_tensorflow_2fcore_2futil_2ftest_5flog_2eproto_initialized = false; |
659 | const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2futil_2ftest_5flog_2eproto = { |
660 | &descriptor_table_tensorflow_2fcore_2futil_2ftest_5flog_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2futil_2ftest_5flog_2eproto, "tensorflow/core/util/test_log.proto" , 2488, |
661 | &descriptor_table_tensorflow_2fcore_2futil_2ftest_5flog_2eproto_once, descriptor_table_tensorflow_2fcore_2futil_2ftest_5flog_2eproto_sccs, descriptor_table_tensorflow_2fcore_2futil_2ftest_5flog_2eproto_deps, 17, 2, |
662 | schemas, file_default_instances, TableStruct_tensorflow_2fcore_2futil_2ftest_5flog_2eproto::offsets, |
663 | file_level_metadata_tensorflow_2fcore_2futil_2ftest_5flog_2eproto, 17, file_level_enum_descriptors_tensorflow_2fcore_2futil_2ftest_5flog_2eproto, file_level_service_descriptors_tensorflow_2fcore_2futil_2ftest_5flog_2eproto, |
664 | }; |
665 | |
666 | // Force running AddDescriptors() at dynamic initialization time. |
667 | static bool dynamic_init_dummy_tensorflow_2fcore_2futil_2ftest_5flog_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2futil_2ftest_5flog_2eproto), true); |
668 | namespace tensorflow { |
669 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TestResults_BenchmarkType_descriptor() { |
670 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_tensorflow_2fcore_2futil_2ftest_5flog_2eproto); |
671 | return file_level_enum_descriptors_tensorflow_2fcore_2futil_2ftest_5flog_2eproto[0]; |
672 | } |
673 | bool TestResults_BenchmarkType_IsValid(int value) { |
674 | switch (value) { |
675 | case 0: |
676 | case 1: |
677 | case 2: |
678 | case 3: |
679 | case 4: |
680 | case 5: |
681 | return true; |
682 | default: |
683 | return false; |
684 | } |
685 | } |
686 | |
687 | #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) |
688 | constexpr TestResults_BenchmarkType TestResults::UNKNOWN; |
689 | constexpr TestResults_BenchmarkType TestResults::CPP_MICROBENCHMARK; |
690 | constexpr TestResults_BenchmarkType TestResults::PYTHON_BENCHMARK; |
691 | constexpr TestResults_BenchmarkType TestResults::ANDROID_BENCHMARK; |
692 | constexpr TestResults_BenchmarkType TestResults::EDGE_BENCHMARK; |
693 | constexpr TestResults_BenchmarkType TestResults::IOS_BENCHMARK; |
694 | constexpr TestResults_BenchmarkType TestResults::BenchmarkType_MIN; |
695 | constexpr TestResults_BenchmarkType TestResults::BenchmarkType_MAX; |
696 | constexpr int TestResults::BenchmarkType_ARRAYSIZE; |
697 | #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) |
698 | |
699 | // =================================================================== |
700 | |
701 | void EntryValue::InitAsDefaultInstance() { |
702 | ::tensorflow::_EntryValue_default_instance_.double_value_ = 0; |
703 | ::tensorflow::_EntryValue_default_instance_.string_value_.UnsafeSetDefault( |
704 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
705 | } |
706 | class EntryValue::_Internal { |
707 | public: |
708 | }; |
709 | |
710 | EntryValue::EntryValue() |
711 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
712 | SharedCtor(); |
713 | // @@protoc_insertion_point(constructor:tensorflow.EntryValue) |
714 | } |
715 | EntryValue::EntryValue(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
716 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
717 | _internal_metadata_(arena) { |
718 | SharedCtor(); |
719 | RegisterArenaDtor(arena); |
720 | // @@protoc_insertion_point(arena_constructor:tensorflow.EntryValue) |
721 | } |
722 | EntryValue::EntryValue(const EntryValue& from) |
723 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
724 | _internal_metadata_(nullptr) { |
725 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
726 | clear_has_kind(); |
727 | switch (from.kind_case()) { |
728 | case kDoubleValue: { |
729 | set_double_value(from.double_value()); |
730 | break; |
731 | } |
732 | case kStringValue: { |
733 | set_string_value(from.string_value()); |
734 | break; |
735 | } |
736 | case KIND_NOT_SET: { |
737 | break; |
738 | } |
739 | } |
740 | // @@protoc_insertion_point(copy_constructor:tensorflow.EntryValue) |
741 | } |
742 | |
743 | void EntryValue::SharedCtor() { |
744 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EntryValue_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
745 | clear_has_kind(); |
746 | } |
747 | |
748 | EntryValue::~EntryValue() { |
749 | // @@protoc_insertion_point(destructor:tensorflow.EntryValue) |
750 | SharedDtor(); |
751 | } |
752 | |
753 | void EntryValue::SharedDtor() { |
754 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
755 | if (has_kind()) { |
756 | clear_kind(); |
757 | } |
758 | } |
759 | |
760 | void EntryValue::ArenaDtor(void* object) { |
761 | EntryValue* _this = reinterpret_cast< EntryValue* >(object); |
762 | (void)_this; |
763 | } |
764 | void EntryValue::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
765 | } |
766 | void EntryValue::SetCachedSize(int size) const { |
767 | _cached_size_.Set(size); |
768 | } |
769 | const EntryValue& EntryValue::default_instance() { |
770 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EntryValue_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
771 | return *internal_default_instance(); |
772 | } |
773 | |
774 | |
775 | void EntryValue::clear_kind() { |
776 | // @@protoc_insertion_point(one_of_clear_start:tensorflow.EntryValue) |
777 | switch (kind_case()) { |
778 | case kDoubleValue: { |
779 | // No need to clear |
780 | break; |
781 | } |
782 | case kStringValue: { |
783 | kind_.string_value_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
784 | GetArenaNoVirtual()); |
785 | break; |
786 | } |
787 | case KIND_NOT_SET: { |
788 | break; |
789 | } |
790 | } |
791 | _oneof_case_[0] = KIND_NOT_SET; |
792 | } |
793 | |
794 | |
795 | void EntryValue::Clear() { |
796 | // @@protoc_insertion_point(message_clear_start:tensorflow.EntryValue) |
797 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
798 | // Prevent compiler warnings about cached_has_bits being unused |
799 | (void) cached_has_bits; |
800 | |
801 | clear_kind(); |
802 | _internal_metadata_.Clear(); |
803 | } |
804 | |
805 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
806 | const char* EntryValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
807 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
808 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
809 | while (!ctx->Done(&ptr)) { |
810 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
811 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
812 | CHK_(ptr); |
813 | switch (tag >> 3) { |
814 | // double double_value = 1; |
815 | case 1: |
816 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) { |
817 | set_double_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr)); |
818 | ptr += sizeof(double); |
819 | } else goto handle_unusual; |
820 | continue; |
821 | // string string_value = 2; |
822 | case 2: |
823 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
824 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_string_value(), ptr, ctx, "tensorflow.EntryValue.string_value" ); |
825 | CHK_(ptr); |
826 | } else goto handle_unusual; |
827 | continue; |
828 | default: { |
829 | handle_unusual: |
830 | if ((tag & 7) == 4 || tag == 0) { |
831 | ctx->SetLastTag(tag); |
832 | goto success; |
833 | } |
834 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
835 | CHK_(ptr != nullptr); |
836 | continue; |
837 | } |
838 | } // switch |
839 | } // while |
840 | success: |
841 | return ptr; |
842 | failure: |
843 | ptr = nullptr; |
844 | goto success; |
845 | #undef CHK_ |
846 | } |
847 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
848 | bool EntryValue::MergePartialFromCodedStream( |
849 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
850 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
851 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
852 | // @@protoc_insertion_point(parse_start:tensorflow.EntryValue) |
853 | for (;;) { |
854 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
855 | tag = p.first; |
856 | if (!p.second) goto handle_unusual; |
857 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
858 | // double double_value = 1; |
859 | case 1: { |
860 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (9 & 0xFF)) { |
861 | clear_kind(); |
862 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
863 | double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( |
864 | input, &kind_.double_value_))); |
865 | set_has_double_value(); |
866 | } else { |
867 | goto handle_unusual; |
868 | } |
869 | break; |
870 | } |
871 | |
872 | // string string_value = 2; |
873 | case 2: { |
874 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
875 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
876 | input, this->mutable_string_value())); |
877 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
878 | this->string_value().data(), static_cast<int>(this->string_value().length()), |
879 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
880 | "tensorflow.EntryValue.string_value" )); |
881 | } else { |
882 | goto handle_unusual; |
883 | } |
884 | break; |
885 | } |
886 | |
887 | default: { |
888 | handle_unusual: |
889 | if (tag == 0) { |
890 | goto success; |
891 | } |
892 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
893 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
894 | break; |
895 | } |
896 | } |
897 | } |
898 | success: |
899 | // @@protoc_insertion_point(parse_success:tensorflow.EntryValue) |
900 | return true; |
901 | failure: |
902 | // @@protoc_insertion_point(parse_failure:tensorflow.EntryValue) |
903 | return false; |
904 | #undef DO_ |
905 | } |
906 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
907 | |
908 | void EntryValue::SerializeWithCachedSizes( |
909 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
910 | // @@protoc_insertion_point(serialize_start:tensorflow.EntryValue) |
911 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
912 | (void) cached_has_bits; |
913 | |
914 | // double double_value = 1; |
915 | if (has_double_value()) { |
916 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(1, this->double_value(), output); |
917 | } |
918 | |
919 | // string string_value = 2; |
920 | if (has_string_value()) { |
921 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
922 | this->string_value().data(), static_cast<int>(this->string_value().length()), |
923 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
924 | "tensorflow.EntryValue.string_value" ); |
925 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
926 | 2, this->string_value(), output); |
927 | } |
928 | |
929 | if (_internal_metadata_.have_unknown_fields()) { |
930 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
931 | _internal_metadata_.unknown_fields(), output); |
932 | } |
933 | // @@protoc_insertion_point(serialize_end:tensorflow.EntryValue) |
934 | } |
935 | |
936 | ::PROTOBUF_NAMESPACE_ID::uint8* EntryValue::InternalSerializeWithCachedSizesToArray( |
937 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
938 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.EntryValue) |
939 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
940 | (void) cached_has_bits; |
941 | |
942 | // double double_value = 1; |
943 | if (has_double_value()) { |
944 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->double_value(), target); |
945 | } |
946 | |
947 | // string string_value = 2; |
948 | if (has_string_value()) { |
949 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
950 | this->string_value().data(), static_cast<int>(this->string_value().length()), |
951 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
952 | "tensorflow.EntryValue.string_value" ); |
953 | target = |
954 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
955 | 2, this->string_value(), target); |
956 | } |
957 | |
958 | if (_internal_metadata_.have_unknown_fields()) { |
959 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
960 | _internal_metadata_.unknown_fields(), target); |
961 | } |
962 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.EntryValue) |
963 | return target; |
964 | } |
965 | |
966 | size_t EntryValue::ByteSizeLong() const { |
967 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.EntryValue) |
968 | size_t total_size = 0; |
969 | |
970 | if (_internal_metadata_.have_unknown_fields()) { |
971 | total_size += |
972 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
973 | _internal_metadata_.unknown_fields()); |
974 | } |
975 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
976 | // Prevent compiler warnings about cached_has_bits being unused |
977 | (void) cached_has_bits; |
978 | |
979 | switch (kind_case()) { |
980 | // double double_value = 1; |
981 | case kDoubleValue: { |
982 | total_size += 1 + 8; |
983 | break; |
984 | } |
985 | // string string_value = 2; |
986 | case kStringValue: { |
987 | total_size += 1 + |
988 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
989 | this->string_value()); |
990 | break; |
991 | } |
992 | case KIND_NOT_SET: { |
993 | break; |
994 | } |
995 | } |
996 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
997 | SetCachedSize(cached_size); |
998 | return total_size; |
999 | } |
1000 | |
1001 | void EntryValue::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1002 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.EntryValue) |
1003 | GOOGLE_DCHECK_NE(&from, this); |
1004 | const EntryValue* source = |
1005 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<EntryValue>( |
1006 | &from); |
1007 | if (source == nullptr) { |
1008 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.EntryValue) |
1009 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1010 | } else { |
1011 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.EntryValue) |
1012 | MergeFrom(*source); |
1013 | } |
1014 | } |
1015 | |
1016 | void EntryValue::MergeFrom(const EntryValue& from) { |
1017 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.EntryValue) |
1018 | GOOGLE_DCHECK_NE(&from, this); |
1019 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1020 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1021 | (void) cached_has_bits; |
1022 | |
1023 | switch (from.kind_case()) { |
1024 | case kDoubleValue: { |
1025 | set_double_value(from.double_value()); |
1026 | break; |
1027 | } |
1028 | case kStringValue: { |
1029 | set_string_value(from.string_value()); |
1030 | break; |
1031 | } |
1032 | case KIND_NOT_SET: { |
1033 | break; |
1034 | } |
1035 | } |
1036 | } |
1037 | |
1038 | void EntryValue::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1039 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.EntryValue) |
1040 | if (&from == this) return; |
1041 | Clear(); |
1042 | MergeFrom(from); |
1043 | } |
1044 | |
1045 | void EntryValue::CopyFrom(const EntryValue& from) { |
1046 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.EntryValue) |
1047 | if (&from == this) return; |
1048 | Clear(); |
1049 | MergeFrom(from); |
1050 | } |
1051 | |
1052 | bool EntryValue::IsInitialized() const { |
1053 | return true; |
1054 | } |
1055 | |
1056 | void EntryValue::InternalSwap(EntryValue* other) { |
1057 | using std::swap; |
1058 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1059 | swap(kind_, other->kind_); |
1060 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
1061 | } |
1062 | |
1063 | ::PROTOBUF_NAMESPACE_ID::Metadata EntryValue::GetMetadata() const { |
1064 | return GetMetadataStatic(); |
1065 | } |
1066 | |
1067 | |
1068 | // =================================================================== |
1069 | |
1070 | void MetricEntry::InitAsDefaultInstance() { |
1071 | ::tensorflow::_MetricEntry_default_instance_._instance.get_mutable()->min_value_ = const_cast< PROTOBUF_NAMESPACE_ID::DoubleValue*>( |
1072 | PROTOBUF_NAMESPACE_ID::DoubleValue::internal_default_instance()); |
1073 | ::tensorflow::_MetricEntry_default_instance_._instance.get_mutable()->max_value_ = const_cast< PROTOBUF_NAMESPACE_ID::DoubleValue*>( |
1074 | PROTOBUF_NAMESPACE_ID::DoubleValue::internal_default_instance()); |
1075 | } |
1076 | class MetricEntry::_Internal { |
1077 | public: |
1078 | static const PROTOBUF_NAMESPACE_ID::DoubleValue& min_value(const MetricEntry* msg); |
1079 | static const PROTOBUF_NAMESPACE_ID::DoubleValue& max_value(const MetricEntry* msg); |
1080 | }; |
1081 | |
1082 | const PROTOBUF_NAMESPACE_ID::DoubleValue& |
1083 | MetricEntry::_Internal::min_value(const MetricEntry* msg) { |
1084 | return *msg->min_value_; |
1085 | } |
1086 | const PROTOBUF_NAMESPACE_ID::DoubleValue& |
1087 | MetricEntry::_Internal::max_value(const MetricEntry* msg) { |
1088 | return *msg->max_value_; |
1089 | } |
1090 | void MetricEntry::unsafe_arena_set_allocated_min_value( |
1091 | PROTOBUF_NAMESPACE_ID::DoubleValue* min_value) { |
1092 | if (GetArenaNoVirtual() == nullptr) { |
1093 | delete min_value_; |
1094 | } |
1095 | min_value_ = min_value; |
1096 | if (min_value) { |
1097 | |
1098 | } else { |
1099 | |
1100 | } |
1101 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MetricEntry.min_value) |
1102 | } |
1103 | void MetricEntry::clear_min_value() { |
1104 | if (GetArenaNoVirtual() == nullptr && min_value_ != nullptr) { |
1105 | delete min_value_; |
1106 | } |
1107 | min_value_ = nullptr; |
1108 | } |
1109 | void MetricEntry::unsafe_arena_set_allocated_max_value( |
1110 | PROTOBUF_NAMESPACE_ID::DoubleValue* max_value) { |
1111 | if (GetArenaNoVirtual() == nullptr) { |
1112 | delete max_value_; |
1113 | } |
1114 | max_value_ = max_value; |
1115 | if (max_value) { |
1116 | |
1117 | } else { |
1118 | |
1119 | } |
1120 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MetricEntry.max_value) |
1121 | } |
1122 | void MetricEntry::clear_max_value() { |
1123 | if (GetArenaNoVirtual() == nullptr && max_value_ != nullptr) { |
1124 | delete max_value_; |
1125 | } |
1126 | max_value_ = nullptr; |
1127 | } |
1128 | MetricEntry::MetricEntry() |
1129 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
1130 | SharedCtor(); |
1131 | // @@protoc_insertion_point(constructor:tensorflow.MetricEntry) |
1132 | } |
1133 | MetricEntry::MetricEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
1134 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1135 | _internal_metadata_(arena) { |
1136 | SharedCtor(); |
1137 | RegisterArenaDtor(arena); |
1138 | // @@protoc_insertion_point(arena_constructor:tensorflow.MetricEntry) |
1139 | } |
1140 | MetricEntry::MetricEntry(const MetricEntry& from) |
1141 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1142 | _internal_metadata_(nullptr) { |
1143 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1144 | name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1145 | if (!from.name().empty()) { |
1146 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name(), |
1147 | GetArenaNoVirtual()); |
1148 | } |
1149 | if (from.has_min_value()) { |
1150 | min_value_ = new PROTOBUF_NAMESPACE_ID::DoubleValue(*from.min_value_); |
1151 | } else { |
1152 | min_value_ = nullptr; |
1153 | } |
1154 | if (from.has_max_value()) { |
1155 | max_value_ = new PROTOBUF_NAMESPACE_ID::DoubleValue(*from.max_value_); |
1156 | } else { |
1157 | max_value_ = nullptr; |
1158 | } |
1159 | value_ = from.value_; |
1160 | // @@protoc_insertion_point(copy_constructor:tensorflow.MetricEntry) |
1161 | } |
1162 | |
1163 | void MetricEntry::SharedCtor() { |
1164 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MetricEntry_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
1165 | name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1166 | ::memset(&min_value_, 0, static_cast<size_t>( |
1167 | reinterpret_cast<char*>(&value_) - |
1168 | reinterpret_cast<char*>(&min_value_)) + sizeof(value_)); |
1169 | } |
1170 | |
1171 | MetricEntry::~MetricEntry() { |
1172 | // @@protoc_insertion_point(destructor:tensorflow.MetricEntry) |
1173 | SharedDtor(); |
1174 | } |
1175 | |
1176 | void MetricEntry::SharedDtor() { |
1177 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
1178 | name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1179 | if (this != internal_default_instance()) delete min_value_; |
1180 | if (this != internal_default_instance()) delete max_value_; |
1181 | } |
1182 | |
1183 | void MetricEntry::ArenaDtor(void* object) { |
1184 | MetricEntry* _this = reinterpret_cast< MetricEntry* >(object); |
1185 | (void)_this; |
1186 | } |
1187 | void MetricEntry::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
1188 | } |
1189 | void MetricEntry::SetCachedSize(int size) const { |
1190 | _cached_size_.Set(size); |
1191 | } |
1192 | const MetricEntry& MetricEntry::default_instance() { |
1193 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MetricEntry_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
1194 | return *internal_default_instance(); |
1195 | } |
1196 | |
1197 | |
1198 | void MetricEntry::Clear() { |
1199 | // @@protoc_insertion_point(message_clear_start:tensorflow.MetricEntry) |
1200 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1201 | // Prevent compiler warnings about cached_has_bits being unused |
1202 | (void) cached_has_bits; |
1203 | |
1204 | name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
1205 | if (GetArenaNoVirtual() == nullptr && min_value_ != nullptr) { |
1206 | delete min_value_; |
1207 | } |
1208 | min_value_ = nullptr; |
1209 | if (GetArenaNoVirtual() == nullptr && max_value_ != nullptr) { |
1210 | delete max_value_; |
1211 | } |
1212 | max_value_ = nullptr; |
1213 | value_ = 0; |
1214 | _internal_metadata_.Clear(); |
1215 | } |
1216 | |
1217 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1218 | const char* MetricEntry::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
1219 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1220 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
1221 | while (!ctx->Done(&ptr)) { |
1222 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1223 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
1224 | CHK_(ptr); |
1225 | switch (tag >> 3) { |
1226 | // string name = 1; |
1227 | case 1: |
1228 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
1229 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "tensorflow.MetricEntry.name" ); |
1230 | CHK_(ptr); |
1231 | } else goto handle_unusual; |
1232 | continue; |
1233 | // double value = 2; |
1234 | case 2: |
1235 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { |
1236 | value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); |
1237 | ptr += sizeof(double); |
1238 | } else goto handle_unusual; |
1239 | continue; |
1240 | // .google.protobuf.DoubleValue min_value = 3; |
1241 | case 3: |
1242 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
1243 | ptr = ctx->ParseMessage(mutable_min_value(), ptr); |
1244 | CHK_(ptr); |
1245 | } else goto handle_unusual; |
1246 | continue; |
1247 | // .google.protobuf.DoubleValue max_value = 4; |
1248 | case 4: |
1249 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
1250 | ptr = ctx->ParseMessage(mutable_max_value(), ptr); |
1251 | CHK_(ptr); |
1252 | } else goto handle_unusual; |
1253 | continue; |
1254 | default: { |
1255 | handle_unusual: |
1256 | if ((tag & 7) == 4 || tag == 0) { |
1257 | ctx->SetLastTag(tag); |
1258 | goto success; |
1259 | } |
1260 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
1261 | CHK_(ptr != nullptr); |
1262 | continue; |
1263 | } |
1264 | } // switch |
1265 | } // while |
1266 | success: |
1267 | return ptr; |
1268 | failure: |
1269 | ptr = nullptr; |
1270 | goto success; |
1271 | #undef CHK_ |
1272 | } |
1273 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1274 | bool MetricEntry::MergePartialFromCodedStream( |
1275 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
1276 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
1277 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1278 | // @@protoc_insertion_point(parse_start:tensorflow.MetricEntry) |
1279 | for (;;) { |
1280 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1281 | tag = p.first; |
1282 | if (!p.second) goto handle_unusual; |
1283 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1284 | // string name = 1; |
1285 | case 1: { |
1286 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
1287 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
1288 | input, this->mutable_name())); |
1289 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1290 | this->name().data(), static_cast<int>(this->name().length()), |
1291 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1292 | "tensorflow.MetricEntry.name" )); |
1293 | } else { |
1294 | goto handle_unusual; |
1295 | } |
1296 | break; |
1297 | } |
1298 | |
1299 | // double value = 2; |
1300 | case 2: { |
1301 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (17 & 0xFF)) { |
1302 | |
1303 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1304 | double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( |
1305 | input, &value_))); |
1306 | } else { |
1307 | goto handle_unusual; |
1308 | } |
1309 | break; |
1310 | } |
1311 | |
1312 | // .google.protobuf.DoubleValue min_value = 3; |
1313 | case 3: { |
1314 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
1315 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
1316 | input, mutable_min_value())); |
1317 | } else { |
1318 | goto handle_unusual; |
1319 | } |
1320 | break; |
1321 | } |
1322 | |
1323 | // .google.protobuf.DoubleValue max_value = 4; |
1324 | case 4: { |
1325 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
1326 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
1327 | input, mutable_max_value())); |
1328 | } else { |
1329 | goto handle_unusual; |
1330 | } |
1331 | break; |
1332 | } |
1333 | |
1334 | default: { |
1335 | handle_unusual: |
1336 | if (tag == 0) { |
1337 | goto success; |
1338 | } |
1339 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
1340 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1341 | break; |
1342 | } |
1343 | } |
1344 | } |
1345 | success: |
1346 | // @@protoc_insertion_point(parse_success:tensorflow.MetricEntry) |
1347 | return true; |
1348 | failure: |
1349 | // @@protoc_insertion_point(parse_failure:tensorflow.MetricEntry) |
1350 | return false; |
1351 | #undef DO_ |
1352 | } |
1353 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1354 | |
1355 | void MetricEntry::SerializeWithCachedSizes( |
1356 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
1357 | // @@protoc_insertion_point(serialize_start:tensorflow.MetricEntry) |
1358 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1359 | (void) cached_has_bits; |
1360 | |
1361 | // string name = 1; |
1362 | if (this->name().size() > 0) { |
1363 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1364 | this->name().data(), static_cast<int>(this->name().length()), |
1365 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1366 | "tensorflow.MetricEntry.name" ); |
1367 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
1368 | 1, this->name(), output); |
1369 | } |
1370 | |
1371 | // double value = 2; |
1372 | if (!(this->value() <= 0 && this->value() >= 0)) { |
1373 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(2, this->value(), output); |
1374 | } |
1375 | |
1376 | // .google.protobuf.DoubleValue min_value = 3; |
1377 | if (this->has_min_value()) { |
1378 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
1379 | 3, _Internal::min_value(this), output); |
1380 | } |
1381 | |
1382 | // .google.protobuf.DoubleValue max_value = 4; |
1383 | if (this->has_max_value()) { |
1384 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
1385 | 4, _Internal::max_value(this), output); |
1386 | } |
1387 | |
1388 | if (_internal_metadata_.have_unknown_fields()) { |
1389 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
1390 | _internal_metadata_.unknown_fields(), output); |
1391 | } |
1392 | // @@protoc_insertion_point(serialize_end:tensorflow.MetricEntry) |
1393 | } |
1394 | |
1395 | ::PROTOBUF_NAMESPACE_ID::uint8* MetricEntry::InternalSerializeWithCachedSizesToArray( |
1396 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
1397 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.MetricEntry) |
1398 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1399 | (void) cached_has_bits; |
1400 | |
1401 | // string name = 1; |
1402 | if (this->name().size() > 0) { |
1403 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1404 | this->name().data(), static_cast<int>(this->name().length()), |
1405 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1406 | "tensorflow.MetricEntry.name" ); |
1407 | target = |
1408 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
1409 | 1, this->name(), target); |
1410 | } |
1411 | |
1412 | // double value = 2; |
1413 | if (!(this->value() <= 0 && this->value() >= 0)) { |
1414 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->value(), target); |
1415 | } |
1416 | |
1417 | // .google.protobuf.DoubleValue min_value = 3; |
1418 | if (this->has_min_value()) { |
1419 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1420 | InternalWriteMessageToArray( |
1421 | 3, _Internal::min_value(this), target); |
1422 | } |
1423 | |
1424 | // .google.protobuf.DoubleValue max_value = 4; |
1425 | if (this->has_max_value()) { |
1426 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1427 | InternalWriteMessageToArray( |
1428 | 4, _Internal::max_value(this), target); |
1429 | } |
1430 | |
1431 | if (_internal_metadata_.have_unknown_fields()) { |
1432 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
1433 | _internal_metadata_.unknown_fields(), target); |
1434 | } |
1435 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.MetricEntry) |
1436 | return target; |
1437 | } |
1438 | |
1439 | size_t MetricEntry::ByteSizeLong() const { |
1440 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.MetricEntry) |
1441 | size_t total_size = 0; |
1442 | |
1443 | if (_internal_metadata_.have_unknown_fields()) { |
1444 | total_size += |
1445 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
1446 | _internal_metadata_.unknown_fields()); |
1447 | } |
1448 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1449 | // Prevent compiler warnings about cached_has_bits being unused |
1450 | (void) cached_has_bits; |
1451 | |
1452 | // string name = 1; |
1453 | if (this->name().size() > 0) { |
1454 | total_size += 1 + |
1455 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1456 | this->name()); |
1457 | } |
1458 | |
1459 | // .google.protobuf.DoubleValue min_value = 3; |
1460 | if (this->has_min_value()) { |
1461 | total_size += 1 + |
1462 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1463 | *min_value_); |
1464 | } |
1465 | |
1466 | // .google.protobuf.DoubleValue max_value = 4; |
1467 | if (this->has_max_value()) { |
1468 | total_size += 1 + |
1469 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1470 | *max_value_); |
1471 | } |
1472 | |
1473 | // double value = 2; |
1474 | if (!(this->value() <= 0 && this->value() >= 0)) { |
1475 | total_size += 1 + 8; |
1476 | } |
1477 | |
1478 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
1479 | SetCachedSize(cached_size); |
1480 | return total_size; |
1481 | } |
1482 | |
1483 | void MetricEntry::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1484 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.MetricEntry) |
1485 | GOOGLE_DCHECK_NE(&from, this); |
1486 | const MetricEntry* source = |
1487 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MetricEntry>( |
1488 | &from); |
1489 | if (source == nullptr) { |
1490 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.MetricEntry) |
1491 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1492 | } else { |
1493 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.MetricEntry) |
1494 | MergeFrom(*source); |
1495 | } |
1496 | } |
1497 | |
1498 | void MetricEntry::MergeFrom(const MetricEntry& from) { |
1499 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.MetricEntry) |
1500 | GOOGLE_DCHECK_NE(&from, this); |
1501 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1502 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1503 | (void) cached_has_bits; |
1504 | |
1505 | if (from.name().size() > 0) { |
1506 | set_name(from.name()); |
1507 | } |
1508 | if (from.has_min_value()) { |
1509 | mutable_min_value()->PROTOBUF_NAMESPACE_ID::DoubleValue::MergeFrom(from.min_value()); |
1510 | } |
1511 | if (from.has_max_value()) { |
1512 | mutable_max_value()->PROTOBUF_NAMESPACE_ID::DoubleValue::MergeFrom(from.max_value()); |
1513 | } |
1514 | if (!(from.value() <= 0 && from.value() >= 0)) { |
1515 | set_value(from.value()); |
1516 | } |
1517 | } |
1518 | |
1519 | void MetricEntry::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1520 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.MetricEntry) |
1521 | if (&from == this) return; |
1522 | Clear(); |
1523 | MergeFrom(from); |
1524 | } |
1525 | |
1526 | void MetricEntry::CopyFrom(const MetricEntry& from) { |
1527 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.MetricEntry) |
1528 | if (&from == this) return; |
1529 | Clear(); |
1530 | MergeFrom(from); |
1531 | } |
1532 | |
1533 | bool MetricEntry::IsInitialized() const { |
1534 | return true; |
1535 | } |
1536 | |
1537 | void MetricEntry::InternalSwap(MetricEntry* other) { |
1538 | using std::swap; |
1539 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1540 | name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1541 | GetArenaNoVirtual()); |
1542 | swap(min_value_, other->min_value_); |
1543 | swap(max_value_, other->max_value_); |
1544 | swap(value_, other->value_); |
1545 | } |
1546 | |
1547 | ::PROTOBUF_NAMESPACE_ID::Metadata MetricEntry::GetMetadata() const { |
1548 | return GetMetadataStatic(); |
1549 | } |
1550 | |
1551 | |
1552 | // =================================================================== |
1553 | |
1554 | BenchmarkEntry_ExtrasEntry_DoNotUse::() {} |
1555 | BenchmarkEntry_ExtrasEntry_DoNotUse::(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
1556 | : SuperType(arena) {} |
1557 | void BenchmarkEntry_ExtrasEntry_DoNotUse::(const BenchmarkEntry_ExtrasEntry_DoNotUse& other) { |
1558 | MergeFromInternal(other); |
1559 | } |
1560 | ::PROTOBUF_NAMESPACE_ID::Metadata BenchmarkEntry_ExtrasEntry_DoNotUse::() const { |
1561 | return GetMetadataStatic(); |
1562 | } |
1563 | void BenchmarkEntry_ExtrasEntry_DoNotUse::( |
1564 | const ::PROTOBUF_NAMESPACE_ID::Message& other) { |
1565 | ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other); |
1566 | } |
1567 | |
1568 | |
1569 | // =================================================================== |
1570 | |
1571 | void BenchmarkEntry::InitAsDefaultInstance() { |
1572 | } |
1573 | class BenchmarkEntry::_Internal { |
1574 | public: |
1575 | }; |
1576 | |
1577 | BenchmarkEntry::BenchmarkEntry() |
1578 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
1579 | SharedCtor(); |
1580 | // @@protoc_insertion_point(constructor:tensorflow.BenchmarkEntry) |
1581 | } |
1582 | BenchmarkEntry::BenchmarkEntry(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
1583 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1584 | _internal_metadata_(arena), |
1585 | extras_(arena), |
1586 | metrics_(arena) { |
1587 | SharedCtor(); |
1588 | RegisterArenaDtor(arena); |
1589 | // @@protoc_insertion_point(arena_constructor:tensorflow.BenchmarkEntry) |
1590 | } |
1591 | BenchmarkEntry::BenchmarkEntry(const BenchmarkEntry& from) |
1592 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1593 | _internal_metadata_(nullptr), |
1594 | metrics_(from.metrics_) { |
1595 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1596 | extras_.MergeFrom(from.extras_); |
1597 | name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1598 | if (!from.name().empty()) { |
1599 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name(), |
1600 | GetArenaNoVirtual()); |
1601 | } |
1602 | ::memcpy(&iters_, &from.iters_, |
1603 | static_cast<size_t>(reinterpret_cast<char*>(&throughput_) - |
1604 | reinterpret_cast<char*>(&iters_)) + sizeof(throughput_)); |
1605 | // @@protoc_insertion_point(copy_constructor:tensorflow.BenchmarkEntry) |
1606 | } |
1607 | |
1608 | void BenchmarkEntry::SharedCtor() { |
1609 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BenchmarkEntry_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
1610 | name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1611 | ::memset(&iters_, 0, static_cast<size_t>( |
1612 | reinterpret_cast<char*>(&throughput_) - |
1613 | reinterpret_cast<char*>(&iters_)) + sizeof(throughput_)); |
1614 | } |
1615 | |
1616 | BenchmarkEntry::~BenchmarkEntry() { |
1617 | // @@protoc_insertion_point(destructor:tensorflow.BenchmarkEntry) |
1618 | SharedDtor(); |
1619 | } |
1620 | |
1621 | void BenchmarkEntry::SharedDtor() { |
1622 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
1623 | name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1624 | } |
1625 | |
1626 | void BenchmarkEntry::ArenaDtor(void* object) { |
1627 | BenchmarkEntry* _this = reinterpret_cast< BenchmarkEntry* >(object); |
1628 | (void)_this; |
1629 | } |
1630 | void BenchmarkEntry::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
1631 | } |
1632 | void BenchmarkEntry::SetCachedSize(int size) const { |
1633 | _cached_size_.Set(size); |
1634 | } |
1635 | const BenchmarkEntry& BenchmarkEntry::default_instance() { |
1636 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BenchmarkEntry_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
1637 | return *internal_default_instance(); |
1638 | } |
1639 | |
1640 | |
1641 | void BenchmarkEntry::Clear() { |
1642 | // @@protoc_insertion_point(message_clear_start:tensorflow.BenchmarkEntry) |
1643 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1644 | // Prevent compiler warnings about cached_has_bits being unused |
1645 | (void) cached_has_bits; |
1646 | |
1647 | extras_.Clear(); |
1648 | metrics_.Clear(); |
1649 | name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
1650 | ::memset(&iters_, 0, static_cast<size_t>( |
1651 | reinterpret_cast<char*>(&throughput_) - |
1652 | reinterpret_cast<char*>(&iters_)) + sizeof(throughput_)); |
1653 | _internal_metadata_.Clear(); |
1654 | } |
1655 | |
1656 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1657 | const char* BenchmarkEntry::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
1658 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1659 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
1660 | while (!ctx->Done(&ptr)) { |
1661 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1662 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
1663 | CHK_(ptr); |
1664 | switch (tag >> 3) { |
1665 | // string name = 1; |
1666 | case 1: |
1667 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
1668 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "tensorflow.BenchmarkEntry.name" ); |
1669 | CHK_(ptr); |
1670 | } else goto handle_unusual; |
1671 | continue; |
1672 | // int64 iters = 2; |
1673 | case 2: |
1674 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
1675 | iters_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1676 | CHK_(ptr); |
1677 | } else goto handle_unusual; |
1678 | continue; |
1679 | // double cpu_time = 3; |
1680 | case 3: |
1681 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25)) { |
1682 | cpu_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); |
1683 | ptr += sizeof(double); |
1684 | } else goto handle_unusual; |
1685 | continue; |
1686 | // double wall_time = 4; |
1687 | case 4: |
1688 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33)) { |
1689 | wall_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); |
1690 | ptr += sizeof(double); |
1691 | } else goto handle_unusual; |
1692 | continue; |
1693 | // double throughput = 5; |
1694 | case 5: |
1695 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 41)) { |
1696 | throughput_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); |
1697 | ptr += sizeof(double); |
1698 | } else goto handle_unusual; |
1699 | continue; |
1700 | // map<string, .tensorflow.EntryValue> extras = 6; |
1701 | case 6: |
1702 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { |
1703 | ptr -= 1; |
1704 | do { |
1705 | ptr += 1; |
1706 | ptr = ctx->ParseMessage(&extras_, ptr); |
1707 | CHK_(ptr); |
1708 | if (!ctx->DataAvailable(ptr)) break; |
1709 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 50); |
1710 | } else goto handle_unusual; |
1711 | continue; |
1712 | // repeated .tensorflow.MetricEntry metrics = 7; |
1713 | case 7: |
1714 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { |
1715 | ptr -= 1; |
1716 | do { |
1717 | ptr += 1; |
1718 | ptr = ctx->ParseMessage(add_metrics(), ptr); |
1719 | CHK_(ptr); |
1720 | if (!ctx->DataAvailable(ptr)) break; |
1721 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 58); |
1722 | } else goto handle_unusual; |
1723 | continue; |
1724 | default: { |
1725 | handle_unusual: |
1726 | if ((tag & 7) == 4 || tag == 0) { |
1727 | ctx->SetLastTag(tag); |
1728 | goto success; |
1729 | } |
1730 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
1731 | CHK_(ptr != nullptr); |
1732 | continue; |
1733 | } |
1734 | } // switch |
1735 | } // while |
1736 | success: |
1737 | return ptr; |
1738 | failure: |
1739 | ptr = nullptr; |
1740 | goto success; |
1741 | #undef CHK_ |
1742 | } |
1743 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1744 | bool BenchmarkEntry::MergePartialFromCodedStream( |
1745 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
1746 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
1747 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1748 | // @@protoc_insertion_point(parse_start:tensorflow.BenchmarkEntry) |
1749 | for (;;) { |
1750 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1751 | tag = p.first; |
1752 | if (!p.second) goto handle_unusual; |
1753 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1754 | // string name = 1; |
1755 | case 1: { |
1756 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
1757 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
1758 | input, this->mutable_name())); |
1759 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1760 | this->name().data(), static_cast<int>(this->name().length()), |
1761 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1762 | "tensorflow.BenchmarkEntry.name" )); |
1763 | } else { |
1764 | goto handle_unusual; |
1765 | } |
1766 | break; |
1767 | } |
1768 | |
1769 | // int64 iters = 2; |
1770 | case 2: { |
1771 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { |
1772 | |
1773 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1774 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1775 | input, &iters_))); |
1776 | } else { |
1777 | goto handle_unusual; |
1778 | } |
1779 | break; |
1780 | } |
1781 | |
1782 | // double cpu_time = 3; |
1783 | case 3: { |
1784 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (25 & 0xFF)) { |
1785 | |
1786 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1787 | double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( |
1788 | input, &cpu_time_))); |
1789 | } else { |
1790 | goto handle_unusual; |
1791 | } |
1792 | break; |
1793 | } |
1794 | |
1795 | // double wall_time = 4; |
1796 | case 4: { |
1797 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (33 & 0xFF)) { |
1798 | |
1799 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1800 | double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( |
1801 | input, &wall_time_))); |
1802 | } else { |
1803 | goto handle_unusual; |
1804 | } |
1805 | break; |
1806 | } |
1807 | |
1808 | // double throughput = 5; |
1809 | case 5: { |
1810 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (41 & 0xFF)) { |
1811 | |
1812 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1813 | double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( |
1814 | input, &throughput_))); |
1815 | } else { |
1816 | goto handle_unusual; |
1817 | } |
1818 | break; |
1819 | } |
1820 | |
1821 | // map<string, .tensorflow.EntryValue> extras = 6; |
1822 | case 6: { |
1823 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { |
1824 | BenchmarkEntry_ExtrasEntry_DoNotUse::Parser< ::PROTOBUF_NAMESPACE_ID::internal::MapField< |
1825 | BenchmarkEntry_ExtrasEntry_DoNotUse, |
1826 | std::string, ::tensorflow::EntryValue, |
1827 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
1828 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, |
1829 | 0 >, |
1830 | ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::EntryValue > > parser(&extras_); |
1831 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessageNoVirtual( |
1832 | input, &parser)); |
1833 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1834 | parser.key().data(), static_cast<int>(parser.key().length()), |
1835 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1836 | "tensorflow.BenchmarkEntry.ExtrasEntry.key" )); |
1837 | } else { |
1838 | goto handle_unusual; |
1839 | } |
1840 | break; |
1841 | } |
1842 | |
1843 | // repeated .tensorflow.MetricEntry metrics = 7; |
1844 | case 7: { |
1845 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) { |
1846 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
1847 | input, add_metrics())); |
1848 | } else { |
1849 | goto handle_unusual; |
1850 | } |
1851 | break; |
1852 | } |
1853 | |
1854 | default: { |
1855 | handle_unusual: |
1856 | if (tag == 0) { |
1857 | goto success; |
1858 | } |
1859 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
1860 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1861 | break; |
1862 | } |
1863 | } |
1864 | } |
1865 | success: |
1866 | // @@protoc_insertion_point(parse_success:tensorflow.BenchmarkEntry) |
1867 | return true; |
1868 | failure: |
1869 | // @@protoc_insertion_point(parse_failure:tensorflow.BenchmarkEntry) |
1870 | return false; |
1871 | #undef DO_ |
1872 | } |
1873 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1874 | |
1875 | void BenchmarkEntry::SerializeWithCachedSizes( |
1876 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
1877 | // @@protoc_insertion_point(serialize_start:tensorflow.BenchmarkEntry) |
1878 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1879 | (void) cached_has_bits; |
1880 | |
1881 | // string name = 1; |
1882 | if (this->name().size() > 0) { |
1883 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1884 | this->name().data(), static_cast<int>(this->name().length()), |
1885 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1886 | "tensorflow.BenchmarkEntry.name" ); |
1887 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
1888 | 1, this->name(), output); |
1889 | } |
1890 | |
1891 | // int64 iters = 2; |
1892 | if (this->iters() != 0) { |
1893 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->iters(), output); |
1894 | } |
1895 | |
1896 | // double cpu_time = 3; |
1897 | if (!(this->cpu_time() <= 0 && this->cpu_time() >= 0)) { |
1898 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(3, this->cpu_time(), output); |
1899 | } |
1900 | |
1901 | // double wall_time = 4; |
1902 | if (!(this->wall_time() <= 0 && this->wall_time() >= 0)) { |
1903 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(4, this->wall_time(), output); |
1904 | } |
1905 | |
1906 | // double throughput = 5; |
1907 | if (!(this->throughput() <= 0 && this->throughput() >= 0)) { |
1908 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(5, this->throughput(), output); |
1909 | } |
1910 | |
1911 | // map<string, .tensorflow.EntryValue> extras = 6; |
1912 | if (!this->extras().empty()) { |
1913 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::EntryValue >::const_pointer |
1914 | ConstPtr; |
1915 | typedef ConstPtr SortItem; |
1916 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less; |
1917 | struct Utf8Check { |
1918 | static void Check(ConstPtr p) { |
1919 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1920 | p->first.data(), static_cast<int>(p->first.length()), |
1921 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1922 | "tensorflow.BenchmarkEntry.ExtrasEntry.key" ); |
1923 | } |
1924 | }; |
1925 | |
1926 | if (output->IsSerializationDeterministic() && |
1927 | this->extras().size() > 1) { |
1928 | ::std::unique_ptr<SortItem[]> items( |
1929 | new SortItem[this->extras().size()]); |
1930 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::EntryValue >::size_type size_type; |
1931 | size_type n = 0; |
1932 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::EntryValue >::const_iterator |
1933 | it = this->extras().begin(); |
1934 | it != this->extras().end(); ++it, ++n) { |
1935 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
1936 | } |
1937 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
1938 | for (size_type i = 0; i < n; i++) { |
1939 | BenchmarkEntry_ExtrasEntry_DoNotUse::Funcs::SerializeToCodedStream(6, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, output); |
1940 | Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)])); |
1941 | } |
1942 | } else { |
1943 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::EntryValue >::const_iterator |
1944 | it = this->extras().begin(); |
1945 | it != this->extras().end(); ++it) { |
1946 | BenchmarkEntry_ExtrasEntry_DoNotUse::Funcs::SerializeToCodedStream(6, it->first, it->second, output); |
1947 | Utf8Check::Check(&(*it)); |
1948 | } |
1949 | } |
1950 | } |
1951 | |
1952 | // repeated .tensorflow.MetricEntry metrics = 7; |
1953 | for (unsigned int i = 0, |
1954 | n = static_cast<unsigned int>(this->metrics_size()); i < n; i++) { |
1955 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
1956 | 7, |
1957 | this->metrics(static_cast<int>(i)), |
1958 | output); |
1959 | } |
1960 | |
1961 | if (_internal_metadata_.have_unknown_fields()) { |
1962 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
1963 | _internal_metadata_.unknown_fields(), output); |
1964 | } |
1965 | // @@protoc_insertion_point(serialize_end:tensorflow.BenchmarkEntry) |
1966 | } |
1967 | |
1968 | ::PROTOBUF_NAMESPACE_ID::uint8* BenchmarkEntry::InternalSerializeWithCachedSizesToArray( |
1969 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
1970 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.BenchmarkEntry) |
1971 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1972 | (void) cached_has_bits; |
1973 | |
1974 | // string name = 1; |
1975 | if (this->name().size() > 0) { |
1976 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1977 | this->name().data(), static_cast<int>(this->name().length()), |
1978 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1979 | "tensorflow.BenchmarkEntry.name" ); |
1980 | target = |
1981 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
1982 | 1, this->name(), target); |
1983 | } |
1984 | |
1985 | // int64 iters = 2; |
1986 | if (this->iters() != 0) { |
1987 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->iters(), target); |
1988 | } |
1989 | |
1990 | // double cpu_time = 3; |
1991 | if (!(this->cpu_time() <= 0 && this->cpu_time() >= 0)) { |
1992 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(3, this->cpu_time(), target); |
1993 | } |
1994 | |
1995 | // double wall_time = 4; |
1996 | if (!(this->wall_time() <= 0 && this->wall_time() >= 0)) { |
1997 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->wall_time(), target); |
1998 | } |
1999 | |
2000 | // double throughput = 5; |
2001 | if (!(this->throughput() <= 0 && this->throughput() >= 0)) { |
2002 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(5, this->throughput(), target); |
2003 | } |
2004 | |
2005 | // map<string, .tensorflow.EntryValue> extras = 6; |
2006 | if (!this->extras().empty()) { |
2007 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::EntryValue >::const_pointer |
2008 | ConstPtr; |
2009 | typedef ConstPtr SortItem; |
2010 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less; |
2011 | struct Utf8Check { |
2012 | static void Check(ConstPtr p) { |
2013 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2014 | p->first.data(), static_cast<int>(p->first.length()), |
2015 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2016 | "tensorflow.BenchmarkEntry.ExtrasEntry.key" ); |
2017 | } |
2018 | }; |
2019 | |
2020 | if (false && |
2021 | this->extras().size() > 1) { |
2022 | ::std::unique_ptr<SortItem[]> items( |
2023 | new SortItem[this->extras().size()]); |
2024 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::EntryValue >::size_type size_type; |
2025 | size_type n = 0; |
2026 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::EntryValue >::const_iterator |
2027 | it = this->extras().begin(); |
2028 | it != this->extras().end(); ++it, ++n) { |
2029 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
2030 | } |
2031 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
2032 | for (size_type i = 0; i < n; i++) { |
2033 | target = BenchmarkEntry_ExtrasEntry_DoNotUse::Funcs::SerializeToArray(6, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target); |
2034 | Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)])); |
2035 | } |
2036 | } else { |
2037 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::EntryValue >::const_iterator |
2038 | it = this->extras().begin(); |
2039 | it != this->extras().end(); ++it) { |
2040 | target = BenchmarkEntry_ExtrasEntry_DoNotUse::Funcs::SerializeToArray(6, it->first, it->second, target); |
2041 | Utf8Check::Check(&(*it)); |
2042 | } |
2043 | } |
2044 | } |
2045 | |
2046 | // repeated .tensorflow.MetricEntry metrics = 7; |
2047 | for (unsigned int i = 0, |
2048 | n = static_cast<unsigned int>(this->metrics_size()); i < n; i++) { |
2049 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2050 | InternalWriteMessageToArray( |
2051 | 7, this->metrics(static_cast<int>(i)), target); |
2052 | } |
2053 | |
2054 | if (_internal_metadata_.have_unknown_fields()) { |
2055 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
2056 | _internal_metadata_.unknown_fields(), target); |
2057 | } |
2058 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.BenchmarkEntry) |
2059 | return target; |
2060 | } |
2061 | |
2062 | size_t BenchmarkEntry::ByteSizeLong() const { |
2063 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.BenchmarkEntry) |
2064 | size_t total_size = 0; |
2065 | |
2066 | if (_internal_metadata_.have_unknown_fields()) { |
2067 | total_size += |
2068 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
2069 | _internal_metadata_.unknown_fields()); |
2070 | } |
2071 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2072 | // Prevent compiler warnings about cached_has_bits being unused |
2073 | (void) cached_has_bits; |
2074 | |
2075 | // map<string, .tensorflow.EntryValue> extras = 6; |
2076 | total_size += 1 * |
2077 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->extras_size()); |
2078 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::EntryValue >::const_iterator |
2079 | it = this->extras().begin(); |
2080 | it != this->extras().end(); ++it) { |
2081 | total_size += BenchmarkEntry_ExtrasEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); |
2082 | } |
2083 | |
2084 | // repeated .tensorflow.MetricEntry metrics = 7; |
2085 | { |
2086 | unsigned int count = static_cast<unsigned int>(this->metrics_size()); |
2087 | total_size += 1UL * count; |
2088 | for (unsigned int i = 0; i < count; i++) { |
2089 | total_size += |
2090 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2091 | this->metrics(static_cast<int>(i))); |
2092 | } |
2093 | } |
2094 | |
2095 | // string name = 1; |
2096 | if (this->name().size() > 0) { |
2097 | total_size += 1 + |
2098 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
2099 | this->name()); |
2100 | } |
2101 | |
2102 | // int64 iters = 2; |
2103 | if (this->iters() != 0) { |
2104 | total_size += 1 + |
2105 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
2106 | this->iters()); |
2107 | } |
2108 | |
2109 | // double cpu_time = 3; |
2110 | if (!(this->cpu_time() <= 0 && this->cpu_time() >= 0)) { |
2111 | total_size += 1 + 8; |
2112 | } |
2113 | |
2114 | // double wall_time = 4; |
2115 | if (!(this->wall_time() <= 0 && this->wall_time() >= 0)) { |
2116 | total_size += 1 + 8; |
2117 | } |
2118 | |
2119 | // double throughput = 5; |
2120 | if (!(this->throughput() <= 0 && this->throughput() >= 0)) { |
2121 | total_size += 1 + 8; |
2122 | } |
2123 | |
2124 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
2125 | SetCachedSize(cached_size); |
2126 | return total_size; |
2127 | } |
2128 | |
2129 | void BenchmarkEntry::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2130 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.BenchmarkEntry) |
2131 | GOOGLE_DCHECK_NE(&from, this); |
2132 | const BenchmarkEntry* source = |
2133 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<BenchmarkEntry>( |
2134 | &from); |
2135 | if (source == nullptr) { |
2136 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.BenchmarkEntry) |
2137 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
2138 | } else { |
2139 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.BenchmarkEntry) |
2140 | MergeFrom(*source); |
2141 | } |
2142 | } |
2143 | |
2144 | void BenchmarkEntry::MergeFrom(const BenchmarkEntry& from) { |
2145 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.BenchmarkEntry) |
2146 | GOOGLE_DCHECK_NE(&from, this); |
2147 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2148 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2149 | (void) cached_has_bits; |
2150 | |
2151 | extras_.MergeFrom(from.extras_); |
2152 | metrics_.MergeFrom(from.metrics_); |
2153 | if (from.name().size() > 0) { |
2154 | set_name(from.name()); |
2155 | } |
2156 | if (from.iters() != 0) { |
2157 | set_iters(from.iters()); |
2158 | } |
2159 | if (!(from.cpu_time() <= 0 && from.cpu_time() >= 0)) { |
2160 | set_cpu_time(from.cpu_time()); |
2161 | } |
2162 | if (!(from.wall_time() <= 0 && from.wall_time() >= 0)) { |
2163 | set_wall_time(from.wall_time()); |
2164 | } |
2165 | if (!(from.throughput() <= 0 && from.throughput() >= 0)) { |
2166 | set_throughput(from.throughput()); |
2167 | } |
2168 | } |
2169 | |
2170 | void BenchmarkEntry::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2171 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.BenchmarkEntry) |
2172 | if (&from == this) return; |
2173 | Clear(); |
2174 | MergeFrom(from); |
2175 | } |
2176 | |
2177 | void BenchmarkEntry::CopyFrom(const BenchmarkEntry& from) { |
2178 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.BenchmarkEntry) |
2179 | if (&from == this) return; |
2180 | Clear(); |
2181 | MergeFrom(from); |
2182 | } |
2183 | |
2184 | bool BenchmarkEntry::IsInitialized() const { |
2185 | return true; |
2186 | } |
2187 | |
2188 | void BenchmarkEntry::InternalSwap(BenchmarkEntry* other) { |
2189 | using std::swap; |
2190 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2191 | extras_.Swap(&other->extras_); |
2192 | CastToBase(&metrics_)->InternalSwap(CastToBase(&other->metrics_)); |
2193 | name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2194 | GetArenaNoVirtual()); |
2195 | swap(iters_, other->iters_); |
2196 | swap(cpu_time_, other->cpu_time_); |
2197 | swap(wall_time_, other->wall_time_); |
2198 | swap(throughput_, other->throughput_); |
2199 | } |
2200 | |
2201 | ::PROTOBUF_NAMESPACE_ID::Metadata BenchmarkEntry::GetMetadata() const { |
2202 | return GetMetadataStatic(); |
2203 | } |
2204 | |
2205 | |
2206 | // =================================================================== |
2207 | |
2208 | void BenchmarkEntries::InitAsDefaultInstance() { |
2209 | } |
2210 | class BenchmarkEntries::_Internal { |
2211 | public: |
2212 | }; |
2213 | |
2214 | BenchmarkEntries::BenchmarkEntries() |
2215 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
2216 | SharedCtor(); |
2217 | // @@protoc_insertion_point(constructor:tensorflow.BenchmarkEntries) |
2218 | } |
2219 | BenchmarkEntries::BenchmarkEntries(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
2220 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2221 | _internal_metadata_(arena), |
2222 | entry_(arena) { |
2223 | SharedCtor(); |
2224 | RegisterArenaDtor(arena); |
2225 | // @@protoc_insertion_point(arena_constructor:tensorflow.BenchmarkEntries) |
2226 | } |
2227 | BenchmarkEntries::BenchmarkEntries(const BenchmarkEntries& from) |
2228 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2229 | _internal_metadata_(nullptr), |
2230 | entry_(from.entry_) { |
2231 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2232 | // @@protoc_insertion_point(copy_constructor:tensorflow.BenchmarkEntries) |
2233 | } |
2234 | |
2235 | void BenchmarkEntries::SharedCtor() { |
2236 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BenchmarkEntries_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
2237 | } |
2238 | |
2239 | BenchmarkEntries::~BenchmarkEntries() { |
2240 | // @@protoc_insertion_point(destructor:tensorflow.BenchmarkEntries) |
2241 | SharedDtor(); |
2242 | } |
2243 | |
2244 | void BenchmarkEntries::SharedDtor() { |
2245 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
2246 | } |
2247 | |
2248 | void BenchmarkEntries::ArenaDtor(void* object) { |
2249 | BenchmarkEntries* _this = reinterpret_cast< BenchmarkEntries* >(object); |
2250 | (void)_this; |
2251 | } |
2252 | void BenchmarkEntries::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
2253 | } |
2254 | void BenchmarkEntries::SetCachedSize(int size) const { |
2255 | _cached_size_.Set(size); |
2256 | } |
2257 | const BenchmarkEntries& BenchmarkEntries::default_instance() { |
2258 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BenchmarkEntries_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
2259 | return *internal_default_instance(); |
2260 | } |
2261 | |
2262 | |
2263 | void BenchmarkEntries::Clear() { |
2264 | // @@protoc_insertion_point(message_clear_start:tensorflow.BenchmarkEntries) |
2265 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2266 | // Prevent compiler warnings about cached_has_bits being unused |
2267 | (void) cached_has_bits; |
2268 | |
2269 | entry_.Clear(); |
2270 | _internal_metadata_.Clear(); |
2271 | } |
2272 | |
2273 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2274 | const char* BenchmarkEntries::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
2275 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
2276 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
2277 | while (!ctx->Done(&ptr)) { |
2278 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2279 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
2280 | CHK_(ptr); |
2281 | switch (tag >> 3) { |
2282 | // repeated .tensorflow.BenchmarkEntry entry = 1; |
2283 | case 1: |
2284 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
2285 | ptr -= 1; |
2286 | do { |
2287 | ptr += 1; |
2288 | ptr = ctx->ParseMessage(add_entry(), ptr); |
2289 | CHK_(ptr); |
2290 | if (!ctx->DataAvailable(ptr)) break; |
2291 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); |
2292 | } else goto handle_unusual; |
2293 | continue; |
2294 | default: { |
2295 | handle_unusual: |
2296 | if ((tag & 7) == 4 || tag == 0) { |
2297 | ctx->SetLastTag(tag); |
2298 | goto success; |
2299 | } |
2300 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
2301 | CHK_(ptr != nullptr); |
2302 | continue; |
2303 | } |
2304 | } // switch |
2305 | } // while |
2306 | success: |
2307 | return ptr; |
2308 | failure: |
2309 | ptr = nullptr; |
2310 | goto success; |
2311 | #undef CHK_ |
2312 | } |
2313 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2314 | bool BenchmarkEntries::MergePartialFromCodedStream( |
2315 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
2316 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
2317 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2318 | // @@protoc_insertion_point(parse_start:tensorflow.BenchmarkEntries) |
2319 | for (;;) { |
2320 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2321 | tag = p.first; |
2322 | if (!p.second) goto handle_unusual; |
2323 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2324 | // repeated .tensorflow.BenchmarkEntry entry = 1; |
2325 | case 1: { |
2326 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
2327 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
2328 | input, add_entry())); |
2329 | } else { |
2330 | goto handle_unusual; |
2331 | } |
2332 | break; |
2333 | } |
2334 | |
2335 | default: { |
2336 | handle_unusual: |
2337 | if (tag == 0) { |
2338 | goto success; |
2339 | } |
2340 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
2341 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2342 | break; |
2343 | } |
2344 | } |
2345 | } |
2346 | success: |
2347 | // @@protoc_insertion_point(parse_success:tensorflow.BenchmarkEntries) |
2348 | return true; |
2349 | failure: |
2350 | // @@protoc_insertion_point(parse_failure:tensorflow.BenchmarkEntries) |
2351 | return false; |
2352 | #undef DO_ |
2353 | } |
2354 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2355 | |
2356 | void BenchmarkEntries::SerializeWithCachedSizes( |
2357 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
2358 | // @@protoc_insertion_point(serialize_start:tensorflow.BenchmarkEntries) |
2359 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2360 | (void) cached_has_bits; |
2361 | |
2362 | // repeated .tensorflow.BenchmarkEntry entry = 1; |
2363 | for (unsigned int i = 0, |
2364 | n = static_cast<unsigned int>(this->entry_size()); i < n; i++) { |
2365 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
2366 | 1, |
2367 | this->entry(static_cast<int>(i)), |
2368 | output); |
2369 | } |
2370 | |
2371 | if (_internal_metadata_.have_unknown_fields()) { |
2372 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
2373 | _internal_metadata_.unknown_fields(), output); |
2374 | } |
2375 | // @@protoc_insertion_point(serialize_end:tensorflow.BenchmarkEntries) |
2376 | } |
2377 | |
2378 | ::PROTOBUF_NAMESPACE_ID::uint8* BenchmarkEntries::InternalSerializeWithCachedSizesToArray( |
2379 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
2380 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.BenchmarkEntries) |
2381 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2382 | (void) cached_has_bits; |
2383 | |
2384 | // repeated .tensorflow.BenchmarkEntry entry = 1; |
2385 | for (unsigned int i = 0, |
2386 | n = static_cast<unsigned int>(this->entry_size()); i < n; i++) { |
2387 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2388 | InternalWriteMessageToArray( |
2389 | 1, this->entry(static_cast<int>(i)), target); |
2390 | } |
2391 | |
2392 | if (_internal_metadata_.have_unknown_fields()) { |
2393 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
2394 | _internal_metadata_.unknown_fields(), target); |
2395 | } |
2396 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.BenchmarkEntries) |
2397 | return target; |
2398 | } |
2399 | |
2400 | size_t BenchmarkEntries::ByteSizeLong() const { |
2401 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.BenchmarkEntries) |
2402 | size_t total_size = 0; |
2403 | |
2404 | if (_internal_metadata_.have_unknown_fields()) { |
2405 | total_size += |
2406 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
2407 | _internal_metadata_.unknown_fields()); |
2408 | } |
2409 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2410 | // Prevent compiler warnings about cached_has_bits being unused |
2411 | (void) cached_has_bits; |
2412 | |
2413 | // repeated .tensorflow.BenchmarkEntry entry = 1; |
2414 | { |
2415 | unsigned int count = static_cast<unsigned int>(this->entry_size()); |
2416 | total_size += 1UL * count; |
2417 | for (unsigned int i = 0; i < count; i++) { |
2418 | total_size += |
2419 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2420 | this->entry(static_cast<int>(i))); |
2421 | } |
2422 | } |
2423 | |
2424 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
2425 | SetCachedSize(cached_size); |
2426 | return total_size; |
2427 | } |
2428 | |
2429 | void BenchmarkEntries::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2430 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.BenchmarkEntries) |
2431 | GOOGLE_DCHECK_NE(&from, this); |
2432 | const BenchmarkEntries* source = |
2433 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<BenchmarkEntries>( |
2434 | &from); |
2435 | if (source == nullptr) { |
2436 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.BenchmarkEntries) |
2437 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
2438 | } else { |
2439 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.BenchmarkEntries) |
2440 | MergeFrom(*source); |
2441 | } |
2442 | } |
2443 | |
2444 | void BenchmarkEntries::MergeFrom(const BenchmarkEntries& from) { |
2445 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.BenchmarkEntries) |
2446 | GOOGLE_DCHECK_NE(&from, this); |
2447 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2448 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2449 | (void) cached_has_bits; |
2450 | |
2451 | entry_.MergeFrom(from.entry_); |
2452 | } |
2453 | |
2454 | void BenchmarkEntries::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2455 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.BenchmarkEntries) |
2456 | if (&from == this) return; |
2457 | Clear(); |
2458 | MergeFrom(from); |
2459 | } |
2460 | |
2461 | void BenchmarkEntries::CopyFrom(const BenchmarkEntries& from) { |
2462 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.BenchmarkEntries) |
2463 | if (&from == this) return; |
2464 | Clear(); |
2465 | MergeFrom(from); |
2466 | } |
2467 | |
2468 | bool BenchmarkEntries::IsInitialized() const { |
2469 | return true; |
2470 | } |
2471 | |
2472 | void BenchmarkEntries::InternalSwap(BenchmarkEntries* other) { |
2473 | using std::swap; |
2474 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2475 | CastToBase(&entry_)->InternalSwap(CastToBase(&other->entry_)); |
2476 | } |
2477 | |
2478 | ::PROTOBUF_NAMESPACE_ID::Metadata BenchmarkEntries::GetMetadata() const { |
2479 | return GetMetadataStatic(); |
2480 | } |
2481 | |
2482 | |
2483 | // =================================================================== |
2484 | |
2485 | void BuildConfiguration::InitAsDefaultInstance() { |
2486 | } |
2487 | class BuildConfiguration::_Internal { |
2488 | public: |
2489 | }; |
2490 | |
2491 | BuildConfiguration::BuildConfiguration() |
2492 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
2493 | SharedCtor(); |
2494 | // @@protoc_insertion_point(constructor:tensorflow.BuildConfiguration) |
2495 | } |
2496 | BuildConfiguration::BuildConfiguration(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
2497 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2498 | _internal_metadata_(arena), |
2499 | cc_flags_(arena), |
2500 | opts_(arena) { |
2501 | SharedCtor(); |
2502 | RegisterArenaDtor(arena); |
2503 | // @@protoc_insertion_point(arena_constructor:tensorflow.BuildConfiguration) |
2504 | } |
2505 | BuildConfiguration::BuildConfiguration(const BuildConfiguration& from) |
2506 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2507 | _internal_metadata_(nullptr), |
2508 | cc_flags_(from.cc_flags_), |
2509 | opts_(from.opts_) { |
2510 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2511 | mode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2512 | if (!from.mode().empty()) { |
2513 | mode_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.mode(), |
2514 | GetArenaNoVirtual()); |
2515 | } |
2516 | // @@protoc_insertion_point(copy_constructor:tensorflow.BuildConfiguration) |
2517 | } |
2518 | |
2519 | void BuildConfiguration::SharedCtor() { |
2520 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BuildConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
2521 | mode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2522 | } |
2523 | |
2524 | BuildConfiguration::~BuildConfiguration() { |
2525 | // @@protoc_insertion_point(destructor:tensorflow.BuildConfiguration) |
2526 | SharedDtor(); |
2527 | } |
2528 | |
2529 | void BuildConfiguration::SharedDtor() { |
2530 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
2531 | mode_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2532 | } |
2533 | |
2534 | void BuildConfiguration::ArenaDtor(void* object) { |
2535 | BuildConfiguration* _this = reinterpret_cast< BuildConfiguration* >(object); |
2536 | (void)_this; |
2537 | } |
2538 | void BuildConfiguration::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
2539 | } |
2540 | void BuildConfiguration::SetCachedSize(int size) const { |
2541 | _cached_size_.Set(size); |
2542 | } |
2543 | const BuildConfiguration& BuildConfiguration::default_instance() { |
2544 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BuildConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
2545 | return *internal_default_instance(); |
2546 | } |
2547 | |
2548 | |
2549 | void BuildConfiguration::Clear() { |
2550 | // @@protoc_insertion_point(message_clear_start:tensorflow.BuildConfiguration) |
2551 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2552 | // Prevent compiler warnings about cached_has_bits being unused |
2553 | (void) cached_has_bits; |
2554 | |
2555 | cc_flags_.Clear(); |
2556 | opts_.Clear(); |
2557 | mode_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2558 | _internal_metadata_.Clear(); |
2559 | } |
2560 | |
2561 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2562 | const char* BuildConfiguration::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
2563 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
2564 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
2565 | while (!ctx->Done(&ptr)) { |
2566 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2567 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
2568 | CHK_(ptr); |
2569 | switch (tag >> 3) { |
2570 | // string mode = 1; |
2571 | case 1: |
2572 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
2573 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_mode(), ptr, ctx, "tensorflow.BuildConfiguration.mode" ); |
2574 | CHK_(ptr); |
2575 | } else goto handle_unusual; |
2576 | continue; |
2577 | // repeated string cc_flags = 2; |
2578 | case 2: |
2579 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
2580 | ptr -= 1; |
2581 | do { |
2582 | ptr += 1; |
2583 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_cc_flags(), ptr, ctx, "tensorflow.BuildConfiguration.cc_flags" ); |
2584 | CHK_(ptr); |
2585 | if (!ctx->DataAvailable(ptr)) break; |
2586 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); |
2587 | } else goto handle_unusual; |
2588 | continue; |
2589 | // repeated string opts = 3; |
2590 | case 3: |
2591 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
2592 | ptr -= 1; |
2593 | do { |
2594 | ptr += 1; |
2595 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_opts(), ptr, ctx, "tensorflow.BuildConfiguration.opts" ); |
2596 | CHK_(ptr); |
2597 | if (!ctx->DataAvailable(ptr)) break; |
2598 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); |
2599 | } else goto handle_unusual; |
2600 | continue; |
2601 | default: { |
2602 | handle_unusual: |
2603 | if ((tag & 7) == 4 || tag == 0) { |
2604 | ctx->SetLastTag(tag); |
2605 | goto success; |
2606 | } |
2607 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
2608 | CHK_(ptr != nullptr); |
2609 | continue; |
2610 | } |
2611 | } // switch |
2612 | } // while |
2613 | success: |
2614 | return ptr; |
2615 | failure: |
2616 | ptr = nullptr; |
2617 | goto success; |
2618 | #undef CHK_ |
2619 | } |
2620 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2621 | bool BuildConfiguration::MergePartialFromCodedStream( |
2622 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
2623 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
2624 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2625 | // @@protoc_insertion_point(parse_start:tensorflow.BuildConfiguration) |
2626 | for (;;) { |
2627 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2628 | tag = p.first; |
2629 | if (!p.second) goto handle_unusual; |
2630 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2631 | // string mode = 1; |
2632 | case 1: { |
2633 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
2634 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
2635 | input, this->mutable_mode())); |
2636 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2637 | this->mode().data(), static_cast<int>(this->mode().length()), |
2638 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
2639 | "tensorflow.BuildConfiguration.mode" )); |
2640 | } else { |
2641 | goto handle_unusual; |
2642 | } |
2643 | break; |
2644 | } |
2645 | |
2646 | // repeated string cc_flags = 2; |
2647 | case 2: { |
2648 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
2649 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
2650 | input, this->add_cc_flags())); |
2651 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2652 | this->cc_flags(this->cc_flags_size() - 1).data(), |
2653 | static_cast<int>(this->cc_flags(this->cc_flags_size() - 1).length()), |
2654 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
2655 | "tensorflow.BuildConfiguration.cc_flags" )); |
2656 | } else { |
2657 | goto handle_unusual; |
2658 | } |
2659 | break; |
2660 | } |
2661 | |
2662 | // repeated string opts = 3; |
2663 | case 3: { |
2664 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
2665 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
2666 | input, this->add_opts())); |
2667 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2668 | this->opts(this->opts_size() - 1).data(), |
2669 | static_cast<int>(this->opts(this->opts_size() - 1).length()), |
2670 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
2671 | "tensorflow.BuildConfiguration.opts" )); |
2672 | } else { |
2673 | goto handle_unusual; |
2674 | } |
2675 | break; |
2676 | } |
2677 | |
2678 | default: { |
2679 | handle_unusual: |
2680 | if (tag == 0) { |
2681 | goto success; |
2682 | } |
2683 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
2684 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2685 | break; |
2686 | } |
2687 | } |
2688 | } |
2689 | success: |
2690 | // @@protoc_insertion_point(parse_success:tensorflow.BuildConfiguration) |
2691 | return true; |
2692 | failure: |
2693 | // @@protoc_insertion_point(parse_failure:tensorflow.BuildConfiguration) |
2694 | return false; |
2695 | #undef DO_ |
2696 | } |
2697 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2698 | |
2699 | void BuildConfiguration::SerializeWithCachedSizes( |
2700 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
2701 | // @@protoc_insertion_point(serialize_start:tensorflow.BuildConfiguration) |
2702 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2703 | (void) cached_has_bits; |
2704 | |
2705 | // string mode = 1; |
2706 | if (this->mode().size() > 0) { |
2707 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2708 | this->mode().data(), static_cast<int>(this->mode().length()), |
2709 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2710 | "tensorflow.BuildConfiguration.mode" ); |
2711 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
2712 | 1, this->mode(), output); |
2713 | } |
2714 | |
2715 | // repeated string cc_flags = 2; |
2716 | for (int i = 0, n = this->cc_flags_size(); i < n; i++) { |
2717 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2718 | this->cc_flags(i).data(), static_cast<int>(this->cc_flags(i).length()), |
2719 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2720 | "tensorflow.BuildConfiguration.cc_flags" ); |
2721 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( |
2722 | 2, this->cc_flags(i), output); |
2723 | } |
2724 | |
2725 | // repeated string opts = 3; |
2726 | for (int i = 0, n = this->opts_size(); i < n; i++) { |
2727 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2728 | this->opts(i).data(), static_cast<int>(this->opts(i).length()), |
2729 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2730 | "tensorflow.BuildConfiguration.opts" ); |
2731 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( |
2732 | 3, this->opts(i), output); |
2733 | } |
2734 | |
2735 | if (_internal_metadata_.have_unknown_fields()) { |
2736 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
2737 | _internal_metadata_.unknown_fields(), output); |
2738 | } |
2739 | // @@protoc_insertion_point(serialize_end:tensorflow.BuildConfiguration) |
2740 | } |
2741 | |
2742 | ::PROTOBUF_NAMESPACE_ID::uint8* BuildConfiguration::InternalSerializeWithCachedSizesToArray( |
2743 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
2744 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.BuildConfiguration) |
2745 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2746 | (void) cached_has_bits; |
2747 | |
2748 | // string mode = 1; |
2749 | if (this->mode().size() > 0) { |
2750 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2751 | this->mode().data(), static_cast<int>(this->mode().length()), |
2752 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2753 | "tensorflow.BuildConfiguration.mode" ); |
2754 | target = |
2755 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
2756 | 1, this->mode(), target); |
2757 | } |
2758 | |
2759 | // repeated string cc_flags = 2; |
2760 | for (int i = 0, n = this->cc_flags_size(); i < n; i++) { |
2761 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2762 | this->cc_flags(i).data(), static_cast<int>(this->cc_flags(i).length()), |
2763 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2764 | "tensorflow.BuildConfiguration.cc_flags" ); |
2765 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2766 | WriteStringToArray(2, this->cc_flags(i), target); |
2767 | } |
2768 | |
2769 | // repeated string opts = 3; |
2770 | for (int i = 0, n = this->opts_size(); i < n; i++) { |
2771 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2772 | this->opts(i).data(), static_cast<int>(this->opts(i).length()), |
2773 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2774 | "tensorflow.BuildConfiguration.opts" ); |
2775 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2776 | WriteStringToArray(3, this->opts(i), target); |
2777 | } |
2778 | |
2779 | if (_internal_metadata_.have_unknown_fields()) { |
2780 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
2781 | _internal_metadata_.unknown_fields(), target); |
2782 | } |
2783 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.BuildConfiguration) |
2784 | return target; |
2785 | } |
2786 | |
2787 | size_t BuildConfiguration::ByteSizeLong() const { |
2788 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.BuildConfiguration) |
2789 | size_t total_size = 0; |
2790 | |
2791 | if (_internal_metadata_.have_unknown_fields()) { |
2792 | total_size += |
2793 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
2794 | _internal_metadata_.unknown_fields()); |
2795 | } |
2796 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2797 | // Prevent compiler warnings about cached_has_bits being unused |
2798 | (void) cached_has_bits; |
2799 | |
2800 | // repeated string cc_flags = 2; |
2801 | total_size += 1 * |
2802 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->cc_flags_size()); |
2803 | for (int i = 0, n = this->cc_flags_size(); i < n; i++) { |
2804 | total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
2805 | this->cc_flags(i)); |
2806 | } |
2807 | |
2808 | // repeated string opts = 3; |
2809 | total_size += 1 * |
2810 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->opts_size()); |
2811 | for (int i = 0, n = this->opts_size(); i < n; i++) { |
2812 | total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
2813 | this->opts(i)); |
2814 | } |
2815 | |
2816 | // string mode = 1; |
2817 | if (this->mode().size() > 0) { |
2818 | total_size += 1 + |
2819 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
2820 | this->mode()); |
2821 | } |
2822 | |
2823 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
2824 | SetCachedSize(cached_size); |
2825 | return total_size; |
2826 | } |
2827 | |
2828 | void BuildConfiguration::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2829 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.BuildConfiguration) |
2830 | GOOGLE_DCHECK_NE(&from, this); |
2831 | const BuildConfiguration* source = |
2832 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<BuildConfiguration>( |
2833 | &from); |
2834 | if (source == nullptr) { |
2835 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.BuildConfiguration) |
2836 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
2837 | } else { |
2838 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.BuildConfiguration) |
2839 | MergeFrom(*source); |
2840 | } |
2841 | } |
2842 | |
2843 | void BuildConfiguration::MergeFrom(const BuildConfiguration& from) { |
2844 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.BuildConfiguration) |
2845 | GOOGLE_DCHECK_NE(&from, this); |
2846 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2847 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2848 | (void) cached_has_bits; |
2849 | |
2850 | cc_flags_.MergeFrom(from.cc_flags_); |
2851 | opts_.MergeFrom(from.opts_); |
2852 | if (from.mode().size() > 0) { |
2853 | set_mode(from.mode()); |
2854 | } |
2855 | } |
2856 | |
2857 | void BuildConfiguration::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2858 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.BuildConfiguration) |
2859 | if (&from == this) return; |
2860 | Clear(); |
2861 | MergeFrom(from); |
2862 | } |
2863 | |
2864 | void BuildConfiguration::CopyFrom(const BuildConfiguration& from) { |
2865 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.BuildConfiguration) |
2866 | if (&from == this) return; |
2867 | Clear(); |
2868 | MergeFrom(from); |
2869 | } |
2870 | |
2871 | bool BuildConfiguration::IsInitialized() const { |
2872 | return true; |
2873 | } |
2874 | |
2875 | void BuildConfiguration::InternalSwap(BuildConfiguration* other) { |
2876 | using std::swap; |
2877 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2878 | cc_flags_.InternalSwap(CastToBase(&other->cc_flags_)); |
2879 | opts_.InternalSwap(CastToBase(&other->opts_)); |
2880 | mode_.Swap(&other->mode_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2881 | GetArenaNoVirtual()); |
2882 | } |
2883 | |
2884 | ::PROTOBUF_NAMESPACE_ID::Metadata BuildConfiguration::GetMetadata() const { |
2885 | return GetMetadataStatic(); |
2886 | } |
2887 | |
2888 | |
2889 | // =================================================================== |
2890 | |
2891 | void CommitId::InitAsDefaultInstance() { |
2892 | ::tensorflow::_CommitId_default_instance_.changelist_ = PROTOBUF_LONGLONG(0); |
2893 | ::tensorflow::_CommitId_default_instance_.hash_.UnsafeSetDefault( |
2894 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2895 | } |
2896 | class CommitId::_Internal { |
2897 | public: |
2898 | }; |
2899 | |
2900 | CommitId::CommitId() |
2901 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
2902 | SharedCtor(); |
2903 | // @@protoc_insertion_point(constructor:tensorflow.CommitId) |
2904 | } |
2905 | CommitId::CommitId(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
2906 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2907 | _internal_metadata_(arena) { |
2908 | SharedCtor(); |
2909 | RegisterArenaDtor(arena); |
2910 | // @@protoc_insertion_point(arena_constructor:tensorflow.CommitId) |
2911 | } |
2912 | CommitId::CommitId(const CommitId& from) |
2913 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2914 | _internal_metadata_(nullptr) { |
2915 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2916 | snapshot_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2917 | if (!from.snapshot().empty()) { |
2918 | snapshot_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.snapshot(), |
2919 | GetArenaNoVirtual()); |
2920 | } |
2921 | pending_changelist_ = from.pending_changelist_; |
2922 | clear_has_kind(); |
2923 | switch (from.kind_case()) { |
2924 | case kChangelist: { |
2925 | set_changelist(from.changelist()); |
2926 | break; |
2927 | } |
2928 | case kHash: { |
2929 | set_hash(from.hash()); |
2930 | break; |
2931 | } |
2932 | case KIND_NOT_SET: { |
2933 | break; |
2934 | } |
2935 | } |
2936 | // @@protoc_insertion_point(copy_constructor:tensorflow.CommitId) |
2937 | } |
2938 | |
2939 | void CommitId::SharedCtor() { |
2940 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CommitId_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
2941 | snapshot_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2942 | pending_changelist_ = PROTOBUF_LONGLONG(0); |
2943 | clear_has_kind(); |
2944 | } |
2945 | |
2946 | CommitId::~CommitId() { |
2947 | // @@protoc_insertion_point(destructor:tensorflow.CommitId) |
2948 | SharedDtor(); |
2949 | } |
2950 | |
2951 | void CommitId::SharedDtor() { |
2952 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
2953 | snapshot_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2954 | if (has_kind()) { |
2955 | clear_kind(); |
2956 | } |
2957 | } |
2958 | |
2959 | void CommitId::ArenaDtor(void* object) { |
2960 | CommitId* _this = reinterpret_cast< CommitId* >(object); |
2961 | (void)_this; |
2962 | } |
2963 | void CommitId::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
2964 | } |
2965 | void CommitId::SetCachedSize(int size) const { |
2966 | _cached_size_.Set(size); |
2967 | } |
2968 | const CommitId& CommitId::default_instance() { |
2969 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CommitId_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
2970 | return *internal_default_instance(); |
2971 | } |
2972 | |
2973 | |
2974 | void CommitId::clear_kind() { |
2975 | // @@protoc_insertion_point(one_of_clear_start:tensorflow.CommitId) |
2976 | switch (kind_case()) { |
2977 | case kChangelist: { |
2978 | // No need to clear |
2979 | break; |
2980 | } |
2981 | case kHash: { |
2982 | kind_.hash_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2983 | GetArenaNoVirtual()); |
2984 | break; |
2985 | } |
2986 | case KIND_NOT_SET: { |
2987 | break; |
2988 | } |
2989 | } |
2990 | _oneof_case_[0] = KIND_NOT_SET; |
2991 | } |
2992 | |
2993 | |
2994 | void CommitId::Clear() { |
2995 | // @@protoc_insertion_point(message_clear_start:tensorflow.CommitId) |
2996 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2997 | // Prevent compiler warnings about cached_has_bits being unused |
2998 | (void) cached_has_bits; |
2999 | |
3000 | snapshot_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
3001 | pending_changelist_ = PROTOBUF_LONGLONG(0); |
3002 | clear_kind(); |
3003 | _internal_metadata_.Clear(); |
3004 | } |
3005 | |
3006 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3007 | const char* CommitId::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
3008 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
3009 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
3010 | while (!ctx->Done(&ptr)) { |
3011 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3012 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
3013 | CHK_(ptr); |
3014 | switch (tag >> 3) { |
3015 | // int64 changelist = 1; |
3016 | case 1: |
3017 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
3018 | set_changelist(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); |
3019 | CHK_(ptr); |
3020 | } else goto handle_unusual; |
3021 | continue; |
3022 | // string hash = 2; |
3023 | case 2: |
3024 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
3025 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_hash(), ptr, ctx, "tensorflow.CommitId.hash" ); |
3026 | CHK_(ptr); |
3027 | } else goto handle_unusual; |
3028 | continue; |
3029 | // string snapshot = 3; |
3030 | case 3: |
3031 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
3032 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_snapshot(), ptr, ctx, "tensorflow.CommitId.snapshot" ); |
3033 | CHK_(ptr); |
3034 | } else goto handle_unusual; |
3035 | continue; |
3036 | // int64 pending_changelist = 4; |
3037 | case 4: |
3038 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { |
3039 | pending_changelist_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
3040 | CHK_(ptr); |
3041 | } else goto handle_unusual; |
3042 | continue; |
3043 | default: { |
3044 | handle_unusual: |
3045 | if ((tag & 7) == 4 || tag == 0) { |
3046 | ctx->SetLastTag(tag); |
3047 | goto success; |
3048 | } |
3049 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
3050 | CHK_(ptr != nullptr); |
3051 | continue; |
3052 | } |
3053 | } // switch |
3054 | } // while |
3055 | success: |
3056 | return ptr; |
3057 | failure: |
3058 | ptr = nullptr; |
3059 | goto success; |
3060 | #undef CHK_ |
3061 | } |
3062 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3063 | bool CommitId::MergePartialFromCodedStream( |
3064 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
3065 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
3066 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3067 | // @@protoc_insertion_point(parse_start:tensorflow.CommitId) |
3068 | for (;;) { |
3069 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3070 | tag = p.first; |
3071 | if (!p.second) goto handle_unusual; |
3072 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3073 | // int64 changelist = 1; |
3074 | case 1: { |
3075 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { |
3076 | clear_kind(); |
3077 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
3078 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
3079 | input, &kind_.changelist_))); |
3080 | set_has_changelist(); |
3081 | } else { |
3082 | goto handle_unusual; |
3083 | } |
3084 | break; |
3085 | } |
3086 | |
3087 | // string hash = 2; |
3088 | case 2: { |
3089 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
3090 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
3091 | input, this->mutable_hash())); |
3092 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3093 | this->hash().data(), static_cast<int>(this->hash().length()), |
3094 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
3095 | "tensorflow.CommitId.hash" )); |
3096 | } else { |
3097 | goto handle_unusual; |
3098 | } |
3099 | break; |
3100 | } |
3101 | |
3102 | // string snapshot = 3; |
3103 | case 3: { |
3104 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
3105 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
3106 | input, this->mutable_snapshot())); |
3107 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3108 | this->snapshot().data(), static_cast<int>(this->snapshot().length()), |
3109 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
3110 | "tensorflow.CommitId.snapshot" )); |
3111 | } else { |
3112 | goto handle_unusual; |
3113 | } |
3114 | break; |
3115 | } |
3116 | |
3117 | // int64 pending_changelist = 4; |
3118 | case 4: { |
3119 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { |
3120 | |
3121 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
3122 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
3123 | input, &pending_changelist_))); |
3124 | } else { |
3125 | goto handle_unusual; |
3126 | } |
3127 | break; |
3128 | } |
3129 | |
3130 | default: { |
3131 | handle_unusual: |
3132 | if (tag == 0) { |
3133 | goto success; |
3134 | } |
3135 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
3136 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3137 | break; |
3138 | } |
3139 | } |
3140 | } |
3141 | success: |
3142 | // @@protoc_insertion_point(parse_success:tensorflow.CommitId) |
3143 | return true; |
3144 | failure: |
3145 | // @@protoc_insertion_point(parse_failure:tensorflow.CommitId) |
3146 | return false; |
3147 | #undef DO_ |
3148 | } |
3149 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3150 | |
3151 | void CommitId::SerializeWithCachedSizes( |
3152 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
3153 | // @@protoc_insertion_point(serialize_start:tensorflow.CommitId) |
3154 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3155 | (void) cached_has_bits; |
3156 | |
3157 | // int64 changelist = 1; |
3158 | if (has_changelist()) { |
3159 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->changelist(), output); |
3160 | } |
3161 | |
3162 | // string hash = 2; |
3163 | if (has_hash()) { |
3164 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3165 | this->hash().data(), static_cast<int>(this->hash().length()), |
3166 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
3167 | "tensorflow.CommitId.hash" ); |
3168 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
3169 | 2, this->hash(), output); |
3170 | } |
3171 | |
3172 | // string snapshot = 3; |
3173 | if (this->snapshot().size() > 0) { |
3174 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3175 | this->snapshot().data(), static_cast<int>(this->snapshot().length()), |
3176 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
3177 | "tensorflow.CommitId.snapshot" ); |
3178 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
3179 | 3, this->snapshot(), output); |
3180 | } |
3181 | |
3182 | // int64 pending_changelist = 4; |
3183 | if (this->pending_changelist() != 0) { |
3184 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->pending_changelist(), output); |
3185 | } |
3186 | |
3187 | if (_internal_metadata_.have_unknown_fields()) { |
3188 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
3189 | _internal_metadata_.unknown_fields(), output); |
3190 | } |
3191 | // @@protoc_insertion_point(serialize_end:tensorflow.CommitId) |
3192 | } |
3193 | |
3194 | ::PROTOBUF_NAMESPACE_ID::uint8* CommitId::InternalSerializeWithCachedSizesToArray( |
3195 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
3196 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CommitId) |
3197 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3198 | (void) cached_has_bits; |
3199 | |
3200 | // int64 changelist = 1; |
3201 | if (has_changelist()) { |
3202 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->changelist(), target); |
3203 | } |
3204 | |
3205 | // string hash = 2; |
3206 | if (has_hash()) { |
3207 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3208 | this->hash().data(), static_cast<int>(this->hash().length()), |
3209 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
3210 | "tensorflow.CommitId.hash" ); |
3211 | target = |
3212 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
3213 | 2, this->hash(), target); |
3214 | } |
3215 | |
3216 | // string snapshot = 3; |
3217 | if (this->snapshot().size() > 0) { |
3218 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3219 | this->snapshot().data(), static_cast<int>(this->snapshot().length()), |
3220 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
3221 | "tensorflow.CommitId.snapshot" ); |
3222 | target = |
3223 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
3224 | 3, this->snapshot(), target); |
3225 | } |
3226 | |
3227 | // int64 pending_changelist = 4; |
3228 | if (this->pending_changelist() != 0) { |
3229 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->pending_changelist(), target); |
3230 | } |
3231 | |
3232 | if (_internal_metadata_.have_unknown_fields()) { |
3233 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
3234 | _internal_metadata_.unknown_fields(), target); |
3235 | } |
3236 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CommitId) |
3237 | return target; |
3238 | } |
3239 | |
3240 | size_t CommitId::ByteSizeLong() const { |
3241 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.CommitId) |
3242 | size_t total_size = 0; |
3243 | |
3244 | if (_internal_metadata_.have_unknown_fields()) { |
3245 | total_size += |
3246 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
3247 | _internal_metadata_.unknown_fields()); |
3248 | } |
3249 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3250 | // Prevent compiler warnings about cached_has_bits being unused |
3251 | (void) cached_has_bits; |
3252 | |
3253 | // string snapshot = 3; |
3254 | if (this->snapshot().size() > 0) { |
3255 | total_size += 1 + |
3256 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
3257 | this->snapshot()); |
3258 | } |
3259 | |
3260 | // int64 pending_changelist = 4; |
3261 | if (this->pending_changelist() != 0) { |
3262 | total_size += 1 + |
3263 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3264 | this->pending_changelist()); |
3265 | } |
3266 | |
3267 | switch (kind_case()) { |
3268 | // int64 changelist = 1; |
3269 | case kChangelist: { |
3270 | total_size += 1 + |
3271 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3272 | this->changelist()); |
3273 | break; |
3274 | } |
3275 | // string hash = 2; |
3276 | case kHash: { |
3277 | total_size += 1 + |
3278 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
3279 | this->hash()); |
3280 | break; |
3281 | } |
3282 | case KIND_NOT_SET: { |
3283 | break; |
3284 | } |
3285 | } |
3286 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
3287 | SetCachedSize(cached_size); |
3288 | return total_size; |
3289 | } |
3290 | |
3291 | void CommitId::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3292 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CommitId) |
3293 | GOOGLE_DCHECK_NE(&from, this); |
3294 | const CommitId* source = |
3295 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CommitId>( |
3296 | &from); |
3297 | if (source == nullptr) { |
3298 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CommitId) |
3299 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
3300 | } else { |
3301 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CommitId) |
3302 | MergeFrom(*source); |
3303 | } |
3304 | } |
3305 | |
3306 | void CommitId::MergeFrom(const CommitId& from) { |
3307 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CommitId) |
3308 | GOOGLE_DCHECK_NE(&from, this); |
3309 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3310 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3311 | (void) cached_has_bits; |
3312 | |
3313 | if (from.snapshot().size() > 0) { |
3314 | set_snapshot(from.snapshot()); |
3315 | } |
3316 | if (from.pending_changelist() != 0) { |
3317 | set_pending_changelist(from.pending_changelist()); |
3318 | } |
3319 | switch (from.kind_case()) { |
3320 | case kChangelist: { |
3321 | set_changelist(from.changelist()); |
3322 | break; |
3323 | } |
3324 | case kHash: { |
3325 | set_hash(from.hash()); |
3326 | break; |
3327 | } |
3328 | case KIND_NOT_SET: { |
3329 | break; |
3330 | } |
3331 | } |
3332 | } |
3333 | |
3334 | void CommitId::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3335 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CommitId) |
3336 | if (&from == this) return; |
3337 | Clear(); |
3338 | MergeFrom(from); |
3339 | } |
3340 | |
3341 | void CommitId::CopyFrom(const CommitId& from) { |
3342 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CommitId) |
3343 | if (&from == this) return; |
3344 | Clear(); |
3345 | MergeFrom(from); |
3346 | } |
3347 | |
3348 | bool CommitId::IsInitialized() const { |
3349 | return true; |
3350 | } |
3351 | |
3352 | void CommitId::InternalSwap(CommitId* other) { |
3353 | using std::swap; |
3354 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3355 | snapshot_.Swap(&other->snapshot_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
3356 | GetArenaNoVirtual()); |
3357 | swap(pending_changelist_, other->pending_changelist_); |
3358 | swap(kind_, other->kind_); |
3359 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
3360 | } |
3361 | |
3362 | ::PROTOBUF_NAMESPACE_ID::Metadata CommitId::GetMetadata() const { |
3363 | return GetMetadataStatic(); |
3364 | } |
3365 | |
3366 | |
3367 | // =================================================================== |
3368 | |
3369 | CPUInfo_CacheSizeEntry_DoNotUse::CPUInfo_CacheSizeEntry_DoNotUse() {} |
3370 | CPUInfo_CacheSizeEntry_DoNotUse::CPUInfo_CacheSizeEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
3371 | : SuperType(arena) {} |
3372 | void CPUInfo_CacheSizeEntry_DoNotUse::MergeFrom(const CPUInfo_CacheSizeEntry_DoNotUse& other) { |
3373 | MergeFromInternal(other); |
3374 | } |
3375 | ::PROTOBUF_NAMESPACE_ID::Metadata CPUInfo_CacheSizeEntry_DoNotUse::GetMetadata() const { |
3376 | return GetMetadataStatic(); |
3377 | } |
3378 | void CPUInfo_CacheSizeEntry_DoNotUse::MergeFrom( |
3379 | const ::PROTOBUF_NAMESPACE_ID::Message& other) { |
3380 | ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other); |
3381 | } |
3382 | |
3383 | |
3384 | // =================================================================== |
3385 | |
3386 | void CPUInfo::InitAsDefaultInstance() { |
3387 | } |
3388 | class CPUInfo::_Internal { |
3389 | public: |
3390 | }; |
3391 | |
3392 | CPUInfo::CPUInfo() |
3393 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
3394 | SharedCtor(); |
3395 | // @@protoc_insertion_point(constructor:tensorflow.CPUInfo) |
3396 | } |
3397 | CPUInfo::CPUInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
3398 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
3399 | _internal_metadata_(arena), |
3400 | cache_size_(arena) { |
3401 | SharedCtor(); |
3402 | RegisterArenaDtor(arena); |
3403 | // @@protoc_insertion_point(arena_constructor:tensorflow.CPUInfo) |
3404 | } |
3405 | CPUInfo::CPUInfo(const CPUInfo& from) |
3406 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
3407 | _internal_metadata_(nullptr) { |
3408 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3409 | cache_size_.MergeFrom(from.cache_size_); |
3410 | cpu_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
3411 | if (!from.cpu_info().empty()) { |
3412 | cpu_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.cpu_info(), |
3413 | GetArenaNoVirtual()); |
3414 | } |
3415 | cpu_governor_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
3416 | if (!from.cpu_governor().empty()) { |
3417 | cpu_governor_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.cpu_governor(), |
3418 | GetArenaNoVirtual()); |
3419 | } |
3420 | ::memcpy(&num_cores_, &from.num_cores_, |
3421 | static_cast<size_t>(reinterpret_cast<char*>(&mhz_per_cpu_) - |
3422 | reinterpret_cast<char*>(&num_cores_)) + sizeof(mhz_per_cpu_)); |
3423 | // @@protoc_insertion_point(copy_constructor:tensorflow.CPUInfo) |
3424 | } |
3425 | |
3426 | void CPUInfo::SharedCtor() { |
3427 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CPUInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
3428 | cpu_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
3429 | cpu_governor_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
3430 | ::memset(&num_cores_, 0, static_cast<size_t>( |
3431 | reinterpret_cast<char*>(&mhz_per_cpu_) - |
3432 | reinterpret_cast<char*>(&num_cores_)) + sizeof(mhz_per_cpu_)); |
3433 | } |
3434 | |
3435 | CPUInfo::~CPUInfo() { |
3436 | // @@protoc_insertion_point(destructor:tensorflow.CPUInfo) |
3437 | SharedDtor(); |
3438 | } |
3439 | |
3440 | void CPUInfo::SharedDtor() { |
3441 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
3442 | cpu_info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
3443 | cpu_governor_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
3444 | } |
3445 | |
3446 | void CPUInfo::ArenaDtor(void* object) { |
3447 | CPUInfo* _this = reinterpret_cast< CPUInfo* >(object); |
3448 | (void)_this; |
3449 | } |
3450 | void CPUInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
3451 | } |
3452 | void CPUInfo::SetCachedSize(int size) const { |
3453 | _cached_size_.Set(size); |
3454 | } |
3455 | const CPUInfo& CPUInfo::default_instance() { |
3456 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CPUInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
3457 | return *internal_default_instance(); |
3458 | } |
3459 | |
3460 | |
3461 | void CPUInfo::Clear() { |
3462 | // @@protoc_insertion_point(message_clear_start:tensorflow.CPUInfo) |
3463 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3464 | // Prevent compiler warnings about cached_has_bits being unused |
3465 | (void) cached_has_bits; |
3466 | |
3467 | cache_size_.Clear(); |
3468 | cpu_info_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
3469 | cpu_governor_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
3470 | ::memset(&num_cores_, 0, static_cast<size_t>( |
3471 | reinterpret_cast<char*>(&mhz_per_cpu_) - |
3472 | reinterpret_cast<char*>(&num_cores_)) + sizeof(mhz_per_cpu_)); |
3473 | _internal_metadata_.Clear(); |
3474 | } |
3475 | |
3476 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3477 | const char* CPUInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
3478 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
3479 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
3480 | while (!ctx->Done(&ptr)) { |
3481 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3482 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
3483 | CHK_(ptr); |
3484 | switch (tag >> 3) { |
3485 | // int64 num_cores = 1; |
3486 | case 1: |
3487 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
3488 | num_cores_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
3489 | CHK_(ptr); |
3490 | } else goto handle_unusual; |
3491 | continue; |
3492 | // int64 num_cores_allowed = 2; |
3493 | case 2: |
3494 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
3495 | num_cores_allowed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
3496 | CHK_(ptr); |
3497 | } else goto handle_unusual; |
3498 | continue; |
3499 | // double mhz_per_cpu = 3; |
3500 | case 3: |
3501 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25)) { |
3502 | mhz_per_cpu_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); |
3503 | ptr += sizeof(double); |
3504 | } else goto handle_unusual; |
3505 | continue; |
3506 | // string cpu_info = 4; |
3507 | case 4: |
3508 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
3509 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_cpu_info(), ptr, ctx, "tensorflow.CPUInfo.cpu_info" ); |
3510 | CHK_(ptr); |
3511 | } else goto handle_unusual; |
3512 | continue; |
3513 | // string cpu_governor = 5; |
3514 | case 5: |
3515 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
3516 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_cpu_governor(), ptr, ctx, "tensorflow.CPUInfo.cpu_governor" ); |
3517 | CHK_(ptr); |
3518 | } else goto handle_unusual; |
3519 | continue; |
3520 | // map<string, int64> cache_size = 6; |
3521 | case 6: |
3522 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { |
3523 | ptr -= 1; |
3524 | do { |
3525 | ptr += 1; |
3526 | ptr = ctx->ParseMessage(&cache_size_, ptr); |
3527 | CHK_(ptr); |
3528 | if (!ctx->DataAvailable(ptr)) break; |
3529 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 50); |
3530 | } else goto handle_unusual; |
3531 | continue; |
3532 | default: { |
3533 | handle_unusual: |
3534 | if ((tag & 7) == 4 || tag == 0) { |
3535 | ctx->SetLastTag(tag); |
3536 | goto success; |
3537 | } |
3538 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
3539 | CHK_(ptr != nullptr); |
3540 | continue; |
3541 | } |
3542 | } // switch |
3543 | } // while |
3544 | success: |
3545 | return ptr; |
3546 | failure: |
3547 | ptr = nullptr; |
3548 | goto success; |
3549 | #undef CHK_ |
3550 | } |
3551 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3552 | bool CPUInfo::MergePartialFromCodedStream( |
3553 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
3554 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
3555 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
3556 | // @@protoc_insertion_point(parse_start:tensorflow.CPUInfo) |
3557 | for (;;) { |
3558 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3559 | tag = p.first; |
3560 | if (!p.second) goto handle_unusual; |
3561 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3562 | // int64 num_cores = 1; |
3563 | case 1: { |
3564 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { |
3565 | |
3566 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
3567 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
3568 | input, &num_cores_))); |
3569 | } else { |
3570 | goto handle_unusual; |
3571 | } |
3572 | break; |
3573 | } |
3574 | |
3575 | // int64 num_cores_allowed = 2; |
3576 | case 2: { |
3577 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { |
3578 | |
3579 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
3580 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
3581 | input, &num_cores_allowed_))); |
3582 | } else { |
3583 | goto handle_unusual; |
3584 | } |
3585 | break; |
3586 | } |
3587 | |
3588 | // double mhz_per_cpu = 3; |
3589 | case 3: { |
3590 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (25 & 0xFF)) { |
3591 | |
3592 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
3593 | double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( |
3594 | input, &mhz_per_cpu_))); |
3595 | } else { |
3596 | goto handle_unusual; |
3597 | } |
3598 | break; |
3599 | } |
3600 | |
3601 | // string cpu_info = 4; |
3602 | case 4: { |
3603 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
3604 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
3605 | input, this->mutable_cpu_info())); |
3606 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3607 | this->cpu_info().data(), static_cast<int>(this->cpu_info().length()), |
3608 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
3609 | "tensorflow.CPUInfo.cpu_info" )); |
3610 | } else { |
3611 | goto handle_unusual; |
3612 | } |
3613 | break; |
3614 | } |
3615 | |
3616 | // string cpu_governor = 5; |
3617 | case 5: { |
3618 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { |
3619 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
3620 | input, this->mutable_cpu_governor())); |
3621 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3622 | this->cpu_governor().data(), static_cast<int>(this->cpu_governor().length()), |
3623 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
3624 | "tensorflow.CPUInfo.cpu_governor" )); |
3625 | } else { |
3626 | goto handle_unusual; |
3627 | } |
3628 | break; |
3629 | } |
3630 | |
3631 | // map<string, int64> cache_size = 6; |
3632 | case 6: { |
3633 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { |
3634 | CPUInfo_CacheSizeEntry_DoNotUse::Parser< ::PROTOBUF_NAMESPACE_ID::internal::MapField< |
3635 | CPUInfo_CacheSizeEntry_DoNotUse, |
3636 | std::string, ::PROTOBUF_NAMESPACE_ID::int64, |
3637 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
3638 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64, |
3639 | 0 >, |
3640 | ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::int64 > > parser(&cache_size_); |
3641 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessageNoVirtual( |
3642 | input, &parser)); |
3643 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3644 | parser.key().data(), static_cast<int>(parser.key().length()), |
3645 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
3646 | "tensorflow.CPUInfo.CacheSizeEntry.key" )); |
3647 | } else { |
3648 | goto handle_unusual; |
3649 | } |
3650 | break; |
3651 | } |
3652 | |
3653 | default: { |
3654 | handle_unusual: |
3655 | if (tag == 0) { |
3656 | goto success; |
3657 | } |
3658 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
3659 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3660 | break; |
3661 | } |
3662 | } |
3663 | } |
3664 | success: |
3665 | // @@protoc_insertion_point(parse_success:tensorflow.CPUInfo) |
3666 | return true; |
3667 | failure: |
3668 | // @@protoc_insertion_point(parse_failure:tensorflow.CPUInfo) |
3669 | return false; |
3670 | #undef DO_ |
3671 | } |
3672 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
3673 | |
3674 | void CPUInfo::SerializeWithCachedSizes( |
3675 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
3676 | // @@protoc_insertion_point(serialize_start:tensorflow.CPUInfo) |
3677 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3678 | (void) cached_has_bits; |
3679 | |
3680 | // int64 num_cores = 1; |
3681 | if (this->num_cores() != 0) { |
3682 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->num_cores(), output); |
3683 | } |
3684 | |
3685 | // int64 num_cores_allowed = 2; |
3686 | if (this->num_cores_allowed() != 0) { |
3687 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->num_cores_allowed(), output); |
3688 | } |
3689 | |
3690 | // double mhz_per_cpu = 3; |
3691 | if (!(this->mhz_per_cpu() <= 0 && this->mhz_per_cpu() >= 0)) { |
3692 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(3, this->mhz_per_cpu(), output); |
3693 | } |
3694 | |
3695 | // string cpu_info = 4; |
3696 | if (this->cpu_info().size() > 0) { |
3697 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3698 | this->cpu_info().data(), static_cast<int>(this->cpu_info().length()), |
3699 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
3700 | "tensorflow.CPUInfo.cpu_info" ); |
3701 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
3702 | 4, this->cpu_info(), output); |
3703 | } |
3704 | |
3705 | // string cpu_governor = 5; |
3706 | if (this->cpu_governor().size() > 0) { |
3707 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3708 | this->cpu_governor().data(), static_cast<int>(this->cpu_governor().length()), |
3709 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
3710 | "tensorflow.CPUInfo.cpu_governor" ); |
3711 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
3712 | 5, this->cpu_governor(), output); |
3713 | } |
3714 | |
3715 | // map<string, int64> cache_size = 6; |
3716 | if (!this->cache_size().empty()) { |
3717 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::int64 >::const_pointer |
3718 | ConstPtr; |
3719 | typedef ConstPtr SortItem; |
3720 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less; |
3721 | struct Utf8Check { |
3722 | static void Check(ConstPtr p) { |
3723 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3724 | p->first.data(), static_cast<int>(p->first.length()), |
3725 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
3726 | "tensorflow.CPUInfo.CacheSizeEntry.key" ); |
3727 | } |
3728 | }; |
3729 | |
3730 | if (output->IsSerializationDeterministic() && |
3731 | this->cache_size().size() > 1) { |
3732 | ::std::unique_ptr<SortItem[]> items( |
3733 | new SortItem[this->cache_size().size()]); |
3734 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::int64 >::size_type size_type; |
3735 | size_type n = 0; |
3736 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::int64 >::const_iterator |
3737 | it = this->cache_size().begin(); |
3738 | it != this->cache_size().end(); ++it, ++n) { |
3739 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
3740 | } |
3741 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
3742 | for (size_type i = 0; i < n; i++) { |
3743 | CPUInfo_CacheSizeEntry_DoNotUse::Funcs::SerializeToCodedStream(6, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, output); |
3744 | Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)])); |
3745 | } |
3746 | } else { |
3747 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::int64 >::const_iterator |
3748 | it = this->cache_size().begin(); |
3749 | it != this->cache_size().end(); ++it) { |
3750 | CPUInfo_CacheSizeEntry_DoNotUse::Funcs::SerializeToCodedStream(6, it->first, it->second, output); |
3751 | Utf8Check::Check(&(*it)); |
3752 | } |
3753 | } |
3754 | } |
3755 | |
3756 | if (_internal_metadata_.have_unknown_fields()) { |
3757 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
3758 | _internal_metadata_.unknown_fields(), output); |
3759 | } |
3760 | // @@protoc_insertion_point(serialize_end:tensorflow.CPUInfo) |
3761 | } |
3762 | |
3763 | ::PROTOBUF_NAMESPACE_ID::uint8* CPUInfo::InternalSerializeWithCachedSizesToArray( |
3764 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
3765 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.CPUInfo) |
3766 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3767 | (void) cached_has_bits; |
3768 | |
3769 | // int64 num_cores = 1; |
3770 | if (this->num_cores() != 0) { |
3771 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->num_cores(), target); |
3772 | } |
3773 | |
3774 | // int64 num_cores_allowed = 2; |
3775 | if (this->num_cores_allowed() != 0) { |
3776 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->num_cores_allowed(), target); |
3777 | } |
3778 | |
3779 | // double mhz_per_cpu = 3; |
3780 | if (!(this->mhz_per_cpu() <= 0 && this->mhz_per_cpu() >= 0)) { |
3781 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(3, this->mhz_per_cpu(), target); |
3782 | } |
3783 | |
3784 | // string cpu_info = 4; |
3785 | if (this->cpu_info().size() > 0) { |
3786 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3787 | this->cpu_info().data(), static_cast<int>(this->cpu_info().length()), |
3788 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
3789 | "tensorflow.CPUInfo.cpu_info" ); |
3790 | target = |
3791 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
3792 | 4, this->cpu_info(), target); |
3793 | } |
3794 | |
3795 | // string cpu_governor = 5; |
3796 | if (this->cpu_governor().size() > 0) { |
3797 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3798 | this->cpu_governor().data(), static_cast<int>(this->cpu_governor().length()), |
3799 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
3800 | "tensorflow.CPUInfo.cpu_governor" ); |
3801 | target = |
3802 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
3803 | 5, this->cpu_governor(), target); |
3804 | } |
3805 | |
3806 | // map<string, int64> cache_size = 6; |
3807 | if (!this->cache_size().empty()) { |
3808 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::int64 >::const_pointer |
3809 | ConstPtr; |
3810 | typedef ConstPtr SortItem; |
3811 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less; |
3812 | struct Utf8Check { |
3813 | static void Check(ConstPtr p) { |
3814 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
3815 | p->first.data(), static_cast<int>(p->first.length()), |
3816 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
3817 | "tensorflow.CPUInfo.CacheSizeEntry.key" ); |
3818 | } |
3819 | }; |
3820 | |
3821 | if (false && |
3822 | this->cache_size().size() > 1) { |
3823 | ::std::unique_ptr<SortItem[]> items( |
3824 | new SortItem[this->cache_size().size()]); |
3825 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::int64 >::size_type size_type; |
3826 | size_type n = 0; |
3827 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::int64 >::const_iterator |
3828 | it = this->cache_size().begin(); |
3829 | it != this->cache_size().end(); ++it, ++n) { |
3830 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
3831 | } |
3832 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
3833 | for (size_type i = 0; i < n; i++) { |
3834 | target = CPUInfo_CacheSizeEntry_DoNotUse::Funcs::SerializeToArray(6, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target); |
3835 | Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)])); |
3836 | } |
3837 | } else { |
3838 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::int64 >::const_iterator |
3839 | it = this->cache_size().begin(); |
3840 | it != this->cache_size().end(); ++it) { |
3841 | target = CPUInfo_CacheSizeEntry_DoNotUse::Funcs::SerializeToArray(6, it->first, it->second, target); |
3842 | Utf8Check::Check(&(*it)); |
3843 | } |
3844 | } |
3845 | } |
3846 | |
3847 | if (_internal_metadata_.have_unknown_fields()) { |
3848 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
3849 | _internal_metadata_.unknown_fields(), target); |
3850 | } |
3851 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.CPUInfo) |
3852 | return target; |
3853 | } |
3854 | |
3855 | size_t CPUInfo::ByteSizeLong() const { |
3856 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.CPUInfo) |
3857 | size_t total_size = 0; |
3858 | |
3859 | if (_internal_metadata_.have_unknown_fields()) { |
3860 | total_size += |
3861 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
3862 | _internal_metadata_.unknown_fields()); |
3863 | } |
3864 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3865 | // Prevent compiler warnings about cached_has_bits being unused |
3866 | (void) cached_has_bits; |
3867 | |
3868 | // map<string, int64> cache_size = 6; |
3869 | total_size += 1 * |
3870 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->cache_size_size()); |
3871 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::int64 >::const_iterator |
3872 | it = this->cache_size().begin(); |
3873 | it != this->cache_size().end(); ++it) { |
3874 | total_size += CPUInfo_CacheSizeEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); |
3875 | } |
3876 | |
3877 | // string cpu_info = 4; |
3878 | if (this->cpu_info().size() > 0) { |
3879 | total_size += 1 + |
3880 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
3881 | this->cpu_info()); |
3882 | } |
3883 | |
3884 | // string cpu_governor = 5; |
3885 | if (this->cpu_governor().size() > 0) { |
3886 | total_size += 1 + |
3887 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
3888 | this->cpu_governor()); |
3889 | } |
3890 | |
3891 | // int64 num_cores = 1; |
3892 | if (this->num_cores() != 0) { |
3893 | total_size += 1 + |
3894 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3895 | this->num_cores()); |
3896 | } |
3897 | |
3898 | // int64 num_cores_allowed = 2; |
3899 | if (this->num_cores_allowed() != 0) { |
3900 | total_size += 1 + |
3901 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
3902 | this->num_cores_allowed()); |
3903 | } |
3904 | |
3905 | // double mhz_per_cpu = 3; |
3906 | if (!(this->mhz_per_cpu() <= 0 && this->mhz_per_cpu() >= 0)) { |
3907 | total_size += 1 + 8; |
3908 | } |
3909 | |
3910 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
3911 | SetCachedSize(cached_size); |
3912 | return total_size; |
3913 | } |
3914 | |
3915 | void CPUInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3916 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.CPUInfo) |
3917 | GOOGLE_DCHECK_NE(&from, this); |
3918 | const CPUInfo* source = |
3919 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CPUInfo>( |
3920 | &from); |
3921 | if (source == nullptr) { |
3922 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.CPUInfo) |
3923 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
3924 | } else { |
3925 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.CPUInfo) |
3926 | MergeFrom(*source); |
3927 | } |
3928 | } |
3929 | |
3930 | void CPUInfo::MergeFrom(const CPUInfo& from) { |
3931 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.CPUInfo) |
3932 | GOOGLE_DCHECK_NE(&from, this); |
3933 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3934 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
3935 | (void) cached_has_bits; |
3936 | |
3937 | cache_size_.MergeFrom(from.cache_size_); |
3938 | if (from.cpu_info().size() > 0) { |
3939 | set_cpu_info(from.cpu_info()); |
3940 | } |
3941 | if (from.cpu_governor().size() > 0) { |
3942 | set_cpu_governor(from.cpu_governor()); |
3943 | } |
3944 | if (from.num_cores() != 0) { |
3945 | set_num_cores(from.num_cores()); |
3946 | } |
3947 | if (from.num_cores_allowed() != 0) { |
3948 | set_num_cores_allowed(from.num_cores_allowed()); |
3949 | } |
3950 | if (!(from.mhz_per_cpu() <= 0 && from.mhz_per_cpu() >= 0)) { |
3951 | set_mhz_per_cpu(from.mhz_per_cpu()); |
3952 | } |
3953 | } |
3954 | |
3955 | void CPUInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
3956 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.CPUInfo) |
3957 | if (&from == this) return; |
3958 | Clear(); |
3959 | MergeFrom(from); |
3960 | } |
3961 | |
3962 | void CPUInfo::CopyFrom(const CPUInfo& from) { |
3963 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.CPUInfo) |
3964 | if (&from == this) return; |
3965 | Clear(); |
3966 | MergeFrom(from); |
3967 | } |
3968 | |
3969 | bool CPUInfo::IsInitialized() const { |
3970 | return true; |
3971 | } |
3972 | |
3973 | void CPUInfo::InternalSwap(CPUInfo* other) { |
3974 | using std::swap; |
3975 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3976 | cache_size_.Swap(&other->cache_size_); |
3977 | cpu_info_.Swap(&other->cpu_info_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
3978 | GetArenaNoVirtual()); |
3979 | cpu_governor_.Swap(&other->cpu_governor_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
3980 | GetArenaNoVirtual()); |
3981 | swap(num_cores_, other->num_cores_); |
3982 | swap(num_cores_allowed_, other->num_cores_allowed_); |
3983 | swap(mhz_per_cpu_, other->mhz_per_cpu_); |
3984 | } |
3985 | |
3986 | ::PROTOBUF_NAMESPACE_ID::Metadata CPUInfo::GetMetadata() const { |
3987 | return GetMetadataStatic(); |
3988 | } |
3989 | |
3990 | |
3991 | // =================================================================== |
3992 | |
3993 | void MemoryInfo::InitAsDefaultInstance() { |
3994 | } |
3995 | class MemoryInfo::_Internal { |
3996 | public: |
3997 | }; |
3998 | |
3999 | MemoryInfo::MemoryInfo() |
4000 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
4001 | SharedCtor(); |
4002 | // @@protoc_insertion_point(constructor:tensorflow.MemoryInfo) |
4003 | } |
4004 | MemoryInfo::MemoryInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
4005 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
4006 | _internal_metadata_(arena) { |
4007 | SharedCtor(); |
4008 | RegisterArenaDtor(arena); |
4009 | // @@protoc_insertion_point(arena_constructor:tensorflow.MemoryInfo) |
4010 | } |
4011 | MemoryInfo::MemoryInfo(const MemoryInfo& from) |
4012 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
4013 | _internal_metadata_(nullptr) { |
4014 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4015 | ::memcpy(&total_, &from.total_, |
4016 | static_cast<size_t>(reinterpret_cast<char*>(&available_) - |
4017 | reinterpret_cast<char*>(&total_)) + sizeof(available_)); |
4018 | // @@protoc_insertion_point(copy_constructor:tensorflow.MemoryInfo) |
4019 | } |
4020 | |
4021 | void MemoryInfo::SharedCtor() { |
4022 | ::memset(&total_, 0, static_cast<size_t>( |
4023 | reinterpret_cast<char*>(&available_) - |
4024 | reinterpret_cast<char*>(&total_)) + sizeof(available_)); |
4025 | } |
4026 | |
4027 | MemoryInfo::~MemoryInfo() { |
4028 | // @@protoc_insertion_point(destructor:tensorflow.MemoryInfo) |
4029 | SharedDtor(); |
4030 | } |
4031 | |
4032 | void MemoryInfo::SharedDtor() { |
4033 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
4034 | } |
4035 | |
4036 | void MemoryInfo::ArenaDtor(void* object) { |
4037 | MemoryInfo* _this = reinterpret_cast< MemoryInfo* >(object); |
4038 | (void)_this; |
4039 | } |
4040 | void MemoryInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
4041 | } |
4042 | void MemoryInfo::SetCachedSize(int size) const { |
4043 | _cached_size_.Set(size); |
4044 | } |
4045 | const MemoryInfo& MemoryInfo::default_instance() { |
4046 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MemoryInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
4047 | return *internal_default_instance(); |
4048 | } |
4049 | |
4050 | |
4051 | void MemoryInfo::Clear() { |
4052 | // @@protoc_insertion_point(message_clear_start:tensorflow.MemoryInfo) |
4053 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4054 | // Prevent compiler warnings about cached_has_bits being unused |
4055 | (void) cached_has_bits; |
4056 | |
4057 | ::memset(&total_, 0, static_cast<size_t>( |
4058 | reinterpret_cast<char*>(&available_) - |
4059 | reinterpret_cast<char*>(&total_)) + sizeof(available_)); |
4060 | _internal_metadata_.Clear(); |
4061 | } |
4062 | |
4063 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4064 | const char* MemoryInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
4065 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
4066 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
4067 | while (!ctx->Done(&ptr)) { |
4068 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
4069 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
4070 | CHK_(ptr); |
4071 | switch (tag >> 3) { |
4072 | // int64 total = 1; |
4073 | case 1: |
4074 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
4075 | total_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
4076 | CHK_(ptr); |
4077 | } else goto handle_unusual; |
4078 | continue; |
4079 | // int64 available = 2; |
4080 | case 2: |
4081 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
4082 | available_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
4083 | CHK_(ptr); |
4084 | } else goto handle_unusual; |
4085 | continue; |
4086 | default: { |
4087 | handle_unusual: |
4088 | if ((tag & 7) == 4 || tag == 0) { |
4089 | ctx->SetLastTag(tag); |
4090 | goto success; |
4091 | } |
4092 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
4093 | CHK_(ptr != nullptr); |
4094 | continue; |
4095 | } |
4096 | } // switch |
4097 | } // while |
4098 | success: |
4099 | return ptr; |
4100 | failure: |
4101 | ptr = nullptr; |
4102 | goto success; |
4103 | #undef CHK_ |
4104 | } |
4105 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4106 | bool MemoryInfo::MergePartialFromCodedStream( |
4107 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
4108 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
4109 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
4110 | // @@protoc_insertion_point(parse_start:tensorflow.MemoryInfo) |
4111 | for (;;) { |
4112 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4113 | tag = p.first; |
4114 | if (!p.second) goto handle_unusual; |
4115 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4116 | // int64 total = 1; |
4117 | case 1: { |
4118 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { |
4119 | |
4120 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
4121 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
4122 | input, &total_))); |
4123 | } else { |
4124 | goto handle_unusual; |
4125 | } |
4126 | break; |
4127 | } |
4128 | |
4129 | // int64 available = 2; |
4130 | case 2: { |
4131 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { |
4132 | |
4133 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
4134 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
4135 | input, &available_))); |
4136 | } else { |
4137 | goto handle_unusual; |
4138 | } |
4139 | break; |
4140 | } |
4141 | |
4142 | default: { |
4143 | handle_unusual: |
4144 | if (tag == 0) { |
4145 | goto success; |
4146 | } |
4147 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
4148 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4149 | break; |
4150 | } |
4151 | } |
4152 | } |
4153 | success: |
4154 | // @@protoc_insertion_point(parse_success:tensorflow.MemoryInfo) |
4155 | return true; |
4156 | failure: |
4157 | // @@protoc_insertion_point(parse_failure:tensorflow.MemoryInfo) |
4158 | return false; |
4159 | #undef DO_ |
4160 | } |
4161 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4162 | |
4163 | void MemoryInfo::SerializeWithCachedSizes( |
4164 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
4165 | // @@protoc_insertion_point(serialize_start:tensorflow.MemoryInfo) |
4166 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4167 | (void) cached_has_bits; |
4168 | |
4169 | // int64 total = 1; |
4170 | if (this->total() != 0) { |
4171 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->total(), output); |
4172 | } |
4173 | |
4174 | // int64 available = 2; |
4175 | if (this->available() != 0) { |
4176 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->available(), output); |
4177 | } |
4178 | |
4179 | if (_internal_metadata_.have_unknown_fields()) { |
4180 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
4181 | _internal_metadata_.unknown_fields(), output); |
4182 | } |
4183 | // @@protoc_insertion_point(serialize_end:tensorflow.MemoryInfo) |
4184 | } |
4185 | |
4186 | ::PROTOBUF_NAMESPACE_ID::uint8* MemoryInfo::InternalSerializeWithCachedSizesToArray( |
4187 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
4188 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.MemoryInfo) |
4189 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4190 | (void) cached_has_bits; |
4191 | |
4192 | // int64 total = 1; |
4193 | if (this->total() != 0) { |
4194 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->total(), target); |
4195 | } |
4196 | |
4197 | // int64 available = 2; |
4198 | if (this->available() != 0) { |
4199 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->available(), target); |
4200 | } |
4201 | |
4202 | if (_internal_metadata_.have_unknown_fields()) { |
4203 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
4204 | _internal_metadata_.unknown_fields(), target); |
4205 | } |
4206 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.MemoryInfo) |
4207 | return target; |
4208 | } |
4209 | |
4210 | size_t MemoryInfo::ByteSizeLong() const { |
4211 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.MemoryInfo) |
4212 | size_t total_size = 0; |
4213 | |
4214 | if (_internal_metadata_.have_unknown_fields()) { |
4215 | total_size += |
4216 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
4217 | _internal_metadata_.unknown_fields()); |
4218 | } |
4219 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4220 | // Prevent compiler warnings about cached_has_bits being unused |
4221 | (void) cached_has_bits; |
4222 | |
4223 | // int64 total = 1; |
4224 | if (this->total() != 0) { |
4225 | total_size += 1 + |
4226 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
4227 | this->total()); |
4228 | } |
4229 | |
4230 | // int64 available = 2; |
4231 | if (this->available() != 0) { |
4232 | total_size += 1 + |
4233 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
4234 | this->available()); |
4235 | } |
4236 | |
4237 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
4238 | SetCachedSize(cached_size); |
4239 | return total_size; |
4240 | } |
4241 | |
4242 | void MemoryInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
4243 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.MemoryInfo) |
4244 | GOOGLE_DCHECK_NE(&from, this); |
4245 | const MemoryInfo* source = |
4246 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MemoryInfo>( |
4247 | &from); |
4248 | if (source == nullptr) { |
4249 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.MemoryInfo) |
4250 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
4251 | } else { |
4252 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.MemoryInfo) |
4253 | MergeFrom(*source); |
4254 | } |
4255 | } |
4256 | |
4257 | void MemoryInfo::MergeFrom(const MemoryInfo& from) { |
4258 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.MemoryInfo) |
4259 | GOOGLE_DCHECK_NE(&from, this); |
4260 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4261 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4262 | (void) cached_has_bits; |
4263 | |
4264 | if (from.total() != 0) { |
4265 | set_total(from.total()); |
4266 | } |
4267 | if (from.available() != 0) { |
4268 | set_available(from.available()); |
4269 | } |
4270 | } |
4271 | |
4272 | void MemoryInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
4273 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.MemoryInfo) |
4274 | if (&from == this) return; |
4275 | Clear(); |
4276 | MergeFrom(from); |
4277 | } |
4278 | |
4279 | void MemoryInfo::CopyFrom(const MemoryInfo& from) { |
4280 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.MemoryInfo) |
4281 | if (&from == this) return; |
4282 | Clear(); |
4283 | MergeFrom(from); |
4284 | } |
4285 | |
4286 | bool MemoryInfo::IsInitialized() const { |
4287 | return true; |
4288 | } |
4289 | |
4290 | void MemoryInfo::InternalSwap(MemoryInfo* other) { |
4291 | using std::swap; |
4292 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4293 | swap(total_, other->total_); |
4294 | swap(available_, other->available_); |
4295 | } |
4296 | |
4297 | ::PROTOBUF_NAMESPACE_ID::Metadata MemoryInfo::GetMetadata() const { |
4298 | return GetMetadataStatic(); |
4299 | } |
4300 | |
4301 | |
4302 | // =================================================================== |
4303 | |
4304 | void GPUInfo::InitAsDefaultInstance() { |
4305 | } |
4306 | class GPUInfo::_Internal { |
4307 | public: |
4308 | }; |
4309 | |
4310 | GPUInfo::GPUInfo() |
4311 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
4312 | SharedCtor(); |
4313 | // @@protoc_insertion_point(constructor:tensorflow.GPUInfo) |
4314 | } |
4315 | GPUInfo::GPUInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
4316 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
4317 | _internal_metadata_(arena) { |
4318 | SharedCtor(); |
4319 | RegisterArenaDtor(arena); |
4320 | // @@protoc_insertion_point(arena_constructor:tensorflow.GPUInfo) |
4321 | } |
4322 | GPUInfo::GPUInfo(const GPUInfo& from) |
4323 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
4324 | _internal_metadata_(nullptr) { |
4325 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4326 | model_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4327 | if (!from.model().empty()) { |
4328 | model_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.model(), |
4329 | GetArenaNoVirtual()); |
4330 | } |
4331 | uuid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4332 | if (!from.uuid().empty()) { |
4333 | uuid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.uuid(), |
4334 | GetArenaNoVirtual()); |
4335 | } |
4336 | bus_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4337 | if (!from.bus_id().empty()) { |
4338 | bus_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.bus_id(), |
4339 | GetArenaNoVirtual()); |
4340 | } |
4341 | // @@protoc_insertion_point(copy_constructor:tensorflow.GPUInfo) |
4342 | } |
4343 | |
4344 | void GPUInfo::SharedCtor() { |
4345 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GPUInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
4346 | model_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4347 | uuid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4348 | bus_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4349 | } |
4350 | |
4351 | GPUInfo::~GPUInfo() { |
4352 | // @@protoc_insertion_point(destructor:tensorflow.GPUInfo) |
4353 | SharedDtor(); |
4354 | } |
4355 | |
4356 | void GPUInfo::SharedDtor() { |
4357 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
4358 | model_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4359 | uuid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4360 | bus_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4361 | } |
4362 | |
4363 | void GPUInfo::ArenaDtor(void* object) { |
4364 | GPUInfo* _this = reinterpret_cast< GPUInfo* >(object); |
4365 | (void)_this; |
4366 | } |
4367 | void GPUInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
4368 | } |
4369 | void GPUInfo::SetCachedSize(int size) const { |
4370 | _cached_size_.Set(size); |
4371 | } |
4372 | const GPUInfo& GPUInfo::default_instance() { |
4373 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GPUInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
4374 | return *internal_default_instance(); |
4375 | } |
4376 | |
4377 | |
4378 | void GPUInfo::Clear() { |
4379 | // @@protoc_insertion_point(message_clear_start:tensorflow.GPUInfo) |
4380 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4381 | // Prevent compiler warnings about cached_has_bits being unused |
4382 | (void) cached_has_bits; |
4383 | |
4384 | model_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4385 | uuid_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4386 | bus_id_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4387 | _internal_metadata_.Clear(); |
4388 | } |
4389 | |
4390 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4391 | const char* GPUInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
4392 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
4393 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
4394 | while (!ctx->Done(&ptr)) { |
4395 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
4396 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
4397 | CHK_(ptr); |
4398 | switch (tag >> 3) { |
4399 | // string model = 1; |
4400 | case 1: |
4401 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
4402 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_model(), ptr, ctx, "tensorflow.GPUInfo.model" ); |
4403 | CHK_(ptr); |
4404 | } else goto handle_unusual; |
4405 | continue; |
4406 | // string uuid = 2; |
4407 | case 2: |
4408 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
4409 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_uuid(), ptr, ctx, "tensorflow.GPUInfo.uuid" ); |
4410 | CHK_(ptr); |
4411 | } else goto handle_unusual; |
4412 | continue; |
4413 | // string bus_id = 3; |
4414 | case 3: |
4415 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
4416 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_bus_id(), ptr, ctx, "tensorflow.GPUInfo.bus_id" ); |
4417 | CHK_(ptr); |
4418 | } else goto handle_unusual; |
4419 | continue; |
4420 | default: { |
4421 | handle_unusual: |
4422 | if ((tag & 7) == 4 || tag == 0) { |
4423 | ctx->SetLastTag(tag); |
4424 | goto success; |
4425 | } |
4426 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
4427 | CHK_(ptr != nullptr); |
4428 | continue; |
4429 | } |
4430 | } // switch |
4431 | } // while |
4432 | success: |
4433 | return ptr; |
4434 | failure: |
4435 | ptr = nullptr; |
4436 | goto success; |
4437 | #undef CHK_ |
4438 | } |
4439 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4440 | bool GPUInfo::MergePartialFromCodedStream( |
4441 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
4442 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
4443 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
4444 | // @@protoc_insertion_point(parse_start:tensorflow.GPUInfo) |
4445 | for (;;) { |
4446 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4447 | tag = p.first; |
4448 | if (!p.second) goto handle_unusual; |
4449 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4450 | // string model = 1; |
4451 | case 1: { |
4452 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
4453 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
4454 | input, this->mutable_model())); |
4455 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4456 | this->model().data(), static_cast<int>(this->model().length()), |
4457 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
4458 | "tensorflow.GPUInfo.model" )); |
4459 | } else { |
4460 | goto handle_unusual; |
4461 | } |
4462 | break; |
4463 | } |
4464 | |
4465 | // string uuid = 2; |
4466 | case 2: { |
4467 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
4468 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
4469 | input, this->mutable_uuid())); |
4470 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4471 | this->uuid().data(), static_cast<int>(this->uuid().length()), |
4472 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
4473 | "tensorflow.GPUInfo.uuid" )); |
4474 | } else { |
4475 | goto handle_unusual; |
4476 | } |
4477 | break; |
4478 | } |
4479 | |
4480 | // string bus_id = 3; |
4481 | case 3: { |
4482 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
4483 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
4484 | input, this->mutable_bus_id())); |
4485 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4486 | this->bus_id().data(), static_cast<int>(this->bus_id().length()), |
4487 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
4488 | "tensorflow.GPUInfo.bus_id" )); |
4489 | } else { |
4490 | goto handle_unusual; |
4491 | } |
4492 | break; |
4493 | } |
4494 | |
4495 | default: { |
4496 | handle_unusual: |
4497 | if (tag == 0) { |
4498 | goto success; |
4499 | } |
4500 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
4501 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4502 | break; |
4503 | } |
4504 | } |
4505 | } |
4506 | success: |
4507 | // @@protoc_insertion_point(parse_success:tensorflow.GPUInfo) |
4508 | return true; |
4509 | failure: |
4510 | // @@protoc_insertion_point(parse_failure:tensorflow.GPUInfo) |
4511 | return false; |
4512 | #undef DO_ |
4513 | } |
4514 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4515 | |
4516 | void GPUInfo::SerializeWithCachedSizes( |
4517 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
4518 | // @@protoc_insertion_point(serialize_start:tensorflow.GPUInfo) |
4519 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4520 | (void) cached_has_bits; |
4521 | |
4522 | // string model = 1; |
4523 | if (this->model().size() > 0) { |
4524 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4525 | this->model().data(), static_cast<int>(this->model().length()), |
4526 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
4527 | "tensorflow.GPUInfo.model" ); |
4528 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
4529 | 1, this->model(), output); |
4530 | } |
4531 | |
4532 | // string uuid = 2; |
4533 | if (this->uuid().size() > 0) { |
4534 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4535 | this->uuid().data(), static_cast<int>(this->uuid().length()), |
4536 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
4537 | "tensorflow.GPUInfo.uuid" ); |
4538 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
4539 | 2, this->uuid(), output); |
4540 | } |
4541 | |
4542 | // string bus_id = 3; |
4543 | if (this->bus_id().size() > 0) { |
4544 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4545 | this->bus_id().data(), static_cast<int>(this->bus_id().length()), |
4546 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
4547 | "tensorflow.GPUInfo.bus_id" ); |
4548 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
4549 | 3, this->bus_id(), output); |
4550 | } |
4551 | |
4552 | if (_internal_metadata_.have_unknown_fields()) { |
4553 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
4554 | _internal_metadata_.unknown_fields(), output); |
4555 | } |
4556 | // @@protoc_insertion_point(serialize_end:tensorflow.GPUInfo) |
4557 | } |
4558 | |
4559 | ::PROTOBUF_NAMESPACE_ID::uint8* GPUInfo::InternalSerializeWithCachedSizesToArray( |
4560 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
4561 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.GPUInfo) |
4562 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4563 | (void) cached_has_bits; |
4564 | |
4565 | // string model = 1; |
4566 | if (this->model().size() > 0) { |
4567 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4568 | this->model().data(), static_cast<int>(this->model().length()), |
4569 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
4570 | "tensorflow.GPUInfo.model" ); |
4571 | target = |
4572 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
4573 | 1, this->model(), target); |
4574 | } |
4575 | |
4576 | // string uuid = 2; |
4577 | if (this->uuid().size() > 0) { |
4578 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4579 | this->uuid().data(), static_cast<int>(this->uuid().length()), |
4580 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
4581 | "tensorflow.GPUInfo.uuid" ); |
4582 | target = |
4583 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
4584 | 2, this->uuid(), target); |
4585 | } |
4586 | |
4587 | // string bus_id = 3; |
4588 | if (this->bus_id().size() > 0) { |
4589 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4590 | this->bus_id().data(), static_cast<int>(this->bus_id().length()), |
4591 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
4592 | "tensorflow.GPUInfo.bus_id" ); |
4593 | target = |
4594 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
4595 | 3, this->bus_id(), target); |
4596 | } |
4597 | |
4598 | if (_internal_metadata_.have_unknown_fields()) { |
4599 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
4600 | _internal_metadata_.unknown_fields(), target); |
4601 | } |
4602 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.GPUInfo) |
4603 | return target; |
4604 | } |
4605 | |
4606 | size_t GPUInfo::ByteSizeLong() const { |
4607 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.GPUInfo) |
4608 | size_t total_size = 0; |
4609 | |
4610 | if (_internal_metadata_.have_unknown_fields()) { |
4611 | total_size += |
4612 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
4613 | _internal_metadata_.unknown_fields()); |
4614 | } |
4615 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4616 | // Prevent compiler warnings about cached_has_bits being unused |
4617 | (void) cached_has_bits; |
4618 | |
4619 | // string model = 1; |
4620 | if (this->model().size() > 0) { |
4621 | total_size += 1 + |
4622 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
4623 | this->model()); |
4624 | } |
4625 | |
4626 | // string uuid = 2; |
4627 | if (this->uuid().size() > 0) { |
4628 | total_size += 1 + |
4629 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
4630 | this->uuid()); |
4631 | } |
4632 | |
4633 | // string bus_id = 3; |
4634 | if (this->bus_id().size() > 0) { |
4635 | total_size += 1 + |
4636 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
4637 | this->bus_id()); |
4638 | } |
4639 | |
4640 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
4641 | SetCachedSize(cached_size); |
4642 | return total_size; |
4643 | } |
4644 | |
4645 | void GPUInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
4646 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.GPUInfo) |
4647 | GOOGLE_DCHECK_NE(&from, this); |
4648 | const GPUInfo* source = |
4649 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<GPUInfo>( |
4650 | &from); |
4651 | if (source == nullptr) { |
4652 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.GPUInfo) |
4653 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
4654 | } else { |
4655 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.GPUInfo) |
4656 | MergeFrom(*source); |
4657 | } |
4658 | } |
4659 | |
4660 | void GPUInfo::MergeFrom(const GPUInfo& from) { |
4661 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.GPUInfo) |
4662 | GOOGLE_DCHECK_NE(&from, this); |
4663 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4664 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4665 | (void) cached_has_bits; |
4666 | |
4667 | if (from.model().size() > 0) { |
4668 | set_model(from.model()); |
4669 | } |
4670 | if (from.uuid().size() > 0) { |
4671 | set_uuid(from.uuid()); |
4672 | } |
4673 | if (from.bus_id().size() > 0) { |
4674 | set_bus_id(from.bus_id()); |
4675 | } |
4676 | } |
4677 | |
4678 | void GPUInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
4679 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.GPUInfo) |
4680 | if (&from == this) return; |
4681 | Clear(); |
4682 | MergeFrom(from); |
4683 | } |
4684 | |
4685 | void GPUInfo::CopyFrom(const GPUInfo& from) { |
4686 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.GPUInfo) |
4687 | if (&from == this) return; |
4688 | Clear(); |
4689 | MergeFrom(from); |
4690 | } |
4691 | |
4692 | bool GPUInfo::IsInitialized() const { |
4693 | return true; |
4694 | } |
4695 | |
4696 | void GPUInfo::InternalSwap(GPUInfo* other) { |
4697 | using std::swap; |
4698 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4699 | model_.Swap(&other->model_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
4700 | GetArenaNoVirtual()); |
4701 | uuid_.Swap(&other->uuid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
4702 | GetArenaNoVirtual()); |
4703 | bus_id_.Swap(&other->bus_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
4704 | GetArenaNoVirtual()); |
4705 | } |
4706 | |
4707 | ::PROTOBUF_NAMESPACE_ID::Metadata GPUInfo::GetMetadata() const { |
4708 | return GetMetadataStatic(); |
4709 | } |
4710 | |
4711 | |
4712 | // =================================================================== |
4713 | |
4714 | void PlatformInfo::InitAsDefaultInstance() { |
4715 | } |
4716 | class PlatformInfo::_Internal { |
4717 | public: |
4718 | }; |
4719 | |
4720 | PlatformInfo::PlatformInfo() |
4721 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
4722 | SharedCtor(); |
4723 | // @@protoc_insertion_point(constructor:tensorflow.PlatformInfo) |
4724 | } |
4725 | PlatformInfo::PlatformInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
4726 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
4727 | _internal_metadata_(arena) { |
4728 | SharedCtor(); |
4729 | RegisterArenaDtor(arena); |
4730 | // @@protoc_insertion_point(arena_constructor:tensorflow.PlatformInfo) |
4731 | } |
4732 | PlatformInfo::PlatformInfo(const PlatformInfo& from) |
4733 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
4734 | _internal_metadata_(nullptr) { |
4735 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4736 | bits_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4737 | if (!from.bits().empty()) { |
4738 | bits_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.bits(), |
4739 | GetArenaNoVirtual()); |
4740 | } |
4741 | linkage_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4742 | if (!from.linkage().empty()) { |
4743 | linkage_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.linkage(), |
4744 | GetArenaNoVirtual()); |
4745 | } |
4746 | machine_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4747 | if (!from.machine().empty()) { |
4748 | machine_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.machine(), |
4749 | GetArenaNoVirtual()); |
4750 | } |
4751 | release_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4752 | if (!from.release().empty()) { |
4753 | release_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.release(), |
4754 | GetArenaNoVirtual()); |
4755 | } |
4756 | system_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4757 | if (!from.system().empty()) { |
4758 | system_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.system(), |
4759 | GetArenaNoVirtual()); |
4760 | } |
4761 | version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4762 | if (!from.version().empty()) { |
4763 | version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.version(), |
4764 | GetArenaNoVirtual()); |
4765 | } |
4766 | // @@protoc_insertion_point(copy_constructor:tensorflow.PlatformInfo) |
4767 | } |
4768 | |
4769 | void PlatformInfo::SharedCtor() { |
4770 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PlatformInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
4771 | bits_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4772 | linkage_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4773 | machine_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4774 | release_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4775 | system_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4776 | version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4777 | } |
4778 | |
4779 | PlatformInfo::~PlatformInfo() { |
4780 | // @@protoc_insertion_point(destructor:tensorflow.PlatformInfo) |
4781 | SharedDtor(); |
4782 | } |
4783 | |
4784 | void PlatformInfo::SharedDtor() { |
4785 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
4786 | bits_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4787 | linkage_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4788 | machine_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4789 | release_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4790 | system_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4791 | version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
4792 | } |
4793 | |
4794 | void PlatformInfo::ArenaDtor(void* object) { |
4795 | PlatformInfo* _this = reinterpret_cast< PlatformInfo* >(object); |
4796 | (void)_this; |
4797 | } |
4798 | void PlatformInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
4799 | } |
4800 | void PlatformInfo::SetCachedSize(int size) const { |
4801 | _cached_size_.Set(size); |
4802 | } |
4803 | const PlatformInfo& PlatformInfo::default_instance() { |
4804 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PlatformInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
4805 | return *internal_default_instance(); |
4806 | } |
4807 | |
4808 | |
4809 | void PlatformInfo::Clear() { |
4810 | // @@protoc_insertion_point(message_clear_start:tensorflow.PlatformInfo) |
4811 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
4812 | // Prevent compiler warnings about cached_has_bits being unused |
4813 | (void) cached_has_bits; |
4814 | |
4815 | bits_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4816 | linkage_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4817 | machine_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4818 | release_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4819 | system_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4820 | version_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4821 | _internal_metadata_.Clear(); |
4822 | } |
4823 | |
4824 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4825 | const char* PlatformInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
4826 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
4827 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
4828 | while (!ctx->Done(&ptr)) { |
4829 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
4830 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
4831 | CHK_(ptr); |
4832 | switch (tag >> 3) { |
4833 | // string bits = 1; |
4834 | case 1: |
4835 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
4836 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_bits(), ptr, ctx, "tensorflow.PlatformInfo.bits" ); |
4837 | CHK_(ptr); |
4838 | } else goto handle_unusual; |
4839 | continue; |
4840 | // string linkage = 2; |
4841 | case 2: |
4842 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
4843 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_linkage(), ptr, ctx, "tensorflow.PlatformInfo.linkage" ); |
4844 | CHK_(ptr); |
4845 | } else goto handle_unusual; |
4846 | continue; |
4847 | // string machine = 3; |
4848 | case 3: |
4849 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
4850 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_machine(), ptr, ctx, "tensorflow.PlatformInfo.machine" ); |
4851 | CHK_(ptr); |
4852 | } else goto handle_unusual; |
4853 | continue; |
4854 | // string release = 4; |
4855 | case 4: |
4856 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
4857 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_release(), ptr, ctx, "tensorflow.PlatformInfo.release" ); |
4858 | CHK_(ptr); |
4859 | } else goto handle_unusual; |
4860 | continue; |
4861 | // string system = 5; |
4862 | case 5: |
4863 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
4864 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_system(), ptr, ctx, "tensorflow.PlatformInfo.system" ); |
4865 | CHK_(ptr); |
4866 | } else goto handle_unusual; |
4867 | continue; |
4868 | // string version = 6; |
4869 | case 6: |
4870 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { |
4871 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_version(), ptr, ctx, "tensorflow.PlatformInfo.version" ); |
4872 | CHK_(ptr); |
4873 | } else goto handle_unusual; |
4874 | continue; |
4875 | default: { |
4876 | handle_unusual: |
4877 | if ((tag & 7) == 4 || tag == 0) { |
4878 | ctx->SetLastTag(tag); |
4879 | goto success; |
4880 | } |
4881 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
4882 | CHK_(ptr != nullptr); |
4883 | continue; |
4884 | } |
4885 | } // switch |
4886 | } // while |
4887 | success: |
4888 | return ptr; |
4889 | failure: |
4890 | ptr = nullptr; |
4891 | goto success; |
4892 | #undef CHK_ |
4893 | } |
4894 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
4895 | bool PlatformInfo::MergePartialFromCodedStream( |
4896 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
4897 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
4898 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
4899 | // @@protoc_insertion_point(parse_start:tensorflow.PlatformInfo) |
4900 | for (;;) { |
4901 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4902 | tag = p.first; |
4903 | if (!p.second) goto handle_unusual; |
4904 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4905 | // string bits = 1; |
4906 | case 1: { |
4907 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
4908 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
4909 | input, this->mutable_bits())); |
4910 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4911 | this->bits().data(), static_cast<int>(this->bits().length()), |
4912 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
4913 | "tensorflow.PlatformInfo.bits" )); |
4914 | } else { |
4915 | goto handle_unusual; |
4916 | } |
4917 | break; |
4918 | } |
4919 | |
4920 | // string linkage = 2; |
4921 | case 2: { |
4922 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
4923 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
4924 | input, this->mutable_linkage())); |
4925 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4926 | this->linkage().data(), static_cast<int>(this->linkage().length()), |
4927 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
4928 | "tensorflow.PlatformInfo.linkage" )); |
4929 | } else { |
4930 | goto handle_unusual; |
4931 | } |
4932 | break; |
4933 | } |
4934 | |
4935 | // string machine = 3; |
4936 | case 3: { |
4937 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
4938 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
4939 | input, this->mutable_machine())); |
4940 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4941 | this->machine().data(), static_cast<int>(this->machine().length()), |
4942 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
4943 | "tensorflow.PlatformInfo.machine" )); |
4944 | } else { |
4945 | goto handle_unusual; |
4946 | } |
4947 | break; |
4948 | } |
4949 | |
4950 | // string release = 4; |
4951 | case 4: { |
4952 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
4953 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
4954 | input, this->mutable_release())); |
4955 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4956 | this->release().data(), static_cast<int>(this->release().length()), |
4957 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
4958 | "tensorflow.PlatformInfo.release" )); |
4959 | } else { |
4960 | goto handle_unusual; |
4961 | } |
4962 | break; |
4963 | } |
4964 | |
4965 | // string system = 5; |
4966 | case 5: { |
4967 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { |
4968 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
4969 | input, this->mutable_system())); |
4970 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4971 | this->system().data(), static_cast<int>(this->system().length()), |
4972 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
4973 | "tensorflow.PlatformInfo.system" )); |
4974 | } else { |
4975 | goto handle_unusual; |
4976 | } |
4977 | break; |
4978 | } |
4979 | |
4980 | // string version = 6; |
4981 | case 6: { |
4982 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { |
4983 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
4984 | input, this->mutable_version())); |
4985 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
4986 | this->version().data(), static_cast<int>(this->version().length()), |
4987 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
4988 | "tensorflow.PlatformInfo.version" )); |
4989 | } else { |
4990 | goto handle_unusual; |
4991 | } |
4992 | break; |
4993 | } |
4994 | |
4995 | default: { |
4996 | handle_unusual: |
4997 | if (tag == 0) { |
4998 | goto success; |
4999 | } |
5000 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
5001 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5002 | break; |
5003 | } |
5004 | } |
5005 | } |
5006 | success: |
5007 | // @@protoc_insertion_point(parse_success:tensorflow.PlatformInfo) |
5008 | return true; |
5009 | failure: |
5010 | // @@protoc_insertion_point(parse_failure:tensorflow.PlatformInfo) |
5011 | return false; |
5012 | #undef DO_ |
5013 | } |
5014 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5015 | |
5016 | void PlatformInfo::SerializeWithCachedSizes( |
5017 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
5018 | // @@protoc_insertion_point(serialize_start:tensorflow.PlatformInfo) |
5019 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5020 | (void) cached_has_bits; |
5021 | |
5022 | // string bits = 1; |
5023 | if (this->bits().size() > 0) { |
5024 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5025 | this->bits().data(), static_cast<int>(this->bits().length()), |
5026 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5027 | "tensorflow.PlatformInfo.bits" ); |
5028 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
5029 | 1, this->bits(), output); |
5030 | } |
5031 | |
5032 | // string linkage = 2; |
5033 | if (this->linkage().size() > 0) { |
5034 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5035 | this->linkage().data(), static_cast<int>(this->linkage().length()), |
5036 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5037 | "tensorflow.PlatformInfo.linkage" ); |
5038 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
5039 | 2, this->linkage(), output); |
5040 | } |
5041 | |
5042 | // string machine = 3; |
5043 | if (this->machine().size() > 0) { |
5044 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5045 | this->machine().data(), static_cast<int>(this->machine().length()), |
5046 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5047 | "tensorflow.PlatformInfo.machine" ); |
5048 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
5049 | 3, this->machine(), output); |
5050 | } |
5051 | |
5052 | // string release = 4; |
5053 | if (this->release().size() > 0) { |
5054 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5055 | this->release().data(), static_cast<int>(this->release().length()), |
5056 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5057 | "tensorflow.PlatformInfo.release" ); |
5058 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
5059 | 4, this->release(), output); |
5060 | } |
5061 | |
5062 | // string system = 5; |
5063 | if (this->system().size() > 0) { |
5064 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5065 | this->system().data(), static_cast<int>(this->system().length()), |
5066 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5067 | "tensorflow.PlatformInfo.system" ); |
5068 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
5069 | 5, this->system(), output); |
5070 | } |
5071 | |
5072 | // string version = 6; |
5073 | if (this->version().size() > 0) { |
5074 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5075 | this->version().data(), static_cast<int>(this->version().length()), |
5076 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5077 | "tensorflow.PlatformInfo.version" ); |
5078 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
5079 | 6, this->version(), output); |
5080 | } |
5081 | |
5082 | if (_internal_metadata_.have_unknown_fields()) { |
5083 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
5084 | _internal_metadata_.unknown_fields(), output); |
5085 | } |
5086 | // @@protoc_insertion_point(serialize_end:tensorflow.PlatformInfo) |
5087 | } |
5088 | |
5089 | ::PROTOBUF_NAMESPACE_ID::uint8* PlatformInfo::InternalSerializeWithCachedSizesToArray( |
5090 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
5091 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.PlatformInfo) |
5092 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5093 | (void) cached_has_bits; |
5094 | |
5095 | // string bits = 1; |
5096 | if (this->bits().size() > 0) { |
5097 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5098 | this->bits().data(), static_cast<int>(this->bits().length()), |
5099 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5100 | "tensorflow.PlatformInfo.bits" ); |
5101 | target = |
5102 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
5103 | 1, this->bits(), target); |
5104 | } |
5105 | |
5106 | // string linkage = 2; |
5107 | if (this->linkage().size() > 0) { |
5108 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5109 | this->linkage().data(), static_cast<int>(this->linkage().length()), |
5110 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5111 | "tensorflow.PlatformInfo.linkage" ); |
5112 | target = |
5113 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
5114 | 2, this->linkage(), target); |
5115 | } |
5116 | |
5117 | // string machine = 3; |
5118 | if (this->machine().size() > 0) { |
5119 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5120 | this->machine().data(), static_cast<int>(this->machine().length()), |
5121 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5122 | "tensorflow.PlatformInfo.machine" ); |
5123 | target = |
5124 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
5125 | 3, this->machine(), target); |
5126 | } |
5127 | |
5128 | // string release = 4; |
5129 | if (this->release().size() > 0) { |
5130 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5131 | this->release().data(), static_cast<int>(this->release().length()), |
5132 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5133 | "tensorflow.PlatformInfo.release" ); |
5134 | target = |
5135 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
5136 | 4, this->release(), target); |
5137 | } |
5138 | |
5139 | // string system = 5; |
5140 | if (this->system().size() > 0) { |
5141 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5142 | this->system().data(), static_cast<int>(this->system().length()), |
5143 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5144 | "tensorflow.PlatformInfo.system" ); |
5145 | target = |
5146 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
5147 | 5, this->system(), target); |
5148 | } |
5149 | |
5150 | // string version = 6; |
5151 | if (this->version().size() > 0) { |
5152 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5153 | this->version().data(), static_cast<int>(this->version().length()), |
5154 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5155 | "tensorflow.PlatformInfo.version" ); |
5156 | target = |
5157 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
5158 | 6, this->version(), target); |
5159 | } |
5160 | |
5161 | if (_internal_metadata_.have_unknown_fields()) { |
5162 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
5163 | _internal_metadata_.unknown_fields(), target); |
5164 | } |
5165 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.PlatformInfo) |
5166 | return target; |
5167 | } |
5168 | |
5169 | size_t PlatformInfo::ByteSizeLong() const { |
5170 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.PlatformInfo) |
5171 | size_t total_size = 0; |
5172 | |
5173 | if (_internal_metadata_.have_unknown_fields()) { |
5174 | total_size += |
5175 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
5176 | _internal_metadata_.unknown_fields()); |
5177 | } |
5178 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5179 | // Prevent compiler warnings about cached_has_bits being unused |
5180 | (void) cached_has_bits; |
5181 | |
5182 | // string bits = 1; |
5183 | if (this->bits().size() > 0) { |
5184 | total_size += 1 + |
5185 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
5186 | this->bits()); |
5187 | } |
5188 | |
5189 | // string linkage = 2; |
5190 | if (this->linkage().size() > 0) { |
5191 | total_size += 1 + |
5192 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
5193 | this->linkage()); |
5194 | } |
5195 | |
5196 | // string machine = 3; |
5197 | if (this->machine().size() > 0) { |
5198 | total_size += 1 + |
5199 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
5200 | this->machine()); |
5201 | } |
5202 | |
5203 | // string release = 4; |
5204 | if (this->release().size() > 0) { |
5205 | total_size += 1 + |
5206 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
5207 | this->release()); |
5208 | } |
5209 | |
5210 | // string system = 5; |
5211 | if (this->system().size() > 0) { |
5212 | total_size += 1 + |
5213 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
5214 | this->system()); |
5215 | } |
5216 | |
5217 | // string version = 6; |
5218 | if (this->version().size() > 0) { |
5219 | total_size += 1 + |
5220 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
5221 | this->version()); |
5222 | } |
5223 | |
5224 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
5225 | SetCachedSize(cached_size); |
5226 | return total_size; |
5227 | } |
5228 | |
5229 | void PlatformInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
5230 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.PlatformInfo) |
5231 | GOOGLE_DCHECK_NE(&from, this); |
5232 | const PlatformInfo* source = |
5233 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PlatformInfo>( |
5234 | &from); |
5235 | if (source == nullptr) { |
5236 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.PlatformInfo) |
5237 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
5238 | } else { |
5239 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.PlatformInfo) |
5240 | MergeFrom(*source); |
5241 | } |
5242 | } |
5243 | |
5244 | void PlatformInfo::MergeFrom(const PlatformInfo& from) { |
5245 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.PlatformInfo) |
5246 | GOOGLE_DCHECK_NE(&from, this); |
5247 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5248 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5249 | (void) cached_has_bits; |
5250 | |
5251 | if (from.bits().size() > 0) { |
5252 | set_bits(from.bits()); |
5253 | } |
5254 | if (from.linkage().size() > 0) { |
5255 | set_linkage(from.linkage()); |
5256 | } |
5257 | if (from.machine().size() > 0) { |
5258 | set_machine(from.machine()); |
5259 | } |
5260 | if (from.release().size() > 0) { |
5261 | set_release(from.release()); |
5262 | } |
5263 | if (from.system().size() > 0) { |
5264 | set_system(from.system()); |
5265 | } |
5266 | if (from.version().size() > 0) { |
5267 | set_version(from.version()); |
5268 | } |
5269 | } |
5270 | |
5271 | void PlatformInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
5272 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.PlatformInfo) |
5273 | if (&from == this) return; |
5274 | Clear(); |
5275 | MergeFrom(from); |
5276 | } |
5277 | |
5278 | void PlatformInfo::CopyFrom(const PlatformInfo& from) { |
5279 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.PlatformInfo) |
5280 | if (&from == this) return; |
5281 | Clear(); |
5282 | MergeFrom(from); |
5283 | } |
5284 | |
5285 | bool PlatformInfo::IsInitialized() const { |
5286 | return true; |
5287 | } |
5288 | |
5289 | void PlatformInfo::InternalSwap(PlatformInfo* other) { |
5290 | using std::swap; |
5291 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5292 | bits_.Swap(&other->bits_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
5293 | GetArenaNoVirtual()); |
5294 | linkage_.Swap(&other->linkage_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
5295 | GetArenaNoVirtual()); |
5296 | machine_.Swap(&other->machine_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
5297 | GetArenaNoVirtual()); |
5298 | release_.Swap(&other->release_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
5299 | GetArenaNoVirtual()); |
5300 | system_.Swap(&other->system_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
5301 | GetArenaNoVirtual()); |
5302 | version_.Swap(&other->version_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
5303 | GetArenaNoVirtual()); |
5304 | } |
5305 | |
5306 | ::PROTOBUF_NAMESPACE_ID::Metadata PlatformInfo::GetMetadata() const { |
5307 | return GetMetadataStatic(); |
5308 | } |
5309 | |
5310 | |
5311 | // =================================================================== |
5312 | |
5313 | void AvailableDeviceInfo::InitAsDefaultInstance() { |
5314 | } |
5315 | class AvailableDeviceInfo::_Internal { |
5316 | public: |
5317 | }; |
5318 | |
5319 | AvailableDeviceInfo::AvailableDeviceInfo() |
5320 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
5321 | SharedCtor(); |
5322 | // @@protoc_insertion_point(constructor:tensorflow.AvailableDeviceInfo) |
5323 | } |
5324 | AvailableDeviceInfo::AvailableDeviceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
5325 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
5326 | _internal_metadata_(arena) { |
5327 | SharedCtor(); |
5328 | RegisterArenaDtor(arena); |
5329 | // @@protoc_insertion_point(arena_constructor:tensorflow.AvailableDeviceInfo) |
5330 | } |
5331 | AvailableDeviceInfo::AvailableDeviceInfo(const AvailableDeviceInfo& from) |
5332 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
5333 | _internal_metadata_(nullptr) { |
5334 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5335 | name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5336 | if (!from.name().empty()) { |
5337 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name(), |
5338 | GetArenaNoVirtual()); |
5339 | } |
5340 | type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5341 | if (!from.type().empty()) { |
5342 | type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.type(), |
5343 | GetArenaNoVirtual()); |
5344 | } |
5345 | physical_description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5346 | if (!from.physical_description().empty()) { |
5347 | physical_description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.physical_description(), |
5348 | GetArenaNoVirtual()); |
5349 | } |
5350 | memory_limit_ = from.memory_limit_; |
5351 | // @@protoc_insertion_point(copy_constructor:tensorflow.AvailableDeviceInfo) |
5352 | } |
5353 | |
5354 | void AvailableDeviceInfo::SharedCtor() { |
5355 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AvailableDeviceInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
5356 | name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5357 | type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5358 | physical_description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5359 | memory_limit_ = PROTOBUF_LONGLONG(0); |
5360 | } |
5361 | |
5362 | AvailableDeviceInfo::~AvailableDeviceInfo() { |
5363 | // @@protoc_insertion_point(destructor:tensorflow.AvailableDeviceInfo) |
5364 | SharedDtor(); |
5365 | } |
5366 | |
5367 | void AvailableDeviceInfo::SharedDtor() { |
5368 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
5369 | name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5370 | type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5371 | physical_description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5372 | } |
5373 | |
5374 | void AvailableDeviceInfo::ArenaDtor(void* object) { |
5375 | AvailableDeviceInfo* _this = reinterpret_cast< AvailableDeviceInfo* >(object); |
5376 | (void)_this; |
5377 | } |
5378 | void AvailableDeviceInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
5379 | } |
5380 | void AvailableDeviceInfo::SetCachedSize(int size) const { |
5381 | _cached_size_.Set(size); |
5382 | } |
5383 | const AvailableDeviceInfo& AvailableDeviceInfo::default_instance() { |
5384 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AvailableDeviceInfo_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
5385 | return *internal_default_instance(); |
5386 | } |
5387 | |
5388 | |
5389 | void AvailableDeviceInfo::Clear() { |
5390 | // @@protoc_insertion_point(message_clear_start:tensorflow.AvailableDeviceInfo) |
5391 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5392 | // Prevent compiler warnings about cached_has_bits being unused |
5393 | (void) cached_has_bits; |
5394 | |
5395 | name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
5396 | type_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
5397 | physical_description_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
5398 | memory_limit_ = PROTOBUF_LONGLONG(0); |
5399 | _internal_metadata_.Clear(); |
5400 | } |
5401 | |
5402 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5403 | const char* AvailableDeviceInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
5404 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
5405 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
5406 | while (!ctx->Done(&ptr)) { |
5407 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
5408 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
5409 | CHK_(ptr); |
5410 | switch (tag >> 3) { |
5411 | // string name = 1; |
5412 | case 1: |
5413 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
5414 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "tensorflow.AvailableDeviceInfo.name" ); |
5415 | CHK_(ptr); |
5416 | } else goto handle_unusual; |
5417 | continue; |
5418 | // string type = 2; |
5419 | case 2: |
5420 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
5421 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_type(), ptr, ctx, "tensorflow.AvailableDeviceInfo.type" ); |
5422 | CHK_(ptr); |
5423 | } else goto handle_unusual; |
5424 | continue; |
5425 | // int64 memory_limit = 3; |
5426 | case 3: |
5427 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { |
5428 | memory_limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
5429 | CHK_(ptr); |
5430 | } else goto handle_unusual; |
5431 | continue; |
5432 | // string physical_description = 4; |
5433 | case 4: |
5434 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
5435 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_physical_description(), ptr, ctx, "tensorflow.AvailableDeviceInfo.physical_description" ); |
5436 | CHK_(ptr); |
5437 | } else goto handle_unusual; |
5438 | continue; |
5439 | default: { |
5440 | handle_unusual: |
5441 | if ((tag & 7) == 4 || tag == 0) { |
5442 | ctx->SetLastTag(tag); |
5443 | goto success; |
5444 | } |
5445 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
5446 | CHK_(ptr != nullptr); |
5447 | continue; |
5448 | } |
5449 | } // switch |
5450 | } // while |
5451 | success: |
5452 | return ptr; |
5453 | failure: |
5454 | ptr = nullptr; |
5455 | goto success; |
5456 | #undef CHK_ |
5457 | } |
5458 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5459 | bool AvailableDeviceInfo::MergePartialFromCodedStream( |
5460 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
5461 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
5462 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
5463 | // @@protoc_insertion_point(parse_start:tensorflow.AvailableDeviceInfo) |
5464 | for (;;) { |
5465 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5466 | tag = p.first; |
5467 | if (!p.second) goto handle_unusual; |
5468 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5469 | // string name = 1; |
5470 | case 1: { |
5471 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
5472 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
5473 | input, this->mutable_name())); |
5474 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5475 | this->name().data(), static_cast<int>(this->name().length()), |
5476 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
5477 | "tensorflow.AvailableDeviceInfo.name" )); |
5478 | } else { |
5479 | goto handle_unusual; |
5480 | } |
5481 | break; |
5482 | } |
5483 | |
5484 | // string type = 2; |
5485 | case 2: { |
5486 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
5487 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
5488 | input, this->mutable_type())); |
5489 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5490 | this->type().data(), static_cast<int>(this->type().length()), |
5491 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
5492 | "tensorflow.AvailableDeviceInfo.type" )); |
5493 | } else { |
5494 | goto handle_unusual; |
5495 | } |
5496 | break; |
5497 | } |
5498 | |
5499 | // int64 memory_limit = 3; |
5500 | case 3: { |
5501 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { |
5502 | |
5503 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
5504 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
5505 | input, &memory_limit_))); |
5506 | } else { |
5507 | goto handle_unusual; |
5508 | } |
5509 | break; |
5510 | } |
5511 | |
5512 | // string physical_description = 4; |
5513 | case 4: { |
5514 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
5515 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
5516 | input, this->mutable_physical_description())); |
5517 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5518 | this->physical_description().data(), static_cast<int>(this->physical_description().length()), |
5519 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
5520 | "tensorflow.AvailableDeviceInfo.physical_description" )); |
5521 | } else { |
5522 | goto handle_unusual; |
5523 | } |
5524 | break; |
5525 | } |
5526 | |
5527 | default: { |
5528 | handle_unusual: |
5529 | if (tag == 0) { |
5530 | goto success; |
5531 | } |
5532 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
5533 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5534 | break; |
5535 | } |
5536 | } |
5537 | } |
5538 | success: |
5539 | // @@protoc_insertion_point(parse_success:tensorflow.AvailableDeviceInfo) |
5540 | return true; |
5541 | failure: |
5542 | // @@protoc_insertion_point(parse_failure:tensorflow.AvailableDeviceInfo) |
5543 | return false; |
5544 | #undef DO_ |
5545 | } |
5546 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5547 | |
5548 | void AvailableDeviceInfo::SerializeWithCachedSizes( |
5549 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
5550 | // @@protoc_insertion_point(serialize_start:tensorflow.AvailableDeviceInfo) |
5551 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5552 | (void) cached_has_bits; |
5553 | |
5554 | // string name = 1; |
5555 | if (this->name().size() > 0) { |
5556 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5557 | this->name().data(), static_cast<int>(this->name().length()), |
5558 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5559 | "tensorflow.AvailableDeviceInfo.name" ); |
5560 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
5561 | 1, this->name(), output); |
5562 | } |
5563 | |
5564 | // string type = 2; |
5565 | if (this->type().size() > 0) { |
5566 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5567 | this->type().data(), static_cast<int>(this->type().length()), |
5568 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5569 | "tensorflow.AvailableDeviceInfo.type" ); |
5570 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
5571 | 2, this->type(), output); |
5572 | } |
5573 | |
5574 | // int64 memory_limit = 3; |
5575 | if (this->memory_limit() != 0) { |
5576 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->memory_limit(), output); |
5577 | } |
5578 | |
5579 | // string physical_description = 4; |
5580 | if (this->physical_description().size() > 0) { |
5581 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5582 | this->physical_description().data(), static_cast<int>(this->physical_description().length()), |
5583 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5584 | "tensorflow.AvailableDeviceInfo.physical_description" ); |
5585 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
5586 | 4, this->physical_description(), output); |
5587 | } |
5588 | |
5589 | if (_internal_metadata_.have_unknown_fields()) { |
5590 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
5591 | _internal_metadata_.unknown_fields(), output); |
5592 | } |
5593 | // @@protoc_insertion_point(serialize_end:tensorflow.AvailableDeviceInfo) |
5594 | } |
5595 | |
5596 | ::PROTOBUF_NAMESPACE_ID::uint8* AvailableDeviceInfo::InternalSerializeWithCachedSizesToArray( |
5597 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
5598 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.AvailableDeviceInfo) |
5599 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5600 | (void) cached_has_bits; |
5601 | |
5602 | // string name = 1; |
5603 | if (this->name().size() > 0) { |
5604 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5605 | this->name().data(), static_cast<int>(this->name().length()), |
5606 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5607 | "tensorflow.AvailableDeviceInfo.name" ); |
5608 | target = |
5609 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
5610 | 1, this->name(), target); |
5611 | } |
5612 | |
5613 | // string type = 2; |
5614 | if (this->type().size() > 0) { |
5615 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5616 | this->type().data(), static_cast<int>(this->type().length()), |
5617 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5618 | "tensorflow.AvailableDeviceInfo.type" ); |
5619 | target = |
5620 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
5621 | 2, this->type(), target); |
5622 | } |
5623 | |
5624 | // int64 memory_limit = 3; |
5625 | if (this->memory_limit() != 0) { |
5626 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->memory_limit(), target); |
5627 | } |
5628 | |
5629 | // string physical_description = 4; |
5630 | if (this->physical_description().size() > 0) { |
5631 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
5632 | this->physical_description().data(), static_cast<int>(this->physical_description().length()), |
5633 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
5634 | "tensorflow.AvailableDeviceInfo.physical_description" ); |
5635 | target = |
5636 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
5637 | 4, this->physical_description(), target); |
5638 | } |
5639 | |
5640 | if (_internal_metadata_.have_unknown_fields()) { |
5641 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
5642 | _internal_metadata_.unknown_fields(), target); |
5643 | } |
5644 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.AvailableDeviceInfo) |
5645 | return target; |
5646 | } |
5647 | |
5648 | size_t AvailableDeviceInfo::ByteSizeLong() const { |
5649 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.AvailableDeviceInfo) |
5650 | size_t total_size = 0; |
5651 | |
5652 | if (_internal_metadata_.have_unknown_fields()) { |
5653 | total_size += |
5654 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
5655 | _internal_metadata_.unknown_fields()); |
5656 | } |
5657 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5658 | // Prevent compiler warnings about cached_has_bits being unused |
5659 | (void) cached_has_bits; |
5660 | |
5661 | // string name = 1; |
5662 | if (this->name().size() > 0) { |
5663 | total_size += 1 + |
5664 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
5665 | this->name()); |
5666 | } |
5667 | |
5668 | // string type = 2; |
5669 | if (this->type().size() > 0) { |
5670 | total_size += 1 + |
5671 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
5672 | this->type()); |
5673 | } |
5674 | |
5675 | // string physical_description = 4; |
5676 | if (this->physical_description().size() > 0) { |
5677 | total_size += 1 + |
5678 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
5679 | this->physical_description()); |
5680 | } |
5681 | |
5682 | // int64 memory_limit = 3; |
5683 | if (this->memory_limit() != 0) { |
5684 | total_size += 1 + |
5685 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
5686 | this->memory_limit()); |
5687 | } |
5688 | |
5689 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
5690 | SetCachedSize(cached_size); |
5691 | return total_size; |
5692 | } |
5693 | |
5694 | void AvailableDeviceInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
5695 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.AvailableDeviceInfo) |
5696 | GOOGLE_DCHECK_NE(&from, this); |
5697 | const AvailableDeviceInfo* source = |
5698 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<AvailableDeviceInfo>( |
5699 | &from); |
5700 | if (source == nullptr) { |
5701 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.AvailableDeviceInfo) |
5702 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
5703 | } else { |
5704 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.AvailableDeviceInfo) |
5705 | MergeFrom(*source); |
5706 | } |
5707 | } |
5708 | |
5709 | void AvailableDeviceInfo::MergeFrom(const AvailableDeviceInfo& from) { |
5710 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.AvailableDeviceInfo) |
5711 | GOOGLE_DCHECK_NE(&from, this); |
5712 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5713 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5714 | (void) cached_has_bits; |
5715 | |
5716 | if (from.name().size() > 0) { |
5717 | set_name(from.name()); |
5718 | } |
5719 | if (from.type().size() > 0) { |
5720 | set_type(from.type()); |
5721 | } |
5722 | if (from.physical_description().size() > 0) { |
5723 | set_physical_description(from.physical_description()); |
5724 | } |
5725 | if (from.memory_limit() != 0) { |
5726 | set_memory_limit(from.memory_limit()); |
5727 | } |
5728 | } |
5729 | |
5730 | void AvailableDeviceInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
5731 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.AvailableDeviceInfo) |
5732 | if (&from == this) return; |
5733 | Clear(); |
5734 | MergeFrom(from); |
5735 | } |
5736 | |
5737 | void AvailableDeviceInfo::CopyFrom(const AvailableDeviceInfo& from) { |
5738 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.AvailableDeviceInfo) |
5739 | if (&from == this) return; |
5740 | Clear(); |
5741 | MergeFrom(from); |
5742 | } |
5743 | |
5744 | bool AvailableDeviceInfo::IsInitialized() const { |
5745 | return true; |
5746 | } |
5747 | |
5748 | void AvailableDeviceInfo::InternalSwap(AvailableDeviceInfo* other) { |
5749 | using std::swap; |
5750 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5751 | name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
5752 | GetArenaNoVirtual()); |
5753 | type_.Swap(&other->type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
5754 | GetArenaNoVirtual()); |
5755 | physical_description_.Swap(&other->physical_description_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
5756 | GetArenaNoVirtual()); |
5757 | swap(memory_limit_, other->memory_limit_); |
5758 | } |
5759 | |
5760 | ::PROTOBUF_NAMESPACE_ID::Metadata AvailableDeviceInfo::GetMetadata() const { |
5761 | return GetMetadataStatic(); |
5762 | } |
5763 | |
5764 | |
5765 | // =================================================================== |
5766 | |
5767 | void MachineConfiguration::InitAsDefaultInstance() { |
5768 | ::tensorflow::_MachineConfiguration_default_instance_._instance.get_mutable()->platform_info_ = const_cast< ::tensorflow::PlatformInfo*>( |
5769 | ::tensorflow::PlatformInfo::internal_default_instance()); |
5770 | ::tensorflow::_MachineConfiguration_default_instance_._instance.get_mutable()->cpu_info_ = const_cast< ::tensorflow::CPUInfo*>( |
5771 | ::tensorflow::CPUInfo::internal_default_instance()); |
5772 | ::tensorflow::_MachineConfiguration_default_instance_._instance.get_mutable()->memory_info_ = const_cast< ::tensorflow::MemoryInfo*>( |
5773 | ::tensorflow::MemoryInfo::internal_default_instance()); |
5774 | } |
5775 | class MachineConfiguration::_Internal { |
5776 | public: |
5777 | static const ::tensorflow::PlatformInfo& platform_info(const MachineConfiguration* msg); |
5778 | static const ::tensorflow::CPUInfo& cpu_info(const MachineConfiguration* msg); |
5779 | static const ::tensorflow::MemoryInfo& memory_info(const MachineConfiguration* msg); |
5780 | }; |
5781 | |
5782 | const ::tensorflow::PlatformInfo& |
5783 | MachineConfiguration::_Internal::platform_info(const MachineConfiguration* msg) { |
5784 | return *msg->platform_info_; |
5785 | } |
5786 | const ::tensorflow::CPUInfo& |
5787 | MachineConfiguration::_Internal::cpu_info(const MachineConfiguration* msg) { |
5788 | return *msg->cpu_info_; |
5789 | } |
5790 | const ::tensorflow::MemoryInfo& |
5791 | MachineConfiguration::_Internal::memory_info(const MachineConfiguration* msg) { |
5792 | return *msg->memory_info_; |
5793 | } |
5794 | void MachineConfiguration::unsafe_arena_set_allocated_platform_info( |
5795 | ::tensorflow::PlatformInfo* platform_info) { |
5796 | if (GetArenaNoVirtual() == nullptr) { |
5797 | delete platform_info_; |
5798 | } |
5799 | platform_info_ = platform_info; |
5800 | if (platform_info) { |
5801 | |
5802 | } else { |
5803 | |
5804 | } |
5805 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MachineConfiguration.platform_info) |
5806 | } |
5807 | void MachineConfiguration::unsafe_arena_set_allocated_cpu_info( |
5808 | ::tensorflow::CPUInfo* cpu_info) { |
5809 | if (GetArenaNoVirtual() == nullptr) { |
5810 | delete cpu_info_; |
5811 | } |
5812 | cpu_info_ = cpu_info; |
5813 | if (cpu_info) { |
5814 | |
5815 | } else { |
5816 | |
5817 | } |
5818 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MachineConfiguration.cpu_info) |
5819 | } |
5820 | void MachineConfiguration::clear_device_info() { |
5821 | device_info_.Clear(); |
5822 | } |
5823 | void MachineConfiguration::unsafe_arena_set_allocated_memory_info( |
5824 | ::tensorflow::MemoryInfo* memory_info) { |
5825 | if (GetArenaNoVirtual() == nullptr) { |
5826 | delete memory_info_; |
5827 | } |
5828 | memory_info_ = memory_info; |
5829 | if (memory_info) { |
5830 | |
5831 | } else { |
5832 | |
5833 | } |
5834 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MachineConfiguration.memory_info) |
5835 | } |
5836 | MachineConfiguration::MachineConfiguration() |
5837 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
5838 | SharedCtor(); |
5839 | // @@protoc_insertion_point(constructor:tensorflow.MachineConfiguration) |
5840 | } |
5841 | MachineConfiguration::MachineConfiguration(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
5842 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
5843 | _internal_metadata_(arena), |
5844 | device_info_(arena), |
5845 | available_device_info_(arena) { |
5846 | SharedCtor(); |
5847 | RegisterArenaDtor(arena); |
5848 | // @@protoc_insertion_point(arena_constructor:tensorflow.MachineConfiguration) |
5849 | } |
5850 | MachineConfiguration::MachineConfiguration(const MachineConfiguration& from) |
5851 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
5852 | _internal_metadata_(nullptr), |
5853 | device_info_(from.device_info_), |
5854 | available_device_info_(from.available_device_info_) { |
5855 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5856 | hostname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5857 | if (!from.hostname().empty()) { |
5858 | hostname_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.hostname(), |
5859 | GetArenaNoVirtual()); |
5860 | } |
5861 | serial_identifier_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5862 | if (!from.serial_identifier().empty()) { |
5863 | serial_identifier_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.serial_identifier(), |
5864 | GetArenaNoVirtual()); |
5865 | } |
5866 | if (from.has_platform_info()) { |
5867 | platform_info_ = new ::tensorflow::PlatformInfo(*from.platform_info_); |
5868 | } else { |
5869 | platform_info_ = nullptr; |
5870 | } |
5871 | if (from.has_cpu_info()) { |
5872 | cpu_info_ = new ::tensorflow::CPUInfo(*from.cpu_info_); |
5873 | } else { |
5874 | cpu_info_ = nullptr; |
5875 | } |
5876 | if (from.has_memory_info()) { |
5877 | memory_info_ = new ::tensorflow::MemoryInfo(*from.memory_info_); |
5878 | } else { |
5879 | memory_info_ = nullptr; |
5880 | } |
5881 | // @@protoc_insertion_point(copy_constructor:tensorflow.MachineConfiguration) |
5882 | } |
5883 | |
5884 | void MachineConfiguration::SharedCtor() { |
5885 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MachineConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
5886 | hostname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5887 | serial_identifier_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5888 | ::memset(&platform_info_, 0, static_cast<size_t>( |
5889 | reinterpret_cast<char*>(&memory_info_) - |
5890 | reinterpret_cast<char*>(&platform_info_)) + sizeof(memory_info_)); |
5891 | } |
5892 | |
5893 | MachineConfiguration::~MachineConfiguration() { |
5894 | // @@protoc_insertion_point(destructor:tensorflow.MachineConfiguration) |
5895 | SharedDtor(); |
5896 | } |
5897 | |
5898 | void MachineConfiguration::SharedDtor() { |
5899 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
5900 | hostname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5901 | serial_identifier_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
5902 | if (this != internal_default_instance()) delete platform_info_; |
5903 | if (this != internal_default_instance()) delete cpu_info_; |
5904 | if (this != internal_default_instance()) delete memory_info_; |
5905 | } |
5906 | |
5907 | void MachineConfiguration::ArenaDtor(void* object) { |
5908 | MachineConfiguration* _this = reinterpret_cast< MachineConfiguration* >(object); |
5909 | (void)_this; |
5910 | } |
5911 | void MachineConfiguration::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
5912 | } |
5913 | void MachineConfiguration::SetCachedSize(int size) const { |
5914 | _cached_size_.Set(size); |
5915 | } |
5916 | const MachineConfiguration& MachineConfiguration::default_instance() { |
5917 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MachineConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
5918 | return *internal_default_instance(); |
5919 | } |
5920 | |
5921 | |
5922 | void MachineConfiguration::Clear() { |
5923 | // @@protoc_insertion_point(message_clear_start:tensorflow.MachineConfiguration) |
5924 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
5925 | // Prevent compiler warnings about cached_has_bits being unused |
5926 | (void) cached_has_bits; |
5927 | |
5928 | device_info_.Clear(); |
5929 | available_device_info_.Clear(); |
5930 | hostname_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
5931 | serial_identifier_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
5932 | if (GetArenaNoVirtual() == nullptr && platform_info_ != nullptr) { |
5933 | delete platform_info_; |
5934 | } |
5935 | platform_info_ = nullptr; |
5936 | if (GetArenaNoVirtual() == nullptr && cpu_info_ != nullptr) { |
5937 | delete cpu_info_; |
5938 | } |
5939 | cpu_info_ = nullptr; |
5940 | if (GetArenaNoVirtual() == nullptr && memory_info_ != nullptr) { |
5941 | delete memory_info_; |
5942 | } |
5943 | memory_info_ = nullptr; |
5944 | _internal_metadata_.Clear(); |
5945 | } |
5946 | |
5947 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
5948 | const char* MachineConfiguration::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
5949 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
5950 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
5951 | while (!ctx->Done(&ptr)) { |
5952 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
5953 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
5954 | CHK_(ptr); |
5955 | switch (tag >> 3) { |
5956 | // string hostname = 1; |
5957 | case 1: |
5958 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
5959 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_hostname(), ptr, ctx, "tensorflow.MachineConfiguration.hostname" ); |
5960 | CHK_(ptr); |
5961 | } else goto handle_unusual; |
5962 | continue; |
5963 | // .tensorflow.PlatformInfo platform_info = 2; |
5964 | case 2: |
5965 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
5966 | ptr = ctx->ParseMessage(mutable_platform_info(), ptr); |
5967 | CHK_(ptr); |
5968 | } else goto handle_unusual; |
5969 | continue; |
5970 | // .tensorflow.CPUInfo cpu_info = 3; |
5971 | case 3: |
5972 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
5973 | ptr = ctx->ParseMessage(mutable_cpu_info(), ptr); |
5974 | CHK_(ptr); |
5975 | } else goto handle_unusual; |
5976 | continue; |
5977 | // repeated .google.protobuf.Any device_info = 4; |
5978 | case 4: |
5979 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
5980 | ptr -= 1; |
5981 | do { |
5982 | ptr += 1; |
5983 | ptr = ctx->ParseMessage(add_device_info(), ptr); |
5984 | CHK_(ptr); |
5985 | if (!ctx->DataAvailable(ptr)) break; |
5986 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); |
5987 | } else goto handle_unusual; |
5988 | continue; |
5989 | // repeated .tensorflow.AvailableDeviceInfo available_device_info = 5; |
5990 | case 5: |
5991 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
5992 | ptr -= 1; |
5993 | do { |
5994 | ptr += 1; |
5995 | ptr = ctx->ParseMessage(add_available_device_info(), ptr); |
5996 | CHK_(ptr); |
5997 | if (!ctx->DataAvailable(ptr)) break; |
5998 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42); |
5999 | } else goto handle_unusual; |
6000 | continue; |
6001 | // .tensorflow.MemoryInfo memory_info = 6; |
6002 | case 6: |
6003 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { |
6004 | ptr = ctx->ParseMessage(mutable_memory_info(), ptr); |
6005 | CHK_(ptr); |
6006 | } else goto handle_unusual; |
6007 | continue; |
6008 | // string serial_identifier = 7; |
6009 | case 7: |
6010 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { |
6011 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_serial_identifier(), ptr, ctx, "tensorflow.MachineConfiguration.serial_identifier" ); |
6012 | CHK_(ptr); |
6013 | } else goto handle_unusual; |
6014 | continue; |
6015 | default: { |
6016 | handle_unusual: |
6017 | if ((tag & 7) == 4 || tag == 0) { |
6018 | ctx->SetLastTag(tag); |
6019 | goto success; |
6020 | } |
6021 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
6022 | CHK_(ptr != nullptr); |
6023 | continue; |
6024 | } |
6025 | } // switch |
6026 | } // while |
6027 | success: |
6028 | return ptr; |
6029 | failure: |
6030 | ptr = nullptr; |
6031 | goto success; |
6032 | #undef CHK_ |
6033 | } |
6034 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6035 | bool MachineConfiguration::MergePartialFromCodedStream( |
6036 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
6037 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
6038 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
6039 | // @@protoc_insertion_point(parse_start:tensorflow.MachineConfiguration) |
6040 | for (;;) { |
6041 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
6042 | tag = p.first; |
6043 | if (!p.second) goto handle_unusual; |
6044 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
6045 | // string hostname = 1; |
6046 | case 1: { |
6047 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
6048 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
6049 | input, this->mutable_hostname())); |
6050 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6051 | this->hostname().data(), static_cast<int>(this->hostname().length()), |
6052 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
6053 | "tensorflow.MachineConfiguration.hostname" )); |
6054 | } else { |
6055 | goto handle_unusual; |
6056 | } |
6057 | break; |
6058 | } |
6059 | |
6060 | // .tensorflow.PlatformInfo platform_info = 2; |
6061 | case 2: { |
6062 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
6063 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
6064 | input, mutable_platform_info())); |
6065 | } else { |
6066 | goto handle_unusual; |
6067 | } |
6068 | break; |
6069 | } |
6070 | |
6071 | // .tensorflow.CPUInfo cpu_info = 3; |
6072 | case 3: { |
6073 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
6074 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
6075 | input, mutable_cpu_info())); |
6076 | } else { |
6077 | goto handle_unusual; |
6078 | } |
6079 | break; |
6080 | } |
6081 | |
6082 | // repeated .google.protobuf.Any device_info = 4; |
6083 | case 4: { |
6084 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
6085 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
6086 | input, add_device_info())); |
6087 | } else { |
6088 | goto handle_unusual; |
6089 | } |
6090 | break; |
6091 | } |
6092 | |
6093 | // repeated .tensorflow.AvailableDeviceInfo available_device_info = 5; |
6094 | case 5: { |
6095 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { |
6096 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
6097 | input, add_available_device_info())); |
6098 | } else { |
6099 | goto handle_unusual; |
6100 | } |
6101 | break; |
6102 | } |
6103 | |
6104 | // .tensorflow.MemoryInfo memory_info = 6; |
6105 | case 6: { |
6106 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { |
6107 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
6108 | input, mutable_memory_info())); |
6109 | } else { |
6110 | goto handle_unusual; |
6111 | } |
6112 | break; |
6113 | } |
6114 | |
6115 | // string serial_identifier = 7; |
6116 | case 7: { |
6117 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) { |
6118 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
6119 | input, this->mutable_serial_identifier())); |
6120 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6121 | this->serial_identifier().data(), static_cast<int>(this->serial_identifier().length()), |
6122 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
6123 | "tensorflow.MachineConfiguration.serial_identifier" )); |
6124 | } else { |
6125 | goto handle_unusual; |
6126 | } |
6127 | break; |
6128 | } |
6129 | |
6130 | default: { |
6131 | handle_unusual: |
6132 | if (tag == 0) { |
6133 | goto success; |
6134 | } |
6135 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
6136 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6137 | break; |
6138 | } |
6139 | } |
6140 | } |
6141 | success: |
6142 | // @@protoc_insertion_point(parse_success:tensorflow.MachineConfiguration) |
6143 | return true; |
6144 | failure: |
6145 | // @@protoc_insertion_point(parse_failure:tensorflow.MachineConfiguration) |
6146 | return false; |
6147 | #undef DO_ |
6148 | } |
6149 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6150 | |
6151 | void MachineConfiguration::SerializeWithCachedSizes( |
6152 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
6153 | // @@protoc_insertion_point(serialize_start:tensorflow.MachineConfiguration) |
6154 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6155 | (void) cached_has_bits; |
6156 | |
6157 | // string hostname = 1; |
6158 | if (this->hostname().size() > 0) { |
6159 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6160 | this->hostname().data(), static_cast<int>(this->hostname().length()), |
6161 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6162 | "tensorflow.MachineConfiguration.hostname" ); |
6163 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
6164 | 1, this->hostname(), output); |
6165 | } |
6166 | |
6167 | // .tensorflow.PlatformInfo platform_info = 2; |
6168 | if (this->has_platform_info()) { |
6169 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
6170 | 2, _Internal::platform_info(this), output); |
6171 | } |
6172 | |
6173 | // .tensorflow.CPUInfo cpu_info = 3; |
6174 | if (this->has_cpu_info()) { |
6175 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
6176 | 3, _Internal::cpu_info(this), output); |
6177 | } |
6178 | |
6179 | // repeated .google.protobuf.Any device_info = 4; |
6180 | for (unsigned int i = 0, |
6181 | n = static_cast<unsigned int>(this->device_info_size()); i < n; i++) { |
6182 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
6183 | 4, |
6184 | this->device_info(static_cast<int>(i)), |
6185 | output); |
6186 | } |
6187 | |
6188 | // repeated .tensorflow.AvailableDeviceInfo available_device_info = 5; |
6189 | for (unsigned int i = 0, |
6190 | n = static_cast<unsigned int>(this->available_device_info_size()); i < n; i++) { |
6191 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
6192 | 5, |
6193 | this->available_device_info(static_cast<int>(i)), |
6194 | output); |
6195 | } |
6196 | |
6197 | // .tensorflow.MemoryInfo memory_info = 6; |
6198 | if (this->has_memory_info()) { |
6199 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
6200 | 6, _Internal::memory_info(this), output); |
6201 | } |
6202 | |
6203 | // string serial_identifier = 7; |
6204 | if (this->serial_identifier().size() > 0) { |
6205 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6206 | this->serial_identifier().data(), static_cast<int>(this->serial_identifier().length()), |
6207 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6208 | "tensorflow.MachineConfiguration.serial_identifier" ); |
6209 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
6210 | 7, this->serial_identifier(), output); |
6211 | } |
6212 | |
6213 | if (_internal_metadata_.have_unknown_fields()) { |
6214 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
6215 | _internal_metadata_.unknown_fields(), output); |
6216 | } |
6217 | // @@protoc_insertion_point(serialize_end:tensorflow.MachineConfiguration) |
6218 | } |
6219 | |
6220 | ::PROTOBUF_NAMESPACE_ID::uint8* MachineConfiguration::InternalSerializeWithCachedSizesToArray( |
6221 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
6222 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.MachineConfiguration) |
6223 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6224 | (void) cached_has_bits; |
6225 | |
6226 | // string hostname = 1; |
6227 | if (this->hostname().size() > 0) { |
6228 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6229 | this->hostname().data(), static_cast<int>(this->hostname().length()), |
6230 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6231 | "tensorflow.MachineConfiguration.hostname" ); |
6232 | target = |
6233 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
6234 | 1, this->hostname(), target); |
6235 | } |
6236 | |
6237 | // .tensorflow.PlatformInfo platform_info = 2; |
6238 | if (this->has_platform_info()) { |
6239 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6240 | InternalWriteMessageToArray( |
6241 | 2, _Internal::platform_info(this), target); |
6242 | } |
6243 | |
6244 | // .tensorflow.CPUInfo cpu_info = 3; |
6245 | if (this->has_cpu_info()) { |
6246 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6247 | InternalWriteMessageToArray( |
6248 | 3, _Internal::cpu_info(this), target); |
6249 | } |
6250 | |
6251 | // repeated .google.protobuf.Any device_info = 4; |
6252 | for (unsigned int i = 0, |
6253 | n = static_cast<unsigned int>(this->device_info_size()); i < n; i++) { |
6254 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6255 | InternalWriteMessageToArray( |
6256 | 4, this->device_info(static_cast<int>(i)), target); |
6257 | } |
6258 | |
6259 | // repeated .tensorflow.AvailableDeviceInfo available_device_info = 5; |
6260 | for (unsigned int i = 0, |
6261 | n = static_cast<unsigned int>(this->available_device_info_size()); i < n; i++) { |
6262 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6263 | InternalWriteMessageToArray( |
6264 | 5, this->available_device_info(static_cast<int>(i)), target); |
6265 | } |
6266 | |
6267 | // .tensorflow.MemoryInfo memory_info = 6; |
6268 | if (this->has_memory_info()) { |
6269 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6270 | InternalWriteMessageToArray( |
6271 | 6, _Internal::memory_info(this), target); |
6272 | } |
6273 | |
6274 | // string serial_identifier = 7; |
6275 | if (this->serial_identifier().size() > 0) { |
6276 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6277 | this->serial_identifier().data(), static_cast<int>(this->serial_identifier().length()), |
6278 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6279 | "tensorflow.MachineConfiguration.serial_identifier" ); |
6280 | target = |
6281 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
6282 | 7, this->serial_identifier(), target); |
6283 | } |
6284 | |
6285 | if (_internal_metadata_.have_unknown_fields()) { |
6286 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
6287 | _internal_metadata_.unknown_fields(), target); |
6288 | } |
6289 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.MachineConfiguration) |
6290 | return target; |
6291 | } |
6292 | |
6293 | size_t MachineConfiguration::ByteSizeLong() const { |
6294 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.MachineConfiguration) |
6295 | size_t total_size = 0; |
6296 | |
6297 | if (_internal_metadata_.have_unknown_fields()) { |
6298 | total_size += |
6299 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
6300 | _internal_metadata_.unknown_fields()); |
6301 | } |
6302 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6303 | // Prevent compiler warnings about cached_has_bits being unused |
6304 | (void) cached_has_bits; |
6305 | |
6306 | // repeated .google.protobuf.Any device_info = 4; |
6307 | { |
6308 | unsigned int count = static_cast<unsigned int>(this->device_info_size()); |
6309 | total_size += 1UL * count; |
6310 | for (unsigned int i = 0; i < count; i++) { |
6311 | total_size += |
6312 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6313 | this->device_info(static_cast<int>(i))); |
6314 | } |
6315 | } |
6316 | |
6317 | // repeated .tensorflow.AvailableDeviceInfo available_device_info = 5; |
6318 | { |
6319 | unsigned int count = static_cast<unsigned int>(this->available_device_info_size()); |
6320 | total_size += 1UL * count; |
6321 | for (unsigned int i = 0; i < count; i++) { |
6322 | total_size += |
6323 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6324 | this->available_device_info(static_cast<int>(i))); |
6325 | } |
6326 | } |
6327 | |
6328 | // string hostname = 1; |
6329 | if (this->hostname().size() > 0) { |
6330 | total_size += 1 + |
6331 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
6332 | this->hostname()); |
6333 | } |
6334 | |
6335 | // string serial_identifier = 7; |
6336 | if (this->serial_identifier().size() > 0) { |
6337 | total_size += 1 + |
6338 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
6339 | this->serial_identifier()); |
6340 | } |
6341 | |
6342 | // .tensorflow.PlatformInfo platform_info = 2; |
6343 | if (this->has_platform_info()) { |
6344 | total_size += 1 + |
6345 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6346 | *platform_info_); |
6347 | } |
6348 | |
6349 | // .tensorflow.CPUInfo cpu_info = 3; |
6350 | if (this->has_cpu_info()) { |
6351 | total_size += 1 + |
6352 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6353 | *cpu_info_); |
6354 | } |
6355 | |
6356 | // .tensorflow.MemoryInfo memory_info = 6; |
6357 | if (this->has_memory_info()) { |
6358 | total_size += 1 + |
6359 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6360 | *memory_info_); |
6361 | } |
6362 | |
6363 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
6364 | SetCachedSize(cached_size); |
6365 | return total_size; |
6366 | } |
6367 | |
6368 | void MachineConfiguration::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
6369 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.MachineConfiguration) |
6370 | GOOGLE_DCHECK_NE(&from, this); |
6371 | const MachineConfiguration* source = |
6372 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MachineConfiguration>( |
6373 | &from); |
6374 | if (source == nullptr) { |
6375 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.MachineConfiguration) |
6376 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
6377 | } else { |
6378 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.MachineConfiguration) |
6379 | MergeFrom(*source); |
6380 | } |
6381 | } |
6382 | |
6383 | void MachineConfiguration::MergeFrom(const MachineConfiguration& from) { |
6384 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.MachineConfiguration) |
6385 | GOOGLE_DCHECK_NE(&from, this); |
6386 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6387 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6388 | (void) cached_has_bits; |
6389 | |
6390 | device_info_.MergeFrom(from.device_info_); |
6391 | available_device_info_.MergeFrom(from.available_device_info_); |
6392 | if (from.hostname().size() > 0) { |
6393 | set_hostname(from.hostname()); |
6394 | } |
6395 | if (from.serial_identifier().size() > 0) { |
6396 | set_serial_identifier(from.serial_identifier()); |
6397 | } |
6398 | if (from.has_platform_info()) { |
6399 | mutable_platform_info()->::tensorflow::PlatformInfo::MergeFrom(from.platform_info()); |
6400 | } |
6401 | if (from.has_cpu_info()) { |
6402 | mutable_cpu_info()->::tensorflow::CPUInfo::MergeFrom(from.cpu_info()); |
6403 | } |
6404 | if (from.has_memory_info()) { |
6405 | mutable_memory_info()->::tensorflow::MemoryInfo::MergeFrom(from.memory_info()); |
6406 | } |
6407 | } |
6408 | |
6409 | void MachineConfiguration::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
6410 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.MachineConfiguration) |
6411 | if (&from == this) return; |
6412 | Clear(); |
6413 | MergeFrom(from); |
6414 | } |
6415 | |
6416 | void MachineConfiguration::CopyFrom(const MachineConfiguration& from) { |
6417 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.MachineConfiguration) |
6418 | if (&from == this) return; |
6419 | Clear(); |
6420 | MergeFrom(from); |
6421 | } |
6422 | |
6423 | bool MachineConfiguration::IsInitialized() const { |
6424 | return true; |
6425 | } |
6426 | |
6427 | void MachineConfiguration::InternalSwap(MachineConfiguration* other) { |
6428 | using std::swap; |
6429 | _internal_metadata_.Swap(&other->_internal_metadata_); |
6430 | CastToBase(&device_info_)->InternalSwap(CastToBase(&other->device_info_)); |
6431 | CastToBase(&available_device_info_)->InternalSwap(CastToBase(&other->available_device_info_)); |
6432 | hostname_.Swap(&other->hostname_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
6433 | GetArenaNoVirtual()); |
6434 | serial_identifier_.Swap(&other->serial_identifier_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
6435 | GetArenaNoVirtual()); |
6436 | swap(platform_info_, other->platform_info_); |
6437 | swap(cpu_info_, other->cpu_info_); |
6438 | swap(memory_info_, other->memory_info_); |
6439 | } |
6440 | |
6441 | ::PROTOBUF_NAMESPACE_ID::Metadata MachineConfiguration::GetMetadata() const { |
6442 | return GetMetadataStatic(); |
6443 | } |
6444 | |
6445 | |
6446 | // =================================================================== |
6447 | |
6448 | RunConfiguration_EnvVarsEntry_DoNotUse::RunConfiguration_EnvVarsEntry_DoNotUse() {} |
6449 | RunConfiguration_EnvVarsEntry_DoNotUse::RunConfiguration_EnvVarsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
6450 | : SuperType(arena) {} |
6451 | void RunConfiguration_EnvVarsEntry_DoNotUse::MergeFrom(const RunConfiguration_EnvVarsEntry_DoNotUse& other) { |
6452 | MergeFromInternal(other); |
6453 | } |
6454 | ::PROTOBUF_NAMESPACE_ID::Metadata RunConfiguration_EnvVarsEntry_DoNotUse::GetMetadata() const { |
6455 | return GetMetadataStatic(); |
6456 | } |
6457 | void RunConfiguration_EnvVarsEntry_DoNotUse::MergeFrom( |
6458 | const ::PROTOBUF_NAMESPACE_ID::Message& other) { |
6459 | ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other); |
6460 | } |
6461 | |
6462 | |
6463 | // =================================================================== |
6464 | |
6465 | void RunConfiguration::InitAsDefaultInstance() { |
6466 | } |
6467 | class RunConfiguration::_Internal { |
6468 | public: |
6469 | }; |
6470 | |
6471 | RunConfiguration::RunConfiguration() |
6472 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
6473 | SharedCtor(); |
6474 | // @@protoc_insertion_point(constructor:tensorflow.RunConfiguration) |
6475 | } |
6476 | RunConfiguration::RunConfiguration(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
6477 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
6478 | _internal_metadata_(arena), |
6479 | argument_(arena), |
6480 | env_vars_(arena) { |
6481 | SharedCtor(); |
6482 | RegisterArenaDtor(arena); |
6483 | // @@protoc_insertion_point(arena_constructor:tensorflow.RunConfiguration) |
6484 | } |
6485 | RunConfiguration::RunConfiguration(const RunConfiguration& from) |
6486 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
6487 | _internal_metadata_(nullptr), |
6488 | argument_(from.argument_) { |
6489 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6490 | env_vars_.MergeFrom(from.env_vars_); |
6491 | // @@protoc_insertion_point(copy_constructor:tensorflow.RunConfiguration) |
6492 | } |
6493 | |
6494 | void RunConfiguration::SharedCtor() { |
6495 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RunConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
6496 | } |
6497 | |
6498 | RunConfiguration::~RunConfiguration() { |
6499 | // @@protoc_insertion_point(destructor:tensorflow.RunConfiguration) |
6500 | SharedDtor(); |
6501 | } |
6502 | |
6503 | void RunConfiguration::SharedDtor() { |
6504 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
6505 | } |
6506 | |
6507 | void RunConfiguration::ArenaDtor(void* object) { |
6508 | RunConfiguration* _this = reinterpret_cast< RunConfiguration* >(object); |
6509 | (void)_this; |
6510 | } |
6511 | void RunConfiguration::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
6512 | } |
6513 | void RunConfiguration::SetCachedSize(int size) const { |
6514 | _cached_size_.Set(size); |
6515 | } |
6516 | const RunConfiguration& RunConfiguration::default_instance() { |
6517 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RunConfiguration_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
6518 | return *internal_default_instance(); |
6519 | } |
6520 | |
6521 | |
6522 | void RunConfiguration::Clear() { |
6523 | // @@protoc_insertion_point(message_clear_start:tensorflow.RunConfiguration) |
6524 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6525 | // Prevent compiler warnings about cached_has_bits being unused |
6526 | (void) cached_has_bits; |
6527 | |
6528 | argument_.Clear(); |
6529 | env_vars_.Clear(); |
6530 | _internal_metadata_.Clear(); |
6531 | } |
6532 | |
6533 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6534 | const char* RunConfiguration::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
6535 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
6536 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
6537 | while (!ctx->Done(&ptr)) { |
6538 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
6539 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
6540 | CHK_(ptr); |
6541 | switch (tag >> 3) { |
6542 | // repeated string argument = 1; |
6543 | case 1: |
6544 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
6545 | ptr -= 1; |
6546 | do { |
6547 | ptr += 1; |
6548 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_argument(), ptr, ctx, "tensorflow.RunConfiguration.argument" ); |
6549 | CHK_(ptr); |
6550 | if (!ctx->DataAvailable(ptr)) break; |
6551 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); |
6552 | } else goto handle_unusual; |
6553 | continue; |
6554 | // map<string, string> env_vars = 2; |
6555 | case 2: |
6556 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
6557 | ptr -= 1; |
6558 | do { |
6559 | ptr += 1; |
6560 | ptr = ctx->ParseMessage(&env_vars_, ptr); |
6561 | CHK_(ptr); |
6562 | if (!ctx->DataAvailable(ptr)) break; |
6563 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); |
6564 | } else goto handle_unusual; |
6565 | continue; |
6566 | default: { |
6567 | handle_unusual: |
6568 | if ((tag & 7) == 4 || tag == 0) { |
6569 | ctx->SetLastTag(tag); |
6570 | goto success; |
6571 | } |
6572 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
6573 | CHK_(ptr != nullptr); |
6574 | continue; |
6575 | } |
6576 | } // switch |
6577 | } // while |
6578 | success: |
6579 | return ptr; |
6580 | failure: |
6581 | ptr = nullptr; |
6582 | goto success; |
6583 | #undef CHK_ |
6584 | } |
6585 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6586 | bool RunConfiguration::MergePartialFromCodedStream( |
6587 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
6588 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
6589 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
6590 | // @@protoc_insertion_point(parse_start:tensorflow.RunConfiguration) |
6591 | for (;;) { |
6592 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
6593 | tag = p.first; |
6594 | if (!p.second) goto handle_unusual; |
6595 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
6596 | // repeated string argument = 1; |
6597 | case 1: { |
6598 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
6599 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
6600 | input, this->add_argument())); |
6601 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6602 | this->argument(this->argument_size() - 1).data(), |
6603 | static_cast<int>(this->argument(this->argument_size() - 1).length()), |
6604 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
6605 | "tensorflow.RunConfiguration.argument" )); |
6606 | } else { |
6607 | goto handle_unusual; |
6608 | } |
6609 | break; |
6610 | } |
6611 | |
6612 | // map<string, string> env_vars = 2; |
6613 | case 2: { |
6614 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
6615 | RunConfiguration_EnvVarsEntry_DoNotUse::Parser< ::PROTOBUF_NAMESPACE_ID::internal::MapField< |
6616 | RunConfiguration_EnvVarsEntry_DoNotUse, |
6617 | std::string, std::string, |
6618 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
6619 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
6620 | 0 >, |
6621 | ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string > > parser(&env_vars_); |
6622 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessageNoVirtual( |
6623 | input, &parser)); |
6624 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6625 | parser.key().data(), static_cast<int>(parser.key().length()), |
6626 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
6627 | "tensorflow.RunConfiguration.EnvVarsEntry.key" )); |
6628 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6629 | parser.value().data(), static_cast<int>(parser.value().length()), |
6630 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
6631 | "tensorflow.RunConfiguration.EnvVarsEntry.value" )); |
6632 | } else { |
6633 | goto handle_unusual; |
6634 | } |
6635 | break; |
6636 | } |
6637 | |
6638 | default: { |
6639 | handle_unusual: |
6640 | if (tag == 0) { |
6641 | goto success; |
6642 | } |
6643 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
6644 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6645 | break; |
6646 | } |
6647 | } |
6648 | } |
6649 | success: |
6650 | // @@protoc_insertion_point(parse_success:tensorflow.RunConfiguration) |
6651 | return true; |
6652 | failure: |
6653 | // @@protoc_insertion_point(parse_failure:tensorflow.RunConfiguration) |
6654 | return false; |
6655 | #undef DO_ |
6656 | } |
6657 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
6658 | |
6659 | void RunConfiguration::SerializeWithCachedSizes( |
6660 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
6661 | // @@protoc_insertion_point(serialize_start:tensorflow.RunConfiguration) |
6662 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6663 | (void) cached_has_bits; |
6664 | |
6665 | // repeated string argument = 1; |
6666 | for (int i = 0, n = this->argument_size(); i < n; i++) { |
6667 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6668 | this->argument(i).data(), static_cast<int>(this->argument(i).length()), |
6669 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6670 | "tensorflow.RunConfiguration.argument" ); |
6671 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( |
6672 | 1, this->argument(i), output); |
6673 | } |
6674 | |
6675 | // map<string, string> env_vars = 2; |
6676 | if (!this->env_vars().empty()) { |
6677 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_pointer |
6678 | ConstPtr; |
6679 | typedef ConstPtr SortItem; |
6680 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less; |
6681 | struct Utf8Check { |
6682 | static void Check(ConstPtr p) { |
6683 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6684 | p->first.data(), static_cast<int>(p->first.length()), |
6685 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6686 | "tensorflow.RunConfiguration.EnvVarsEntry.key" ); |
6687 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6688 | p->second.data(), static_cast<int>(p->second.length()), |
6689 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6690 | "tensorflow.RunConfiguration.EnvVarsEntry.value" ); |
6691 | } |
6692 | }; |
6693 | |
6694 | if (output->IsSerializationDeterministic() && |
6695 | this->env_vars().size() > 1) { |
6696 | ::std::unique_ptr<SortItem[]> items( |
6697 | new SortItem[this->env_vars().size()]); |
6698 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::size_type size_type; |
6699 | size_type n = 0; |
6700 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator |
6701 | it = this->env_vars().begin(); |
6702 | it != this->env_vars().end(); ++it, ++n) { |
6703 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
6704 | } |
6705 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
6706 | for (size_type i = 0; i < n; i++) { |
6707 | RunConfiguration_EnvVarsEntry_DoNotUse::Funcs::SerializeToCodedStream(2, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, output); |
6708 | Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)])); |
6709 | } |
6710 | } else { |
6711 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator |
6712 | it = this->env_vars().begin(); |
6713 | it != this->env_vars().end(); ++it) { |
6714 | RunConfiguration_EnvVarsEntry_DoNotUse::Funcs::SerializeToCodedStream(2, it->first, it->second, output); |
6715 | Utf8Check::Check(&(*it)); |
6716 | } |
6717 | } |
6718 | } |
6719 | |
6720 | if (_internal_metadata_.have_unknown_fields()) { |
6721 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
6722 | _internal_metadata_.unknown_fields(), output); |
6723 | } |
6724 | // @@protoc_insertion_point(serialize_end:tensorflow.RunConfiguration) |
6725 | } |
6726 | |
6727 | ::PROTOBUF_NAMESPACE_ID::uint8* RunConfiguration::InternalSerializeWithCachedSizesToArray( |
6728 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
6729 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.RunConfiguration) |
6730 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6731 | (void) cached_has_bits; |
6732 | |
6733 | // repeated string argument = 1; |
6734 | for (int i = 0, n = this->argument_size(); i < n; i++) { |
6735 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6736 | this->argument(i).data(), static_cast<int>(this->argument(i).length()), |
6737 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6738 | "tensorflow.RunConfiguration.argument" ); |
6739 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6740 | WriteStringToArray(1, this->argument(i), target); |
6741 | } |
6742 | |
6743 | // map<string, string> env_vars = 2; |
6744 | if (!this->env_vars().empty()) { |
6745 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_pointer |
6746 | ConstPtr; |
6747 | typedef ConstPtr SortItem; |
6748 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less; |
6749 | struct Utf8Check { |
6750 | static void Check(ConstPtr p) { |
6751 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6752 | p->first.data(), static_cast<int>(p->first.length()), |
6753 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6754 | "tensorflow.RunConfiguration.EnvVarsEntry.key" ); |
6755 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
6756 | p->second.data(), static_cast<int>(p->second.length()), |
6757 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
6758 | "tensorflow.RunConfiguration.EnvVarsEntry.value" ); |
6759 | } |
6760 | }; |
6761 | |
6762 | if (false && |
6763 | this->env_vars().size() > 1) { |
6764 | ::std::unique_ptr<SortItem[]> items( |
6765 | new SortItem[this->env_vars().size()]); |
6766 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::size_type size_type; |
6767 | size_type n = 0; |
6768 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator |
6769 | it = this->env_vars().begin(); |
6770 | it != this->env_vars().end(); ++it, ++n) { |
6771 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
6772 | } |
6773 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
6774 | for (size_type i = 0; i < n; i++) { |
6775 | target = RunConfiguration_EnvVarsEntry_DoNotUse::Funcs::SerializeToArray(2, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target); |
6776 | Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)])); |
6777 | } |
6778 | } else { |
6779 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator |
6780 | it = this->env_vars().begin(); |
6781 | it != this->env_vars().end(); ++it) { |
6782 | target = RunConfiguration_EnvVarsEntry_DoNotUse::Funcs::SerializeToArray(2, it->first, it->second, target); |
6783 | Utf8Check::Check(&(*it)); |
6784 | } |
6785 | } |
6786 | } |
6787 | |
6788 | if (_internal_metadata_.have_unknown_fields()) { |
6789 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
6790 | _internal_metadata_.unknown_fields(), target); |
6791 | } |
6792 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.RunConfiguration) |
6793 | return target; |
6794 | } |
6795 | |
6796 | size_t RunConfiguration::ByteSizeLong() const { |
6797 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.RunConfiguration) |
6798 | size_t total_size = 0; |
6799 | |
6800 | if (_internal_metadata_.have_unknown_fields()) { |
6801 | total_size += |
6802 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
6803 | _internal_metadata_.unknown_fields()); |
6804 | } |
6805 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6806 | // Prevent compiler warnings about cached_has_bits being unused |
6807 | (void) cached_has_bits; |
6808 | |
6809 | // repeated string argument = 1; |
6810 | total_size += 1 * |
6811 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->argument_size()); |
6812 | for (int i = 0, n = this->argument_size(); i < n; i++) { |
6813 | total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
6814 | this->argument(i)); |
6815 | } |
6816 | |
6817 | // map<string, string> env_vars = 2; |
6818 | total_size += 1 * |
6819 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->env_vars_size()); |
6820 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator |
6821 | it = this->env_vars().begin(); |
6822 | it != this->env_vars().end(); ++it) { |
6823 | total_size += RunConfiguration_EnvVarsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); |
6824 | } |
6825 | |
6826 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
6827 | SetCachedSize(cached_size); |
6828 | return total_size; |
6829 | } |
6830 | |
6831 | void RunConfiguration::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
6832 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.RunConfiguration) |
6833 | GOOGLE_DCHECK_NE(&from, this); |
6834 | const RunConfiguration* source = |
6835 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RunConfiguration>( |
6836 | &from); |
6837 | if (source == nullptr) { |
6838 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.RunConfiguration) |
6839 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
6840 | } else { |
6841 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.RunConfiguration) |
6842 | MergeFrom(*source); |
6843 | } |
6844 | } |
6845 | |
6846 | void RunConfiguration::MergeFrom(const RunConfiguration& from) { |
6847 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.RunConfiguration) |
6848 | GOOGLE_DCHECK_NE(&from, this); |
6849 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6850 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
6851 | (void) cached_has_bits; |
6852 | |
6853 | argument_.MergeFrom(from.argument_); |
6854 | env_vars_.MergeFrom(from.env_vars_); |
6855 | } |
6856 | |
6857 | void RunConfiguration::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
6858 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.RunConfiguration) |
6859 | if (&from == this) return; |
6860 | Clear(); |
6861 | MergeFrom(from); |
6862 | } |
6863 | |
6864 | void RunConfiguration::CopyFrom(const RunConfiguration& from) { |
6865 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.RunConfiguration) |
6866 | if (&from == this) return; |
6867 | Clear(); |
6868 | MergeFrom(from); |
6869 | } |
6870 | |
6871 | bool RunConfiguration::IsInitialized() const { |
6872 | return true; |
6873 | } |
6874 | |
6875 | void RunConfiguration::InternalSwap(RunConfiguration* other) { |
6876 | using std::swap; |
6877 | _internal_metadata_.Swap(&other->_internal_metadata_); |
6878 | argument_.InternalSwap(CastToBase(&other->argument_)); |
6879 | env_vars_.Swap(&other->env_vars_); |
6880 | } |
6881 | |
6882 | ::PROTOBUF_NAMESPACE_ID::Metadata RunConfiguration::GetMetadata() const { |
6883 | return GetMetadataStatic(); |
6884 | } |
6885 | |
6886 | |
6887 | // =================================================================== |
6888 | |
6889 | void TestResults::InitAsDefaultInstance() { |
6890 | ::tensorflow::_TestResults_default_instance_._instance.get_mutable()->entries_ = const_cast< ::tensorflow::BenchmarkEntries*>( |
6891 | ::tensorflow::BenchmarkEntries::internal_default_instance()); |
6892 | ::tensorflow::_TestResults_default_instance_._instance.get_mutable()->build_configuration_ = const_cast< ::tensorflow::BuildConfiguration*>( |
6893 | ::tensorflow::BuildConfiguration::internal_default_instance()); |
6894 | ::tensorflow::_TestResults_default_instance_._instance.get_mutable()->commit_id_ = const_cast< ::tensorflow::CommitId*>( |
6895 | ::tensorflow::CommitId::internal_default_instance()); |
6896 | ::tensorflow::_TestResults_default_instance_._instance.get_mutable()->machine_configuration_ = const_cast< ::tensorflow::MachineConfiguration*>( |
6897 | ::tensorflow::MachineConfiguration::internal_default_instance()); |
6898 | ::tensorflow::_TestResults_default_instance_._instance.get_mutable()->run_configuration_ = const_cast< ::tensorflow::RunConfiguration*>( |
6899 | ::tensorflow::RunConfiguration::internal_default_instance()); |
6900 | } |
6901 | class TestResults::_Internal { |
6902 | public: |
6903 | static const ::tensorflow::BenchmarkEntries& entries(const TestResults* msg); |
6904 | static const ::tensorflow::BuildConfiguration& build_configuration(const TestResults* msg); |
6905 | static const ::tensorflow::CommitId& commit_id(const TestResults* msg); |
6906 | static const ::tensorflow::MachineConfiguration& machine_configuration(const TestResults* msg); |
6907 | static const ::tensorflow::RunConfiguration& run_configuration(const TestResults* msg); |
6908 | }; |
6909 | |
6910 | const ::tensorflow::BenchmarkEntries& |
6911 | TestResults::_Internal::entries(const TestResults* msg) { |
6912 | return *msg->entries_; |
6913 | } |
6914 | const ::tensorflow::BuildConfiguration& |
6915 | TestResults::_Internal::build_configuration(const TestResults* msg) { |
6916 | return *msg->build_configuration_; |
6917 | } |
6918 | const ::tensorflow::CommitId& |
6919 | TestResults::_Internal::commit_id(const TestResults* msg) { |
6920 | return *msg->commit_id_; |
6921 | } |
6922 | const ::tensorflow::MachineConfiguration& |
6923 | TestResults::_Internal::machine_configuration(const TestResults* msg) { |
6924 | return *msg->machine_configuration_; |
6925 | } |
6926 | const ::tensorflow::RunConfiguration& |
6927 | TestResults::_Internal::run_configuration(const TestResults* msg) { |
6928 | return *msg->run_configuration_; |
6929 | } |
6930 | void TestResults::unsafe_arena_set_allocated_entries( |
6931 | ::tensorflow::BenchmarkEntries* entries) { |
6932 | if (GetArenaNoVirtual() == nullptr) { |
6933 | delete entries_; |
6934 | } |
6935 | entries_ = entries; |
6936 | if (entries) { |
6937 | |
6938 | } else { |
6939 | |
6940 | } |
6941 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TestResults.entries) |
6942 | } |
6943 | void TestResults::unsafe_arena_set_allocated_build_configuration( |
6944 | ::tensorflow::BuildConfiguration* build_configuration) { |
6945 | if (GetArenaNoVirtual() == nullptr) { |
6946 | delete build_configuration_; |
6947 | } |
6948 | build_configuration_ = build_configuration; |
6949 | if (build_configuration) { |
6950 | |
6951 | } else { |
6952 | |
6953 | } |
6954 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TestResults.build_configuration) |
6955 | } |
6956 | void TestResults::unsafe_arena_set_allocated_commit_id( |
6957 | ::tensorflow::CommitId* commit_id) { |
6958 | if (GetArenaNoVirtual() == nullptr) { |
6959 | delete commit_id_; |
6960 | } |
6961 | commit_id_ = commit_id; |
6962 | if (commit_id) { |
6963 | |
6964 | } else { |
6965 | |
6966 | } |
6967 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TestResults.commit_id) |
6968 | } |
6969 | void TestResults::unsafe_arena_set_allocated_machine_configuration( |
6970 | ::tensorflow::MachineConfiguration* machine_configuration) { |
6971 | if (GetArenaNoVirtual() == nullptr) { |
6972 | delete machine_configuration_; |
6973 | } |
6974 | machine_configuration_ = machine_configuration; |
6975 | if (machine_configuration) { |
6976 | |
6977 | } else { |
6978 | |
6979 | } |
6980 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TestResults.machine_configuration) |
6981 | } |
6982 | void TestResults::unsafe_arena_set_allocated_run_configuration( |
6983 | ::tensorflow::RunConfiguration* run_configuration) { |
6984 | if (GetArenaNoVirtual() == nullptr) { |
6985 | delete run_configuration_; |
6986 | } |
6987 | run_configuration_ = run_configuration; |
6988 | if (run_configuration) { |
6989 | |
6990 | } else { |
6991 | |
6992 | } |
6993 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TestResults.run_configuration) |
6994 | } |
6995 | TestResults::TestResults() |
6996 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
6997 | SharedCtor(); |
6998 | // @@protoc_insertion_point(constructor:tensorflow.TestResults) |
6999 | } |
7000 | TestResults::TestResults(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
7001 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
7002 | _internal_metadata_(arena) { |
7003 | SharedCtor(); |
7004 | RegisterArenaDtor(arena); |
7005 | // @@protoc_insertion_point(arena_constructor:tensorflow.TestResults) |
7006 | } |
7007 | TestResults::TestResults(const TestResults& from) |
7008 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
7009 | _internal_metadata_(nullptr) { |
7010 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7011 | target_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
7012 | if (!from.target().empty()) { |
7013 | target_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.target(), |
7014 | GetArenaNoVirtual()); |
7015 | } |
7016 | name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
7017 | if (!from.name().empty()) { |
7018 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name(), |
7019 | GetArenaNoVirtual()); |
7020 | } |
7021 | run_mode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
7022 | if (!from.run_mode().empty()) { |
7023 | run_mode_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.run_mode(), |
7024 | GetArenaNoVirtual()); |
7025 | } |
7026 | tf_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
7027 | if (!from.tf_version().empty()) { |
7028 | tf_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tf_version(), |
7029 | GetArenaNoVirtual()); |
7030 | } |
7031 | if (from.has_entries()) { |
7032 | entries_ = new ::tensorflow::BenchmarkEntries(*from.entries_); |
7033 | } else { |
7034 | entries_ = nullptr; |
7035 | } |
7036 | if (from.has_build_configuration()) { |
7037 | build_configuration_ = new ::tensorflow::BuildConfiguration(*from.build_configuration_); |
7038 | } else { |
7039 | build_configuration_ = nullptr; |
7040 | } |
7041 | if (from.has_commit_id()) { |
7042 | commit_id_ = new ::tensorflow::CommitId(*from.commit_id_); |
7043 | } else { |
7044 | commit_id_ = nullptr; |
7045 | } |
7046 | if (from.has_machine_configuration()) { |
7047 | machine_configuration_ = new ::tensorflow::MachineConfiguration(*from.machine_configuration_); |
7048 | } else { |
7049 | machine_configuration_ = nullptr; |
7050 | } |
7051 | if (from.has_run_configuration()) { |
7052 | run_configuration_ = new ::tensorflow::RunConfiguration(*from.run_configuration_); |
7053 | } else { |
7054 | run_configuration_ = nullptr; |
7055 | } |
7056 | ::memcpy(&start_time_, &from.start_time_, |
7057 | static_cast<size_t>(reinterpret_cast<char*>(&benchmark_type_) - |
7058 | reinterpret_cast<char*>(&start_time_)) + sizeof(benchmark_type_)); |
7059 | // @@protoc_insertion_point(copy_constructor:tensorflow.TestResults) |
7060 | } |
7061 | |
7062 | void TestResults::SharedCtor() { |
7063 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TestResults_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
7064 | target_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
7065 | name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
7066 | run_mode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
7067 | tf_version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
7068 | ::memset(&entries_, 0, static_cast<size_t>( |
7069 | reinterpret_cast<char*>(&benchmark_type_) - |
7070 | reinterpret_cast<char*>(&entries_)) + sizeof(benchmark_type_)); |
7071 | } |
7072 | |
7073 | TestResults::~TestResults() { |
7074 | // @@protoc_insertion_point(destructor:tensorflow.TestResults) |
7075 | SharedDtor(); |
7076 | } |
7077 | |
7078 | void TestResults::SharedDtor() { |
7079 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
7080 | target_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
7081 | name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
7082 | run_mode_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
7083 | tf_version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
7084 | if (this != internal_default_instance()) delete entries_; |
7085 | if (this != internal_default_instance()) delete build_configuration_; |
7086 | if (this != internal_default_instance()) delete commit_id_; |
7087 | if (this != internal_default_instance()) delete machine_configuration_; |
7088 | if (this != internal_default_instance()) delete run_configuration_; |
7089 | } |
7090 | |
7091 | void TestResults::ArenaDtor(void* object) { |
7092 | TestResults* _this = reinterpret_cast< TestResults* >(object); |
7093 | (void)_this; |
7094 | } |
7095 | void TestResults::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
7096 | } |
7097 | void TestResults::SetCachedSize(int size) const { |
7098 | _cached_size_.Set(size); |
7099 | } |
7100 | const TestResults& TestResults::default_instance() { |
7101 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TestResults_tensorflow_2fcore_2futil_2ftest_5flog_2eproto.base); |
7102 | return *internal_default_instance(); |
7103 | } |
7104 | |
7105 | |
7106 | void TestResults::Clear() { |
7107 | // @@protoc_insertion_point(message_clear_start:tensorflow.TestResults) |
7108 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7109 | // Prevent compiler warnings about cached_has_bits being unused |
7110 | (void) cached_has_bits; |
7111 | |
7112 | target_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
7113 | name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
7114 | run_mode_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
7115 | tf_version_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
7116 | if (GetArenaNoVirtual() == nullptr && entries_ != nullptr) { |
7117 | delete entries_; |
7118 | } |
7119 | entries_ = nullptr; |
7120 | if (GetArenaNoVirtual() == nullptr && build_configuration_ != nullptr) { |
7121 | delete build_configuration_; |
7122 | } |
7123 | build_configuration_ = nullptr; |
7124 | if (GetArenaNoVirtual() == nullptr && commit_id_ != nullptr) { |
7125 | delete commit_id_; |
7126 | } |
7127 | commit_id_ = nullptr; |
7128 | if (GetArenaNoVirtual() == nullptr && machine_configuration_ != nullptr) { |
7129 | delete machine_configuration_; |
7130 | } |
7131 | machine_configuration_ = nullptr; |
7132 | if (GetArenaNoVirtual() == nullptr && run_configuration_ != nullptr) { |
7133 | delete run_configuration_; |
7134 | } |
7135 | run_configuration_ = nullptr; |
7136 | ::memset(&start_time_, 0, static_cast<size_t>( |
7137 | reinterpret_cast<char*>(&benchmark_type_) - |
7138 | reinterpret_cast<char*>(&start_time_)) + sizeof(benchmark_type_)); |
7139 | _internal_metadata_.Clear(); |
7140 | } |
7141 | |
7142 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
7143 | const char* TestResults::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
7144 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
7145 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
7146 | while (!ctx->Done(&ptr)) { |
7147 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
7148 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
7149 | CHK_(ptr); |
7150 | switch (tag >> 3) { |
7151 | // string target = 1; |
7152 | case 1: |
7153 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
7154 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_target(), ptr, ctx, "tensorflow.TestResults.target" ); |
7155 | CHK_(ptr); |
7156 | } else goto handle_unusual; |
7157 | continue; |
7158 | // .tensorflow.BenchmarkEntries entries = 2; |
7159 | case 2: |
7160 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
7161 | ptr = ctx->ParseMessage(mutable_entries(), ptr); |
7162 | CHK_(ptr); |
7163 | } else goto handle_unusual; |
7164 | continue; |
7165 | // .tensorflow.BuildConfiguration build_configuration = 3; |
7166 | case 3: |
7167 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
7168 | ptr = ctx->ParseMessage(mutable_build_configuration(), ptr); |
7169 | CHK_(ptr); |
7170 | } else goto handle_unusual; |
7171 | continue; |
7172 | // .tensorflow.CommitId commit_id = 4; |
7173 | case 4: |
7174 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
7175 | ptr = ctx->ParseMessage(mutable_commit_id(), ptr); |
7176 | CHK_(ptr); |
7177 | } else goto handle_unusual; |
7178 | continue; |
7179 | // int64 start_time = 5; |
7180 | case 5: |
7181 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { |
7182 | start_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
7183 | CHK_(ptr); |
7184 | } else goto handle_unusual; |
7185 | continue; |
7186 | // double run_time = 6; |
7187 | case 6: |
7188 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 49)) { |
7189 | run_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); |
7190 | ptr += sizeof(double); |
7191 | } else goto handle_unusual; |
7192 | continue; |
7193 | // .tensorflow.MachineConfiguration machine_configuration = 7; |
7194 | case 7: |
7195 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { |
7196 | ptr = ctx->ParseMessage(mutable_machine_configuration(), ptr); |
7197 | CHK_(ptr); |
7198 | } else goto handle_unusual; |
7199 | continue; |
7200 | // .tensorflow.RunConfiguration run_configuration = 8; |
7201 | case 8: |
7202 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { |
7203 | ptr = ctx->ParseMessage(mutable_run_configuration(), ptr); |
7204 | CHK_(ptr); |
7205 | } else goto handle_unusual; |
7206 | continue; |
7207 | // string name = 9; |
7208 | case 9: |
7209 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { |
7210 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "tensorflow.TestResults.name" ); |
7211 | CHK_(ptr); |
7212 | } else goto handle_unusual; |
7213 | continue; |
7214 | // .tensorflow.TestResults.BenchmarkType benchmark_type = 10; |
7215 | case 10: |
7216 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { |
7217 | ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
7218 | CHK_(ptr); |
7219 | set_benchmark_type(static_cast<::tensorflow::TestResults_BenchmarkType>(val)); |
7220 | } else goto handle_unusual; |
7221 | continue; |
7222 | // string run_mode = 11; |
7223 | case 11: |
7224 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { |
7225 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_run_mode(), ptr, ctx, "tensorflow.TestResults.run_mode" ); |
7226 | CHK_(ptr); |
7227 | } else goto handle_unusual; |
7228 | continue; |
7229 | // string tf_version = 12; |
7230 | case 12: |
7231 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { |
7232 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_tf_version(), ptr, ctx, "tensorflow.TestResults.tf_version" ); |
7233 | CHK_(ptr); |
7234 | } else goto handle_unusual; |
7235 | continue; |
7236 | default: { |
7237 | handle_unusual: |
7238 | if ((tag & 7) == 4 || tag == 0) { |
7239 | ctx->SetLastTag(tag); |
7240 | goto success; |
7241 | } |
7242 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
7243 | CHK_(ptr != nullptr); |
7244 | continue; |
7245 | } |
7246 | } // switch |
7247 | } // while |
7248 | success: |
7249 | return ptr; |
7250 | failure: |
7251 | ptr = nullptr; |
7252 | goto success; |
7253 | #undef CHK_ |
7254 | } |
7255 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
7256 | bool TestResults::MergePartialFromCodedStream( |
7257 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
7258 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
7259 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
7260 | // @@protoc_insertion_point(parse_start:tensorflow.TestResults) |
7261 | for (;;) { |
7262 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7263 | tag = p.first; |
7264 | if (!p.second) goto handle_unusual; |
7265 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7266 | // string target = 1; |
7267 | case 1: { |
7268 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
7269 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
7270 | input, this->mutable_target())); |
7271 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
7272 | this->target().data(), static_cast<int>(this->target().length()), |
7273 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
7274 | "tensorflow.TestResults.target" )); |
7275 | } else { |
7276 | goto handle_unusual; |
7277 | } |
7278 | break; |
7279 | } |
7280 | |
7281 | // .tensorflow.BenchmarkEntries entries = 2; |
7282 | case 2: { |
7283 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
7284 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
7285 | input, mutable_entries())); |
7286 | } else { |
7287 | goto handle_unusual; |
7288 | } |
7289 | break; |
7290 | } |
7291 | |
7292 | // .tensorflow.BuildConfiguration build_configuration = 3; |
7293 | case 3: { |
7294 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
7295 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
7296 | input, mutable_build_configuration())); |
7297 | } else { |
7298 | goto handle_unusual; |
7299 | } |
7300 | break; |
7301 | } |
7302 | |
7303 | // .tensorflow.CommitId commit_id = 4; |
7304 | case 4: { |
7305 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
7306 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
7307 | input, mutable_commit_id())); |
7308 | } else { |
7309 | goto handle_unusual; |
7310 | } |
7311 | break; |
7312 | } |
7313 | |
7314 | // int64 start_time = 5; |
7315 | case 5: { |
7316 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) { |
7317 | |
7318 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
7319 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
7320 | input, &start_time_))); |
7321 | } else { |
7322 | goto handle_unusual; |
7323 | } |
7324 | break; |
7325 | } |
7326 | |
7327 | // double run_time = 6; |
7328 | case 6: { |
7329 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (49 & 0xFF)) { |
7330 | |
7331 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
7332 | double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( |
7333 | input, &run_time_))); |
7334 | } else { |
7335 | goto handle_unusual; |
7336 | } |
7337 | break; |
7338 | } |
7339 | |
7340 | // .tensorflow.MachineConfiguration machine_configuration = 7; |
7341 | case 7: { |
7342 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) { |
7343 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
7344 | input, mutable_machine_configuration())); |
7345 | } else { |
7346 | goto handle_unusual; |
7347 | } |
7348 | break; |
7349 | } |
7350 | |
7351 | // .tensorflow.RunConfiguration run_configuration = 8; |
7352 | case 8: { |
7353 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) { |
7354 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
7355 | input, mutable_run_configuration())); |
7356 | } else { |
7357 | goto handle_unusual; |
7358 | } |
7359 | break; |
7360 | } |
7361 | |
7362 | // string name = 9; |
7363 | case 9: { |
7364 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (74 & 0xFF)) { |
7365 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
7366 | input, this->mutable_name())); |
7367 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
7368 | this->name().data(), static_cast<int>(this->name().length()), |
7369 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
7370 | "tensorflow.TestResults.name" )); |
7371 | } else { |
7372 | goto handle_unusual; |
7373 | } |
7374 | break; |
7375 | } |
7376 | |
7377 | // .tensorflow.TestResults.BenchmarkType benchmark_type = 10; |
7378 | case 10: { |
7379 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (80 & 0xFF)) { |
7380 | int value = 0; |
7381 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
7382 | int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( |
7383 | input, &value))); |
7384 | set_benchmark_type(static_cast< ::tensorflow::TestResults_BenchmarkType >(value)); |
7385 | } else { |
7386 | goto handle_unusual; |
7387 | } |
7388 | break; |
7389 | } |
7390 | |
7391 | // string run_mode = 11; |
7392 | case 11: { |
7393 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (90 & 0xFF)) { |
7394 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
7395 | input, this->mutable_run_mode())); |
7396 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
7397 | this->run_mode().data(), static_cast<int>(this->run_mode().length()), |
7398 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
7399 | "tensorflow.TestResults.run_mode" )); |
7400 | } else { |
7401 | goto handle_unusual; |
7402 | } |
7403 | break; |
7404 | } |
7405 | |
7406 | // string tf_version = 12; |
7407 | case 12: { |
7408 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (98 & 0xFF)) { |
7409 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
7410 | input, this->mutable_tf_version())); |
7411 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
7412 | this->tf_version().data(), static_cast<int>(this->tf_version().length()), |
7413 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
7414 | "tensorflow.TestResults.tf_version" )); |
7415 | } else { |
7416 | goto handle_unusual; |
7417 | } |
7418 | break; |
7419 | } |
7420 | |
7421 | default: { |
7422 | handle_unusual: |
7423 | if (tag == 0) { |
7424 | goto success; |
7425 | } |
7426 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
7427 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
7428 | break; |
7429 | } |
7430 | } |
7431 | } |
7432 | success: |
7433 | // @@protoc_insertion_point(parse_success:tensorflow.TestResults) |
7434 | return true; |
7435 | failure: |
7436 | // @@protoc_insertion_point(parse_failure:tensorflow.TestResults) |
7437 | return false; |
7438 | #undef DO_ |
7439 | } |
7440 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
7441 | |
7442 | void TestResults::SerializeWithCachedSizes( |
7443 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
7444 | // @@protoc_insertion_point(serialize_start:tensorflow.TestResults) |
7445 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7446 | (void) cached_has_bits; |
7447 | |
7448 | // string target = 1; |
7449 | if (this->target().size() > 0) { |
7450 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
7451 | this->target().data(), static_cast<int>(this->target().length()), |
7452 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
7453 | "tensorflow.TestResults.target" ); |
7454 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
7455 | 1, this->target(), output); |
7456 | } |
7457 | |
7458 | // .tensorflow.BenchmarkEntries entries = 2; |
7459 | if (this->has_entries()) { |
7460 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
7461 | 2, _Internal::entries(this), output); |
7462 | } |
7463 | |
7464 | // .tensorflow.BuildConfiguration build_configuration = 3; |
7465 | if (this->has_build_configuration()) { |
7466 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
7467 | 3, _Internal::build_configuration(this), output); |
7468 | } |
7469 | |
7470 | // .tensorflow.CommitId commit_id = 4; |
7471 | if (this->has_commit_id()) { |
7472 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
7473 | 4, _Internal::commit_id(this), output); |
7474 | } |
7475 | |
7476 | // int64 start_time = 5; |
7477 | if (this->start_time() != 0) { |
7478 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(5, this->start_time(), output); |
7479 | } |
7480 | |
7481 | // double run_time = 6; |
7482 | if (!(this->run_time() <= 0 && this->run_time() >= 0)) { |
7483 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(6, this->run_time(), output); |
7484 | } |
7485 | |
7486 | // .tensorflow.MachineConfiguration machine_configuration = 7; |
7487 | if (this->has_machine_configuration()) { |
7488 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
7489 | 7, _Internal::machine_configuration(this), output); |
7490 | } |
7491 | |
7492 | // .tensorflow.RunConfiguration run_configuration = 8; |
7493 | if (this->has_run_configuration()) { |
7494 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
7495 | 8, _Internal::run_configuration(this), output); |
7496 | } |
7497 | |
7498 | // string name = 9; |
7499 | if (this->name().size() > 0) { |
7500 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
7501 | this->name().data(), static_cast<int>(this->name().length()), |
7502 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
7503 | "tensorflow.TestResults.name" ); |
7504 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
7505 | 9, this->name(), output); |
7506 | } |
7507 | |
7508 | // .tensorflow.TestResults.BenchmarkType benchmark_type = 10; |
7509 | if (this->benchmark_type() != 0) { |
7510 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( |
7511 | 10, this->benchmark_type(), output); |
7512 | } |
7513 | |
7514 | // string run_mode = 11; |
7515 | if (this->run_mode().size() > 0) { |
7516 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
7517 | this->run_mode().data(), static_cast<int>(this->run_mode().length()), |
7518 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
7519 | "tensorflow.TestResults.run_mode" ); |
7520 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
7521 | 11, this->run_mode(), output); |
7522 | } |
7523 | |
7524 | // string tf_version = 12; |
7525 | if (this->tf_version().size() > 0) { |
7526 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
7527 | this->tf_version().data(), static_cast<int>(this->tf_version().length()), |
7528 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
7529 | "tensorflow.TestResults.tf_version" ); |
7530 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
7531 | 12, this->tf_version(), output); |
7532 | } |
7533 | |
7534 | if (_internal_metadata_.have_unknown_fields()) { |
7535 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
7536 | _internal_metadata_.unknown_fields(), output); |
7537 | } |
7538 | // @@protoc_insertion_point(serialize_end:tensorflow.TestResults) |
7539 | } |
7540 | |
7541 | ::PROTOBUF_NAMESPACE_ID::uint8* TestResults::InternalSerializeWithCachedSizesToArray( |
7542 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
7543 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.TestResults) |
7544 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7545 | (void) cached_has_bits; |
7546 | |
7547 | // string target = 1; |
7548 | if (this->target().size() > 0) { |
7549 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
7550 | this->target().data(), static_cast<int>(this->target().length()), |
7551 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
7552 | "tensorflow.TestResults.target" ); |
7553 | target = |
7554 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
7555 | 1, this->target(), target); |
7556 | } |
7557 | |
7558 | // .tensorflow.BenchmarkEntries entries = 2; |
7559 | if (this->has_entries()) { |
7560 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
7561 | InternalWriteMessageToArray( |
7562 | 2, _Internal::entries(this), target); |
7563 | } |
7564 | |
7565 | // .tensorflow.BuildConfiguration build_configuration = 3; |
7566 | if (this->has_build_configuration()) { |
7567 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
7568 | InternalWriteMessageToArray( |
7569 | 3, _Internal::build_configuration(this), target); |
7570 | } |
7571 | |
7572 | // .tensorflow.CommitId commit_id = 4; |
7573 | if (this->has_commit_id()) { |
7574 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
7575 | InternalWriteMessageToArray( |
7576 | 4, _Internal::commit_id(this), target); |
7577 | } |
7578 | |
7579 | // int64 start_time = 5; |
7580 | if (this->start_time() != 0) { |
7581 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->start_time(), target); |
7582 | } |
7583 | |
7584 | // double run_time = 6; |
7585 | if (!(this->run_time() <= 0 && this->run_time() >= 0)) { |
7586 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(6, this->run_time(), target); |
7587 | } |
7588 | |
7589 | // .tensorflow.MachineConfiguration machine_configuration = 7; |
7590 | if (this->has_machine_configuration()) { |
7591 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
7592 | InternalWriteMessageToArray( |
7593 | 7, _Internal::machine_configuration(this), target); |
7594 | } |
7595 | |
7596 | // .tensorflow.RunConfiguration run_configuration = 8; |
7597 | if (this->has_run_configuration()) { |
7598 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
7599 | InternalWriteMessageToArray( |
7600 | 8, _Internal::run_configuration(this), target); |
7601 | } |
7602 | |
7603 | // string name = 9; |
7604 | if (this->name().size() > 0) { |
7605 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
7606 | this->name().data(), static_cast<int>(this->name().length()), |
7607 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
7608 | "tensorflow.TestResults.name" ); |
7609 | target = |
7610 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
7611 | 9, this->name(), target); |
7612 | } |
7613 | |
7614 | // .tensorflow.TestResults.BenchmarkType benchmark_type = 10; |
7615 | if (this->benchmark_type() != 0) { |
7616 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( |
7617 | 10, this->benchmark_type(), target); |
7618 | } |
7619 | |
7620 | // string run_mode = 11; |
7621 | if (this->run_mode().size() > 0) { |
7622 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
7623 | this->run_mode().data(), static_cast<int>(this->run_mode().length()), |
7624 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
7625 | "tensorflow.TestResults.run_mode" ); |
7626 | target = |
7627 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
7628 | 11, this->run_mode(), target); |
7629 | } |
7630 | |
7631 | // string tf_version = 12; |
7632 | if (this->tf_version().size() > 0) { |
7633 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
7634 | this->tf_version().data(), static_cast<int>(this->tf_version().length()), |
7635 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
7636 | "tensorflow.TestResults.tf_version" ); |
7637 | target = |
7638 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
7639 | 12, this->tf_version(), target); |
7640 | } |
7641 | |
7642 | if (_internal_metadata_.have_unknown_fields()) { |
7643 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
7644 | _internal_metadata_.unknown_fields(), target); |
7645 | } |
7646 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.TestResults) |
7647 | return target; |
7648 | } |
7649 | |
7650 | size_t TestResults::ByteSizeLong() const { |
7651 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.TestResults) |
7652 | size_t total_size = 0; |
7653 | |
7654 | if (_internal_metadata_.have_unknown_fields()) { |
7655 | total_size += |
7656 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
7657 | _internal_metadata_.unknown_fields()); |
7658 | } |
7659 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7660 | // Prevent compiler warnings about cached_has_bits being unused |
7661 | (void) cached_has_bits; |
7662 | |
7663 | // string target = 1; |
7664 | if (this->target().size() > 0) { |
7665 | total_size += 1 + |
7666 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
7667 | this->target()); |
7668 | } |
7669 | |
7670 | // string name = 9; |
7671 | if (this->name().size() > 0) { |
7672 | total_size += 1 + |
7673 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
7674 | this->name()); |
7675 | } |
7676 | |
7677 | // string run_mode = 11; |
7678 | if (this->run_mode().size() > 0) { |
7679 | total_size += 1 + |
7680 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
7681 | this->run_mode()); |
7682 | } |
7683 | |
7684 | // string tf_version = 12; |
7685 | if (this->tf_version().size() > 0) { |
7686 | total_size += 1 + |
7687 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
7688 | this->tf_version()); |
7689 | } |
7690 | |
7691 | // .tensorflow.BenchmarkEntries entries = 2; |
7692 | if (this->has_entries()) { |
7693 | total_size += 1 + |
7694 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
7695 | *entries_); |
7696 | } |
7697 | |
7698 | // .tensorflow.BuildConfiguration build_configuration = 3; |
7699 | if (this->has_build_configuration()) { |
7700 | total_size += 1 + |
7701 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
7702 | *build_configuration_); |
7703 | } |
7704 | |
7705 | // .tensorflow.CommitId commit_id = 4; |
7706 | if (this->has_commit_id()) { |
7707 | total_size += 1 + |
7708 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
7709 | *commit_id_); |
7710 | } |
7711 | |
7712 | // .tensorflow.MachineConfiguration machine_configuration = 7; |
7713 | if (this->has_machine_configuration()) { |
7714 | total_size += 1 + |
7715 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
7716 | *machine_configuration_); |
7717 | } |
7718 | |
7719 | // .tensorflow.RunConfiguration run_configuration = 8; |
7720 | if (this->has_run_configuration()) { |
7721 | total_size += 1 + |
7722 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
7723 | *run_configuration_); |
7724 | } |
7725 | |
7726 | // int64 start_time = 5; |
7727 | if (this->start_time() != 0) { |
7728 | total_size += 1 + |
7729 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
7730 | this->start_time()); |
7731 | } |
7732 | |
7733 | // double run_time = 6; |
7734 | if (!(this->run_time() <= 0 && this->run_time() >= 0)) { |
7735 | total_size += 1 + 8; |
7736 | } |
7737 | |
7738 | // .tensorflow.TestResults.BenchmarkType benchmark_type = 10; |
7739 | if (this->benchmark_type() != 0) { |
7740 | total_size += 1 + |
7741 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->benchmark_type()); |
7742 | } |
7743 | |
7744 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
7745 | SetCachedSize(cached_size); |
7746 | return total_size; |
7747 | } |
7748 | |
7749 | void TestResults::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
7750 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.TestResults) |
7751 | GOOGLE_DCHECK_NE(&from, this); |
7752 | const TestResults* source = |
7753 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<TestResults>( |
7754 | &from); |
7755 | if (source == nullptr) { |
7756 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.TestResults) |
7757 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
7758 | } else { |
7759 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.TestResults) |
7760 | MergeFrom(*source); |
7761 | } |
7762 | } |
7763 | |
7764 | void TestResults::MergeFrom(const TestResults& from) { |
7765 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.TestResults) |
7766 | GOOGLE_DCHECK_NE(&from, this); |
7767 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7768 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
7769 | (void) cached_has_bits; |
7770 | |
7771 | if (from.target().size() > 0) { |
7772 | set_target(from.target()); |
7773 | } |
7774 | if (from.name().size() > 0) { |
7775 | set_name(from.name()); |
7776 | } |
7777 | if (from.run_mode().size() > 0) { |
7778 | set_run_mode(from.run_mode()); |
7779 | } |
7780 | if (from.tf_version().size() > 0) { |
7781 | set_tf_version(from.tf_version()); |
7782 | } |
7783 | if (from.has_entries()) { |
7784 | mutable_entries()->::tensorflow::BenchmarkEntries::MergeFrom(from.entries()); |
7785 | } |
7786 | if (from.has_build_configuration()) { |
7787 | mutable_build_configuration()->::tensorflow::BuildConfiguration::MergeFrom(from.build_configuration()); |
7788 | } |
7789 | if (from.has_commit_id()) { |
7790 | mutable_commit_id()->::tensorflow::CommitId::MergeFrom(from.commit_id()); |
7791 | } |
7792 | if (from.has_machine_configuration()) { |
7793 | mutable_machine_configuration()->::tensorflow::MachineConfiguration::MergeFrom(from.machine_configuration()); |
7794 | } |
7795 | if (from.has_run_configuration()) { |
7796 | mutable_run_configuration()->::tensorflow::RunConfiguration::MergeFrom(from.run_configuration()); |
7797 | } |
7798 | if (from.start_time() != 0) { |
7799 | set_start_time(from.start_time()); |
7800 | } |
7801 | if (!(from.run_time() <= 0 && from.run_time() >= 0)) { |
7802 | set_run_time(from.run_time()); |
7803 | } |
7804 | if (from.benchmark_type() != 0) { |
7805 | set_benchmark_type(from.benchmark_type()); |
7806 | } |
7807 | } |
7808 | |
7809 | void TestResults::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
7810 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.TestResults) |
7811 | if (&from == this) return; |
7812 | Clear(); |
7813 | MergeFrom(from); |
7814 | } |
7815 | |
7816 | void TestResults::CopyFrom(const TestResults& from) { |
7817 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.TestResults) |
7818 | if (&from == this) return; |
7819 | Clear(); |
7820 | MergeFrom(from); |
7821 | } |
7822 | |
7823 | bool TestResults::IsInitialized() const { |
7824 | return true; |
7825 | } |
7826 | |
7827 | void TestResults::InternalSwap(TestResults* other) { |
7828 | using std::swap; |
7829 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7830 | target_.Swap(&other->target_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
7831 | GetArenaNoVirtual()); |
7832 | name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
7833 | GetArenaNoVirtual()); |
7834 | run_mode_.Swap(&other->run_mode_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
7835 | GetArenaNoVirtual()); |
7836 | tf_version_.Swap(&other->tf_version_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
7837 | GetArenaNoVirtual()); |
7838 | swap(entries_, other->entries_); |
7839 | swap(build_configuration_, other->build_configuration_); |
7840 | swap(commit_id_, other->commit_id_); |
7841 | swap(machine_configuration_, other->machine_configuration_); |
7842 | swap(run_configuration_, other->run_configuration_); |
7843 | swap(start_time_, other->start_time_); |
7844 | swap(run_time_, other->run_time_); |
7845 | swap(benchmark_type_, other->benchmark_type_); |
7846 | } |
7847 | |
7848 | ::PROTOBUF_NAMESPACE_ID::Metadata TestResults::GetMetadata() const { |
7849 | return GetMetadataStatic(); |
7850 | } |
7851 | |
7852 | |
7853 | // @@protoc_insertion_point(namespace_scope) |
7854 | } // namespace tensorflow |
7855 | PROTOBUF_NAMESPACE_OPEN |
7856 | template<> PROTOBUF_NOINLINE ::tensorflow::EntryValue* Arena::CreateMaybeMessage< ::tensorflow::EntryValue >(Arena* arena) { |
7857 | return Arena::CreateMessageInternal< ::tensorflow::EntryValue >(arena); |
7858 | } |
7859 | template<> PROTOBUF_NOINLINE ::tensorflow::MetricEntry* Arena::CreateMaybeMessage< ::tensorflow::MetricEntry >(Arena* arena) { |
7860 | return Arena::CreateMessageInternal< ::tensorflow::MetricEntry >(arena); |
7861 | } |
7862 | template<> PROTOBUF_NOINLINE ::tensorflow::BenchmarkEntry_ExtrasEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::BenchmarkEntry_ExtrasEntry_DoNotUse >(Arena* arena) { |
7863 | return Arena::CreateMessageInternal< ::tensorflow::BenchmarkEntry_ExtrasEntry_DoNotUse >(arena); |
7864 | } |
7865 | template<> PROTOBUF_NOINLINE ::tensorflow::BenchmarkEntry* Arena::CreateMaybeMessage< ::tensorflow::BenchmarkEntry >(Arena* arena) { |
7866 | return Arena::CreateMessageInternal< ::tensorflow::BenchmarkEntry >(arena); |
7867 | } |
7868 | template<> PROTOBUF_NOINLINE ::tensorflow::BenchmarkEntries* Arena::CreateMaybeMessage< ::tensorflow::BenchmarkEntries >(Arena* arena) { |
7869 | return Arena::CreateMessageInternal< ::tensorflow::BenchmarkEntries >(arena); |
7870 | } |
7871 | template<> PROTOBUF_NOINLINE ::tensorflow::BuildConfiguration* Arena::CreateMaybeMessage< ::tensorflow::BuildConfiguration >(Arena* arena) { |
7872 | return Arena::CreateMessageInternal< ::tensorflow::BuildConfiguration >(arena); |
7873 | } |
7874 | template<> PROTOBUF_NOINLINE ::tensorflow::CommitId* Arena::CreateMaybeMessage< ::tensorflow::CommitId >(Arena* arena) { |
7875 | return Arena::CreateMessageInternal< ::tensorflow::CommitId >(arena); |
7876 | } |
7877 | template<> PROTOBUF_NOINLINE ::tensorflow::CPUInfo_CacheSizeEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::CPUInfo_CacheSizeEntry_DoNotUse >(Arena* arena) { |
7878 | return Arena::CreateMessageInternal< ::tensorflow::CPUInfo_CacheSizeEntry_DoNotUse >(arena); |
7879 | } |
7880 | template<> PROTOBUF_NOINLINE ::tensorflow::CPUInfo* Arena::CreateMaybeMessage< ::tensorflow::CPUInfo >(Arena* arena) { |
7881 | return Arena::CreateMessageInternal< ::tensorflow::CPUInfo >(arena); |
7882 | } |
7883 | template<> PROTOBUF_NOINLINE ::tensorflow::MemoryInfo* Arena::CreateMaybeMessage< ::tensorflow::MemoryInfo >(Arena* arena) { |
7884 | return Arena::CreateMessageInternal< ::tensorflow::MemoryInfo >(arena); |
7885 | } |
7886 | template<> PROTOBUF_NOINLINE ::tensorflow::GPUInfo* Arena::CreateMaybeMessage< ::tensorflow::GPUInfo >(Arena* arena) { |
7887 | return Arena::CreateMessageInternal< ::tensorflow::GPUInfo >(arena); |
7888 | } |
7889 | template<> PROTOBUF_NOINLINE ::tensorflow::PlatformInfo* Arena::CreateMaybeMessage< ::tensorflow::PlatformInfo >(Arena* arena) { |
7890 | return Arena::CreateMessageInternal< ::tensorflow::PlatformInfo >(arena); |
7891 | } |
7892 | template<> PROTOBUF_NOINLINE ::tensorflow::AvailableDeviceInfo* Arena::CreateMaybeMessage< ::tensorflow::AvailableDeviceInfo >(Arena* arena) { |
7893 | return Arena::CreateMessageInternal< ::tensorflow::AvailableDeviceInfo >(arena); |
7894 | } |
7895 | template<> PROTOBUF_NOINLINE ::tensorflow::MachineConfiguration* Arena::CreateMaybeMessage< ::tensorflow::MachineConfiguration >(Arena* arena) { |
7896 | return Arena::CreateMessageInternal< ::tensorflow::MachineConfiguration >(arena); |
7897 | } |
7898 | template<> PROTOBUF_NOINLINE ::tensorflow::RunConfiguration_EnvVarsEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::RunConfiguration_EnvVarsEntry_DoNotUse >(Arena* arena) { |
7899 | return Arena::CreateMessageInternal< ::tensorflow::RunConfiguration_EnvVarsEntry_DoNotUse >(arena); |
7900 | } |
7901 | template<> PROTOBUF_NOINLINE ::tensorflow::RunConfiguration* Arena::CreateMaybeMessage< ::tensorflow::RunConfiguration >(Arena* arena) { |
7902 | return Arena::CreateMessageInternal< ::tensorflow::RunConfiguration >(arena); |
7903 | } |
7904 | template<> PROTOBUF_NOINLINE ::tensorflow::TestResults* Arena::CreateMaybeMessage< ::tensorflow::TestResults >(Arena* arena) { |
7905 | return Arena::CreateMessageInternal< ::tensorflow::TestResults >(arena); |
7906 | } |
7907 | PROTOBUF_NAMESPACE_CLOSE |
7908 | |
7909 | // @@protoc_insertion_point(global_scope) |
7910 | #include <google/protobuf/port_undef.inc> |
7911 | |