1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/profiler/profiler_analysis.proto |
3 | |
4 | #include "tensorflow/core/profiler/profiler_analysis.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_tensorflow_2fcore_2fprofiler_2fprofiler_5fservice_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ProfileRequest_tensorflow_2fcore_2fprofiler_2fprofiler_5fservice_2eproto; |
19 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ProfileSessionDataRequest_ParametersEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto; |
20 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ProfileSessionInfo_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto; |
21 | namespace tensorflow { |
22 | class NewProfileSessionRequestDefaultTypeInternal { |
23 | public: |
24 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<NewProfileSessionRequest> _instance; |
25 | } _NewProfileSessionRequest_default_instance_; |
26 | class NewProfileSessionResponseDefaultTypeInternal { |
27 | public: |
28 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<NewProfileSessionResponse> _instance; |
29 | } _NewProfileSessionResponse_default_instance_; |
30 | class EnumProfileSessionsAndToolsRequestDefaultTypeInternal { |
31 | public: |
32 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<EnumProfileSessionsAndToolsRequest> _instance; |
33 | } _EnumProfileSessionsAndToolsRequest_default_instance_; |
34 | class ProfileSessionInfoDefaultTypeInternal { |
35 | public: |
36 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ProfileSessionInfo> _instance; |
37 | } _ProfileSessionInfo_default_instance_; |
38 | class EnumProfileSessionsAndToolsResponseDefaultTypeInternal { |
39 | public: |
40 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<EnumProfileSessionsAndToolsResponse> _instance; |
41 | } _EnumProfileSessionsAndToolsResponse_default_instance_; |
42 | class ProfileSessionDataRequest_ParametersEntry_DoNotUseDefaultTypeInternal { |
43 | public: |
44 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ProfileSessionDataRequest_ParametersEntry_DoNotUse> _instance; |
45 | } _ProfileSessionDataRequest_ParametersEntry_DoNotUse_default_instance_; |
46 | class ProfileSessionDataRequestDefaultTypeInternal { |
47 | public: |
48 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ProfileSessionDataRequest> _instance; |
49 | } _ProfileSessionDataRequest_default_instance_; |
50 | class ProfileSessionDataResponseDefaultTypeInternal { |
51 | public: |
52 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ProfileSessionDataResponse> _instance; |
53 | } _ProfileSessionDataResponse_default_instance_; |
54 | } // namespace tensorflow |
55 | static void InitDefaultsscc_info_EnumProfileSessionsAndToolsRequest_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto() { |
56 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
57 | |
58 | { |
59 | void* ptr = &::tensorflow::_EnumProfileSessionsAndToolsRequest_default_instance_; |
60 | new (ptr) ::tensorflow::EnumProfileSessionsAndToolsRequest(); |
61 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
62 | } |
63 | ::tensorflow::EnumProfileSessionsAndToolsRequest::InitAsDefaultInstance(); |
64 | } |
65 | |
66 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_EnumProfileSessionsAndToolsRequest_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto = |
67 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_EnumProfileSessionsAndToolsRequest_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto}, {}}; |
68 | |
69 | static void InitDefaultsscc_info_EnumProfileSessionsAndToolsResponse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto() { |
70 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
71 | |
72 | { |
73 | void* ptr = &::tensorflow::_EnumProfileSessionsAndToolsResponse_default_instance_; |
74 | new (ptr) ::tensorflow::EnumProfileSessionsAndToolsResponse(); |
75 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
76 | } |
77 | ::tensorflow::EnumProfileSessionsAndToolsResponse::InitAsDefaultInstance(); |
78 | } |
79 | |
80 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EnumProfileSessionsAndToolsResponse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto = |
81 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_EnumProfileSessionsAndToolsResponse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto}, { |
82 | &scc_info_ProfileSessionInfo_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base,}}; |
83 | |
84 | static void InitDefaultsscc_info_NewProfileSessionRequest_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto() { |
85 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
86 | |
87 | { |
88 | void* ptr = &::tensorflow::_NewProfileSessionRequest_default_instance_; |
89 | new (ptr) ::tensorflow::NewProfileSessionRequest(); |
90 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
91 | } |
92 | ::tensorflow::NewProfileSessionRequest::InitAsDefaultInstance(); |
93 | } |
94 | |
95 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_NewProfileSessionRequest_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto = |
96 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_NewProfileSessionRequest_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto}, { |
97 | &scc_info_ProfileRequest_tensorflow_2fcore_2fprofiler_2fprofiler_5fservice_2eproto.base,}}; |
98 | |
99 | static void InitDefaultsscc_info_NewProfileSessionResponse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto() { |
100 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
101 | |
102 | { |
103 | void* ptr = &::tensorflow::_NewProfileSessionResponse_default_instance_; |
104 | new (ptr) ::tensorflow::NewProfileSessionResponse(); |
105 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
106 | } |
107 | ::tensorflow::NewProfileSessionResponse::InitAsDefaultInstance(); |
108 | } |
109 | |
110 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_NewProfileSessionResponse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto = |
111 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_NewProfileSessionResponse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto}, {}}; |
112 | |
113 | static void InitDefaultsscc_info_ProfileSessionDataRequest_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto() { |
114 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
115 | |
116 | { |
117 | void* ptr = &::tensorflow::_ProfileSessionDataRequest_default_instance_; |
118 | new (ptr) ::tensorflow::ProfileSessionDataRequest(); |
119 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
120 | } |
121 | ::tensorflow::ProfileSessionDataRequest::InitAsDefaultInstance(); |
122 | } |
123 | |
124 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ProfileSessionDataRequest_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto = |
125 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ProfileSessionDataRequest_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto}, { |
126 | &scc_info_ProfileSessionDataRequest_ParametersEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base,}}; |
127 | |
128 | static void InitDefaultsscc_info_ProfileSessionDataRequest_ParametersEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto() { |
129 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
130 | |
131 | { |
132 | void* ptr = &::tensorflow::_ProfileSessionDataRequest_ParametersEntry_DoNotUse_default_instance_; |
133 | new (ptr) ::tensorflow::ProfileSessionDataRequest_ParametersEntry_DoNotUse(); |
134 | } |
135 | ::tensorflow::ProfileSessionDataRequest_ParametersEntry_DoNotUse::InitAsDefaultInstance(); |
136 | } |
137 | |
138 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ProfileSessionDataRequest_ParametersEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto = |
139 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ProfileSessionDataRequest_ParametersEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto}, {}}; |
140 | |
141 | static void InitDefaultsscc_info_ProfileSessionDataResponse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto() { |
142 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
143 | |
144 | { |
145 | void* ptr = &::tensorflow::_ProfileSessionDataResponse_default_instance_; |
146 | new (ptr) ::tensorflow::ProfileSessionDataResponse(); |
147 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
148 | } |
149 | ::tensorflow::ProfileSessionDataResponse::InitAsDefaultInstance(); |
150 | } |
151 | |
152 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ProfileSessionDataResponse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto = |
153 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ProfileSessionDataResponse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto}, {}}; |
154 | |
155 | static void InitDefaultsscc_info_ProfileSessionInfo_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto() { |
156 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
157 | |
158 | { |
159 | void* ptr = &::tensorflow::_ProfileSessionInfo_default_instance_; |
160 | new (ptr) ::tensorflow::ProfileSessionInfo(); |
161 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
162 | } |
163 | ::tensorflow::ProfileSessionInfo::InitAsDefaultInstance(); |
164 | } |
165 | |
166 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ProfileSessionInfo_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto = |
167 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ProfileSessionInfo_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto}, {}}; |
168 | |
169 | static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto[8]; |
170 | static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto = nullptr; |
171 | static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto = nullptr; |
172 | |
173 | const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
174 | ~0u, // no _has_bits_ |
175 | PROTOBUF_FIELD_OFFSET(::tensorflow::NewProfileSessionRequest, _internal_metadata_), |
176 | ~0u, // no _extensions_ |
177 | ~0u, // no _oneof_case_ |
178 | ~0u, // no _weak_field_map_ |
179 | PROTOBUF_FIELD_OFFSET(::tensorflow::NewProfileSessionRequest, request_), |
180 | PROTOBUF_FIELD_OFFSET(::tensorflow::NewProfileSessionRequest, repository_root_), |
181 | PROTOBUF_FIELD_OFFSET(::tensorflow::NewProfileSessionRequest, hosts_), |
182 | PROTOBUF_FIELD_OFFSET(::tensorflow::NewProfileSessionRequest, session_id_), |
183 | ~0u, // no _has_bits_ |
184 | PROTOBUF_FIELD_OFFSET(::tensorflow::NewProfileSessionResponse, _internal_metadata_), |
185 | ~0u, // no _extensions_ |
186 | ~0u, // no _oneof_case_ |
187 | ~0u, // no _weak_field_map_ |
188 | PROTOBUF_FIELD_OFFSET(::tensorflow::NewProfileSessionResponse, error_message_), |
189 | PROTOBUF_FIELD_OFFSET(::tensorflow::NewProfileSessionResponse, empty_trace_), |
190 | ~0u, // no _has_bits_ |
191 | PROTOBUF_FIELD_OFFSET(::tensorflow::EnumProfileSessionsAndToolsRequest, _internal_metadata_), |
192 | ~0u, // no _extensions_ |
193 | ~0u, // no _oneof_case_ |
194 | ~0u, // no _weak_field_map_ |
195 | PROTOBUF_FIELD_OFFSET(::tensorflow::EnumProfileSessionsAndToolsRequest, repository_root_), |
196 | ~0u, // no _has_bits_ |
197 | PROTOBUF_FIELD_OFFSET(::tensorflow::ProfileSessionInfo, _internal_metadata_), |
198 | ~0u, // no _extensions_ |
199 | ~0u, // no _oneof_case_ |
200 | ~0u, // no _weak_field_map_ |
201 | PROTOBUF_FIELD_OFFSET(::tensorflow::ProfileSessionInfo, session_id_), |
202 | PROTOBUF_FIELD_OFFSET(::tensorflow::ProfileSessionInfo, available_tools_), |
203 | ~0u, // no _has_bits_ |
204 | PROTOBUF_FIELD_OFFSET(::tensorflow::EnumProfileSessionsAndToolsResponse, _internal_metadata_), |
205 | ~0u, // no _extensions_ |
206 | ~0u, // no _oneof_case_ |
207 | ~0u, // no _weak_field_map_ |
208 | PROTOBUF_FIELD_OFFSET(::tensorflow::EnumProfileSessionsAndToolsResponse, error_message_), |
209 | PROTOBUF_FIELD_OFFSET(::tensorflow::EnumProfileSessionsAndToolsResponse, sessions_), |
210 | PROTOBUF_FIELD_OFFSET(::tensorflow::ProfileSessionDataRequest_ParametersEntry_DoNotUse, _has_bits_), |
211 | PROTOBUF_FIELD_OFFSET(::tensorflow::ProfileSessionDataRequest_ParametersEntry_DoNotUse, _internal_metadata_), |
212 | ~0u, // no _extensions_ |
213 | ~0u, // no _oneof_case_ |
214 | ~0u, // no _weak_field_map_ |
215 | PROTOBUF_FIELD_OFFSET(::tensorflow::ProfileSessionDataRequest_ParametersEntry_DoNotUse, key_), |
216 | PROTOBUF_FIELD_OFFSET(::tensorflow::ProfileSessionDataRequest_ParametersEntry_DoNotUse, value_), |
217 | 0, |
218 | 1, |
219 | ~0u, // no _has_bits_ |
220 | PROTOBUF_FIELD_OFFSET(::tensorflow::ProfileSessionDataRequest, _internal_metadata_), |
221 | ~0u, // no _extensions_ |
222 | ~0u, // no _oneof_case_ |
223 | ~0u, // no _weak_field_map_ |
224 | PROTOBUF_FIELD_OFFSET(::tensorflow::ProfileSessionDataRequest, repository_root_), |
225 | PROTOBUF_FIELD_OFFSET(::tensorflow::ProfileSessionDataRequest, session_id_), |
226 | PROTOBUF_FIELD_OFFSET(::tensorflow::ProfileSessionDataRequest, host_name_), |
227 | PROTOBUF_FIELD_OFFSET(::tensorflow::ProfileSessionDataRequest, tool_name_), |
228 | PROTOBUF_FIELD_OFFSET(::tensorflow::ProfileSessionDataRequest, parameters_), |
229 | ~0u, // no _has_bits_ |
230 | PROTOBUF_FIELD_OFFSET(::tensorflow::ProfileSessionDataResponse, _internal_metadata_), |
231 | ~0u, // no _extensions_ |
232 | ~0u, // no _oneof_case_ |
233 | ~0u, // no _weak_field_map_ |
234 | PROTOBUF_FIELD_OFFSET(::tensorflow::ProfileSessionDataResponse, error_message_), |
235 | PROTOBUF_FIELD_OFFSET(::tensorflow::ProfileSessionDataResponse, output_format_), |
236 | PROTOBUF_FIELD_OFFSET(::tensorflow::ProfileSessionDataResponse, output_), |
237 | }; |
238 | static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
239 | { 0, -1, sizeof(::tensorflow::NewProfileSessionRequest)}, |
240 | { 9, -1, sizeof(::tensorflow::NewProfileSessionResponse)}, |
241 | { 16, -1, sizeof(::tensorflow::EnumProfileSessionsAndToolsRequest)}, |
242 | { 22, -1, sizeof(::tensorflow::ProfileSessionInfo)}, |
243 | { 29, -1, sizeof(::tensorflow::EnumProfileSessionsAndToolsResponse)}, |
244 | { 36, 43, sizeof(::tensorflow::ProfileSessionDataRequest_ParametersEntry_DoNotUse)}, |
245 | { 45, -1, sizeof(::tensorflow::ProfileSessionDataRequest)}, |
246 | { 55, -1, sizeof(::tensorflow::ProfileSessionDataResponse)}, |
247 | }; |
248 | |
249 | static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { |
250 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_NewProfileSessionRequest_default_instance_), |
251 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_NewProfileSessionResponse_default_instance_), |
252 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_EnumProfileSessionsAndToolsRequest_default_instance_), |
253 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ProfileSessionInfo_default_instance_), |
254 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_EnumProfileSessionsAndToolsResponse_default_instance_), |
255 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ProfileSessionDataRequest_ParametersEntry_DoNotUse_default_instance_), |
256 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ProfileSessionDataRequest_default_instance_), |
257 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ProfileSessionDataResponse_default_instance_), |
258 | }; |
259 | |
260 | const char descriptor_table_protodef_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
261 | "\n0tensorflow/core/profiler/profiler_anal" |
262 | "ysis.proto\022\ntensorflow\032/tensorflow/core/" |
263 | "profiler/profiler_service.proto\"\203\001\n\030NewP" |
264 | "rofileSessionRequest\022+\n\007request\030\001 \001(\0132\032." |
265 | "tensorflow.ProfileRequest\022\027\n\017repository_" |
266 | "root\030\002 \001(\t\022\r\n\005hosts\030\003 \003(\t\022\022\n\nsession_id\030" |
267 | "\004 \001(\t\"G\n\031NewProfileSessionResponse\022\025\n\rer" |
268 | "ror_message\030\001 \001(\t\022\023\n\013empty_trace\030\002 \001(\010\"=" |
269 | "\n\"EnumProfileSessionsAndToolsRequest\022\027\n\017" |
270 | "repository_root\030\001 \001(\t\"A\n\022ProfileSessionI" |
271 | "nfo\022\022\n\nsession_id\030\001 \001(\t\022\027\n\017available_too" |
272 | "ls\030\002 \003(\t\"n\n#EnumProfileSessionsAndToolsR" |
273 | "esponse\022\025\n\rerror_message\030\001 \001(\t\0220\n\010sessio" |
274 | "ns\030\002 \003(\0132\036.tensorflow.ProfileSessionInfo" |
275 | "\"\354\001\n\031ProfileSessionDataRequest\022\027\n\017reposi" |
276 | "tory_root\030\001 \001(\t\022\022\n\nsession_id\030\002 \001(\t\022\021\n\th" |
277 | "ost_name\030\005 \001(\t\022\021\n\ttool_name\030\003 \001(\t\022I\n\npar" |
278 | "ameters\030\004 \003(\01325.tensorflow.ProfileSessio" |
279 | "nDataRequest.ParametersEntry\0321\n\017Paramete" |
280 | "rsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" |
281 | "Z\n\032ProfileSessionDataResponse\022\025\n\rerror_m" |
282 | "essage\030\001 \001(\t\022\025\n\routput_format\030\002 \001(\t\022\016\n\006o" |
283 | "utput\030\003 \001(\0142\310\002\n\017ProfileAnalysis\022[\n\nNewSe" |
284 | "ssion\022$.tensorflow.NewProfileSessionRequ" |
285 | "est\032%.tensorflow.NewProfileSessionRespon" |
286 | "se\"\000\022q\n\014EnumSessions\022..tensorflow.EnumPr" |
287 | "ofileSessionsAndToolsRequest\032/.tensorflo" |
288 | "w.EnumProfileSessionsAndToolsResponse\"\000\022" |
289 | "e\n\022GetSessionToolData\022%.tensorflow.Profi" |
290 | "leSessionDataRequest\032&.tensorflow.Profil" |
291 | "eSessionDataResponse\"\000b\006proto3" |
292 | ; |
293 | static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto_deps[1] = { |
294 | &::descriptor_table_tensorflow_2fcore_2fprofiler_2fprofiler_5fservice_2eproto, |
295 | }; |
296 | static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto_sccs[8] = { |
297 | &scc_info_EnumProfileSessionsAndToolsRequest_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base, |
298 | &scc_info_EnumProfileSessionsAndToolsResponse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base, |
299 | &scc_info_NewProfileSessionRequest_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base, |
300 | &scc_info_NewProfileSessionResponse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base, |
301 | &scc_info_ProfileSessionDataRequest_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base, |
302 | &scc_info_ProfileSessionDataRequest_ParametersEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base, |
303 | &scc_info_ProfileSessionDataResponse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base, |
304 | &scc_info_ProfileSessionInfo_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base, |
305 | }; |
306 | static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto_once; |
307 | static bool descriptor_table_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto_initialized = false; |
308 | const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto = { |
309 | &descriptor_table_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto, "tensorflow/core/profiler/profiler_analysis.proto" , 1230, |
310 | &descriptor_table_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto_once, descriptor_table_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto_deps, 8, 1, |
311 | schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto::offsets, |
312 | file_level_metadata_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto, 8, file_level_enum_descriptors_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto, |
313 | }; |
314 | |
315 | // Force running AddDescriptors() at dynamic initialization time. |
316 | static bool dynamic_init_dummy_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto), true); |
317 | namespace tensorflow { |
318 | |
319 | // =================================================================== |
320 | |
321 | void NewProfileSessionRequest::InitAsDefaultInstance() { |
322 | ::tensorflow::_NewProfileSessionRequest_default_instance_._instance.get_mutable()->request_ = const_cast< ::tensorflow::ProfileRequest*>( |
323 | ::tensorflow::ProfileRequest::internal_default_instance()); |
324 | } |
325 | class NewProfileSessionRequest::_Internal { |
326 | public: |
327 | static const ::tensorflow::ProfileRequest& request(const NewProfileSessionRequest* msg); |
328 | }; |
329 | |
330 | const ::tensorflow::ProfileRequest& |
331 | NewProfileSessionRequest::_Internal::request(const NewProfileSessionRequest* msg) { |
332 | return *msg->request_; |
333 | } |
334 | void NewProfileSessionRequest::clear_request() { |
335 | if (GetArenaNoVirtual() == nullptr && request_ != nullptr) { |
336 | delete request_; |
337 | } |
338 | request_ = nullptr; |
339 | } |
340 | NewProfileSessionRequest::NewProfileSessionRequest() |
341 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
342 | SharedCtor(); |
343 | // @@protoc_insertion_point(constructor:tensorflow.NewProfileSessionRequest) |
344 | } |
345 | NewProfileSessionRequest::NewProfileSessionRequest(const NewProfileSessionRequest& from) |
346 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
347 | _internal_metadata_(nullptr), |
348 | hosts_(from.hosts_) { |
349 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
350 | repository_root_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
351 | if (!from.repository_root().empty()) { |
352 | repository_root_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.repository_root_); |
353 | } |
354 | session_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
355 | if (!from.session_id().empty()) { |
356 | session_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_id_); |
357 | } |
358 | if (from.has_request()) { |
359 | request_ = new ::tensorflow::ProfileRequest(*from.request_); |
360 | } else { |
361 | request_ = nullptr; |
362 | } |
363 | // @@protoc_insertion_point(copy_constructor:tensorflow.NewProfileSessionRequest) |
364 | } |
365 | |
366 | void NewProfileSessionRequest::SharedCtor() { |
367 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_NewProfileSessionRequest_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base); |
368 | repository_root_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
369 | session_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
370 | request_ = nullptr; |
371 | } |
372 | |
373 | NewProfileSessionRequest::~NewProfileSessionRequest() { |
374 | // @@protoc_insertion_point(destructor:tensorflow.NewProfileSessionRequest) |
375 | SharedDtor(); |
376 | } |
377 | |
378 | void NewProfileSessionRequest::SharedDtor() { |
379 | repository_root_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
380 | session_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
381 | if (this != internal_default_instance()) delete request_; |
382 | } |
383 | |
384 | void NewProfileSessionRequest::SetCachedSize(int size) const { |
385 | _cached_size_.Set(size); |
386 | } |
387 | const NewProfileSessionRequest& NewProfileSessionRequest::default_instance() { |
388 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_NewProfileSessionRequest_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base); |
389 | return *internal_default_instance(); |
390 | } |
391 | |
392 | |
393 | void NewProfileSessionRequest::Clear() { |
394 | // @@protoc_insertion_point(message_clear_start:tensorflow.NewProfileSessionRequest) |
395 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
396 | // Prevent compiler warnings about cached_has_bits being unused |
397 | (void) cached_has_bits; |
398 | |
399 | hosts_.Clear(); |
400 | repository_root_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
401 | session_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
402 | if (GetArenaNoVirtual() == nullptr && request_ != nullptr) { |
403 | delete request_; |
404 | } |
405 | request_ = nullptr; |
406 | _internal_metadata_.Clear(); |
407 | } |
408 | |
409 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
410 | const char* NewProfileSessionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
411 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
412 | while (!ctx->Done(&ptr)) { |
413 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
414 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
415 | CHK_(ptr); |
416 | switch (tag >> 3) { |
417 | // .tensorflow.ProfileRequest request = 1; |
418 | case 1: |
419 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
420 | ptr = ctx->ParseMessage(mutable_request(), ptr); |
421 | CHK_(ptr); |
422 | } else goto handle_unusual; |
423 | continue; |
424 | // string repository_root = 2; |
425 | case 2: |
426 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
427 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_repository_root(), ptr, ctx, "tensorflow.NewProfileSessionRequest.repository_root" ); |
428 | CHK_(ptr); |
429 | } else goto handle_unusual; |
430 | continue; |
431 | // repeated string hosts = 3; |
432 | case 3: |
433 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
434 | ptr -= 1; |
435 | do { |
436 | ptr += 1; |
437 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_hosts(), ptr, ctx, "tensorflow.NewProfileSessionRequest.hosts" ); |
438 | CHK_(ptr); |
439 | if (!ctx->DataAvailable(ptr)) break; |
440 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); |
441 | } else goto handle_unusual; |
442 | continue; |
443 | // string session_id = 4; |
444 | case 4: |
445 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
446 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_session_id(), ptr, ctx, "tensorflow.NewProfileSessionRequest.session_id" ); |
447 | CHK_(ptr); |
448 | } else goto handle_unusual; |
449 | continue; |
450 | default: { |
451 | handle_unusual: |
452 | if ((tag & 7) == 4 || tag == 0) { |
453 | ctx->SetLastTag(tag); |
454 | goto success; |
455 | } |
456 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
457 | CHK_(ptr != nullptr); |
458 | continue; |
459 | } |
460 | } // switch |
461 | } // while |
462 | success: |
463 | return ptr; |
464 | failure: |
465 | ptr = nullptr; |
466 | goto success; |
467 | #undef CHK_ |
468 | } |
469 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
470 | bool NewProfileSessionRequest::MergePartialFromCodedStream( |
471 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
472 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
473 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
474 | // @@protoc_insertion_point(parse_start:tensorflow.NewProfileSessionRequest) |
475 | for (;;) { |
476 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
477 | tag = p.first; |
478 | if (!p.second) goto handle_unusual; |
479 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
480 | // .tensorflow.ProfileRequest request = 1; |
481 | case 1: { |
482 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
483 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
484 | input, mutable_request())); |
485 | } else { |
486 | goto handle_unusual; |
487 | } |
488 | break; |
489 | } |
490 | |
491 | // string repository_root = 2; |
492 | case 2: { |
493 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
494 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
495 | input, this->mutable_repository_root())); |
496 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
497 | this->repository_root().data(), static_cast<int>(this->repository_root().length()), |
498 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
499 | "tensorflow.NewProfileSessionRequest.repository_root" )); |
500 | } else { |
501 | goto handle_unusual; |
502 | } |
503 | break; |
504 | } |
505 | |
506 | // repeated string hosts = 3; |
507 | case 3: { |
508 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
509 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
510 | input, this->add_hosts())); |
511 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
512 | this->hosts(this->hosts_size() - 1).data(), |
513 | static_cast<int>(this->hosts(this->hosts_size() - 1).length()), |
514 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
515 | "tensorflow.NewProfileSessionRequest.hosts" )); |
516 | } else { |
517 | goto handle_unusual; |
518 | } |
519 | break; |
520 | } |
521 | |
522 | // string session_id = 4; |
523 | case 4: { |
524 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
525 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
526 | input, this->mutable_session_id())); |
527 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
528 | this->session_id().data(), static_cast<int>(this->session_id().length()), |
529 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
530 | "tensorflow.NewProfileSessionRequest.session_id" )); |
531 | } else { |
532 | goto handle_unusual; |
533 | } |
534 | break; |
535 | } |
536 | |
537 | default: { |
538 | handle_unusual: |
539 | if (tag == 0) { |
540 | goto success; |
541 | } |
542 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
543 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
544 | break; |
545 | } |
546 | } |
547 | } |
548 | success: |
549 | // @@protoc_insertion_point(parse_success:tensorflow.NewProfileSessionRequest) |
550 | return true; |
551 | failure: |
552 | // @@protoc_insertion_point(parse_failure:tensorflow.NewProfileSessionRequest) |
553 | return false; |
554 | #undef DO_ |
555 | } |
556 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
557 | |
558 | void NewProfileSessionRequest::SerializeWithCachedSizes( |
559 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
560 | // @@protoc_insertion_point(serialize_start:tensorflow.NewProfileSessionRequest) |
561 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
562 | (void) cached_has_bits; |
563 | |
564 | // .tensorflow.ProfileRequest request = 1; |
565 | if (this->has_request()) { |
566 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
567 | 1, _Internal::request(this), output); |
568 | } |
569 | |
570 | // string repository_root = 2; |
571 | if (this->repository_root().size() > 0) { |
572 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
573 | this->repository_root().data(), static_cast<int>(this->repository_root().length()), |
574 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
575 | "tensorflow.NewProfileSessionRequest.repository_root" ); |
576 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
577 | 2, this->repository_root(), output); |
578 | } |
579 | |
580 | // repeated string hosts = 3; |
581 | for (int i = 0, n = this->hosts_size(); i < n; i++) { |
582 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
583 | this->hosts(i).data(), static_cast<int>(this->hosts(i).length()), |
584 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
585 | "tensorflow.NewProfileSessionRequest.hosts" ); |
586 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( |
587 | 3, this->hosts(i), output); |
588 | } |
589 | |
590 | // string session_id = 4; |
591 | if (this->session_id().size() > 0) { |
592 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
593 | this->session_id().data(), static_cast<int>(this->session_id().length()), |
594 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
595 | "tensorflow.NewProfileSessionRequest.session_id" ); |
596 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
597 | 4, this->session_id(), output); |
598 | } |
599 | |
600 | if (_internal_metadata_.have_unknown_fields()) { |
601 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
602 | _internal_metadata_.unknown_fields(), output); |
603 | } |
604 | // @@protoc_insertion_point(serialize_end:tensorflow.NewProfileSessionRequest) |
605 | } |
606 | |
607 | ::PROTOBUF_NAMESPACE_ID::uint8* NewProfileSessionRequest::InternalSerializeWithCachedSizesToArray( |
608 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
609 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.NewProfileSessionRequest) |
610 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
611 | (void) cached_has_bits; |
612 | |
613 | // .tensorflow.ProfileRequest request = 1; |
614 | if (this->has_request()) { |
615 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
616 | InternalWriteMessageToArray( |
617 | 1, _Internal::request(this), target); |
618 | } |
619 | |
620 | // string repository_root = 2; |
621 | if (this->repository_root().size() > 0) { |
622 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
623 | this->repository_root().data(), static_cast<int>(this->repository_root().length()), |
624 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
625 | "tensorflow.NewProfileSessionRequest.repository_root" ); |
626 | target = |
627 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
628 | 2, this->repository_root(), target); |
629 | } |
630 | |
631 | // repeated string hosts = 3; |
632 | for (int i = 0, n = this->hosts_size(); i < n; i++) { |
633 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
634 | this->hosts(i).data(), static_cast<int>(this->hosts(i).length()), |
635 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
636 | "tensorflow.NewProfileSessionRequest.hosts" ); |
637 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
638 | WriteStringToArray(3, this->hosts(i), target); |
639 | } |
640 | |
641 | // string session_id = 4; |
642 | if (this->session_id().size() > 0) { |
643 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
644 | this->session_id().data(), static_cast<int>(this->session_id().length()), |
645 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
646 | "tensorflow.NewProfileSessionRequest.session_id" ); |
647 | target = |
648 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
649 | 4, this->session_id(), target); |
650 | } |
651 | |
652 | if (_internal_metadata_.have_unknown_fields()) { |
653 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
654 | _internal_metadata_.unknown_fields(), target); |
655 | } |
656 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.NewProfileSessionRequest) |
657 | return target; |
658 | } |
659 | |
660 | size_t NewProfileSessionRequest::ByteSizeLong() const { |
661 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.NewProfileSessionRequest) |
662 | size_t total_size = 0; |
663 | |
664 | if (_internal_metadata_.have_unknown_fields()) { |
665 | total_size += |
666 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
667 | _internal_metadata_.unknown_fields()); |
668 | } |
669 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
670 | // Prevent compiler warnings about cached_has_bits being unused |
671 | (void) cached_has_bits; |
672 | |
673 | // repeated string hosts = 3; |
674 | total_size += 1 * |
675 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->hosts_size()); |
676 | for (int i = 0, n = this->hosts_size(); i < n; i++) { |
677 | total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
678 | this->hosts(i)); |
679 | } |
680 | |
681 | // string repository_root = 2; |
682 | if (this->repository_root().size() > 0) { |
683 | total_size += 1 + |
684 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
685 | this->repository_root()); |
686 | } |
687 | |
688 | // string session_id = 4; |
689 | if (this->session_id().size() > 0) { |
690 | total_size += 1 + |
691 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
692 | this->session_id()); |
693 | } |
694 | |
695 | // .tensorflow.ProfileRequest request = 1; |
696 | if (this->has_request()) { |
697 | total_size += 1 + |
698 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
699 | *request_); |
700 | } |
701 | |
702 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
703 | SetCachedSize(cached_size); |
704 | return total_size; |
705 | } |
706 | |
707 | void NewProfileSessionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
708 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.NewProfileSessionRequest) |
709 | GOOGLE_DCHECK_NE(&from, this); |
710 | const NewProfileSessionRequest* source = |
711 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<NewProfileSessionRequest>( |
712 | &from); |
713 | if (source == nullptr) { |
714 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.NewProfileSessionRequest) |
715 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
716 | } else { |
717 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.NewProfileSessionRequest) |
718 | MergeFrom(*source); |
719 | } |
720 | } |
721 | |
722 | void NewProfileSessionRequest::MergeFrom(const NewProfileSessionRequest& from) { |
723 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.NewProfileSessionRequest) |
724 | GOOGLE_DCHECK_NE(&from, this); |
725 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
726 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
727 | (void) cached_has_bits; |
728 | |
729 | hosts_.MergeFrom(from.hosts_); |
730 | if (from.repository_root().size() > 0) { |
731 | |
732 | repository_root_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.repository_root_); |
733 | } |
734 | if (from.session_id().size() > 0) { |
735 | |
736 | session_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_id_); |
737 | } |
738 | if (from.has_request()) { |
739 | mutable_request()->::tensorflow::ProfileRequest::MergeFrom(from.request()); |
740 | } |
741 | } |
742 | |
743 | void NewProfileSessionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
744 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.NewProfileSessionRequest) |
745 | if (&from == this) return; |
746 | Clear(); |
747 | MergeFrom(from); |
748 | } |
749 | |
750 | void NewProfileSessionRequest::CopyFrom(const NewProfileSessionRequest& from) { |
751 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.NewProfileSessionRequest) |
752 | if (&from == this) return; |
753 | Clear(); |
754 | MergeFrom(from); |
755 | } |
756 | |
757 | bool NewProfileSessionRequest::IsInitialized() const { |
758 | return true; |
759 | } |
760 | |
761 | void NewProfileSessionRequest::InternalSwap(NewProfileSessionRequest* other) { |
762 | using std::swap; |
763 | _internal_metadata_.Swap(&other->_internal_metadata_); |
764 | hosts_.InternalSwap(CastToBase(&other->hosts_)); |
765 | repository_root_.Swap(&other->repository_root_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
766 | GetArenaNoVirtual()); |
767 | session_id_.Swap(&other->session_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
768 | GetArenaNoVirtual()); |
769 | swap(request_, other->request_); |
770 | } |
771 | |
772 | ::PROTOBUF_NAMESPACE_ID::Metadata NewProfileSessionRequest::GetMetadata() const { |
773 | return GetMetadataStatic(); |
774 | } |
775 | |
776 | |
777 | // =================================================================== |
778 | |
779 | void NewProfileSessionResponse::InitAsDefaultInstance() { |
780 | } |
781 | class NewProfileSessionResponse::_Internal { |
782 | public: |
783 | }; |
784 | |
785 | NewProfileSessionResponse::NewProfileSessionResponse() |
786 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
787 | SharedCtor(); |
788 | // @@protoc_insertion_point(constructor:tensorflow.NewProfileSessionResponse) |
789 | } |
790 | NewProfileSessionResponse::NewProfileSessionResponse(const NewProfileSessionResponse& from) |
791 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
792 | _internal_metadata_(nullptr) { |
793 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
794 | error_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
795 | if (!from.error_message().empty()) { |
796 | error_message_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.error_message_); |
797 | } |
798 | empty_trace_ = from.empty_trace_; |
799 | // @@protoc_insertion_point(copy_constructor:tensorflow.NewProfileSessionResponse) |
800 | } |
801 | |
802 | void NewProfileSessionResponse::SharedCtor() { |
803 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_NewProfileSessionResponse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base); |
804 | error_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
805 | empty_trace_ = false; |
806 | } |
807 | |
808 | NewProfileSessionResponse::~NewProfileSessionResponse() { |
809 | // @@protoc_insertion_point(destructor:tensorflow.NewProfileSessionResponse) |
810 | SharedDtor(); |
811 | } |
812 | |
813 | void NewProfileSessionResponse::SharedDtor() { |
814 | error_message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
815 | } |
816 | |
817 | void NewProfileSessionResponse::SetCachedSize(int size) const { |
818 | _cached_size_.Set(size); |
819 | } |
820 | const NewProfileSessionResponse& NewProfileSessionResponse::default_instance() { |
821 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_NewProfileSessionResponse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base); |
822 | return *internal_default_instance(); |
823 | } |
824 | |
825 | |
826 | void NewProfileSessionResponse::Clear() { |
827 | // @@protoc_insertion_point(message_clear_start:tensorflow.NewProfileSessionResponse) |
828 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
829 | // Prevent compiler warnings about cached_has_bits being unused |
830 | (void) cached_has_bits; |
831 | |
832 | error_message_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
833 | empty_trace_ = false; |
834 | _internal_metadata_.Clear(); |
835 | } |
836 | |
837 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
838 | const char* NewProfileSessionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
839 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
840 | while (!ctx->Done(&ptr)) { |
841 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
842 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
843 | CHK_(ptr); |
844 | switch (tag >> 3) { |
845 | // string error_message = 1; |
846 | case 1: |
847 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
848 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_error_message(), ptr, ctx, "tensorflow.NewProfileSessionResponse.error_message" ); |
849 | CHK_(ptr); |
850 | } else goto handle_unusual; |
851 | continue; |
852 | // bool empty_trace = 2; |
853 | case 2: |
854 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
855 | empty_trace_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
856 | CHK_(ptr); |
857 | } else goto handle_unusual; |
858 | continue; |
859 | default: { |
860 | handle_unusual: |
861 | if ((tag & 7) == 4 || tag == 0) { |
862 | ctx->SetLastTag(tag); |
863 | goto success; |
864 | } |
865 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
866 | CHK_(ptr != nullptr); |
867 | continue; |
868 | } |
869 | } // switch |
870 | } // while |
871 | success: |
872 | return ptr; |
873 | failure: |
874 | ptr = nullptr; |
875 | goto success; |
876 | #undef CHK_ |
877 | } |
878 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
879 | bool NewProfileSessionResponse::MergePartialFromCodedStream( |
880 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
881 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
882 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
883 | // @@protoc_insertion_point(parse_start:tensorflow.NewProfileSessionResponse) |
884 | for (;;) { |
885 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
886 | tag = p.first; |
887 | if (!p.second) goto handle_unusual; |
888 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
889 | // string error_message = 1; |
890 | case 1: { |
891 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
892 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
893 | input, this->mutable_error_message())); |
894 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
895 | this->error_message().data(), static_cast<int>(this->error_message().length()), |
896 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
897 | "tensorflow.NewProfileSessionResponse.error_message" )); |
898 | } else { |
899 | goto handle_unusual; |
900 | } |
901 | break; |
902 | } |
903 | |
904 | // bool empty_trace = 2; |
905 | case 2: { |
906 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { |
907 | |
908 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
909 | bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( |
910 | input, &empty_trace_))); |
911 | } else { |
912 | goto handle_unusual; |
913 | } |
914 | break; |
915 | } |
916 | |
917 | default: { |
918 | handle_unusual: |
919 | if (tag == 0) { |
920 | goto success; |
921 | } |
922 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
923 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
924 | break; |
925 | } |
926 | } |
927 | } |
928 | success: |
929 | // @@protoc_insertion_point(parse_success:tensorflow.NewProfileSessionResponse) |
930 | return true; |
931 | failure: |
932 | // @@protoc_insertion_point(parse_failure:tensorflow.NewProfileSessionResponse) |
933 | return false; |
934 | #undef DO_ |
935 | } |
936 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
937 | |
938 | void NewProfileSessionResponse::SerializeWithCachedSizes( |
939 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
940 | // @@protoc_insertion_point(serialize_start:tensorflow.NewProfileSessionResponse) |
941 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
942 | (void) cached_has_bits; |
943 | |
944 | // string error_message = 1; |
945 | if (this->error_message().size() > 0) { |
946 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
947 | this->error_message().data(), static_cast<int>(this->error_message().length()), |
948 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
949 | "tensorflow.NewProfileSessionResponse.error_message" ); |
950 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
951 | 1, this->error_message(), output); |
952 | } |
953 | |
954 | // bool empty_trace = 2; |
955 | if (this->empty_trace() != 0) { |
956 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(2, this->empty_trace(), output); |
957 | } |
958 | |
959 | if (_internal_metadata_.have_unknown_fields()) { |
960 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
961 | _internal_metadata_.unknown_fields(), output); |
962 | } |
963 | // @@protoc_insertion_point(serialize_end:tensorflow.NewProfileSessionResponse) |
964 | } |
965 | |
966 | ::PROTOBUF_NAMESPACE_ID::uint8* NewProfileSessionResponse::InternalSerializeWithCachedSizesToArray( |
967 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
968 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.NewProfileSessionResponse) |
969 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
970 | (void) cached_has_bits; |
971 | |
972 | // string error_message = 1; |
973 | if (this->error_message().size() > 0) { |
974 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
975 | this->error_message().data(), static_cast<int>(this->error_message().length()), |
976 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
977 | "tensorflow.NewProfileSessionResponse.error_message" ); |
978 | target = |
979 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
980 | 1, this->error_message(), target); |
981 | } |
982 | |
983 | // bool empty_trace = 2; |
984 | if (this->empty_trace() != 0) { |
985 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->empty_trace(), target); |
986 | } |
987 | |
988 | if (_internal_metadata_.have_unknown_fields()) { |
989 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
990 | _internal_metadata_.unknown_fields(), target); |
991 | } |
992 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.NewProfileSessionResponse) |
993 | return target; |
994 | } |
995 | |
996 | size_t NewProfileSessionResponse::ByteSizeLong() const { |
997 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.NewProfileSessionResponse) |
998 | size_t total_size = 0; |
999 | |
1000 | if (_internal_metadata_.have_unknown_fields()) { |
1001 | total_size += |
1002 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
1003 | _internal_metadata_.unknown_fields()); |
1004 | } |
1005 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1006 | // Prevent compiler warnings about cached_has_bits being unused |
1007 | (void) cached_has_bits; |
1008 | |
1009 | // string error_message = 1; |
1010 | if (this->error_message().size() > 0) { |
1011 | total_size += 1 + |
1012 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1013 | this->error_message()); |
1014 | } |
1015 | |
1016 | // bool empty_trace = 2; |
1017 | if (this->empty_trace() != 0) { |
1018 | total_size += 1 + 1; |
1019 | } |
1020 | |
1021 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
1022 | SetCachedSize(cached_size); |
1023 | return total_size; |
1024 | } |
1025 | |
1026 | void NewProfileSessionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1027 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.NewProfileSessionResponse) |
1028 | GOOGLE_DCHECK_NE(&from, this); |
1029 | const NewProfileSessionResponse* source = |
1030 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<NewProfileSessionResponse>( |
1031 | &from); |
1032 | if (source == nullptr) { |
1033 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.NewProfileSessionResponse) |
1034 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1035 | } else { |
1036 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.NewProfileSessionResponse) |
1037 | MergeFrom(*source); |
1038 | } |
1039 | } |
1040 | |
1041 | void NewProfileSessionResponse::MergeFrom(const NewProfileSessionResponse& from) { |
1042 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.NewProfileSessionResponse) |
1043 | GOOGLE_DCHECK_NE(&from, this); |
1044 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1045 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1046 | (void) cached_has_bits; |
1047 | |
1048 | if (from.error_message().size() > 0) { |
1049 | |
1050 | error_message_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.error_message_); |
1051 | } |
1052 | if (from.empty_trace() != 0) { |
1053 | set_empty_trace(from.empty_trace()); |
1054 | } |
1055 | } |
1056 | |
1057 | void NewProfileSessionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1058 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.NewProfileSessionResponse) |
1059 | if (&from == this) return; |
1060 | Clear(); |
1061 | MergeFrom(from); |
1062 | } |
1063 | |
1064 | void NewProfileSessionResponse::CopyFrom(const NewProfileSessionResponse& from) { |
1065 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.NewProfileSessionResponse) |
1066 | if (&from == this) return; |
1067 | Clear(); |
1068 | MergeFrom(from); |
1069 | } |
1070 | |
1071 | bool NewProfileSessionResponse::IsInitialized() const { |
1072 | return true; |
1073 | } |
1074 | |
1075 | void NewProfileSessionResponse::InternalSwap(NewProfileSessionResponse* other) { |
1076 | using std::swap; |
1077 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1078 | error_message_.Swap(&other->error_message_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1079 | GetArenaNoVirtual()); |
1080 | swap(empty_trace_, other->empty_trace_); |
1081 | } |
1082 | |
1083 | ::PROTOBUF_NAMESPACE_ID::Metadata NewProfileSessionResponse::GetMetadata() const { |
1084 | return GetMetadataStatic(); |
1085 | } |
1086 | |
1087 | |
1088 | // =================================================================== |
1089 | |
1090 | void EnumProfileSessionsAndToolsRequest::InitAsDefaultInstance() { |
1091 | } |
1092 | class EnumProfileSessionsAndToolsRequest::_Internal { |
1093 | public: |
1094 | }; |
1095 | |
1096 | EnumProfileSessionsAndToolsRequest::EnumProfileSessionsAndToolsRequest() |
1097 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
1098 | SharedCtor(); |
1099 | // @@protoc_insertion_point(constructor:tensorflow.EnumProfileSessionsAndToolsRequest) |
1100 | } |
1101 | EnumProfileSessionsAndToolsRequest::EnumProfileSessionsAndToolsRequest(const EnumProfileSessionsAndToolsRequest& from) |
1102 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1103 | _internal_metadata_(nullptr) { |
1104 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1105 | repository_root_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1106 | if (!from.repository_root().empty()) { |
1107 | repository_root_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.repository_root_); |
1108 | } |
1109 | // @@protoc_insertion_point(copy_constructor:tensorflow.EnumProfileSessionsAndToolsRequest) |
1110 | } |
1111 | |
1112 | void EnumProfileSessionsAndToolsRequest::SharedCtor() { |
1113 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EnumProfileSessionsAndToolsRequest_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base); |
1114 | repository_root_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1115 | } |
1116 | |
1117 | EnumProfileSessionsAndToolsRequest::~EnumProfileSessionsAndToolsRequest() { |
1118 | // @@protoc_insertion_point(destructor:tensorflow.EnumProfileSessionsAndToolsRequest) |
1119 | SharedDtor(); |
1120 | } |
1121 | |
1122 | void EnumProfileSessionsAndToolsRequest::SharedDtor() { |
1123 | repository_root_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1124 | } |
1125 | |
1126 | void EnumProfileSessionsAndToolsRequest::SetCachedSize(int size) const { |
1127 | _cached_size_.Set(size); |
1128 | } |
1129 | const EnumProfileSessionsAndToolsRequest& EnumProfileSessionsAndToolsRequest::default_instance() { |
1130 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EnumProfileSessionsAndToolsRequest_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base); |
1131 | return *internal_default_instance(); |
1132 | } |
1133 | |
1134 | |
1135 | void EnumProfileSessionsAndToolsRequest::Clear() { |
1136 | // @@protoc_insertion_point(message_clear_start:tensorflow.EnumProfileSessionsAndToolsRequest) |
1137 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1138 | // Prevent compiler warnings about cached_has_bits being unused |
1139 | (void) cached_has_bits; |
1140 | |
1141 | repository_root_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1142 | _internal_metadata_.Clear(); |
1143 | } |
1144 | |
1145 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1146 | const char* EnumProfileSessionsAndToolsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
1147 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1148 | while (!ctx->Done(&ptr)) { |
1149 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1150 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
1151 | CHK_(ptr); |
1152 | switch (tag >> 3) { |
1153 | // string repository_root = 1; |
1154 | case 1: |
1155 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
1156 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_repository_root(), ptr, ctx, "tensorflow.EnumProfileSessionsAndToolsRequest.repository_root" ); |
1157 | CHK_(ptr); |
1158 | } else goto handle_unusual; |
1159 | continue; |
1160 | default: { |
1161 | handle_unusual: |
1162 | if ((tag & 7) == 4 || tag == 0) { |
1163 | ctx->SetLastTag(tag); |
1164 | goto success; |
1165 | } |
1166 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
1167 | CHK_(ptr != nullptr); |
1168 | continue; |
1169 | } |
1170 | } // switch |
1171 | } // while |
1172 | success: |
1173 | return ptr; |
1174 | failure: |
1175 | ptr = nullptr; |
1176 | goto success; |
1177 | #undef CHK_ |
1178 | } |
1179 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1180 | bool EnumProfileSessionsAndToolsRequest::MergePartialFromCodedStream( |
1181 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
1182 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
1183 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1184 | // @@protoc_insertion_point(parse_start:tensorflow.EnumProfileSessionsAndToolsRequest) |
1185 | for (;;) { |
1186 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1187 | tag = p.first; |
1188 | if (!p.second) goto handle_unusual; |
1189 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1190 | // string repository_root = 1; |
1191 | case 1: { |
1192 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
1193 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
1194 | input, this->mutable_repository_root())); |
1195 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1196 | this->repository_root().data(), static_cast<int>(this->repository_root().length()), |
1197 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1198 | "tensorflow.EnumProfileSessionsAndToolsRequest.repository_root" )); |
1199 | } else { |
1200 | goto handle_unusual; |
1201 | } |
1202 | break; |
1203 | } |
1204 | |
1205 | default: { |
1206 | handle_unusual: |
1207 | if (tag == 0) { |
1208 | goto success; |
1209 | } |
1210 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
1211 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1212 | break; |
1213 | } |
1214 | } |
1215 | } |
1216 | success: |
1217 | // @@protoc_insertion_point(parse_success:tensorflow.EnumProfileSessionsAndToolsRequest) |
1218 | return true; |
1219 | failure: |
1220 | // @@protoc_insertion_point(parse_failure:tensorflow.EnumProfileSessionsAndToolsRequest) |
1221 | return false; |
1222 | #undef DO_ |
1223 | } |
1224 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1225 | |
1226 | void EnumProfileSessionsAndToolsRequest::SerializeWithCachedSizes( |
1227 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
1228 | // @@protoc_insertion_point(serialize_start:tensorflow.EnumProfileSessionsAndToolsRequest) |
1229 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1230 | (void) cached_has_bits; |
1231 | |
1232 | // string repository_root = 1; |
1233 | if (this->repository_root().size() > 0) { |
1234 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1235 | this->repository_root().data(), static_cast<int>(this->repository_root().length()), |
1236 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1237 | "tensorflow.EnumProfileSessionsAndToolsRequest.repository_root" ); |
1238 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
1239 | 1, this->repository_root(), output); |
1240 | } |
1241 | |
1242 | if (_internal_metadata_.have_unknown_fields()) { |
1243 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
1244 | _internal_metadata_.unknown_fields(), output); |
1245 | } |
1246 | // @@protoc_insertion_point(serialize_end:tensorflow.EnumProfileSessionsAndToolsRequest) |
1247 | } |
1248 | |
1249 | ::PROTOBUF_NAMESPACE_ID::uint8* EnumProfileSessionsAndToolsRequest::InternalSerializeWithCachedSizesToArray( |
1250 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
1251 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.EnumProfileSessionsAndToolsRequest) |
1252 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1253 | (void) cached_has_bits; |
1254 | |
1255 | // string repository_root = 1; |
1256 | if (this->repository_root().size() > 0) { |
1257 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1258 | this->repository_root().data(), static_cast<int>(this->repository_root().length()), |
1259 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1260 | "tensorflow.EnumProfileSessionsAndToolsRequest.repository_root" ); |
1261 | target = |
1262 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
1263 | 1, this->repository_root(), target); |
1264 | } |
1265 | |
1266 | if (_internal_metadata_.have_unknown_fields()) { |
1267 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
1268 | _internal_metadata_.unknown_fields(), target); |
1269 | } |
1270 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.EnumProfileSessionsAndToolsRequest) |
1271 | return target; |
1272 | } |
1273 | |
1274 | size_t EnumProfileSessionsAndToolsRequest::ByteSizeLong() const { |
1275 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.EnumProfileSessionsAndToolsRequest) |
1276 | size_t total_size = 0; |
1277 | |
1278 | if (_internal_metadata_.have_unknown_fields()) { |
1279 | total_size += |
1280 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
1281 | _internal_metadata_.unknown_fields()); |
1282 | } |
1283 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1284 | // Prevent compiler warnings about cached_has_bits being unused |
1285 | (void) cached_has_bits; |
1286 | |
1287 | // string repository_root = 1; |
1288 | if (this->repository_root().size() > 0) { |
1289 | total_size += 1 + |
1290 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1291 | this->repository_root()); |
1292 | } |
1293 | |
1294 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
1295 | SetCachedSize(cached_size); |
1296 | return total_size; |
1297 | } |
1298 | |
1299 | void EnumProfileSessionsAndToolsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1300 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.EnumProfileSessionsAndToolsRequest) |
1301 | GOOGLE_DCHECK_NE(&from, this); |
1302 | const EnumProfileSessionsAndToolsRequest* source = |
1303 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<EnumProfileSessionsAndToolsRequest>( |
1304 | &from); |
1305 | if (source == nullptr) { |
1306 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.EnumProfileSessionsAndToolsRequest) |
1307 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1308 | } else { |
1309 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.EnumProfileSessionsAndToolsRequest) |
1310 | MergeFrom(*source); |
1311 | } |
1312 | } |
1313 | |
1314 | void EnumProfileSessionsAndToolsRequest::MergeFrom(const EnumProfileSessionsAndToolsRequest& from) { |
1315 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.EnumProfileSessionsAndToolsRequest) |
1316 | GOOGLE_DCHECK_NE(&from, this); |
1317 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1318 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1319 | (void) cached_has_bits; |
1320 | |
1321 | if (from.repository_root().size() > 0) { |
1322 | |
1323 | repository_root_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.repository_root_); |
1324 | } |
1325 | } |
1326 | |
1327 | void EnumProfileSessionsAndToolsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1328 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.EnumProfileSessionsAndToolsRequest) |
1329 | if (&from == this) return; |
1330 | Clear(); |
1331 | MergeFrom(from); |
1332 | } |
1333 | |
1334 | void EnumProfileSessionsAndToolsRequest::CopyFrom(const EnumProfileSessionsAndToolsRequest& from) { |
1335 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.EnumProfileSessionsAndToolsRequest) |
1336 | if (&from == this) return; |
1337 | Clear(); |
1338 | MergeFrom(from); |
1339 | } |
1340 | |
1341 | bool EnumProfileSessionsAndToolsRequest::IsInitialized() const { |
1342 | return true; |
1343 | } |
1344 | |
1345 | void EnumProfileSessionsAndToolsRequest::InternalSwap(EnumProfileSessionsAndToolsRequest* other) { |
1346 | using std::swap; |
1347 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1348 | repository_root_.Swap(&other->repository_root_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1349 | GetArenaNoVirtual()); |
1350 | } |
1351 | |
1352 | ::PROTOBUF_NAMESPACE_ID::Metadata EnumProfileSessionsAndToolsRequest::GetMetadata() const { |
1353 | return GetMetadataStatic(); |
1354 | } |
1355 | |
1356 | |
1357 | // =================================================================== |
1358 | |
1359 | void ProfileSessionInfo::InitAsDefaultInstance() { |
1360 | } |
1361 | class ProfileSessionInfo::_Internal { |
1362 | public: |
1363 | }; |
1364 | |
1365 | ProfileSessionInfo::ProfileSessionInfo() |
1366 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
1367 | SharedCtor(); |
1368 | // @@protoc_insertion_point(constructor:tensorflow.ProfileSessionInfo) |
1369 | } |
1370 | ProfileSessionInfo::ProfileSessionInfo(const ProfileSessionInfo& from) |
1371 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1372 | _internal_metadata_(nullptr), |
1373 | available_tools_(from.available_tools_) { |
1374 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1375 | session_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1376 | if (!from.session_id().empty()) { |
1377 | session_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_id_); |
1378 | } |
1379 | // @@protoc_insertion_point(copy_constructor:tensorflow.ProfileSessionInfo) |
1380 | } |
1381 | |
1382 | void ProfileSessionInfo::SharedCtor() { |
1383 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ProfileSessionInfo_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base); |
1384 | session_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1385 | } |
1386 | |
1387 | ProfileSessionInfo::~ProfileSessionInfo() { |
1388 | // @@protoc_insertion_point(destructor:tensorflow.ProfileSessionInfo) |
1389 | SharedDtor(); |
1390 | } |
1391 | |
1392 | void ProfileSessionInfo::SharedDtor() { |
1393 | session_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1394 | } |
1395 | |
1396 | void ProfileSessionInfo::SetCachedSize(int size) const { |
1397 | _cached_size_.Set(size); |
1398 | } |
1399 | const ProfileSessionInfo& ProfileSessionInfo::default_instance() { |
1400 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ProfileSessionInfo_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base); |
1401 | return *internal_default_instance(); |
1402 | } |
1403 | |
1404 | |
1405 | void ProfileSessionInfo::Clear() { |
1406 | // @@protoc_insertion_point(message_clear_start:tensorflow.ProfileSessionInfo) |
1407 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1408 | // Prevent compiler warnings about cached_has_bits being unused |
1409 | (void) cached_has_bits; |
1410 | |
1411 | available_tools_.Clear(); |
1412 | session_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1413 | _internal_metadata_.Clear(); |
1414 | } |
1415 | |
1416 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1417 | const char* ProfileSessionInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
1418 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1419 | while (!ctx->Done(&ptr)) { |
1420 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1421 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
1422 | CHK_(ptr); |
1423 | switch (tag >> 3) { |
1424 | // string session_id = 1; |
1425 | case 1: |
1426 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
1427 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_session_id(), ptr, ctx, "tensorflow.ProfileSessionInfo.session_id" ); |
1428 | CHK_(ptr); |
1429 | } else goto handle_unusual; |
1430 | continue; |
1431 | // repeated string available_tools = 2; |
1432 | case 2: |
1433 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
1434 | ptr -= 1; |
1435 | do { |
1436 | ptr += 1; |
1437 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_available_tools(), ptr, ctx, "tensorflow.ProfileSessionInfo.available_tools" ); |
1438 | CHK_(ptr); |
1439 | if (!ctx->DataAvailable(ptr)) break; |
1440 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); |
1441 | } else goto handle_unusual; |
1442 | continue; |
1443 | default: { |
1444 | handle_unusual: |
1445 | if ((tag & 7) == 4 || tag == 0) { |
1446 | ctx->SetLastTag(tag); |
1447 | goto success; |
1448 | } |
1449 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
1450 | CHK_(ptr != nullptr); |
1451 | continue; |
1452 | } |
1453 | } // switch |
1454 | } // while |
1455 | success: |
1456 | return ptr; |
1457 | failure: |
1458 | ptr = nullptr; |
1459 | goto success; |
1460 | #undef CHK_ |
1461 | } |
1462 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1463 | bool ProfileSessionInfo::MergePartialFromCodedStream( |
1464 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
1465 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
1466 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1467 | // @@protoc_insertion_point(parse_start:tensorflow.ProfileSessionInfo) |
1468 | for (;;) { |
1469 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1470 | tag = p.first; |
1471 | if (!p.second) goto handle_unusual; |
1472 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1473 | // string session_id = 1; |
1474 | case 1: { |
1475 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
1476 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
1477 | input, this->mutable_session_id())); |
1478 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1479 | this->session_id().data(), static_cast<int>(this->session_id().length()), |
1480 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1481 | "tensorflow.ProfileSessionInfo.session_id" )); |
1482 | } else { |
1483 | goto handle_unusual; |
1484 | } |
1485 | break; |
1486 | } |
1487 | |
1488 | // repeated string available_tools = 2; |
1489 | case 2: { |
1490 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
1491 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
1492 | input, this->add_available_tools())); |
1493 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1494 | this->available_tools(this->available_tools_size() - 1).data(), |
1495 | static_cast<int>(this->available_tools(this->available_tools_size() - 1).length()), |
1496 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1497 | "tensorflow.ProfileSessionInfo.available_tools" )); |
1498 | } else { |
1499 | goto handle_unusual; |
1500 | } |
1501 | break; |
1502 | } |
1503 | |
1504 | default: { |
1505 | handle_unusual: |
1506 | if (tag == 0) { |
1507 | goto success; |
1508 | } |
1509 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
1510 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1511 | break; |
1512 | } |
1513 | } |
1514 | } |
1515 | success: |
1516 | // @@protoc_insertion_point(parse_success:tensorflow.ProfileSessionInfo) |
1517 | return true; |
1518 | failure: |
1519 | // @@protoc_insertion_point(parse_failure:tensorflow.ProfileSessionInfo) |
1520 | return false; |
1521 | #undef DO_ |
1522 | } |
1523 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1524 | |
1525 | void ProfileSessionInfo::SerializeWithCachedSizes( |
1526 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
1527 | // @@protoc_insertion_point(serialize_start:tensorflow.ProfileSessionInfo) |
1528 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1529 | (void) cached_has_bits; |
1530 | |
1531 | // string session_id = 1; |
1532 | if (this->session_id().size() > 0) { |
1533 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1534 | this->session_id().data(), static_cast<int>(this->session_id().length()), |
1535 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1536 | "tensorflow.ProfileSessionInfo.session_id" ); |
1537 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
1538 | 1, this->session_id(), output); |
1539 | } |
1540 | |
1541 | // repeated string available_tools = 2; |
1542 | for (int i = 0, n = this->available_tools_size(); i < n; i++) { |
1543 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1544 | this->available_tools(i).data(), static_cast<int>(this->available_tools(i).length()), |
1545 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1546 | "tensorflow.ProfileSessionInfo.available_tools" ); |
1547 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( |
1548 | 2, this->available_tools(i), output); |
1549 | } |
1550 | |
1551 | if (_internal_metadata_.have_unknown_fields()) { |
1552 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
1553 | _internal_metadata_.unknown_fields(), output); |
1554 | } |
1555 | // @@protoc_insertion_point(serialize_end:tensorflow.ProfileSessionInfo) |
1556 | } |
1557 | |
1558 | ::PROTOBUF_NAMESPACE_ID::uint8* ProfileSessionInfo::InternalSerializeWithCachedSizesToArray( |
1559 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
1560 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ProfileSessionInfo) |
1561 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1562 | (void) cached_has_bits; |
1563 | |
1564 | // string session_id = 1; |
1565 | if (this->session_id().size() > 0) { |
1566 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1567 | this->session_id().data(), static_cast<int>(this->session_id().length()), |
1568 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1569 | "tensorflow.ProfileSessionInfo.session_id" ); |
1570 | target = |
1571 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
1572 | 1, this->session_id(), target); |
1573 | } |
1574 | |
1575 | // repeated string available_tools = 2; |
1576 | for (int i = 0, n = this->available_tools_size(); i < n; i++) { |
1577 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1578 | this->available_tools(i).data(), static_cast<int>(this->available_tools(i).length()), |
1579 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1580 | "tensorflow.ProfileSessionInfo.available_tools" ); |
1581 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1582 | WriteStringToArray(2, this->available_tools(i), target); |
1583 | } |
1584 | |
1585 | if (_internal_metadata_.have_unknown_fields()) { |
1586 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
1587 | _internal_metadata_.unknown_fields(), target); |
1588 | } |
1589 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ProfileSessionInfo) |
1590 | return target; |
1591 | } |
1592 | |
1593 | size_t ProfileSessionInfo::ByteSizeLong() const { |
1594 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.ProfileSessionInfo) |
1595 | size_t total_size = 0; |
1596 | |
1597 | if (_internal_metadata_.have_unknown_fields()) { |
1598 | total_size += |
1599 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
1600 | _internal_metadata_.unknown_fields()); |
1601 | } |
1602 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1603 | // Prevent compiler warnings about cached_has_bits being unused |
1604 | (void) cached_has_bits; |
1605 | |
1606 | // repeated string available_tools = 2; |
1607 | total_size += 1 * |
1608 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->available_tools_size()); |
1609 | for (int i = 0, n = this->available_tools_size(); i < n; i++) { |
1610 | total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1611 | this->available_tools(i)); |
1612 | } |
1613 | |
1614 | // string session_id = 1; |
1615 | if (this->session_id().size() > 0) { |
1616 | total_size += 1 + |
1617 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1618 | this->session_id()); |
1619 | } |
1620 | |
1621 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
1622 | SetCachedSize(cached_size); |
1623 | return total_size; |
1624 | } |
1625 | |
1626 | void ProfileSessionInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1627 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ProfileSessionInfo) |
1628 | GOOGLE_DCHECK_NE(&from, this); |
1629 | const ProfileSessionInfo* source = |
1630 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ProfileSessionInfo>( |
1631 | &from); |
1632 | if (source == nullptr) { |
1633 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ProfileSessionInfo) |
1634 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1635 | } else { |
1636 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ProfileSessionInfo) |
1637 | MergeFrom(*source); |
1638 | } |
1639 | } |
1640 | |
1641 | void ProfileSessionInfo::MergeFrom(const ProfileSessionInfo& from) { |
1642 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ProfileSessionInfo) |
1643 | GOOGLE_DCHECK_NE(&from, this); |
1644 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1645 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1646 | (void) cached_has_bits; |
1647 | |
1648 | available_tools_.MergeFrom(from.available_tools_); |
1649 | if (from.session_id().size() > 0) { |
1650 | |
1651 | session_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_id_); |
1652 | } |
1653 | } |
1654 | |
1655 | void ProfileSessionInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1656 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ProfileSessionInfo) |
1657 | if (&from == this) return; |
1658 | Clear(); |
1659 | MergeFrom(from); |
1660 | } |
1661 | |
1662 | void ProfileSessionInfo::CopyFrom(const ProfileSessionInfo& from) { |
1663 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ProfileSessionInfo) |
1664 | if (&from == this) return; |
1665 | Clear(); |
1666 | MergeFrom(from); |
1667 | } |
1668 | |
1669 | bool ProfileSessionInfo::IsInitialized() const { |
1670 | return true; |
1671 | } |
1672 | |
1673 | void ProfileSessionInfo::InternalSwap(ProfileSessionInfo* other) { |
1674 | using std::swap; |
1675 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1676 | available_tools_.InternalSwap(CastToBase(&other->available_tools_)); |
1677 | session_id_.Swap(&other->session_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1678 | GetArenaNoVirtual()); |
1679 | } |
1680 | |
1681 | ::PROTOBUF_NAMESPACE_ID::Metadata ProfileSessionInfo::GetMetadata() const { |
1682 | return GetMetadataStatic(); |
1683 | } |
1684 | |
1685 | |
1686 | // =================================================================== |
1687 | |
1688 | void EnumProfileSessionsAndToolsResponse::InitAsDefaultInstance() { |
1689 | } |
1690 | class EnumProfileSessionsAndToolsResponse::_Internal { |
1691 | public: |
1692 | }; |
1693 | |
1694 | EnumProfileSessionsAndToolsResponse::EnumProfileSessionsAndToolsResponse() |
1695 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
1696 | SharedCtor(); |
1697 | // @@protoc_insertion_point(constructor:tensorflow.EnumProfileSessionsAndToolsResponse) |
1698 | } |
1699 | EnumProfileSessionsAndToolsResponse::EnumProfileSessionsAndToolsResponse(const EnumProfileSessionsAndToolsResponse& from) |
1700 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1701 | _internal_metadata_(nullptr), |
1702 | sessions_(from.sessions_) { |
1703 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1704 | error_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1705 | if (!from.error_message().empty()) { |
1706 | error_message_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.error_message_); |
1707 | } |
1708 | // @@protoc_insertion_point(copy_constructor:tensorflow.EnumProfileSessionsAndToolsResponse) |
1709 | } |
1710 | |
1711 | void EnumProfileSessionsAndToolsResponse::SharedCtor() { |
1712 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EnumProfileSessionsAndToolsResponse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base); |
1713 | error_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1714 | } |
1715 | |
1716 | EnumProfileSessionsAndToolsResponse::~EnumProfileSessionsAndToolsResponse() { |
1717 | // @@protoc_insertion_point(destructor:tensorflow.EnumProfileSessionsAndToolsResponse) |
1718 | SharedDtor(); |
1719 | } |
1720 | |
1721 | void EnumProfileSessionsAndToolsResponse::SharedDtor() { |
1722 | error_message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1723 | } |
1724 | |
1725 | void EnumProfileSessionsAndToolsResponse::SetCachedSize(int size) const { |
1726 | _cached_size_.Set(size); |
1727 | } |
1728 | const EnumProfileSessionsAndToolsResponse& EnumProfileSessionsAndToolsResponse::default_instance() { |
1729 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EnumProfileSessionsAndToolsResponse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base); |
1730 | return *internal_default_instance(); |
1731 | } |
1732 | |
1733 | |
1734 | void EnumProfileSessionsAndToolsResponse::Clear() { |
1735 | // @@protoc_insertion_point(message_clear_start:tensorflow.EnumProfileSessionsAndToolsResponse) |
1736 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1737 | // Prevent compiler warnings about cached_has_bits being unused |
1738 | (void) cached_has_bits; |
1739 | |
1740 | sessions_.Clear(); |
1741 | error_message_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1742 | _internal_metadata_.Clear(); |
1743 | } |
1744 | |
1745 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1746 | const char* EnumProfileSessionsAndToolsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
1747 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1748 | while (!ctx->Done(&ptr)) { |
1749 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1750 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
1751 | CHK_(ptr); |
1752 | switch (tag >> 3) { |
1753 | // string error_message = 1; |
1754 | case 1: |
1755 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
1756 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_error_message(), ptr, ctx, "tensorflow.EnumProfileSessionsAndToolsResponse.error_message" ); |
1757 | CHK_(ptr); |
1758 | } else goto handle_unusual; |
1759 | continue; |
1760 | // repeated .tensorflow.ProfileSessionInfo sessions = 2; |
1761 | case 2: |
1762 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
1763 | ptr -= 1; |
1764 | do { |
1765 | ptr += 1; |
1766 | ptr = ctx->ParseMessage(add_sessions(), ptr); |
1767 | CHK_(ptr); |
1768 | if (!ctx->DataAvailable(ptr)) break; |
1769 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); |
1770 | } else goto handle_unusual; |
1771 | continue; |
1772 | default: { |
1773 | handle_unusual: |
1774 | if ((tag & 7) == 4 || tag == 0) { |
1775 | ctx->SetLastTag(tag); |
1776 | goto success; |
1777 | } |
1778 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
1779 | CHK_(ptr != nullptr); |
1780 | continue; |
1781 | } |
1782 | } // switch |
1783 | } // while |
1784 | success: |
1785 | return ptr; |
1786 | failure: |
1787 | ptr = nullptr; |
1788 | goto success; |
1789 | #undef CHK_ |
1790 | } |
1791 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1792 | bool EnumProfileSessionsAndToolsResponse::MergePartialFromCodedStream( |
1793 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
1794 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
1795 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1796 | // @@protoc_insertion_point(parse_start:tensorflow.EnumProfileSessionsAndToolsResponse) |
1797 | for (;;) { |
1798 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1799 | tag = p.first; |
1800 | if (!p.second) goto handle_unusual; |
1801 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1802 | // string error_message = 1; |
1803 | case 1: { |
1804 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
1805 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
1806 | input, this->mutable_error_message())); |
1807 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1808 | this->error_message().data(), static_cast<int>(this->error_message().length()), |
1809 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
1810 | "tensorflow.EnumProfileSessionsAndToolsResponse.error_message" )); |
1811 | } else { |
1812 | goto handle_unusual; |
1813 | } |
1814 | break; |
1815 | } |
1816 | |
1817 | // repeated .tensorflow.ProfileSessionInfo sessions = 2; |
1818 | case 2: { |
1819 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
1820 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
1821 | input, add_sessions())); |
1822 | } else { |
1823 | goto handle_unusual; |
1824 | } |
1825 | break; |
1826 | } |
1827 | |
1828 | default: { |
1829 | handle_unusual: |
1830 | if (tag == 0) { |
1831 | goto success; |
1832 | } |
1833 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
1834 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1835 | break; |
1836 | } |
1837 | } |
1838 | } |
1839 | success: |
1840 | // @@protoc_insertion_point(parse_success:tensorflow.EnumProfileSessionsAndToolsResponse) |
1841 | return true; |
1842 | failure: |
1843 | // @@protoc_insertion_point(parse_failure:tensorflow.EnumProfileSessionsAndToolsResponse) |
1844 | return false; |
1845 | #undef DO_ |
1846 | } |
1847 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1848 | |
1849 | void EnumProfileSessionsAndToolsResponse::SerializeWithCachedSizes( |
1850 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
1851 | // @@protoc_insertion_point(serialize_start:tensorflow.EnumProfileSessionsAndToolsResponse) |
1852 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1853 | (void) cached_has_bits; |
1854 | |
1855 | // string error_message = 1; |
1856 | if (this->error_message().size() > 0) { |
1857 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1858 | this->error_message().data(), static_cast<int>(this->error_message().length()), |
1859 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1860 | "tensorflow.EnumProfileSessionsAndToolsResponse.error_message" ); |
1861 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
1862 | 1, this->error_message(), output); |
1863 | } |
1864 | |
1865 | // repeated .tensorflow.ProfileSessionInfo sessions = 2; |
1866 | for (unsigned int i = 0, |
1867 | n = static_cast<unsigned int>(this->sessions_size()); i < n; i++) { |
1868 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
1869 | 2, |
1870 | this->sessions(static_cast<int>(i)), |
1871 | output); |
1872 | } |
1873 | |
1874 | if (_internal_metadata_.have_unknown_fields()) { |
1875 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
1876 | _internal_metadata_.unknown_fields(), output); |
1877 | } |
1878 | // @@protoc_insertion_point(serialize_end:tensorflow.EnumProfileSessionsAndToolsResponse) |
1879 | } |
1880 | |
1881 | ::PROTOBUF_NAMESPACE_ID::uint8* EnumProfileSessionsAndToolsResponse::InternalSerializeWithCachedSizesToArray( |
1882 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
1883 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.EnumProfileSessionsAndToolsResponse) |
1884 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1885 | (void) cached_has_bits; |
1886 | |
1887 | // string error_message = 1; |
1888 | if (this->error_message().size() > 0) { |
1889 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
1890 | this->error_message().data(), static_cast<int>(this->error_message().length()), |
1891 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
1892 | "tensorflow.EnumProfileSessionsAndToolsResponse.error_message" ); |
1893 | target = |
1894 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
1895 | 1, this->error_message(), target); |
1896 | } |
1897 | |
1898 | // repeated .tensorflow.ProfileSessionInfo sessions = 2; |
1899 | for (unsigned int i = 0, |
1900 | n = static_cast<unsigned int>(this->sessions_size()); i < n; i++) { |
1901 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1902 | InternalWriteMessageToArray( |
1903 | 2, this->sessions(static_cast<int>(i)), target); |
1904 | } |
1905 | |
1906 | if (_internal_metadata_.have_unknown_fields()) { |
1907 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
1908 | _internal_metadata_.unknown_fields(), target); |
1909 | } |
1910 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.EnumProfileSessionsAndToolsResponse) |
1911 | return target; |
1912 | } |
1913 | |
1914 | size_t EnumProfileSessionsAndToolsResponse::ByteSizeLong() const { |
1915 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.EnumProfileSessionsAndToolsResponse) |
1916 | size_t total_size = 0; |
1917 | |
1918 | if (_internal_metadata_.have_unknown_fields()) { |
1919 | total_size += |
1920 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
1921 | _internal_metadata_.unknown_fields()); |
1922 | } |
1923 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1924 | // Prevent compiler warnings about cached_has_bits being unused |
1925 | (void) cached_has_bits; |
1926 | |
1927 | // repeated .tensorflow.ProfileSessionInfo sessions = 2; |
1928 | { |
1929 | unsigned int count = static_cast<unsigned int>(this->sessions_size()); |
1930 | total_size += 1UL * count; |
1931 | for (unsigned int i = 0; i < count; i++) { |
1932 | total_size += |
1933 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1934 | this->sessions(static_cast<int>(i))); |
1935 | } |
1936 | } |
1937 | |
1938 | // string error_message = 1; |
1939 | if (this->error_message().size() > 0) { |
1940 | total_size += 1 + |
1941 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
1942 | this->error_message()); |
1943 | } |
1944 | |
1945 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
1946 | SetCachedSize(cached_size); |
1947 | return total_size; |
1948 | } |
1949 | |
1950 | void EnumProfileSessionsAndToolsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1951 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.EnumProfileSessionsAndToolsResponse) |
1952 | GOOGLE_DCHECK_NE(&from, this); |
1953 | const EnumProfileSessionsAndToolsResponse* source = |
1954 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<EnumProfileSessionsAndToolsResponse>( |
1955 | &from); |
1956 | if (source == nullptr) { |
1957 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.EnumProfileSessionsAndToolsResponse) |
1958 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1959 | } else { |
1960 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.EnumProfileSessionsAndToolsResponse) |
1961 | MergeFrom(*source); |
1962 | } |
1963 | } |
1964 | |
1965 | void EnumProfileSessionsAndToolsResponse::MergeFrom(const EnumProfileSessionsAndToolsResponse& from) { |
1966 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.EnumProfileSessionsAndToolsResponse) |
1967 | GOOGLE_DCHECK_NE(&from, this); |
1968 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1969 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1970 | (void) cached_has_bits; |
1971 | |
1972 | sessions_.MergeFrom(from.sessions_); |
1973 | if (from.error_message().size() > 0) { |
1974 | |
1975 | error_message_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.error_message_); |
1976 | } |
1977 | } |
1978 | |
1979 | void EnumProfileSessionsAndToolsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1980 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.EnumProfileSessionsAndToolsResponse) |
1981 | if (&from == this) return; |
1982 | Clear(); |
1983 | MergeFrom(from); |
1984 | } |
1985 | |
1986 | void EnumProfileSessionsAndToolsResponse::CopyFrom(const EnumProfileSessionsAndToolsResponse& from) { |
1987 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.EnumProfileSessionsAndToolsResponse) |
1988 | if (&from == this) return; |
1989 | Clear(); |
1990 | MergeFrom(from); |
1991 | } |
1992 | |
1993 | bool EnumProfileSessionsAndToolsResponse::IsInitialized() const { |
1994 | return true; |
1995 | } |
1996 | |
1997 | void EnumProfileSessionsAndToolsResponse::InternalSwap(EnumProfileSessionsAndToolsResponse* other) { |
1998 | using std::swap; |
1999 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2000 | CastToBase(&sessions_)->InternalSwap(CastToBase(&other->sessions_)); |
2001 | error_message_.Swap(&other->error_message_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2002 | GetArenaNoVirtual()); |
2003 | } |
2004 | |
2005 | ::PROTOBUF_NAMESPACE_ID::Metadata EnumProfileSessionsAndToolsResponse::GetMetadata() const { |
2006 | return GetMetadataStatic(); |
2007 | } |
2008 | |
2009 | |
2010 | // =================================================================== |
2011 | |
2012 | ProfileSessionDataRequest_ParametersEntry_DoNotUse::ProfileSessionDataRequest_ParametersEntry_DoNotUse() {} |
2013 | ProfileSessionDataRequest_ParametersEntry_DoNotUse::ProfileSessionDataRequest_ParametersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
2014 | : SuperType(arena) {} |
2015 | void ProfileSessionDataRequest_ParametersEntry_DoNotUse::MergeFrom(const ProfileSessionDataRequest_ParametersEntry_DoNotUse& other) { |
2016 | MergeFromInternal(other); |
2017 | } |
2018 | ::PROTOBUF_NAMESPACE_ID::Metadata ProfileSessionDataRequest_ParametersEntry_DoNotUse::GetMetadata() const { |
2019 | return GetMetadataStatic(); |
2020 | } |
2021 | void ProfileSessionDataRequest_ParametersEntry_DoNotUse::MergeFrom( |
2022 | const ::PROTOBUF_NAMESPACE_ID::Message& other) { |
2023 | ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other); |
2024 | } |
2025 | |
2026 | |
2027 | // =================================================================== |
2028 | |
2029 | void ProfileSessionDataRequest::InitAsDefaultInstance() { |
2030 | } |
2031 | class ProfileSessionDataRequest::_Internal { |
2032 | public: |
2033 | }; |
2034 | |
2035 | ProfileSessionDataRequest::ProfileSessionDataRequest() |
2036 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
2037 | SharedCtor(); |
2038 | // @@protoc_insertion_point(constructor:tensorflow.ProfileSessionDataRequest) |
2039 | } |
2040 | ProfileSessionDataRequest::ProfileSessionDataRequest(const ProfileSessionDataRequest& from) |
2041 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2042 | _internal_metadata_(nullptr) { |
2043 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2044 | parameters_.MergeFrom(from.parameters_); |
2045 | repository_root_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2046 | if (!from.repository_root().empty()) { |
2047 | repository_root_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.repository_root_); |
2048 | } |
2049 | session_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2050 | if (!from.session_id().empty()) { |
2051 | session_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_id_); |
2052 | } |
2053 | tool_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2054 | if (!from.tool_name().empty()) { |
2055 | tool_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tool_name_); |
2056 | } |
2057 | host_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2058 | if (!from.host_name().empty()) { |
2059 | host_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.host_name_); |
2060 | } |
2061 | // @@protoc_insertion_point(copy_constructor:tensorflow.ProfileSessionDataRequest) |
2062 | } |
2063 | |
2064 | void ProfileSessionDataRequest::SharedCtor() { |
2065 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ProfileSessionDataRequest_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base); |
2066 | repository_root_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2067 | session_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2068 | tool_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2069 | host_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2070 | } |
2071 | |
2072 | ProfileSessionDataRequest::~ProfileSessionDataRequest() { |
2073 | // @@protoc_insertion_point(destructor:tensorflow.ProfileSessionDataRequest) |
2074 | SharedDtor(); |
2075 | } |
2076 | |
2077 | void ProfileSessionDataRequest::SharedDtor() { |
2078 | repository_root_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2079 | session_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2080 | tool_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2081 | host_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2082 | } |
2083 | |
2084 | void ProfileSessionDataRequest::SetCachedSize(int size) const { |
2085 | _cached_size_.Set(size); |
2086 | } |
2087 | const ProfileSessionDataRequest& ProfileSessionDataRequest::default_instance() { |
2088 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ProfileSessionDataRequest_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base); |
2089 | return *internal_default_instance(); |
2090 | } |
2091 | |
2092 | |
2093 | void ProfileSessionDataRequest::Clear() { |
2094 | // @@protoc_insertion_point(message_clear_start:tensorflow.ProfileSessionDataRequest) |
2095 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2096 | // Prevent compiler warnings about cached_has_bits being unused |
2097 | (void) cached_has_bits; |
2098 | |
2099 | parameters_.Clear(); |
2100 | repository_root_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2101 | session_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2102 | tool_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2103 | host_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2104 | _internal_metadata_.Clear(); |
2105 | } |
2106 | |
2107 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2108 | const char* ProfileSessionDataRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
2109 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
2110 | while (!ctx->Done(&ptr)) { |
2111 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2112 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
2113 | CHK_(ptr); |
2114 | switch (tag >> 3) { |
2115 | // string repository_root = 1; |
2116 | case 1: |
2117 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
2118 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_repository_root(), ptr, ctx, "tensorflow.ProfileSessionDataRequest.repository_root" ); |
2119 | CHK_(ptr); |
2120 | } else goto handle_unusual; |
2121 | continue; |
2122 | // string session_id = 2; |
2123 | case 2: |
2124 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
2125 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_session_id(), ptr, ctx, "tensorflow.ProfileSessionDataRequest.session_id" ); |
2126 | CHK_(ptr); |
2127 | } else goto handle_unusual; |
2128 | continue; |
2129 | // string tool_name = 3; |
2130 | case 3: |
2131 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
2132 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_tool_name(), ptr, ctx, "tensorflow.ProfileSessionDataRequest.tool_name" ); |
2133 | CHK_(ptr); |
2134 | } else goto handle_unusual; |
2135 | continue; |
2136 | // map<string, string> parameters = 4; |
2137 | case 4: |
2138 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
2139 | ptr -= 1; |
2140 | do { |
2141 | ptr += 1; |
2142 | ptr = ctx->ParseMessage(¶meters_, ptr); |
2143 | CHK_(ptr); |
2144 | if (!ctx->DataAvailable(ptr)) break; |
2145 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); |
2146 | } else goto handle_unusual; |
2147 | continue; |
2148 | // string host_name = 5; |
2149 | case 5: |
2150 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
2151 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_host_name(), ptr, ctx, "tensorflow.ProfileSessionDataRequest.host_name" ); |
2152 | CHK_(ptr); |
2153 | } else goto handle_unusual; |
2154 | continue; |
2155 | default: { |
2156 | handle_unusual: |
2157 | if ((tag & 7) == 4 || tag == 0) { |
2158 | ctx->SetLastTag(tag); |
2159 | goto success; |
2160 | } |
2161 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
2162 | CHK_(ptr != nullptr); |
2163 | continue; |
2164 | } |
2165 | } // switch |
2166 | } // while |
2167 | success: |
2168 | return ptr; |
2169 | failure: |
2170 | ptr = nullptr; |
2171 | goto success; |
2172 | #undef CHK_ |
2173 | } |
2174 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2175 | bool ProfileSessionDataRequest::MergePartialFromCodedStream( |
2176 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
2177 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
2178 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2179 | // @@protoc_insertion_point(parse_start:tensorflow.ProfileSessionDataRequest) |
2180 | for (;;) { |
2181 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2182 | tag = p.first; |
2183 | if (!p.second) goto handle_unusual; |
2184 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2185 | // string repository_root = 1; |
2186 | case 1: { |
2187 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
2188 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
2189 | input, this->mutable_repository_root())); |
2190 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2191 | this->repository_root().data(), static_cast<int>(this->repository_root().length()), |
2192 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
2193 | "tensorflow.ProfileSessionDataRequest.repository_root" )); |
2194 | } else { |
2195 | goto handle_unusual; |
2196 | } |
2197 | break; |
2198 | } |
2199 | |
2200 | // string session_id = 2; |
2201 | case 2: { |
2202 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
2203 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
2204 | input, this->mutable_session_id())); |
2205 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2206 | this->session_id().data(), static_cast<int>(this->session_id().length()), |
2207 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
2208 | "tensorflow.ProfileSessionDataRequest.session_id" )); |
2209 | } else { |
2210 | goto handle_unusual; |
2211 | } |
2212 | break; |
2213 | } |
2214 | |
2215 | // string tool_name = 3; |
2216 | case 3: { |
2217 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
2218 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
2219 | input, this->mutable_tool_name())); |
2220 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2221 | this->tool_name().data(), static_cast<int>(this->tool_name().length()), |
2222 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
2223 | "tensorflow.ProfileSessionDataRequest.tool_name" )); |
2224 | } else { |
2225 | goto handle_unusual; |
2226 | } |
2227 | break; |
2228 | } |
2229 | |
2230 | // map<string, string> parameters = 4; |
2231 | case 4: { |
2232 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
2233 | ProfileSessionDataRequest_ParametersEntry_DoNotUse::Parser< ::PROTOBUF_NAMESPACE_ID::internal::MapField< |
2234 | ProfileSessionDataRequest_ParametersEntry_DoNotUse, |
2235 | std::string, std::string, |
2236 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
2237 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
2238 | 0 >, |
2239 | ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string > > parser(¶meters_); |
2240 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessageNoVirtual( |
2241 | input, &parser)); |
2242 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2243 | parser.key().data(), static_cast<int>(parser.key().length()), |
2244 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
2245 | "tensorflow.ProfileSessionDataRequest.ParametersEntry.key" )); |
2246 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2247 | parser.value().data(), static_cast<int>(parser.value().length()), |
2248 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
2249 | "tensorflow.ProfileSessionDataRequest.ParametersEntry.value" )); |
2250 | } else { |
2251 | goto handle_unusual; |
2252 | } |
2253 | break; |
2254 | } |
2255 | |
2256 | // string host_name = 5; |
2257 | case 5: { |
2258 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { |
2259 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
2260 | input, this->mutable_host_name())); |
2261 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2262 | this->host_name().data(), static_cast<int>(this->host_name().length()), |
2263 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
2264 | "tensorflow.ProfileSessionDataRequest.host_name" )); |
2265 | } else { |
2266 | goto handle_unusual; |
2267 | } |
2268 | break; |
2269 | } |
2270 | |
2271 | default: { |
2272 | handle_unusual: |
2273 | if (tag == 0) { |
2274 | goto success; |
2275 | } |
2276 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
2277 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2278 | break; |
2279 | } |
2280 | } |
2281 | } |
2282 | success: |
2283 | // @@protoc_insertion_point(parse_success:tensorflow.ProfileSessionDataRequest) |
2284 | return true; |
2285 | failure: |
2286 | // @@protoc_insertion_point(parse_failure:tensorflow.ProfileSessionDataRequest) |
2287 | return false; |
2288 | #undef DO_ |
2289 | } |
2290 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2291 | |
2292 | void ProfileSessionDataRequest::SerializeWithCachedSizes( |
2293 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
2294 | // @@protoc_insertion_point(serialize_start:tensorflow.ProfileSessionDataRequest) |
2295 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2296 | (void) cached_has_bits; |
2297 | |
2298 | // string repository_root = 1; |
2299 | if (this->repository_root().size() > 0) { |
2300 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2301 | this->repository_root().data(), static_cast<int>(this->repository_root().length()), |
2302 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2303 | "tensorflow.ProfileSessionDataRequest.repository_root" ); |
2304 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
2305 | 1, this->repository_root(), output); |
2306 | } |
2307 | |
2308 | // string session_id = 2; |
2309 | if (this->session_id().size() > 0) { |
2310 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2311 | this->session_id().data(), static_cast<int>(this->session_id().length()), |
2312 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2313 | "tensorflow.ProfileSessionDataRequest.session_id" ); |
2314 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
2315 | 2, this->session_id(), output); |
2316 | } |
2317 | |
2318 | // string tool_name = 3; |
2319 | if (this->tool_name().size() > 0) { |
2320 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2321 | this->tool_name().data(), static_cast<int>(this->tool_name().length()), |
2322 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2323 | "tensorflow.ProfileSessionDataRequest.tool_name" ); |
2324 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
2325 | 3, this->tool_name(), output); |
2326 | } |
2327 | |
2328 | // map<string, string> parameters = 4; |
2329 | if (!this->parameters().empty()) { |
2330 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_pointer |
2331 | ConstPtr; |
2332 | typedef ConstPtr SortItem; |
2333 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less; |
2334 | struct Utf8Check { |
2335 | static void Check(ConstPtr p) { |
2336 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2337 | p->first.data(), static_cast<int>(p->first.length()), |
2338 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2339 | "tensorflow.ProfileSessionDataRequest.ParametersEntry.key" ); |
2340 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2341 | p->second.data(), static_cast<int>(p->second.length()), |
2342 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2343 | "tensorflow.ProfileSessionDataRequest.ParametersEntry.value" ); |
2344 | } |
2345 | }; |
2346 | |
2347 | if (output->IsSerializationDeterministic() && |
2348 | this->parameters().size() > 1) { |
2349 | ::std::unique_ptr<SortItem[]> items( |
2350 | new SortItem[this->parameters().size()]); |
2351 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::size_type size_type; |
2352 | size_type n = 0; |
2353 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator |
2354 | it = this->parameters().begin(); |
2355 | it != this->parameters().end(); ++it, ++n) { |
2356 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
2357 | } |
2358 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
2359 | for (size_type i = 0; i < n; i++) { |
2360 | ProfileSessionDataRequest_ParametersEntry_DoNotUse::Funcs::SerializeToCodedStream(4, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, output); |
2361 | Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)])); |
2362 | } |
2363 | } else { |
2364 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator |
2365 | it = this->parameters().begin(); |
2366 | it != this->parameters().end(); ++it) { |
2367 | ProfileSessionDataRequest_ParametersEntry_DoNotUse::Funcs::SerializeToCodedStream(4, it->first, it->second, output); |
2368 | Utf8Check::Check(&(*it)); |
2369 | } |
2370 | } |
2371 | } |
2372 | |
2373 | // string host_name = 5; |
2374 | if (this->host_name().size() > 0) { |
2375 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2376 | this->host_name().data(), static_cast<int>(this->host_name().length()), |
2377 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2378 | "tensorflow.ProfileSessionDataRequest.host_name" ); |
2379 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
2380 | 5, this->host_name(), output); |
2381 | } |
2382 | |
2383 | if (_internal_metadata_.have_unknown_fields()) { |
2384 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
2385 | _internal_metadata_.unknown_fields(), output); |
2386 | } |
2387 | // @@protoc_insertion_point(serialize_end:tensorflow.ProfileSessionDataRequest) |
2388 | } |
2389 | |
2390 | ::PROTOBUF_NAMESPACE_ID::uint8* ProfileSessionDataRequest::InternalSerializeWithCachedSizesToArray( |
2391 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
2392 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ProfileSessionDataRequest) |
2393 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2394 | (void) cached_has_bits; |
2395 | |
2396 | // string repository_root = 1; |
2397 | if (this->repository_root().size() > 0) { |
2398 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2399 | this->repository_root().data(), static_cast<int>(this->repository_root().length()), |
2400 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2401 | "tensorflow.ProfileSessionDataRequest.repository_root" ); |
2402 | target = |
2403 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
2404 | 1, this->repository_root(), target); |
2405 | } |
2406 | |
2407 | // string session_id = 2; |
2408 | if (this->session_id().size() > 0) { |
2409 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2410 | this->session_id().data(), static_cast<int>(this->session_id().length()), |
2411 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2412 | "tensorflow.ProfileSessionDataRequest.session_id" ); |
2413 | target = |
2414 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
2415 | 2, this->session_id(), target); |
2416 | } |
2417 | |
2418 | // string tool_name = 3; |
2419 | if (this->tool_name().size() > 0) { |
2420 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2421 | this->tool_name().data(), static_cast<int>(this->tool_name().length()), |
2422 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2423 | "tensorflow.ProfileSessionDataRequest.tool_name" ); |
2424 | target = |
2425 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
2426 | 3, this->tool_name(), target); |
2427 | } |
2428 | |
2429 | // map<string, string> parameters = 4; |
2430 | if (!this->parameters().empty()) { |
2431 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_pointer |
2432 | ConstPtr; |
2433 | typedef ConstPtr SortItem; |
2434 | typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less; |
2435 | struct Utf8Check { |
2436 | static void Check(ConstPtr p) { |
2437 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2438 | p->first.data(), static_cast<int>(p->first.length()), |
2439 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2440 | "tensorflow.ProfileSessionDataRequest.ParametersEntry.key" ); |
2441 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2442 | p->second.data(), static_cast<int>(p->second.length()), |
2443 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2444 | "tensorflow.ProfileSessionDataRequest.ParametersEntry.value" ); |
2445 | } |
2446 | }; |
2447 | |
2448 | if (false && |
2449 | this->parameters().size() > 1) { |
2450 | ::std::unique_ptr<SortItem[]> items( |
2451 | new SortItem[this->parameters().size()]); |
2452 | typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::size_type size_type; |
2453 | size_type n = 0; |
2454 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator |
2455 | it = this->parameters().begin(); |
2456 | it != this->parameters().end(); ++it, ++n) { |
2457 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
2458 | } |
2459 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
2460 | for (size_type i = 0; i < n; i++) { |
2461 | target = ProfileSessionDataRequest_ParametersEntry_DoNotUse::Funcs::SerializeToArray(4, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target); |
2462 | Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)])); |
2463 | } |
2464 | } else { |
2465 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator |
2466 | it = this->parameters().begin(); |
2467 | it != this->parameters().end(); ++it) { |
2468 | target = ProfileSessionDataRequest_ParametersEntry_DoNotUse::Funcs::SerializeToArray(4, it->first, it->second, target); |
2469 | Utf8Check::Check(&(*it)); |
2470 | } |
2471 | } |
2472 | } |
2473 | |
2474 | // string host_name = 5; |
2475 | if (this->host_name().size() > 0) { |
2476 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2477 | this->host_name().data(), static_cast<int>(this->host_name().length()), |
2478 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2479 | "tensorflow.ProfileSessionDataRequest.host_name" ); |
2480 | target = |
2481 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
2482 | 5, this->host_name(), target); |
2483 | } |
2484 | |
2485 | if (_internal_metadata_.have_unknown_fields()) { |
2486 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
2487 | _internal_metadata_.unknown_fields(), target); |
2488 | } |
2489 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ProfileSessionDataRequest) |
2490 | return target; |
2491 | } |
2492 | |
2493 | size_t ProfileSessionDataRequest::ByteSizeLong() const { |
2494 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.ProfileSessionDataRequest) |
2495 | size_t total_size = 0; |
2496 | |
2497 | if (_internal_metadata_.have_unknown_fields()) { |
2498 | total_size += |
2499 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
2500 | _internal_metadata_.unknown_fields()); |
2501 | } |
2502 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2503 | // Prevent compiler warnings about cached_has_bits being unused |
2504 | (void) cached_has_bits; |
2505 | |
2506 | // map<string, string> parameters = 4; |
2507 | total_size += 1 * |
2508 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->parameters_size()); |
2509 | for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator |
2510 | it = this->parameters().begin(); |
2511 | it != this->parameters().end(); ++it) { |
2512 | total_size += ProfileSessionDataRequest_ParametersEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); |
2513 | } |
2514 | |
2515 | // string repository_root = 1; |
2516 | if (this->repository_root().size() > 0) { |
2517 | total_size += 1 + |
2518 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
2519 | this->repository_root()); |
2520 | } |
2521 | |
2522 | // string session_id = 2; |
2523 | if (this->session_id().size() > 0) { |
2524 | total_size += 1 + |
2525 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
2526 | this->session_id()); |
2527 | } |
2528 | |
2529 | // string tool_name = 3; |
2530 | if (this->tool_name().size() > 0) { |
2531 | total_size += 1 + |
2532 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
2533 | this->tool_name()); |
2534 | } |
2535 | |
2536 | // string host_name = 5; |
2537 | if (this->host_name().size() > 0) { |
2538 | total_size += 1 + |
2539 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
2540 | this->host_name()); |
2541 | } |
2542 | |
2543 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
2544 | SetCachedSize(cached_size); |
2545 | return total_size; |
2546 | } |
2547 | |
2548 | void ProfileSessionDataRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2549 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ProfileSessionDataRequest) |
2550 | GOOGLE_DCHECK_NE(&from, this); |
2551 | const ProfileSessionDataRequest* source = |
2552 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ProfileSessionDataRequest>( |
2553 | &from); |
2554 | if (source == nullptr) { |
2555 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ProfileSessionDataRequest) |
2556 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
2557 | } else { |
2558 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ProfileSessionDataRequest) |
2559 | MergeFrom(*source); |
2560 | } |
2561 | } |
2562 | |
2563 | void ProfileSessionDataRequest::MergeFrom(const ProfileSessionDataRequest& from) { |
2564 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ProfileSessionDataRequest) |
2565 | GOOGLE_DCHECK_NE(&from, this); |
2566 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2567 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2568 | (void) cached_has_bits; |
2569 | |
2570 | parameters_.MergeFrom(from.parameters_); |
2571 | if (from.repository_root().size() > 0) { |
2572 | |
2573 | repository_root_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.repository_root_); |
2574 | } |
2575 | if (from.session_id().size() > 0) { |
2576 | |
2577 | session_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.session_id_); |
2578 | } |
2579 | if (from.tool_name().size() > 0) { |
2580 | |
2581 | tool_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.tool_name_); |
2582 | } |
2583 | if (from.host_name().size() > 0) { |
2584 | |
2585 | host_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.host_name_); |
2586 | } |
2587 | } |
2588 | |
2589 | void ProfileSessionDataRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2590 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ProfileSessionDataRequest) |
2591 | if (&from == this) return; |
2592 | Clear(); |
2593 | MergeFrom(from); |
2594 | } |
2595 | |
2596 | void ProfileSessionDataRequest::CopyFrom(const ProfileSessionDataRequest& from) { |
2597 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ProfileSessionDataRequest) |
2598 | if (&from == this) return; |
2599 | Clear(); |
2600 | MergeFrom(from); |
2601 | } |
2602 | |
2603 | bool ProfileSessionDataRequest::IsInitialized() const { |
2604 | return true; |
2605 | } |
2606 | |
2607 | void ProfileSessionDataRequest::InternalSwap(ProfileSessionDataRequest* other) { |
2608 | using std::swap; |
2609 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2610 | parameters_.Swap(&other->parameters_); |
2611 | repository_root_.Swap(&other->repository_root_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2612 | GetArenaNoVirtual()); |
2613 | session_id_.Swap(&other->session_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2614 | GetArenaNoVirtual()); |
2615 | tool_name_.Swap(&other->tool_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2616 | GetArenaNoVirtual()); |
2617 | host_name_.Swap(&other->host_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2618 | GetArenaNoVirtual()); |
2619 | } |
2620 | |
2621 | ::PROTOBUF_NAMESPACE_ID::Metadata ProfileSessionDataRequest::GetMetadata() const { |
2622 | return GetMetadataStatic(); |
2623 | } |
2624 | |
2625 | |
2626 | // =================================================================== |
2627 | |
2628 | void ProfileSessionDataResponse::InitAsDefaultInstance() { |
2629 | } |
2630 | class ProfileSessionDataResponse::_Internal { |
2631 | public: |
2632 | }; |
2633 | |
2634 | ProfileSessionDataResponse::ProfileSessionDataResponse() |
2635 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
2636 | SharedCtor(); |
2637 | // @@protoc_insertion_point(constructor:tensorflow.ProfileSessionDataResponse) |
2638 | } |
2639 | ProfileSessionDataResponse::ProfileSessionDataResponse(const ProfileSessionDataResponse& from) |
2640 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
2641 | _internal_metadata_(nullptr) { |
2642 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2643 | error_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2644 | if (!from.error_message().empty()) { |
2645 | error_message_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.error_message_); |
2646 | } |
2647 | output_format_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2648 | if (!from.output_format().empty()) { |
2649 | output_format_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.output_format_); |
2650 | } |
2651 | output_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2652 | if (!from.output().empty()) { |
2653 | output_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.output_); |
2654 | } |
2655 | // @@protoc_insertion_point(copy_constructor:tensorflow.ProfileSessionDataResponse) |
2656 | } |
2657 | |
2658 | void ProfileSessionDataResponse::SharedCtor() { |
2659 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ProfileSessionDataResponse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base); |
2660 | error_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2661 | output_format_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2662 | output_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2663 | } |
2664 | |
2665 | ProfileSessionDataResponse::~ProfileSessionDataResponse() { |
2666 | // @@protoc_insertion_point(destructor:tensorflow.ProfileSessionDataResponse) |
2667 | SharedDtor(); |
2668 | } |
2669 | |
2670 | void ProfileSessionDataResponse::SharedDtor() { |
2671 | error_message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2672 | output_format_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2673 | output_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2674 | } |
2675 | |
2676 | void ProfileSessionDataResponse::SetCachedSize(int size) const { |
2677 | _cached_size_.Set(size); |
2678 | } |
2679 | const ProfileSessionDataResponse& ProfileSessionDataResponse::default_instance() { |
2680 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ProfileSessionDataResponse_tensorflow_2fcore_2fprofiler_2fprofiler_5fanalysis_2eproto.base); |
2681 | return *internal_default_instance(); |
2682 | } |
2683 | |
2684 | |
2685 | void ProfileSessionDataResponse::Clear() { |
2686 | // @@protoc_insertion_point(message_clear_start:tensorflow.ProfileSessionDataResponse) |
2687 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2688 | // Prevent compiler warnings about cached_has_bits being unused |
2689 | (void) cached_has_bits; |
2690 | |
2691 | error_message_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2692 | output_format_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2693 | output_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2694 | _internal_metadata_.Clear(); |
2695 | } |
2696 | |
2697 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2698 | const char* ProfileSessionDataResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
2699 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
2700 | while (!ctx->Done(&ptr)) { |
2701 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2702 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
2703 | CHK_(ptr); |
2704 | switch (tag >> 3) { |
2705 | // string error_message = 1; |
2706 | case 1: |
2707 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
2708 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_error_message(), ptr, ctx, "tensorflow.ProfileSessionDataResponse.error_message" ); |
2709 | CHK_(ptr); |
2710 | } else goto handle_unusual; |
2711 | continue; |
2712 | // string output_format = 2; |
2713 | case 2: |
2714 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
2715 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_output_format(), ptr, ctx, "tensorflow.ProfileSessionDataResponse.output_format" ); |
2716 | CHK_(ptr); |
2717 | } else goto handle_unusual; |
2718 | continue; |
2719 | // bytes output = 3; |
2720 | case 3: |
2721 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
2722 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_output(), ptr, ctx); |
2723 | CHK_(ptr); |
2724 | } else goto handle_unusual; |
2725 | continue; |
2726 | default: { |
2727 | handle_unusual: |
2728 | if ((tag & 7) == 4 || tag == 0) { |
2729 | ctx->SetLastTag(tag); |
2730 | goto success; |
2731 | } |
2732 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
2733 | CHK_(ptr != nullptr); |
2734 | continue; |
2735 | } |
2736 | } // switch |
2737 | } // while |
2738 | success: |
2739 | return ptr; |
2740 | failure: |
2741 | ptr = nullptr; |
2742 | goto success; |
2743 | #undef CHK_ |
2744 | } |
2745 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2746 | bool ProfileSessionDataResponse::MergePartialFromCodedStream( |
2747 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
2748 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
2749 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
2750 | // @@protoc_insertion_point(parse_start:tensorflow.ProfileSessionDataResponse) |
2751 | for (;;) { |
2752 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2753 | tag = p.first; |
2754 | if (!p.second) goto handle_unusual; |
2755 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2756 | // string error_message = 1; |
2757 | case 1: { |
2758 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
2759 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
2760 | input, this->mutable_error_message())); |
2761 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2762 | this->error_message().data(), static_cast<int>(this->error_message().length()), |
2763 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
2764 | "tensorflow.ProfileSessionDataResponse.error_message" )); |
2765 | } else { |
2766 | goto handle_unusual; |
2767 | } |
2768 | break; |
2769 | } |
2770 | |
2771 | // string output_format = 2; |
2772 | case 2: { |
2773 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
2774 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
2775 | input, this->mutable_output_format())); |
2776 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2777 | this->output_format().data(), static_cast<int>(this->output_format().length()), |
2778 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
2779 | "tensorflow.ProfileSessionDataResponse.output_format" )); |
2780 | } else { |
2781 | goto handle_unusual; |
2782 | } |
2783 | break; |
2784 | } |
2785 | |
2786 | // bytes output = 3; |
2787 | case 3: { |
2788 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
2789 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( |
2790 | input, this->mutable_output())); |
2791 | } else { |
2792 | goto handle_unusual; |
2793 | } |
2794 | break; |
2795 | } |
2796 | |
2797 | default: { |
2798 | handle_unusual: |
2799 | if (tag == 0) { |
2800 | goto success; |
2801 | } |
2802 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
2803 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2804 | break; |
2805 | } |
2806 | } |
2807 | } |
2808 | success: |
2809 | // @@protoc_insertion_point(parse_success:tensorflow.ProfileSessionDataResponse) |
2810 | return true; |
2811 | failure: |
2812 | // @@protoc_insertion_point(parse_failure:tensorflow.ProfileSessionDataResponse) |
2813 | return false; |
2814 | #undef DO_ |
2815 | } |
2816 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2817 | |
2818 | void ProfileSessionDataResponse::SerializeWithCachedSizes( |
2819 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
2820 | // @@protoc_insertion_point(serialize_start:tensorflow.ProfileSessionDataResponse) |
2821 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2822 | (void) cached_has_bits; |
2823 | |
2824 | // string error_message = 1; |
2825 | if (this->error_message().size() > 0) { |
2826 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2827 | this->error_message().data(), static_cast<int>(this->error_message().length()), |
2828 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2829 | "tensorflow.ProfileSessionDataResponse.error_message" ); |
2830 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
2831 | 1, this->error_message(), output); |
2832 | } |
2833 | |
2834 | // string output_format = 2; |
2835 | if (this->output_format().size() > 0) { |
2836 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2837 | this->output_format().data(), static_cast<int>(this->output_format().length()), |
2838 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2839 | "tensorflow.ProfileSessionDataResponse.output_format" ); |
2840 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
2841 | 2, this->output_format(), output); |
2842 | } |
2843 | |
2844 | // bytes output = 3; |
2845 | if (this->output().size() > 0) { |
2846 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased( |
2847 | 3, this->output(), output); |
2848 | } |
2849 | |
2850 | if (_internal_metadata_.have_unknown_fields()) { |
2851 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
2852 | _internal_metadata_.unknown_fields(), output); |
2853 | } |
2854 | // @@protoc_insertion_point(serialize_end:tensorflow.ProfileSessionDataResponse) |
2855 | } |
2856 | |
2857 | ::PROTOBUF_NAMESPACE_ID::uint8* ProfileSessionDataResponse::InternalSerializeWithCachedSizesToArray( |
2858 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
2859 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ProfileSessionDataResponse) |
2860 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2861 | (void) cached_has_bits; |
2862 | |
2863 | // string error_message = 1; |
2864 | if (this->error_message().size() > 0) { |
2865 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2866 | this->error_message().data(), static_cast<int>(this->error_message().length()), |
2867 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2868 | "tensorflow.ProfileSessionDataResponse.error_message" ); |
2869 | target = |
2870 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
2871 | 1, this->error_message(), target); |
2872 | } |
2873 | |
2874 | // string output_format = 2; |
2875 | if (this->output_format().size() > 0) { |
2876 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
2877 | this->output_format().data(), static_cast<int>(this->output_format().length()), |
2878 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
2879 | "tensorflow.ProfileSessionDataResponse.output_format" ); |
2880 | target = |
2881 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
2882 | 2, this->output_format(), target); |
2883 | } |
2884 | |
2885 | // bytes output = 3; |
2886 | if (this->output().size() > 0) { |
2887 | target = |
2888 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray( |
2889 | 3, this->output(), target); |
2890 | } |
2891 | |
2892 | if (_internal_metadata_.have_unknown_fields()) { |
2893 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
2894 | _internal_metadata_.unknown_fields(), target); |
2895 | } |
2896 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ProfileSessionDataResponse) |
2897 | return target; |
2898 | } |
2899 | |
2900 | size_t ProfileSessionDataResponse::ByteSizeLong() const { |
2901 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.ProfileSessionDataResponse) |
2902 | size_t total_size = 0; |
2903 | |
2904 | if (_internal_metadata_.have_unknown_fields()) { |
2905 | total_size += |
2906 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
2907 | _internal_metadata_.unknown_fields()); |
2908 | } |
2909 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2910 | // Prevent compiler warnings about cached_has_bits being unused |
2911 | (void) cached_has_bits; |
2912 | |
2913 | // string error_message = 1; |
2914 | if (this->error_message().size() > 0) { |
2915 | total_size += 1 + |
2916 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
2917 | this->error_message()); |
2918 | } |
2919 | |
2920 | // string output_format = 2; |
2921 | if (this->output_format().size() > 0) { |
2922 | total_size += 1 + |
2923 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
2924 | this->output_format()); |
2925 | } |
2926 | |
2927 | // bytes output = 3; |
2928 | if (this->output().size() > 0) { |
2929 | total_size += 1 + |
2930 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( |
2931 | this->output()); |
2932 | } |
2933 | |
2934 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
2935 | SetCachedSize(cached_size); |
2936 | return total_size; |
2937 | } |
2938 | |
2939 | void ProfileSessionDataResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2940 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ProfileSessionDataResponse) |
2941 | GOOGLE_DCHECK_NE(&from, this); |
2942 | const ProfileSessionDataResponse* source = |
2943 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ProfileSessionDataResponse>( |
2944 | &from); |
2945 | if (source == nullptr) { |
2946 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ProfileSessionDataResponse) |
2947 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
2948 | } else { |
2949 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ProfileSessionDataResponse) |
2950 | MergeFrom(*source); |
2951 | } |
2952 | } |
2953 | |
2954 | void ProfileSessionDataResponse::MergeFrom(const ProfileSessionDataResponse& from) { |
2955 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ProfileSessionDataResponse) |
2956 | GOOGLE_DCHECK_NE(&from, this); |
2957 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2958 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
2959 | (void) cached_has_bits; |
2960 | |
2961 | if (from.error_message().size() > 0) { |
2962 | |
2963 | error_message_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.error_message_); |
2964 | } |
2965 | if (from.output_format().size() > 0) { |
2966 | |
2967 | output_format_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.output_format_); |
2968 | } |
2969 | if (from.output().size() > 0) { |
2970 | |
2971 | output_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.output_); |
2972 | } |
2973 | } |
2974 | |
2975 | void ProfileSessionDataResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
2976 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ProfileSessionDataResponse) |
2977 | if (&from == this) return; |
2978 | Clear(); |
2979 | MergeFrom(from); |
2980 | } |
2981 | |
2982 | void ProfileSessionDataResponse::CopyFrom(const ProfileSessionDataResponse& from) { |
2983 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ProfileSessionDataResponse) |
2984 | if (&from == this) return; |
2985 | Clear(); |
2986 | MergeFrom(from); |
2987 | } |
2988 | |
2989 | bool ProfileSessionDataResponse::IsInitialized() const { |
2990 | return true; |
2991 | } |
2992 | |
2993 | void ProfileSessionDataResponse::InternalSwap(ProfileSessionDataResponse* other) { |
2994 | using std::swap; |
2995 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2996 | error_message_.Swap(&other->error_message_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2997 | GetArenaNoVirtual()); |
2998 | output_format_.Swap(&other->output_format_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2999 | GetArenaNoVirtual()); |
3000 | output_.Swap(&other->output_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
3001 | GetArenaNoVirtual()); |
3002 | } |
3003 | |
3004 | ::PROTOBUF_NAMESPACE_ID::Metadata ProfileSessionDataResponse::GetMetadata() const { |
3005 | return GetMetadataStatic(); |
3006 | } |
3007 | |
3008 | |
3009 | // @@protoc_insertion_point(namespace_scope) |
3010 | } // namespace tensorflow |
3011 | PROTOBUF_NAMESPACE_OPEN |
3012 | template<> PROTOBUF_NOINLINE ::tensorflow::NewProfileSessionRequest* Arena::CreateMaybeMessage< ::tensorflow::NewProfileSessionRequest >(Arena* arena) { |
3013 | return Arena::CreateInternal< ::tensorflow::NewProfileSessionRequest >(arena); |
3014 | } |
3015 | template<> PROTOBUF_NOINLINE ::tensorflow::NewProfileSessionResponse* Arena::CreateMaybeMessage< ::tensorflow::NewProfileSessionResponse >(Arena* arena) { |
3016 | return Arena::CreateInternal< ::tensorflow::NewProfileSessionResponse >(arena); |
3017 | } |
3018 | template<> PROTOBUF_NOINLINE ::tensorflow::EnumProfileSessionsAndToolsRequest* Arena::CreateMaybeMessage< ::tensorflow::EnumProfileSessionsAndToolsRequest >(Arena* arena) { |
3019 | return Arena::CreateInternal< ::tensorflow::EnumProfileSessionsAndToolsRequest >(arena); |
3020 | } |
3021 | template<> PROTOBUF_NOINLINE ::tensorflow::ProfileSessionInfo* Arena::CreateMaybeMessage< ::tensorflow::ProfileSessionInfo >(Arena* arena) { |
3022 | return Arena::CreateInternal< ::tensorflow::ProfileSessionInfo >(arena); |
3023 | } |
3024 | template<> PROTOBUF_NOINLINE ::tensorflow::EnumProfileSessionsAndToolsResponse* Arena::CreateMaybeMessage< ::tensorflow::EnumProfileSessionsAndToolsResponse >(Arena* arena) { |
3025 | return Arena::CreateInternal< ::tensorflow::EnumProfileSessionsAndToolsResponse >(arena); |
3026 | } |
3027 | template<> PROTOBUF_NOINLINE ::tensorflow::ProfileSessionDataRequest_ParametersEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::ProfileSessionDataRequest_ParametersEntry_DoNotUse >(Arena* arena) { |
3028 | return Arena::CreateInternal< ::tensorflow::ProfileSessionDataRequest_ParametersEntry_DoNotUse >(arena); |
3029 | } |
3030 | template<> PROTOBUF_NOINLINE ::tensorflow::ProfileSessionDataRequest* Arena::CreateMaybeMessage< ::tensorflow::ProfileSessionDataRequest >(Arena* arena) { |
3031 | return Arena::CreateInternal< ::tensorflow::ProfileSessionDataRequest >(arena); |
3032 | } |
3033 | template<> PROTOBUF_NOINLINE ::tensorflow::ProfileSessionDataResponse* Arena::CreateMaybeMessage< ::tensorflow::ProfileSessionDataResponse >(Arena* arena) { |
3034 | return Arena::CreateInternal< ::tensorflow::ProfileSessionDataResponse >(arena); |
3035 | } |
3036 | PROTOBUF_NAMESPACE_CLOSE |
3037 | |
3038 | // @@protoc_insertion_point(global_scope) |
3039 | #include <google/protobuf/port_undef.inc> |
3040 | |