1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/core/profiler/tfprof_options.proto
3
4#include "tensorflow/core/profiler/tfprof_options.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>
18extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AdvisorOptionsProto_CheckerOption_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto;
19extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto;
20extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AdvisorOptionsProto_CheckersEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto;
21namespace tensorflow {
22namespace tfprof {
23class OptionsProtoDefaultTypeInternal {
24 public:
25 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<OptionsProto> _instance;
26} _OptionsProto_default_instance_;
27class AdvisorOptionsProto_CheckersEntry_DoNotUseDefaultTypeInternal {
28 public:
29 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<AdvisorOptionsProto_CheckersEntry_DoNotUse> _instance;
30} _AdvisorOptionsProto_CheckersEntry_DoNotUse_default_instance_;
31class AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUseDefaultTypeInternal {
32 public:
33 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse> _instance;
34} _AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse_default_instance_;
35class AdvisorOptionsProto_CheckerOptionDefaultTypeInternal {
36 public:
37 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<AdvisorOptionsProto_CheckerOption> _instance;
38} _AdvisorOptionsProto_CheckerOption_default_instance_;
39class AdvisorOptionsProtoDefaultTypeInternal {
40 public:
41 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<AdvisorOptionsProto> _instance;
42} _AdvisorOptionsProto_default_instance_;
43} // namespace tfprof
44} // namespace tensorflow
45static void InitDefaultsscc_info_AdvisorOptionsProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto() {
46 GOOGLE_PROTOBUF_VERIFY_VERSION;
47
48 {
49 void* ptr = &::tensorflow::tfprof::_AdvisorOptionsProto_default_instance_;
50 new (ptr) ::tensorflow::tfprof::AdvisorOptionsProto();
51 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
52 }
53 ::tensorflow::tfprof::AdvisorOptionsProto::InitAsDefaultInstance();
54}
55
56::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AdvisorOptionsProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto =
57 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_AdvisorOptionsProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto}, {
58 &scc_info_AdvisorOptionsProto_CheckersEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto.base,}};
59
60static void InitDefaultsscc_info_AdvisorOptionsProto_CheckerOption_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto() {
61 GOOGLE_PROTOBUF_VERIFY_VERSION;
62
63 {
64 void* ptr = &::tensorflow::tfprof::_AdvisorOptionsProto_CheckerOption_default_instance_;
65 new (ptr) ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption();
66 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
67 }
68 ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption::InitAsDefaultInstance();
69}
70
71::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AdvisorOptionsProto_CheckerOption_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto =
72 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_AdvisorOptionsProto_CheckerOption_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto}, {
73 &scc_info_AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto.base,}};
74
75static void InitDefaultsscc_info_AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto() {
76 GOOGLE_PROTOBUF_VERIFY_VERSION;
77
78 {
79 void* ptr = &::tensorflow::tfprof::_AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse_default_instance_;
80 new (ptr) ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse();
81 }
82 ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse::InitAsDefaultInstance();
83}
84
85::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto =
86 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto}, {}};
87
88static void InitDefaultsscc_info_AdvisorOptionsProto_CheckersEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto() {
89 GOOGLE_PROTOBUF_VERIFY_VERSION;
90
91 {
92 void* ptr = &::tensorflow::tfprof::_AdvisorOptionsProto_CheckersEntry_DoNotUse_default_instance_;
93 new (ptr) ::tensorflow::tfprof::AdvisorOptionsProto_CheckersEntry_DoNotUse();
94 }
95 ::tensorflow::tfprof::AdvisorOptionsProto_CheckersEntry_DoNotUse::InitAsDefaultInstance();
96}
97
98::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_AdvisorOptionsProto_CheckersEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto =
99 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_AdvisorOptionsProto_CheckersEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto}, {
100 &scc_info_AdvisorOptionsProto_CheckerOption_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto.base,}};
101
102static void InitDefaultsscc_info_OptionsProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto() {
103 GOOGLE_PROTOBUF_VERIFY_VERSION;
104
105 {
106 void* ptr = &::tensorflow::tfprof::_OptionsProto_default_instance_;
107 new (ptr) ::tensorflow::tfprof::OptionsProto();
108 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
109 }
110 ::tensorflow::tfprof::OptionsProto::InitAsDefaultInstance();
111}
112
113::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_OptionsProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto =
114 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_OptionsProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto}, {}};
115
116static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto[5];
117static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto = nullptr;
118static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto = nullptr;
119
120const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
121 ~0u, // no _has_bits_
122 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, _internal_metadata_),
123 ~0u, // no _extensions_
124 ~0u, // no _oneof_case_
125 ~0u, // no _weak_field_map_
126 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, max_depth_),
127 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, min_bytes_),
128 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, min_peak_bytes_),
129 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, min_residual_bytes_),
130 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, min_output_bytes_),
131 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, min_micros_),
132 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, min_accelerator_micros_),
133 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, min_cpu_micros_),
134 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, min_params_),
135 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, min_float_ops_),
136 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, min_occurrence_),
137 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, step_),
138 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, order_by_),
139 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, account_type_regexes_),
140 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, start_name_regexes_),
141 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, trim_name_regexes_),
142 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, show_name_regexes_),
143 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, hide_name_regexes_),
144 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, account_displayed_op_only_),
145 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, select_),
146 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, output_),
147 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::OptionsProto, dump_to_file_),
148 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::AdvisorOptionsProto_CheckersEntry_DoNotUse, _has_bits_),
149 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::AdvisorOptionsProto_CheckersEntry_DoNotUse, _internal_metadata_),
150 ~0u, // no _extensions_
151 ~0u, // no _oneof_case_
152 ~0u, // no _weak_field_map_
153 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::AdvisorOptionsProto_CheckersEntry_DoNotUse, key_),
154 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::AdvisorOptionsProto_CheckersEntry_DoNotUse, value_),
155 0,
156 1,
157 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse, _has_bits_),
158 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse, _internal_metadata_),
159 ~0u, // no _extensions_
160 ~0u, // no _oneof_case_
161 ~0u, // no _weak_field_map_
162 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse, key_),
163 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse, value_),
164 0,
165 1,
166 ~0u, // no _has_bits_
167 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption, _internal_metadata_),
168 ~0u, // no _extensions_
169 ~0u, // no _oneof_case_
170 ~0u, // no _weak_field_map_
171 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption, options_),
172 ~0u, // no _has_bits_
173 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::AdvisorOptionsProto, _internal_metadata_),
174 ~0u, // no _extensions_
175 ~0u, // no _oneof_case_
176 ~0u, // no _weak_field_map_
177 PROTOBUF_FIELD_OFFSET(::tensorflow::tfprof::AdvisorOptionsProto, checkers_),
178};
179static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
180 { 0, -1, sizeof(::tensorflow::tfprof::OptionsProto)},
181 { 27, 34, sizeof(::tensorflow::tfprof::AdvisorOptionsProto_CheckersEntry_DoNotUse)},
182 { 36, 43, sizeof(::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse)},
183 { 45, -1, sizeof(::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption)},
184 { 51, -1, sizeof(::tensorflow::tfprof::AdvisorOptionsProto)},
185};
186
187static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
188 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_OptionsProto_default_instance_),
189 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_AdvisorOptionsProto_CheckersEntry_DoNotUse_default_instance_),
190 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse_default_instance_),
191 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_AdvisorOptionsProto_CheckerOption_default_instance_),
192 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::tfprof::_AdvisorOptionsProto_default_instance_),
193};
194
195const char descriptor_table_protodef_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
196 "\n-tensorflow/core/profiler/tfprof_option"
197 "s.proto\022\021tensorflow.tfprof\"\225\004\n\014OptionsPr"
198 "oto\022\021\n\tmax_depth\030\001 \001(\003\022\021\n\tmin_bytes\030\002 \001("
199 "\003\022\026\n\016min_peak_bytes\030\023 \001(\003\022\032\n\022min_residua"
200 "l_bytes\030\024 \001(\003\022\030\n\020min_output_bytes\030\025 \001(\003\022"
201 "\022\n\nmin_micros\030\003 \001(\003\022\036\n\026min_accelerator_m"
202 "icros\030\026 \001(\003\022\026\n\016min_cpu_micros\030\027 \001(\003\022\022\n\nm"
203 "in_params\030\004 \001(\003\022\025\n\rmin_float_ops\030\005 \001(\003\022\026"
204 "\n\016min_occurrence\030\021 \001(\003\022\014\n\004step\030\022 \001(\003\022\020\n\010"
205 "order_by\030\007 \001(\t\022\034\n\024account_type_regexes\030\010"
206 " \003(\t\022\032\n\022start_name_regexes\030\t \003(\t\022\031\n\021trim"
207 "_name_regexes\030\n \003(\t\022\031\n\021show_name_regexes"
208 "\030\013 \003(\t\022\031\n\021hide_name_regexes\030\014 \003(\t\022!\n\031acc"
209 "ount_displayed_op_only\030\r \001(\010\022\016\n\006select\030\016"
210 " \003(\t\022\016\n\006output\030\017 \001(\t\022\024\n\014dump_to_file\030\020 \001"
211 "(\t\"\332\002\n\023AdvisorOptionsProto\022F\n\010checkers\030\001"
212 " \003(\01324.tensorflow.tfprof.AdvisorOptionsP"
213 "roto.CheckersEntry\032e\n\rCheckersEntry\022\013\n\003k"
214 "ey\030\001 \001(\t\022C\n\005value\030\002 \001(\01324.tensorflow.tfp"
215 "rof.AdvisorOptionsProto.CheckerOption:\0028"
216 "\001\032\223\001\n\rCheckerOption\022R\n\007options\030\001 \003(\0132A.t"
217 "ensorflow.tfprof.AdvisorOptionsProto.Che"
218 "ckerOption.OptionsEntry\032.\n\014OptionsEntry\022"
219 "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001b\006proto3"
220 ;
221static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto_deps[1] = {
222};
223static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto_sccs[5] = {
224 &scc_info_AdvisorOptionsProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto.base,
225 &scc_info_AdvisorOptionsProto_CheckerOption_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto.base,
226 &scc_info_AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto.base,
227 &scc_info_AdvisorOptionsProto_CheckersEntry_DoNotUse_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto.base,
228 &scc_info_OptionsProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto.base,
229};
230static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto_once;
231static bool descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto_initialized = false;
232const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto = {
233 &descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto, "tensorflow/core/profiler/tfprof_options.proto", 959,
234 &descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto_once, descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto_deps, 5, 0,
235 schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto::offsets,
236 file_level_metadata_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto, 5, file_level_enum_descriptors_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto,
237};
238
239// Force running AddDescriptors() at dynamic initialization time.
240static bool dynamic_init_dummy_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto), true);
241namespace tensorflow {
242namespace tfprof {
243
244// ===================================================================
245
246void OptionsProto::InitAsDefaultInstance() {
247}
248class OptionsProto::_Internal {
249 public:
250};
251
252OptionsProto::OptionsProto()
253 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
254 SharedCtor();
255 // @@protoc_insertion_point(constructor:tensorflow.tfprof.OptionsProto)
256}
257OptionsProto::OptionsProto(const OptionsProto& from)
258 : ::PROTOBUF_NAMESPACE_ID::Message(),
259 _internal_metadata_(nullptr),
260 account_type_regexes_(from.account_type_regexes_),
261 start_name_regexes_(from.start_name_regexes_),
262 trim_name_regexes_(from.trim_name_regexes_),
263 show_name_regexes_(from.show_name_regexes_),
264 hide_name_regexes_(from.hide_name_regexes_),
265 select_(from.select_) {
266 _internal_metadata_.MergeFrom(from._internal_metadata_);
267 order_by_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
268 if (!from.order_by().empty()) {
269 order_by_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.order_by_);
270 }
271 output_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
272 if (!from.output().empty()) {
273 output_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.output_);
274 }
275 dump_to_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
276 if (!from.dump_to_file().empty()) {
277 dump_to_file_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.dump_to_file_);
278 }
279 ::memcpy(&max_depth_, &from.max_depth_,
280 static_cast<size_t>(reinterpret_cast<char*>(&account_displayed_op_only_) -
281 reinterpret_cast<char*>(&max_depth_)) + sizeof(account_displayed_op_only_));
282 // @@protoc_insertion_point(copy_constructor:tensorflow.tfprof.OptionsProto)
283}
284
285void OptionsProto::SharedCtor() {
286 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_OptionsProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto.base);
287 order_by_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
288 output_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
289 dump_to_file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
290 ::memset(&max_depth_, 0, static_cast<size_t>(
291 reinterpret_cast<char*>(&account_displayed_op_only_) -
292 reinterpret_cast<char*>(&max_depth_)) + sizeof(account_displayed_op_only_));
293}
294
295OptionsProto::~OptionsProto() {
296 // @@protoc_insertion_point(destructor:tensorflow.tfprof.OptionsProto)
297 SharedDtor();
298}
299
300void OptionsProto::SharedDtor() {
301 order_by_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
302 output_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
303 dump_to_file_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
304}
305
306void OptionsProto::SetCachedSize(int size) const {
307 _cached_size_.Set(size);
308}
309const OptionsProto& OptionsProto::default_instance() {
310 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_OptionsProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto.base);
311 return *internal_default_instance();
312}
313
314
315void OptionsProto::Clear() {
316// @@protoc_insertion_point(message_clear_start:tensorflow.tfprof.OptionsProto)
317 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
318 // Prevent compiler warnings about cached_has_bits being unused
319 (void) cached_has_bits;
320
321 account_type_regexes_.Clear();
322 start_name_regexes_.Clear();
323 trim_name_regexes_.Clear();
324 show_name_regexes_.Clear();
325 hide_name_regexes_.Clear();
326 select_.Clear();
327 order_by_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
328 output_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
329 dump_to_file_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
330 ::memset(&max_depth_, 0, static_cast<size_t>(
331 reinterpret_cast<char*>(&account_displayed_op_only_) -
332 reinterpret_cast<char*>(&max_depth_)) + sizeof(account_displayed_op_only_));
333 _internal_metadata_.Clear();
334}
335
336#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
337const char* OptionsProto::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
338#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
339 while (!ctx->Done(&ptr)) {
340 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
341 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
342 CHK_(ptr);
343 switch (tag >> 3) {
344 // int64 max_depth = 1;
345 case 1:
346 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
347 max_depth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
348 CHK_(ptr);
349 } else goto handle_unusual;
350 continue;
351 // int64 min_bytes = 2;
352 case 2:
353 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
354 min_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
355 CHK_(ptr);
356 } else goto handle_unusual;
357 continue;
358 // int64 min_micros = 3;
359 case 3:
360 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
361 min_micros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
362 CHK_(ptr);
363 } else goto handle_unusual;
364 continue;
365 // int64 min_params = 4;
366 case 4:
367 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
368 min_params_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
369 CHK_(ptr);
370 } else goto handle_unusual;
371 continue;
372 // int64 min_float_ops = 5;
373 case 5:
374 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
375 min_float_ops_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
376 CHK_(ptr);
377 } else goto handle_unusual;
378 continue;
379 // string order_by = 7;
380 case 7:
381 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
382 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_order_by(), ptr, ctx, "tensorflow.tfprof.OptionsProto.order_by");
383 CHK_(ptr);
384 } else goto handle_unusual;
385 continue;
386 // repeated string account_type_regexes = 8;
387 case 8:
388 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
389 ptr -= 1;
390 do {
391 ptr += 1;
392 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_account_type_regexes(), ptr, ctx, "tensorflow.tfprof.OptionsProto.account_type_regexes");
393 CHK_(ptr);
394 if (!ctx->DataAvailable(ptr)) break;
395 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 66);
396 } else goto handle_unusual;
397 continue;
398 // repeated string start_name_regexes = 9;
399 case 9:
400 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
401 ptr -= 1;
402 do {
403 ptr += 1;
404 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_start_name_regexes(), ptr, ctx, "tensorflow.tfprof.OptionsProto.start_name_regexes");
405 CHK_(ptr);
406 if (!ctx->DataAvailable(ptr)) break;
407 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 74);
408 } else goto handle_unusual;
409 continue;
410 // repeated string trim_name_regexes = 10;
411 case 10:
412 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
413 ptr -= 1;
414 do {
415 ptr += 1;
416 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_trim_name_regexes(), ptr, ctx, "tensorflow.tfprof.OptionsProto.trim_name_regexes");
417 CHK_(ptr);
418 if (!ctx->DataAvailable(ptr)) break;
419 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 82);
420 } else goto handle_unusual;
421 continue;
422 // repeated string show_name_regexes = 11;
423 case 11:
424 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) {
425 ptr -= 1;
426 do {
427 ptr += 1;
428 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_show_name_regexes(), ptr, ctx, "tensorflow.tfprof.OptionsProto.show_name_regexes");
429 CHK_(ptr);
430 if (!ctx->DataAvailable(ptr)) break;
431 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 90);
432 } else goto handle_unusual;
433 continue;
434 // repeated string hide_name_regexes = 12;
435 case 12:
436 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) {
437 ptr -= 1;
438 do {
439 ptr += 1;
440 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_hide_name_regexes(), ptr, ctx, "tensorflow.tfprof.OptionsProto.hide_name_regexes");
441 CHK_(ptr);
442 if (!ctx->DataAvailable(ptr)) break;
443 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 98);
444 } else goto handle_unusual;
445 continue;
446 // bool account_displayed_op_only = 13;
447 case 13:
448 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) {
449 account_displayed_op_only_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
450 CHK_(ptr);
451 } else goto handle_unusual;
452 continue;
453 // repeated string select = 14;
454 case 14:
455 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 114)) {
456 ptr -= 1;
457 do {
458 ptr += 1;
459 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_select(), ptr, ctx, "tensorflow.tfprof.OptionsProto.select");
460 CHK_(ptr);
461 if (!ctx->DataAvailable(ptr)) break;
462 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 114);
463 } else goto handle_unusual;
464 continue;
465 // string output = 15;
466 case 15:
467 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) {
468 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_output(), ptr, ctx, "tensorflow.tfprof.OptionsProto.output");
469 CHK_(ptr);
470 } else goto handle_unusual;
471 continue;
472 // string dump_to_file = 16;
473 case 16:
474 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) {
475 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_dump_to_file(), ptr, ctx, "tensorflow.tfprof.OptionsProto.dump_to_file");
476 CHK_(ptr);
477 } else goto handle_unusual;
478 continue;
479 // int64 min_occurrence = 17;
480 case 17:
481 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 136)) {
482 min_occurrence_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
483 CHK_(ptr);
484 } else goto handle_unusual;
485 continue;
486 // int64 step = 18;
487 case 18:
488 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) {
489 step_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
490 CHK_(ptr);
491 } else goto handle_unusual;
492 continue;
493 // int64 min_peak_bytes = 19;
494 case 19:
495 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 152)) {
496 min_peak_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
497 CHK_(ptr);
498 } else goto handle_unusual;
499 continue;
500 // int64 min_residual_bytes = 20;
501 case 20:
502 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 160)) {
503 min_residual_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
504 CHK_(ptr);
505 } else goto handle_unusual;
506 continue;
507 // int64 min_output_bytes = 21;
508 case 21:
509 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 168)) {
510 min_output_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
511 CHK_(ptr);
512 } else goto handle_unusual;
513 continue;
514 // int64 min_accelerator_micros = 22;
515 case 22:
516 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 176)) {
517 min_accelerator_micros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
518 CHK_(ptr);
519 } else goto handle_unusual;
520 continue;
521 // int64 min_cpu_micros = 23;
522 case 23:
523 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 184)) {
524 min_cpu_micros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
525 CHK_(ptr);
526 } else goto handle_unusual;
527 continue;
528 default: {
529 handle_unusual:
530 if ((tag & 7) == 4 || tag == 0) {
531 ctx->SetLastTag(tag);
532 goto success;
533 }
534 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
535 CHK_(ptr != nullptr);
536 continue;
537 }
538 } // switch
539 } // while
540success:
541 return ptr;
542failure:
543 ptr = nullptr;
544 goto success;
545#undef CHK_
546}
547#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
548bool OptionsProto::MergePartialFromCodedStream(
549 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
550#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
551 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
552 // @@protoc_insertion_point(parse_start:tensorflow.tfprof.OptionsProto)
553 for (;;) {
554 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
555 tag = p.first;
556 if (!p.second) goto handle_unusual;
557 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
558 // int64 max_depth = 1;
559 case 1: {
560 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
561
562 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
563 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
564 input, &max_depth_)));
565 } else {
566 goto handle_unusual;
567 }
568 break;
569 }
570
571 // int64 min_bytes = 2;
572 case 2: {
573 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
574
575 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
576 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
577 input, &min_bytes_)));
578 } else {
579 goto handle_unusual;
580 }
581 break;
582 }
583
584 // int64 min_micros = 3;
585 case 3: {
586 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
587
588 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
589 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
590 input, &min_micros_)));
591 } else {
592 goto handle_unusual;
593 }
594 break;
595 }
596
597 // int64 min_params = 4;
598 case 4: {
599 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
600
601 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
602 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
603 input, &min_params_)));
604 } else {
605 goto handle_unusual;
606 }
607 break;
608 }
609
610 // int64 min_float_ops = 5;
611 case 5: {
612 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
613
614 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
615 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
616 input, &min_float_ops_)));
617 } else {
618 goto handle_unusual;
619 }
620 break;
621 }
622
623 // string order_by = 7;
624 case 7: {
625 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) {
626 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
627 input, this->mutable_order_by()));
628 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
629 this->order_by().data(), static_cast<int>(this->order_by().length()),
630 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
631 "tensorflow.tfprof.OptionsProto.order_by"));
632 } else {
633 goto handle_unusual;
634 }
635 break;
636 }
637
638 // repeated string account_type_regexes = 8;
639 case 8: {
640 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
641 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
642 input, this->add_account_type_regexes()));
643 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
644 this->account_type_regexes(this->account_type_regexes_size() - 1).data(),
645 static_cast<int>(this->account_type_regexes(this->account_type_regexes_size() - 1).length()),
646 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
647 "tensorflow.tfprof.OptionsProto.account_type_regexes"));
648 } else {
649 goto handle_unusual;
650 }
651 break;
652 }
653
654 // repeated string start_name_regexes = 9;
655 case 9: {
656 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (74 & 0xFF)) {
657 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
658 input, this->add_start_name_regexes()));
659 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
660 this->start_name_regexes(this->start_name_regexes_size() - 1).data(),
661 static_cast<int>(this->start_name_regexes(this->start_name_regexes_size() - 1).length()),
662 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
663 "tensorflow.tfprof.OptionsProto.start_name_regexes"));
664 } else {
665 goto handle_unusual;
666 }
667 break;
668 }
669
670 // repeated string trim_name_regexes = 10;
671 case 10: {
672 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (82 & 0xFF)) {
673 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
674 input, this->add_trim_name_regexes()));
675 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
676 this->trim_name_regexes(this->trim_name_regexes_size() - 1).data(),
677 static_cast<int>(this->trim_name_regexes(this->trim_name_regexes_size() - 1).length()),
678 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
679 "tensorflow.tfprof.OptionsProto.trim_name_regexes"));
680 } else {
681 goto handle_unusual;
682 }
683 break;
684 }
685
686 // repeated string show_name_regexes = 11;
687 case 11: {
688 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (90 & 0xFF)) {
689 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
690 input, this->add_show_name_regexes()));
691 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
692 this->show_name_regexes(this->show_name_regexes_size() - 1).data(),
693 static_cast<int>(this->show_name_regexes(this->show_name_regexes_size() - 1).length()),
694 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
695 "tensorflow.tfprof.OptionsProto.show_name_regexes"));
696 } else {
697 goto handle_unusual;
698 }
699 break;
700 }
701
702 // repeated string hide_name_regexes = 12;
703 case 12: {
704 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (98 & 0xFF)) {
705 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
706 input, this->add_hide_name_regexes()));
707 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
708 this->hide_name_regexes(this->hide_name_regexes_size() - 1).data(),
709 static_cast<int>(this->hide_name_regexes(this->hide_name_regexes_size() - 1).length()),
710 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
711 "tensorflow.tfprof.OptionsProto.hide_name_regexes"));
712 } else {
713 goto handle_unusual;
714 }
715 break;
716 }
717
718 // bool account_displayed_op_only = 13;
719 case 13: {
720 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (104 & 0xFF)) {
721
722 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
723 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
724 input, &account_displayed_op_only_)));
725 } else {
726 goto handle_unusual;
727 }
728 break;
729 }
730
731 // repeated string select = 14;
732 case 14: {
733 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (114 & 0xFF)) {
734 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
735 input, this->add_select()));
736 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
737 this->select(this->select_size() - 1).data(),
738 static_cast<int>(this->select(this->select_size() - 1).length()),
739 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
740 "tensorflow.tfprof.OptionsProto.select"));
741 } else {
742 goto handle_unusual;
743 }
744 break;
745 }
746
747 // string output = 15;
748 case 15: {
749 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (122 & 0xFF)) {
750 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
751 input, this->mutable_output()));
752 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
753 this->output().data(), static_cast<int>(this->output().length()),
754 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
755 "tensorflow.tfprof.OptionsProto.output"));
756 } else {
757 goto handle_unusual;
758 }
759 break;
760 }
761
762 // string dump_to_file = 16;
763 case 16: {
764 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (130 & 0xFF)) {
765 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
766 input, this->mutable_dump_to_file()));
767 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
768 this->dump_to_file().data(), static_cast<int>(this->dump_to_file().length()),
769 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
770 "tensorflow.tfprof.OptionsProto.dump_to_file"));
771 } else {
772 goto handle_unusual;
773 }
774 break;
775 }
776
777 // int64 min_occurrence = 17;
778 case 17: {
779 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (136 & 0xFF)) {
780
781 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
782 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
783 input, &min_occurrence_)));
784 } else {
785 goto handle_unusual;
786 }
787 break;
788 }
789
790 // int64 step = 18;
791 case 18: {
792 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (144 & 0xFF)) {
793
794 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
795 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
796 input, &step_)));
797 } else {
798 goto handle_unusual;
799 }
800 break;
801 }
802
803 // int64 min_peak_bytes = 19;
804 case 19: {
805 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (152 & 0xFF)) {
806
807 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
808 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
809 input, &min_peak_bytes_)));
810 } else {
811 goto handle_unusual;
812 }
813 break;
814 }
815
816 // int64 min_residual_bytes = 20;
817 case 20: {
818 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (160 & 0xFF)) {
819
820 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
821 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
822 input, &min_residual_bytes_)));
823 } else {
824 goto handle_unusual;
825 }
826 break;
827 }
828
829 // int64 min_output_bytes = 21;
830 case 21: {
831 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (168 & 0xFF)) {
832
833 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
834 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
835 input, &min_output_bytes_)));
836 } else {
837 goto handle_unusual;
838 }
839 break;
840 }
841
842 // int64 min_accelerator_micros = 22;
843 case 22: {
844 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (176 & 0xFF)) {
845
846 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
847 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
848 input, &min_accelerator_micros_)));
849 } else {
850 goto handle_unusual;
851 }
852 break;
853 }
854
855 // int64 min_cpu_micros = 23;
856 case 23: {
857 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (184 & 0xFF)) {
858
859 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
860 ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
861 input, &min_cpu_micros_)));
862 } else {
863 goto handle_unusual;
864 }
865 break;
866 }
867
868 default: {
869 handle_unusual:
870 if (tag == 0) {
871 goto success;
872 }
873 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
874 input, tag, _internal_metadata_.mutable_unknown_fields()));
875 break;
876 }
877 }
878 }
879success:
880 // @@protoc_insertion_point(parse_success:tensorflow.tfprof.OptionsProto)
881 return true;
882failure:
883 // @@protoc_insertion_point(parse_failure:tensorflow.tfprof.OptionsProto)
884 return false;
885#undef DO_
886}
887#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
888
889void OptionsProto::SerializeWithCachedSizes(
890 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
891 // @@protoc_insertion_point(serialize_start:tensorflow.tfprof.OptionsProto)
892 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
893 (void) cached_has_bits;
894
895 // int64 max_depth = 1;
896 if (this->max_depth() != 0) {
897 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->max_depth(), output);
898 }
899
900 // int64 min_bytes = 2;
901 if (this->min_bytes() != 0) {
902 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->min_bytes(), output);
903 }
904
905 // int64 min_micros = 3;
906 if (this->min_micros() != 0) {
907 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->min_micros(), output);
908 }
909
910 // int64 min_params = 4;
911 if (this->min_params() != 0) {
912 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->min_params(), output);
913 }
914
915 // int64 min_float_ops = 5;
916 if (this->min_float_ops() != 0) {
917 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(5, this->min_float_ops(), output);
918 }
919
920 // string order_by = 7;
921 if (this->order_by().size() > 0) {
922 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
923 this->order_by().data(), static_cast<int>(this->order_by().length()),
924 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
925 "tensorflow.tfprof.OptionsProto.order_by");
926 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
927 7, this->order_by(), output);
928 }
929
930 // repeated string account_type_regexes = 8;
931 for (int i = 0, n = this->account_type_regexes_size(); i < n; i++) {
932 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
933 this->account_type_regexes(i).data(), static_cast<int>(this->account_type_regexes(i).length()),
934 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
935 "tensorflow.tfprof.OptionsProto.account_type_regexes");
936 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
937 8, this->account_type_regexes(i), output);
938 }
939
940 // repeated string start_name_regexes = 9;
941 for (int i = 0, n = this->start_name_regexes_size(); i < n; i++) {
942 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
943 this->start_name_regexes(i).data(), static_cast<int>(this->start_name_regexes(i).length()),
944 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
945 "tensorflow.tfprof.OptionsProto.start_name_regexes");
946 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
947 9, this->start_name_regexes(i), output);
948 }
949
950 // repeated string trim_name_regexes = 10;
951 for (int i = 0, n = this->trim_name_regexes_size(); i < n; i++) {
952 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
953 this->trim_name_regexes(i).data(), static_cast<int>(this->trim_name_regexes(i).length()),
954 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
955 "tensorflow.tfprof.OptionsProto.trim_name_regexes");
956 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
957 10, this->trim_name_regexes(i), output);
958 }
959
960 // repeated string show_name_regexes = 11;
961 for (int i = 0, n = this->show_name_regexes_size(); i < n; i++) {
962 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
963 this->show_name_regexes(i).data(), static_cast<int>(this->show_name_regexes(i).length()),
964 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
965 "tensorflow.tfprof.OptionsProto.show_name_regexes");
966 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
967 11, this->show_name_regexes(i), output);
968 }
969
970 // repeated string hide_name_regexes = 12;
971 for (int i = 0, n = this->hide_name_regexes_size(); i < n; i++) {
972 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
973 this->hide_name_regexes(i).data(), static_cast<int>(this->hide_name_regexes(i).length()),
974 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
975 "tensorflow.tfprof.OptionsProto.hide_name_regexes");
976 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
977 12, this->hide_name_regexes(i), output);
978 }
979
980 // bool account_displayed_op_only = 13;
981 if (this->account_displayed_op_only() != 0) {
982 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(13, this->account_displayed_op_only(), output);
983 }
984
985 // repeated string select = 14;
986 for (int i = 0, n = this->select_size(); i < n; i++) {
987 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
988 this->select(i).data(), static_cast<int>(this->select(i).length()),
989 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
990 "tensorflow.tfprof.OptionsProto.select");
991 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
992 14, this->select(i), output);
993 }
994
995 // string output = 15;
996 if (this->output().size() > 0) {
997 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
998 this->output().data(), static_cast<int>(this->output().length()),
999 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1000 "tensorflow.tfprof.OptionsProto.output");
1001 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1002 15, this->output(), output);
1003 }
1004
1005 // string dump_to_file = 16;
1006 if (this->dump_to_file().size() > 0) {
1007 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1008 this->dump_to_file().data(), static_cast<int>(this->dump_to_file().length()),
1009 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1010 "tensorflow.tfprof.OptionsProto.dump_to_file");
1011 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1012 16, this->dump_to_file(), output);
1013 }
1014
1015 // int64 min_occurrence = 17;
1016 if (this->min_occurrence() != 0) {
1017 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(17, this->min_occurrence(), output);
1018 }
1019
1020 // int64 step = 18;
1021 if (this->step() != 0) {
1022 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(18, this->step(), output);
1023 }
1024
1025 // int64 min_peak_bytes = 19;
1026 if (this->min_peak_bytes() != 0) {
1027 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(19, this->min_peak_bytes(), output);
1028 }
1029
1030 // int64 min_residual_bytes = 20;
1031 if (this->min_residual_bytes() != 0) {
1032 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(20, this->min_residual_bytes(), output);
1033 }
1034
1035 // int64 min_output_bytes = 21;
1036 if (this->min_output_bytes() != 0) {
1037 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(21, this->min_output_bytes(), output);
1038 }
1039
1040 // int64 min_accelerator_micros = 22;
1041 if (this->min_accelerator_micros() != 0) {
1042 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(22, this->min_accelerator_micros(), output);
1043 }
1044
1045 // int64 min_cpu_micros = 23;
1046 if (this->min_cpu_micros() != 0) {
1047 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(23, this->min_cpu_micros(), output);
1048 }
1049
1050 if (_internal_metadata_.have_unknown_fields()) {
1051 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1052 _internal_metadata_.unknown_fields(), output);
1053 }
1054 // @@protoc_insertion_point(serialize_end:tensorflow.tfprof.OptionsProto)
1055}
1056
1057::PROTOBUF_NAMESPACE_ID::uint8* OptionsProto::InternalSerializeWithCachedSizesToArray(
1058 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1059 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.tfprof.OptionsProto)
1060 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1061 (void) cached_has_bits;
1062
1063 // int64 max_depth = 1;
1064 if (this->max_depth() != 0) {
1065 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->max_depth(), target);
1066 }
1067
1068 // int64 min_bytes = 2;
1069 if (this->min_bytes() != 0) {
1070 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->min_bytes(), target);
1071 }
1072
1073 // int64 min_micros = 3;
1074 if (this->min_micros() != 0) {
1075 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->min_micros(), target);
1076 }
1077
1078 // int64 min_params = 4;
1079 if (this->min_params() != 0) {
1080 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->min_params(), target);
1081 }
1082
1083 // int64 min_float_ops = 5;
1084 if (this->min_float_ops() != 0) {
1085 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->min_float_ops(), target);
1086 }
1087
1088 // string order_by = 7;
1089 if (this->order_by().size() > 0) {
1090 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1091 this->order_by().data(), static_cast<int>(this->order_by().length()),
1092 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1093 "tensorflow.tfprof.OptionsProto.order_by");
1094 target =
1095 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1096 7, this->order_by(), target);
1097 }
1098
1099 // repeated string account_type_regexes = 8;
1100 for (int i = 0, n = this->account_type_regexes_size(); i < n; i++) {
1101 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1102 this->account_type_regexes(i).data(), static_cast<int>(this->account_type_regexes(i).length()),
1103 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1104 "tensorflow.tfprof.OptionsProto.account_type_regexes");
1105 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1106 WriteStringToArray(8, this->account_type_regexes(i), target);
1107 }
1108
1109 // repeated string start_name_regexes = 9;
1110 for (int i = 0, n = this->start_name_regexes_size(); i < n; i++) {
1111 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1112 this->start_name_regexes(i).data(), static_cast<int>(this->start_name_regexes(i).length()),
1113 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1114 "tensorflow.tfprof.OptionsProto.start_name_regexes");
1115 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1116 WriteStringToArray(9, this->start_name_regexes(i), target);
1117 }
1118
1119 // repeated string trim_name_regexes = 10;
1120 for (int i = 0, n = this->trim_name_regexes_size(); i < n; i++) {
1121 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1122 this->trim_name_regexes(i).data(), static_cast<int>(this->trim_name_regexes(i).length()),
1123 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1124 "tensorflow.tfprof.OptionsProto.trim_name_regexes");
1125 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1126 WriteStringToArray(10, this->trim_name_regexes(i), target);
1127 }
1128
1129 // repeated string show_name_regexes = 11;
1130 for (int i = 0, n = this->show_name_regexes_size(); i < n; i++) {
1131 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1132 this->show_name_regexes(i).data(), static_cast<int>(this->show_name_regexes(i).length()),
1133 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1134 "tensorflow.tfprof.OptionsProto.show_name_regexes");
1135 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1136 WriteStringToArray(11, this->show_name_regexes(i), target);
1137 }
1138
1139 // repeated string hide_name_regexes = 12;
1140 for (int i = 0, n = this->hide_name_regexes_size(); i < n; i++) {
1141 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1142 this->hide_name_regexes(i).data(), static_cast<int>(this->hide_name_regexes(i).length()),
1143 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1144 "tensorflow.tfprof.OptionsProto.hide_name_regexes");
1145 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1146 WriteStringToArray(12, this->hide_name_regexes(i), target);
1147 }
1148
1149 // bool account_displayed_op_only = 13;
1150 if (this->account_displayed_op_only() != 0) {
1151 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(13, this->account_displayed_op_only(), target);
1152 }
1153
1154 // repeated string select = 14;
1155 for (int i = 0, n = this->select_size(); i < n; i++) {
1156 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1157 this->select(i).data(), static_cast<int>(this->select(i).length()),
1158 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1159 "tensorflow.tfprof.OptionsProto.select");
1160 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1161 WriteStringToArray(14, this->select(i), target);
1162 }
1163
1164 // string output = 15;
1165 if (this->output().size() > 0) {
1166 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1167 this->output().data(), static_cast<int>(this->output().length()),
1168 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1169 "tensorflow.tfprof.OptionsProto.output");
1170 target =
1171 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1172 15, this->output(), target);
1173 }
1174
1175 // string dump_to_file = 16;
1176 if (this->dump_to_file().size() > 0) {
1177 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1178 this->dump_to_file().data(), static_cast<int>(this->dump_to_file().length()),
1179 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1180 "tensorflow.tfprof.OptionsProto.dump_to_file");
1181 target =
1182 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1183 16, this->dump_to_file(), target);
1184 }
1185
1186 // int64 min_occurrence = 17;
1187 if (this->min_occurrence() != 0) {
1188 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(17, this->min_occurrence(), target);
1189 }
1190
1191 // int64 step = 18;
1192 if (this->step() != 0) {
1193 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(18, this->step(), target);
1194 }
1195
1196 // int64 min_peak_bytes = 19;
1197 if (this->min_peak_bytes() != 0) {
1198 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(19, this->min_peak_bytes(), target);
1199 }
1200
1201 // int64 min_residual_bytes = 20;
1202 if (this->min_residual_bytes() != 0) {
1203 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(20, this->min_residual_bytes(), target);
1204 }
1205
1206 // int64 min_output_bytes = 21;
1207 if (this->min_output_bytes() != 0) {
1208 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(21, this->min_output_bytes(), target);
1209 }
1210
1211 // int64 min_accelerator_micros = 22;
1212 if (this->min_accelerator_micros() != 0) {
1213 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(22, this->min_accelerator_micros(), target);
1214 }
1215
1216 // int64 min_cpu_micros = 23;
1217 if (this->min_cpu_micros() != 0) {
1218 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(23, this->min_cpu_micros(), target);
1219 }
1220
1221 if (_internal_metadata_.have_unknown_fields()) {
1222 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1223 _internal_metadata_.unknown_fields(), target);
1224 }
1225 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.tfprof.OptionsProto)
1226 return target;
1227}
1228
1229size_t OptionsProto::ByteSizeLong() const {
1230// @@protoc_insertion_point(message_byte_size_start:tensorflow.tfprof.OptionsProto)
1231 size_t total_size = 0;
1232
1233 if (_internal_metadata_.have_unknown_fields()) {
1234 total_size +=
1235 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1236 _internal_metadata_.unknown_fields());
1237 }
1238 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1239 // Prevent compiler warnings about cached_has_bits being unused
1240 (void) cached_has_bits;
1241
1242 // repeated string account_type_regexes = 8;
1243 total_size += 1 *
1244 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->account_type_regexes_size());
1245 for (int i = 0, n = this->account_type_regexes_size(); i < n; i++) {
1246 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1247 this->account_type_regexes(i));
1248 }
1249
1250 // repeated string start_name_regexes = 9;
1251 total_size += 1 *
1252 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->start_name_regexes_size());
1253 for (int i = 0, n = this->start_name_regexes_size(); i < n; i++) {
1254 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1255 this->start_name_regexes(i));
1256 }
1257
1258 // repeated string trim_name_regexes = 10;
1259 total_size += 1 *
1260 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->trim_name_regexes_size());
1261 for (int i = 0, n = this->trim_name_regexes_size(); i < n; i++) {
1262 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1263 this->trim_name_regexes(i));
1264 }
1265
1266 // repeated string show_name_regexes = 11;
1267 total_size += 1 *
1268 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->show_name_regexes_size());
1269 for (int i = 0, n = this->show_name_regexes_size(); i < n; i++) {
1270 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1271 this->show_name_regexes(i));
1272 }
1273
1274 // repeated string hide_name_regexes = 12;
1275 total_size += 1 *
1276 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->hide_name_regexes_size());
1277 for (int i = 0, n = this->hide_name_regexes_size(); i < n; i++) {
1278 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1279 this->hide_name_regexes(i));
1280 }
1281
1282 // repeated string select = 14;
1283 total_size += 1 *
1284 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->select_size());
1285 for (int i = 0, n = this->select_size(); i < n; i++) {
1286 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1287 this->select(i));
1288 }
1289
1290 // string order_by = 7;
1291 if (this->order_by().size() > 0) {
1292 total_size += 1 +
1293 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1294 this->order_by());
1295 }
1296
1297 // string output = 15;
1298 if (this->output().size() > 0) {
1299 total_size += 1 +
1300 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1301 this->output());
1302 }
1303
1304 // string dump_to_file = 16;
1305 if (this->dump_to_file().size() > 0) {
1306 total_size += 2 +
1307 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1308 this->dump_to_file());
1309 }
1310
1311 // int64 max_depth = 1;
1312 if (this->max_depth() != 0) {
1313 total_size += 1 +
1314 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1315 this->max_depth());
1316 }
1317
1318 // int64 min_bytes = 2;
1319 if (this->min_bytes() != 0) {
1320 total_size += 1 +
1321 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1322 this->min_bytes());
1323 }
1324
1325 // int64 min_micros = 3;
1326 if (this->min_micros() != 0) {
1327 total_size += 1 +
1328 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1329 this->min_micros());
1330 }
1331
1332 // int64 min_params = 4;
1333 if (this->min_params() != 0) {
1334 total_size += 1 +
1335 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1336 this->min_params());
1337 }
1338
1339 // int64 min_float_ops = 5;
1340 if (this->min_float_ops() != 0) {
1341 total_size += 1 +
1342 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1343 this->min_float_ops());
1344 }
1345
1346 // int64 min_occurrence = 17;
1347 if (this->min_occurrence() != 0) {
1348 total_size += 2 +
1349 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1350 this->min_occurrence());
1351 }
1352
1353 // int64 step = 18;
1354 if (this->step() != 0) {
1355 total_size += 2 +
1356 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1357 this->step());
1358 }
1359
1360 // int64 min_peak_bytes = 19;
1361 if (this->min_peak_bytes() != 0) {
1362 total_size += 2 +
1363 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1364 this->min_peak_bytes());
1365 }
1366
1367 // int64 min_residual_bytes = 20;
1368 if (this->min_residual_bytes() != 0) {
1369 total_size += 2 +
1370 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1371 this->min_residual_bytes());
1372 }
1373
1374 // int64 min_output_bytes = 21;
1375 if (this->min_output_bytes() != 0) {
1376 total_size += 2 +
1377 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1378 this->min_output_bytes());
1379 }
1380
1381 // int64 min_accelerator_micros = 22;
1382 if (this->min_accelerator_micros() != 0) {
1383 total_size += 2 +
1384 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1385 this->min_accelerator_micros());
1386 }
1387
1388 // int64 min_cpu_micros = 23;
1389 if (this->min_cpu_micros() != 0) {
1390 total_size += 2 +
1391 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
1392 this->min_cpu_micros());
1393 }
1394
1395 // bool account_displayed_op_only = 13;
1396 if (this->account_displayed_op_only() != 0) {
1397 total_size += 1 + 1;
1398 }
1399
1400 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1401 SetCachedSize(cached_size);
1402 return total_size;
1403}
1404
1405void OptionsProto::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1406// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.tfprof.OptionsProto)
1407 GOOGLE_DCHECK_NE(&from, this);
1408 const OptionsProto* source =
1409 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<OptionsProto>(
1410 &from);
1411 if (source == nullptr) {
1412 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.tfprof.OptionsProto)
1413 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1414 } else {
1415 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.tfprof.OptionsProto)
1416 MergeFrom(*source);
1417 }
1418}
1419
1420void OptionsProto::MergeFrom(const OptionsProto& from) {
1421// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.tfprof.OptionsProto)
1422 GOOGLE_DCHECK_NE(&from, this);
1423 _internal_metadata_.MergeFrom(from._internal_metadata_);
1424 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1425 (void) cached_has_bits;
1426
1427 account_type_regexes_.MergeFrom(from.account_type_regexes_);
1428 start_name_regexes_.MergeFrom(from.start_name_regexes_);
1429 trim_name_regexes_.MergeFrom(from.trim_name_regexes_);
1430 show_name_regexes_.MergeFrom(from.show_name_regexes_);
1431 hide_name_regexes_.MergeFrom(from.hide_name_regexes_);
1432 select_.MergeFrom(from.select_);
1433 if (from.order_by().size() > 0) {
1434
1435 order_by_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.order_by_);
1436 }
1437 if (from.output().size() > 0) {
1438
1439 output_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.output_);
1440 }
1441 if (from.dump_to_file().size() > 0) {
1442
1443 dump_to_file_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.dump_to_file_);
1444 }
1445 if (from.max_depth() != 0) {
1446 set_max_depth(from.max_depth());
1447 }
1448 if (from.min_bytes() != 0) {
1449 set_min_bytes(from.min_bytes());
1450 }
1451 if (from.min_micros() != 0) {
1452 set_min_micros(from.min_micros());
1453 }
1454 if (from.min_params() != 0) {
1455 set_min_params(from.min_params());
1456 }
1457 if (from.min_float_ops() != 0) {
1458 set_min_float_ops(from.min_float_ops());
1459 }
1460 if (from.min_occurrence() != 0) {
1461 set_min_occurrence(from.min_occurrence());
1462 }
1463 if (from.step() != 0) {
1464 set_step(from.step());
1465 }
1466 if (from.min_peak_bytes() != 0) {
1467 set_min_peak_bytes(from.min_peak_bytes());
1468 }
1469 if (from.min_residual_bytes() != 0) {
1470 set_min_residual_bytes(from.min_residual_bytes());
1471 }
1472 if (from.min_output_bytes() != 0) {
1473 set_min_output_bytes(from.min_output_bytes());
1474 }
1475 if (from.min_accelerator_micros() != 0) {
1476 set_min_accelerator_micros(from.min_accelerator_micros());
1477 }
1478 if (from.min_cpu_micros() != 0) {
1479 set_min_cpu_micros(from.min_cpu_micros());
1480 }
1481 if (from.account_displayed_op_only() != 0) {
1482 set_account_displayed_op_only(from.account_displayed_op_only());
1483 }
1484}
1485
1486void OptionsProto::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1487// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.tfprof.OptionsProto)
1488 if (&from == this) return;
1489 Clear();
1490 MergeFrom(from);
1491}
1492
1493void OptionsProto::CopyFrom(const OptionsProto& from) {
1494// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.tfprof.OptionsProto)
1495 if (&from == this) return;
1496 Clear();
1497 MergeFrom(from);
1498}
1499
1500bool OptionsProto::IsInitialized() const {
1501 return true;
1502}
1503
1504void OptionsProto::InternalSwap(OptionsProto* other) {
1505 using std::swap;
1506 _internal_metadata_.Swap(&other->_internal_metadata_);
1507 account_type_regexes_.InternalSwap(CastToBase(&other->account_type_regexes_));
1508 start_name_regexes_.InternalSwap(CastToBase(&other->start_name_regexes_));
1509 trim_name_regexes_.InternalSwap(CastToBase(&other->trim_name_regexes_));
1510 show_name_regexes_.InternalSwap(CastToBase(&other->show_name_regexes_));
1511 hide_name_regexes_.InternalSwap(CastToBase(&other->hide_name_regexes_));
1512 select_.InternalSwap(CastToBase(&other->select_));
1513 order_by_.Swap(&other->order_by_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1514 GetArenaNoVirtual());
1515 output_.Swap(&other->output_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1516 GetArenaNoVirtual());
1517 dump_to_file_.Swap(&other->dump_to_file_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1518 GetArenaNoVirtual());
1519 swap(max_depth_, other->max_depth_);
1520 swap(min_bytes_, other->min_bytes_);
1521 swap(min_micros_, other->min_micros_);
1522 swap(min_params_, other->min_params_);
1523 swap(min_float_ops_, other->min_float_ops_);
1524 swap(min_occurrence_, other->min_occurrence_);
1525 swap(step_, other->step_);
1526 swap(min_peak_bytes_, other->min_peak_bytes_);
1527 swap(min_residual_bytes_, other->min_residual_bytes_);
1528 swap(min_output_bytes_, other->min_output_bytes_);
1529 swap(min_accelerator_micros_, other->min_accelerator_micros_);
1530 swap(min_cpu_micros_, other->min_cpu_micros_);
1531 swap(account_displayed_op_only_, other->account_displayed_op_only_);
1532}
1533
1534::PROTOBUF_NAMESPACE_ID::Metadata OptionsProto::GetMetadata() const {
1535 return GetMetadataStatic();
1536}
1537
1538
1539// ===================================================================
1540
1541AdvisorOptionsProto_CheckersEntry_DoNotUse::AdvisorOptionsProto_CheckersEntry_DoNotUse() {}
1542AdvisorOptionsProto_CheckersEntry_DoNotUse::AdvisorOptionsProto_CheckersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1543 : SuperType(arena) {}
1544void AdvisorOptionsProto_CheckersEntry_DoNotUse::MergeFrom(const AdvisorOptionsProto_CheckersEntry_DoNotUse& other) {
1545 MergeFromInternal(other);
1546}
1547::PROTOBUF_NAMESPACE_ID::Metadata AdvisorOptionsProto_CheckersEntry_DoNotUse::GetMetadata() const {
1548 return GetMetadataStatic();
1549}
1550void AdvisorOptionsProto_CheckersEntry_DoNotUse::MergeFrom(
1551 const ::PROTOBUF_NAMESPACE_ID::Message& other) {
1552 ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
1553}
1554
1555
1556// ===================================================================
1557
1558AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse::AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse() {}
1559AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse::AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1560 : SuperType(arena) {}
1561void AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse::MergeFrom(const AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse& other) {
1562 MergeFromInternal(other);
1563}
1564::PROTOBUF_NAMESPACE_ID::Metadata AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse::GetMetadata() const {
1565 return GetMetadataStatic();
1566}
1567void AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse::MergeFrom(
1568 const ::PROTOBUF_NAMESPACE_ID::Message& other) {
1569 ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
1570}
1571
1572
1573// ===================================================================
1574
1575void AdvisorOptionsProto_CheckerOption::InitAsDefaultInstance() {
1576}
1577class AdvisorOptionsProto_CheckerOption::_Internal {
1578 public:
1579};
1580
1581AdvisorOptionsProto_CheckerOption::AdvisorOptionsProto_CheckerOption()
1582 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1583 SharedCtor();
1584 // @@protoc_insertion_point(constructor:tensorflow.tfprof.AdvisorOptionsProto.CheckerOption)
1585}
1586AdvisorOptionsProto_CheckerOption::AdvisorOptionsProto_CheckerOption(const AdvisorOptionsProto_CheckerOption& from)
1587 : ::PROTOBUF_NAMESPACE_ID::Message(),
1588 _internal_metadata_(nullptr) {
1589 _internal_metadata_.MergeFrom(from._internal_metadata_);
1590 options_.MergeFrom(from.options_);
1591 // @@protoc_insertion_point(copy_constructor:tensorflow.tfprof.AdvisorOptionsProto.CheckerOption)
1592}
1593
1594void AdvisorOptionsProto_CheckerOption::SharedCtor() {
1595 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AdvisorOptionsProto_CheckerOption_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto.base);
1596}
1597
1598AdvisorOptionsProto_CheckerOption::~AdvisorOptionsProto_CheckerOption() {
1599 // @@protoc_insertion_point(destructor:tensorflow.tfprof.AdvisorOptionsProto.CheckerOption)
1600 SharedDtor();
1601}
1602
1603void AdvisorOptionsProto_CheckerOption::SharedDtor() {
1604}
1605
1606void AdvisorOptionsProto_CheckerOption::SetCachedSize(int size) const {
1607 _cached_size_.Set(size);
1608}
1609const AdvisorOptionsProto_CheckerOption& AdvisorOptionsProto_CheckerOption::default_instance() {
1610 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AdvisorOptionsProto_CheckerOption_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto.base);
1611 return *internal_default_instance();
1612}
1613
1614
1615void AdvisorOptionsProto_CheckerOption::Clear() {
1616// @@protoc_insertion_point(message_clear_start:tensorflow.tfprof.AdvisorOptionsProto.CheckerOption)
1617 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1618 // Prevent compiler warnings about cached_has_bits being unused
1619 (void) cached_has_bits;
1620
1621 options_.Clear();
1622 _internal_metadata_.Clear();
1623}
1624
1625#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1626const char* AdvisorOptionsProto_CheckerOption::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1627#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1628 while (!ctx->Done(&ptr)) {
1629 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1630 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1631 CHK_(ptr);
1632 switch (tag >> 3) {
1633 // map<string, string> options = 1;
1634 case 1:
1635 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1636 ptr -= 1;
1637 do {
1638 ptr += 1;
1639 ptr = ctx->ParseMessage(&options_, ptr);
1640 CHK_(ptr);
1641 if (!ctx->DataAvailable(ptr)) break;
1642 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
1643 } else goto handle_unusual;
1644 continue;
1645 default: {
1646 handle_unusual:
1647 if ((tag & 7) == 4 || tag == 0) {
1648 ctx->SetLastTag(tag);
1649 goto success;
1650 }
1651 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1652 CHK_(ptr != nullptr);
1653 continue;
1654 }
1655 } // switch
1656 } // while
1657success:
1658 return ptr;
1659failure:
1660 ptr = nullptr;
1661 goto success;
1662#undef CHK_
1663}
1664#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1665bool AdvisorOptionsProto_CheckerOption::MergePartialFromCodedStream(
1666 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1667#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1668 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1669 // @@protoc_insertion_point(parse_start:tensorflow.tfprof.AdvisorOptionsProto.CheckerOption)
1670 for (;;) {
1671 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1672 tag = p.first;
1673 if (!p.second) goto handle_unusual;
1674 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1675 // map<string, string> options = 1;
1676 case 1: {
1677 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
1678 AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse::Parser< ::PROTOBUF_NAMESPACE_ID::internal::MapField<
1679 AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse,
1680 std::string, std::string,
1681 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
1682 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
1683 0 >,
1684 ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string > > parser(&options_);
1685 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessageNoVirtual(
1686 input, &parser));
1687 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1688 parser.key().data(), static_cast<int>(parser.key().length()),
1689 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1690 "tensorflow.tfprof.AdvisorOptionsProto.CheckerOption.OptionsEntry.key"));
1691 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1692 parser.value().data(), static_cast<int>(parser.value().length()),
1693 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1694 "tensorflow.tfprof.AdvisorOptionsProto.CheckerOption.OptionsEntry.value"));
1695 } else {
1696 goto handle_unusual;
1697 }
1698 break;
1699 }
1700
1701 default: {
1702 handle_unusual:
1703 if (tag == 0) {
1704 goto success;
1705 }
1706 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
1707 input, tag, _internal_metadata_.mutable_unknown_fields()));
1708 break;
1709 }
1710 }
1711 }
1712success:
1713 // @@protoc_insertion_point(parse_success:tensorflow.tfprof.AdvisorOptionsProto.CheckerOption)
1714 return true;
1715failure:
1716 // @@protoc_insertion_point(parse_failure:tensorflow.tfprof.AdvisorOptionsProto.CheckerOption)
1717 return false;
1718#undef DO_
1719}
1720#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1721
1722void AdvisorOptionsProto_CheckerOption::SerializeWithCachedSizes(
1723 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
1724 // @@protoc_insertion_point(serialize_start:tensorflow.tfprof.AdvisorOptionsProto.CheckerOption)
1725 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1726 (void) cached_has_bits;
1727
1728 // map<string, string> options = 1;
1729 if (!this->options().empty()) {
1730 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_pointer
1731 ConstPtr;
1732 typedef ConstPtr SortItem;
1733 typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
1734 struct Utf8Check {
1735 static void Check(ConstPtr p) {
1736 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1737 p->first.data(), static_cast<int>(p->first.length()),
1738 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1739 "tensorflow.tfprof.AdvisorOptionsProto.CheckerOption.OptionsEntry.key");
1740 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1741 p->second.data(), static_cast<int>(p->second.length()),
1742 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1743 "tensorflow.tfprof.AdvisorOptionsProto.CheckerOption.OptionsEntry.value");
1744 }
1745 };
1746
1747 if (output->IsSerializationDeterministic() &&
1748 this->options().size() > 1) {
1749 ::std::unique_ptr<SortItem[]> items(
1750 new SortItem[this->options().size()]);
1751 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::size_type size_type;
1752 size_type n = 0;
1753 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
1754 it = this->options().begin();
1755 it != this->options().end(); ++it, ++n) {
1756 items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
1757 }
1758 ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
1759 for (size_type i = 0; i < n; i++) {
1760 AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse::Funcs::SerializeToCodedStream(1, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, output);
1761 Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
1762 }
1763 } else {
1764 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
1765 it = this->options().begin();
1766 it != this->options().end(); ++it) {
1767 AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse::Funcs::SerializeToCodedStream(1, it->first, it->second, output);
1768 Utf8Check::Check(&(*it));
1769 }
1770 }
1771 }
1772
1773 if (_internal_metadata_.have_unknown_fields()) {
1774 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1775 _internal_metadata_.unknown_fields(), output);
1776 }
1777 // @@protoc_insertion_point(serialize_end:tensorflow.tfprof.AdvisorOptionsProto.CheckerOption)
1778}
1779
1780::PROTOBUF_NAMESPACE_ID::uint8* AdvisorOptionsProto_CheckerOption::InternalSerializeWithCachedSizesToArray(
1781 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1782 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.tfprof.AdvisorOptionsProto.CheckerOption)
1783 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1784 (void) cached_has_bits;
1785
1786 // map<string, string> options = 1;
1787 if (!this->options().empty()) {
1788 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_pointer
1789 ConstPtr;
1790 typedef ConstPtr SortItem;
1791 typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
1792 struct Utf8Check {
1793 static void Check(ConstPtr p) {
1794 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1795 p->first.data(), static_cast<int>(p->first.length()),
1796 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1797 "tensorflow.tfprof.AdvisorOptionsProto.CheckerOption.OptionsEntry.key");
1798 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1799 p->second.data(), static_cast<int>(p->second.length()),
1800 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1801 "tensorflow.tfprof.AdvisorOptionsProto.CheckerOption.OptionsEntry.value");
1802 }
1803 };
1804
1805 if (false &&
1806 this->options().size() > 1) {
1807 ::std::unique_ptr<SortItem[]> items(
1808 new SortItem[this->options().size()]);
1809 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::size_type size_type;
1810 size_type n = 0;
1811 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
1812 it = this->options().begin();
1813 it != this->options().end(); ++it, ++n) {
1814 items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
1815 }
1816 ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
1817 for (size_type i = 0; i < n; i++) {
1818 target = AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse::Funcs::SerializeToArray(1, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target);
1819 Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
1820 }
1821 } else {
1822 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
1823 it = this->options().begin();
1824 it != this->options().end(); ++it) {
1825 target = AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse::Funcs::SerializeToArray(1, it->first, it->second, target);
1826 Utf8Check::Check(&(*it));
1827 }
1828 }
1829 }
1830
1831 if (_internal_metadata_.have_unknown_fields()) {
1832 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1833 _internal_metadata_.unknown_fields(), target);
1834 }
1835 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.tfprof.AdvisorOptionsProto.CheckerOption)
1836 return target;
1837}
1838
1839size_t AdvisorOptionsProto_CheckerOption::ByteSizeLong() const {
1840// @@protoc_insertion_point(message_byte_size_start:tensorflow.tfprof.AdvisorOptionsProto.CheckerOption)
1841 size_t total_size = 0;
1842
1843 if (_internal_metadata_.have_unknown_fields()) {
1844 total_size +=
1845 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1846 _internal_metadata_.unknown_fields());
1847 }
1848 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1849 // Prevent compiler warnings about cached_has_bits being unused
1850 (void) cached_has_bits;
1851
1852 // map<string, string> options = 1;
1853 total_size += 1 *
1854 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->options_size());
1855 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
1856 it = this->options().begin();
1857 it != this->options().end(); ++it) {
1858 total_size += AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
1859 }
1860
1861 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1862 SetCachedSize(cached_size);
1863 return total_size;
1864}
1865
1866void AdvisorOptionsProto_CheckerOption::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1867// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.tfprof.AdvisorOptionsProto.CheckerOption)
1868 GOOGLE_DCHECK_NE(&from, this);
1869 const AdvisorOptionsProto_CheckerOption* source =
1870 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<AdvisorOptionsProto_CheckerOption>(
1871 &from);
1872 if (source == nullptr) {
1873 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.tfprof.AdvisorOptionsProto.CheckerOption)
1874 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1875 } else {
1876 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.tfprof.AdvisorOptionsProto.CheckerOption)
1877 MergeFrom(*source);
1878 }
1879}
1880
1881void AdvisorOptionsProto_CheckerOption::MergeFrom(const AdvisorOptionsProto_CheckerOption& from) {
1882// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.tfprof.AdvisorOptionsProto.CheckerOption)
1883 GOOGLE_DCHECK_NE(&from, this);
1884 _internal_metadata_.MergeFrom(from._internal_metadata_);
1885 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1886 (void) cached_has_bits;
1887
1888 options_.MergeFrom(from.options_);
1889}
1890
1891void AdvisorOptionsProto_CheckerOption::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1892// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.tfprof.AdvisorOptionsProto.CheckerOption)
1893 if (&from == this) return;
1894 Clear();
1895 MergeFrom(from);
1896}
1897
1898void AdvisorOptionsProto_CheckerOption::CopyFrom(const AdvisorOptionsProto_CheckerOption& from) {
1899// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.tfprof.AdvisorOptionsProto.CheckerOption)
1900 if (&from == this) return;
1901 Clear();
1902 MergeFrom(from);
1903}
1904
1905bool AdvisorOptionsProto_CheckerOption::IsInitialized() const {
1906 return true;
1907}
1908
1909void AdvisorOptionsProto_CheckerOption::InternalSwap(AdvisorOptionsProto_CheckerOption* other) {
1910 using std::swap;
1911 _internal_metadata_.Swap(&other->_internal_metadata_);
1912 options_.Swap(&other->options_);
1913}
1914
1915::PROTOBUF_NAMESPACE_ID::Metadata AdvisorOptionsProto_CheckerOption::GetMetadata() const {
1916 return GetMetadataStatic();
1917}
1918
1919
1920// ===================================================================
1921
1922void AdvisorOptionsProto::InitAsDefaultInstance() {
1923}
1924class AdvisorOptionsProto::_Internal {
1925 public:
1926};
1927
1928AdvisorOptionsProto::AdvisorOptionsProto()
1929 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1930 SharedCtor();
1931 // @@protoc_insertion_point(constructor:tensorflow.tfprof.AdvisorOptionsProto)
1932}
1933AdvisorOptionsProto::AdvisorOptionsProto(const AdvisorOptionsProto& from)
1934 : ::PROTOBUF_NAMESPACE_ID::Message(),
1935 _internal_metadata_(nullptr) {
1936 _internal_metadata_.MergeFrom(from._internal_metadata_);
1937 checkers_.MergeFrom(from.checkers_);
1938 // @@protoc_insertion_point(copy_constructor:tensorflow.tfprof.AdvisorOptionsProto)
1939}
1940
1941void AdvisorOptionsProto::SharedCtor() {
1942 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AdvisorOptionsProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto.base);
1943}
1944
1945AdvisorOptionsProto::~AdvisorOptionsProto() {
1946 // @@protoc_insertion_point(destructor:tensorflow.tfprof.AdvisorOptionsProto)
1947 SharedDtor();
1948}
1949
1950void AdvisorOptionsProto::SharedDtor() {
1951}
1952
1953void AdvisorOptionsProto::SetCachedSize(int size) const {
1954 _cached_size_.Set(size);
1955}
1956const AdvisorOptionsProto& AdvisorOptionsProto::default_instance() {
1957 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AdvisorOptionsProto_tensorflow_2fcore_2fprofiler_2ftfprof_5foptions_2eproto.base);
1958 return *internal_default_instance();
1959}
1960
1961
1962void AdvisorOptionsProto::Clear() {
1963// @@protoc_insertion_point(message_clear_start:tensorflow.tfprof.AdvisorOptionsProto)
1964 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1965 // Prevent compiler warnings about cached_has_bits being unused
1966 (void) cached_has_bits;
1967
1968 checkers_.Clear();
1969 _internal_metadata_.Clear();
1970}
1971
1972#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1973const char* AdvisorOptionsProto::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1974#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1975 while (!ctx->Done(&ptr)) {
1976 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1977 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1978 CHK_(ptr);
1979 switch (tag >> 3) {
1980 // map<string, .tensorflow.tfprof.AdvisorOptionsProto.CheckerOption> checkers = 1;
1981 case 1:
1982 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1983 ptr -= 1;
1984 do {
1985 ptr += 1;
1986 ptr = ctx->ParseMessage(&checkers_, ptr);
1987 CHK_(ptr);
1988 if (!ctx->DataAvailable(ptr)) break;
1989 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
1990 } else goto handle_unusual;
1991 continue;
1992 default: {
1993 handle_unusual:
1994 if ((tag & 7) == 4 || tag == 0) {
1995 ctx->SetLastTag(tag);
1996 goto success;
1997 }
1998 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1999 CHK_(ptr != nullptr);
2000 continue;
2001 }
2002 } // switch
2003 } // while
2004success:
2005 return ptr;
2006failure:
2007 ptr = nullptr;
2008 goto success;
2009#undef CHK_
2010}
2011#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2012bool AdvisorOptionsProto::MergePartialFromCodedStream(
2013 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
2014#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2015 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2016 // @@protoc_insertion_point(parse_start:tensorflow.tfprof.AdvisorOptionsProto)
2017 for (;;) {
2018 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2019 tag = p.first;
2020 if (!p.second) goto handle_unusual;
2021 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2022 // map<string, .tensorflow.tfprof.AdvisorOptionsProto.CheckerOption> checkers = 1;
2023 case 1: {
2024 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
2025 AdvisorOptionsProto_CheckersEntry_DoNotUse::Parser< ::PROTOBUF_NAMESPACE_ID::internal::MapField<
2026 AdvisorOptionsProto_CheckersEntry_DoNotUse,
2027 std::string, ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption,
2028 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
2029 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
2030 0 >,
2031 ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption > > parser(&checkers_);
2032 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessageNoVirtual(
2033 input, &parser));
2034 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2035 parser.key().data(), static_cast<int>(parser.key().length()),
2036 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
2037 "tensorflow.tfprof.AdvisorOptionsProto.CheckersEntry.key"));
2038 } else {
2039 goto handle_unusual;
2040 }
2041 break;
2042 }
2043
2044 default: {
2045 handle_unusual:
2046 if (tag == 0) {
2047 goto success;
2048 }
2049 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
2050 input, tag, _internal_metadata_.mutable_unknown_fields()));
2051 break;
2052 }
2053 }
2054 }
2055success:
2056 // @@protoc_insertion_point(parse_success:tensorflow.tfprof.AdvisorOptionsProto)
2057 return true;
2058failure:
2059 // @@protoc_insertion_point(parse_failure:tensorflow.tfprof.AdvisorOptionsProto)
2060 return false;
2061#undef DO_
2062}
2063#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2064
2065void AdvisorOptionsProto::SerializeWithCachedSizes(
2066 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
2067 // @@protoc_insertion_point(serialize_start:tensorflow.tfprof.AdvisorOptionsProto)
2068 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2069 (void) cached_has_bits;
2070
2071 // map<string, .tensorflow.tfprof.AdvisorOptionsProto.CheckerOption> checkers = 1;
2072 if (!this->checkers().empty()) {
2073 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption >::const_pointer
2074 ConstPtr;
2075 typedef ConstPtr SortItem;
2076 typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
2077 struct Utf8Check {
2078 static void Check(ConstPtr p) {
2079 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2080 p->first.data(), static_cast<int>(p->first.length()),
2081 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2082 "tensorflow.tfprof.AdvisorOptionsProto.CheckersEntry.key");
2083 }
2084 };
2085
2086 if (output->IsSerializationDeterministic() &&
2087 this->checkers().size() > 1) {
2088 ::std::unique_ptr<SortItem[]> items(
2089 new SortItem[this->checkers().size()]);
2090 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption >::size_type size_type;
2091 size_type n = 0;
2092 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption >::const_iterator
2093 it = this->checkers().begin();
2094 it != this->checkers().end(); ++it, ++n) {
2095 items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
2096 }
2097 ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
2098 for (size_type i = 0; i < n; i++) {
2099 AdvisorOptionsProto_CheckersEntry_DoNotUse::Funcs::SerializeToCodedStream(1, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, output);
2100 Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
2101 }
2102 } else {
2103 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption >::const_iterator
2104 it = this->checkers().begin();
2105 it != this->checkers().end(); ++it) {
2106 AdvisorOptionsProto_CheckersEntry_DoNotUse::Funcs::SerializeToCodedStream(1, it->first, it->second, output);
2107 Utf8Check::Check(&(*it));
2108 }
2109 }
2110 }
2111
2112 if (_internal_metadata_.have_unknown_fields()) {
2113 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
2114 _internal_metadata_.unknown_fields(), output);
2115 }
2116 // @@protoc_insertion_point(serialize_end:tensorflow.tfprof.AdvisorOptionsProto)
2117}
2118
2119::PROTOBUF_NAMESPACE_ID::uint8* AdvisorOptionsProto::InternalSerializeWithCachedSizesToArray(
2120 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
2121 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.tfprof.AdvisorOptionsProto)
2122 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2123 (void) cached_has_bits;
2124
2125 // map<string, .tensorflow.tfprof.AdvisorOptionsProto.CheckerOption> checkers = 1;
2126 if (!this->checkers().empty()) {
2127 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption >::const_pointer
2128 ConstPtr;
2129 typedef ConstPtr SortItem;
2130 typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
2131 struct Utf8Check {
2132 static void Check(ConstPtr p) {
2133 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2134 p->first.data(), static_cast<int>(p->first.length()),
2135 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2136 "tensorflow.tfprof.AdvisorOptionsProto.CheckersEntry.key");
2137 }
2138 };
2139
2140 if (false &&
2141 this->checkers().size() > 1) {
2142 ::std::unique_ptr<SortItem[]> items(
2143 new SortItem[this->checkers().size()]);
2144 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption >::size_type size_type;
2145 size_type n = 0;
2146 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption >::const_iterator
2147 it = this->checkers().begin();
2148 it != this->checkers().end(); ++it, ++n) {
2149 items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
2150 }
2151 ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
2152 for (size_type i = 0; i < n; i++) {
2153 target = AdvisorOptionsProto_CheckersEntry_DoNotUse::Funcs::SerializeToArray(1, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target);
2154 Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
2155 }
2156 } else {
2157 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption >::const_iterator
2158 it = this->checkers().begin();
2159 it != this->checkers().end(); ++it) {
2160 target = AdvisorOptionsProto_CheckersEntry_DoNotUse::Funcs::SerializeToArray(1, it->first, it->second, target);
2161 Utf8Check::Check(&(*it));
2162 }
2163 }
2164 }
2165
2166 if (_internal_metadata_.have_unknown_fields()) {
2167 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
2168 _internal_metadata_.unknown_fields(), target);
2169 }
2170 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.tfprof.AdvisorOptionsProto)
2171 return target;
2172}
2173
2174size_t AdvisorOptionsProto::ByteSizeLong() const {
2175// @@protoc_insertion_point(message_byte_size_start:tensorflow.tfprof.AdvisorOptionsProto)
2176 size_t total_size = 0;
2177
2178 if (_internal_metadata_.have_unknown_fields()) {
2179 total_size +=
2180 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
2181 _internal_metadata_.unknown_fields());
2182 }
2183 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2184 // Prevent compiler warnings about cached_has_bits being unused
2185 (void) cached_has_bits;
2186
2187 // map<string, .tensorflow.tfprof.AdvisorOptionsProto.CheckerOption> checkers = 1;
2188 total_size += 1 *
2189 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->checkers_size());
2190 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption >::const_iterator
2191 it = this->checkers().begin();
2192 it != this->checkers().end(); ++it) {
2193 total_size += AdvisorOptionsProto_CheckersEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
2194 }
2195
2196 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2197 SetCachedSize(cached_size);
2198 return total_size;
2199}
2200
2201void AdvisorOptionsProto::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2202// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.tfprof.AdvisorOptionsProto)
2203 GOOGLE_DCHECK_NE(&from, this);
2204 const AdvisorOptionsProto* source =
2205 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<AdvisorOptionsProto>(
2206 &from);
2207 if (source == nullptr) {
2208 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.tfprof.AdvisorOptionsProto)
2209 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2210 } else {
2211 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.tfprof.AdvisorOptionsProto)
2212 MergeFrom(*source);
2213 }
2214}
2215
2216void AdvisorOptionsProto::MergeFrom(const AdvisorOptionsProto& from) {
2217// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.tfprof.AdvisorOptionsProto)
2218 GOOGLE_DCHECK_NE(&from, this);
2219 _internal_metadata_.MergeFrom(from._internal_metadata_);
2220 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2221 (void) cached_has_bits;
2222
2223 checkers_.MergeFrom(from.checkers_);
2224}
2225
2226void AdvisorOptionsProto::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2227// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.tfprof.AdvisorOptionsProto)
2228 if (&from == this) return;
2229 Clear();
2230 MergeFrom(from);
2231}
2232
2233void AdvisorOptionsProto::CopyFrom(const AdvisorOptionsProto& from) {
2234// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.tfprof.AdvisorOptionsProto)
2235 if (&from == this) return;
2236 Clear();
2237 MergeFrom(from);
2238}
2239
2240bool AdvisorOptionsProto::IsInitialized() const {
2241 return true;
2242}
2243
2244void AdvisorOptionsProto::InternalSwap(AdvisorOptionsProto* other) {
2245 using std::swap;
2246 _internal_metadata_.Swap(&other->_internal_metadata_);
2247 checkers_.Swap(&other->checkers_);
2248}
2249
2250::PROTOBUF_NAMESPACE_ID::Metadata AdvisorOptionsProto::GetMetadata() const {
2251 return GetMetadataStatic();
2252}
2253
2254
2255// @@protoc_insertion_point(namespace_scope)
2256} // namespace tfprof
2257} // namespace tensorflow
2258PROTOBUF_NAMESPACE_OPEN
2259template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::OptionsProto* Arena::CreateMaybeMessage< ::tensorflow::tfprof::OptionsProto >(Arena* arena) {
2260 return Arena::CreateInternal< ::tensorflow::tfprof::OptionsProto >(arena);
2261}
2262template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::AdvisorOptionsProto_CheckersEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::tfprof::AdvisorOptionsProto_CheckersEntry_DoNotUse >(Arena* arena) {
2263 return Arena::CreateInternal< ::tensorflow::tfprof::AdvisorOptionsProto_CheckersEntry_DoNotUse >(arena);
2264}
2265template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse >(Arena* arena) {
2266 return Arena::CreateInternal< ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption_OptionsEntry_DoNotUse >(arena);
2267}
2268template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption* Arena::CreateMaybeMessage< ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption >(Arena* arena) {
2269 return Arena::CreateInternal< ::tensorflow::tfprof::AdvisorOptionsProto_CheckerOption >(arena);
2270}
2271template<> PROTOBUF_NOINLINE ::tensorflow::tfprof::AdvisorOptionsProto* Arena::CreateMaybeMessage< ::tensorflow::tfprof::AdvisorOptionsProto >(Arena* arena) {
2272 return Arena::CreateInternal< ::tensorflow::tfprof::AdvisorOptionsProto >(arena);
2273}
2274PROTOBUF_NAMESPACE_CLOSE
2275
2276// @@protoc_insertion_point(global_scope)
2277#include <google/protobuf/port_undef.inc>
2278