1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/framework/summary.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fsummary_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fsummary_2eproto |
6 | |
7 | #include <limits> |
8 | #include <string> |
9 | |
10 | #include <google/protobuf/port_def.inc> |
11 | #if PROTOBUF_VERSION < 3009000 |
12 | #error This file was generated by a newer version of protoc which is |
13 | #error incompatible with your Protocol Buffer headers. Please update |
14 | #error your headers. |
15 | #endif |
16 | #if 3009002 < PROTOBUF_MIN_PROTOC_VERSION |
17 | #error This file was generated by an older version of protoc which is |
18 | #error incompatible with your Protocol Buffer headers. Please |
19 | #error regenerate this file with a newer version of protoc. |
20 | #endif |
21 | |
22 | #include <google/protobuf/port_undef.inc> |
23 | #include <google/protobuf/io/coded_stream.h> |
24 | #include <google/protobuf/arena.h> |
25 | #include <google/protobuf/arenastring.h> |
26 | #include <google/protobuf/generated_message_table_driven.h> |
27 | #include <google/protobuf/generated_message_util.h> |
28 | #include <google/protobuf/inlined_string_field.h> |
29 | #include <google/protobuf/metadata.h> |
30 | #include <google/protobuf/generated_message_reflection.h> |
31 | #include <google/protobuf/message.h> |
32 | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
33 | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
34 | #include <google/protobuf/generated_enum_reflection.h> |
35 | #include <google/protobuf/unknown_field_set.h> |
36 | #include "tensorflow/core/framework/tensor.pb.h" |
37 | // @@protoc_insertion_point(includes) |
38 | #include <google/protobuf/port_def.inc> |
39 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fsummary_2eproto |
40 | PROTOBUF_NAMESPACE_OPEN |
41 | namespace internal { |
42 | class AnyMetadata; |
43 | } // namespace internal |
44 | PROTOBUF_NAMESPACE_CLOSE |
45 | |
46 | // Internal implementation detail -- do not use these members. |
47 | struct TableStruct_tensorflow_2fcore_2fframework_2fsummary_2eproto { |
48 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
49 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
50 | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] |
51 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
52 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[8] |
53 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
54 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
55 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
56 | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
57 | }; |
58 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fframework_2fsummary_2eproto; |
59 | namespace tensorflow { |
60 | class HistogramProto; |
61 | class HistogramProtoDefaultTypeInternal; |
62 | extern HistogramProtoDefaultTypeInternal _HistogramProto_default_instance_; |
63 | class Summary; |
64 | class SummaryDefaultTypeInternal; |
65 | extern SummaryDefaultTypeInternal _Summary_default_instance_; |
66 | class SummaryDescription; |
67 | class SummaryDescriptionDefaultTypeInternal; |
68 | extern SummaryDescriptionDefaultTypeInternal _SummaryDescription_default_instance_; |
69 | class SummaryMetadata; |
70 | class SummaryMetadataDefaultTypeInternal; |
71 | extern SummaryMetadataDefaultTypeInternal _SummaryMetadata_default_instance_; |
72 | class SummaryMetadata_PluginData; |
73 | class SummaryMetadata_PluginDataDefaultTypeInternal; |
74 | extern SummaryMetadata_PluginDataDefaultTypeInternal _SummaryMetadata_PluginData_default_instance_; |
75 | class Summary_Audio; |
76 | class Summary_AudioDefaultTypeInternal; |
77 | extern Summary_AudioDefaultTypeInternal _Summary_Audio_default_instance_; |
78 | class Summary_Image; |
79 | class Summary_ImageDefaultTypeInternal; |
80 | extern Summary_ImageDefaultTypeInternal _Summary_Image_default_instance_; |
81 | class Summary_Value; |
82 | class Summary_ValueDefaultTypeInternal; |
83 | extern Summary_ValueDefaultTypeInternal _Summary_Value_default_instance_; |
84 | } // namespace tensorflow |
85 | PROTOBUF_NAMESPACE_OPEN |
86 | template<> ::tensorflow::HistogramProto* Arena::CreateMaybeMessage<::tensorflow::HistogramProto>(Arena*); |
87 | template<> ::tensorflow::Summary* Arena::CreateMaybeMessage<::tensorflow::Summary>(Arena*); |
88 | template<> ::tensorflow::SummaryDescription* Arena::CreateMaybeMessage<::tensorflow::SummaryDescription>(Arena*); |
89 | template<> ::tensorflow::SummaryMetadata* Arena::CreateMaybeMessage<::tensorflow::SummaryMetadata>(Arena*); |
90 | template<> ::tensorflow::SummaryMetadata_PluginData* Arena::CreateMaybeMessage<::tensorflow::SummaryMetadata_PluginData>(Arena*); |
91 | template<> ::tensorflow::Summary_Audio* Arena::CreateMaybeMessage<::tensorflow::Summary_Audio>(Arena*); |
92 | template<> ::tensorflow::Summary_Image* Arena::CreateMaybeMessage<::tensorflow::Summary_Image>(Arena*); |
93 | template<> ::tensorflow::Summary_Value* Arena::CreateMaybeMessage<::tensorflow::Summary_Value>(Arena*); |
94 | PROTOBUF_NAMESPACE_CLOSE |
95 | namespace tensorflow { |
96 | |
97 | enum DataClass : int { |
98 | DATA_CLASS_UNKNOWN = 0, |
99 | DATA_CLASS_SCALAR = 1, |
100 | DATA_CLASS_TENSOR = 2, |
101 | DATA_CLASS_BLOB_SEQUENCE = 3, |
102 | DataClass_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), |
103 | DataClass_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() |
104 | }; |
105 | bool DataClass_IsValid(int value); |
106 | constexpr DataClass DataClass_MIN = DATA_CLASS_UNKNOWN; |
107 | constexpr DataClass DataClass_MAX = DATA_CLASS_BLOB_SEQUENCE; |
108 | constexpr int DataClass_ARRAYSIZE = DataClass_MAX + 1; |
109 | |
110 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DataClass_descriptor(); |
111 | template<typename T> |
112 | inline const std::string& DataClass_Name(T enum_t_value) { |
113 | static_assert(::std::is_same<T, DataClass>::value || |
114 | ::std::is_integral<T>::value, |
115 | "Incorrect type passed to function DataClass_Name." ); |
116 | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
117 | DataClass_descriptor(), enum_t_value); |
118 | } |
119 | inline bool DataClass_Parse( |
120 | const std::string& name, DataClass* value) { |
121 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<DataClass>( |
122 | DataClass_descriptor(), name, value); |
123 | } |
124 | // =================================================================== |
125 | |
126 | class SummaryDescription : |
127 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SummaryDescription) */ { |
128 | public: |
129 | SummaryDescription(); |
130 | virtual ~SummaryDescription(); |
131 | |
132 | SummaryDescription(const SummaryDescription& from); |
133 | SummaryDescription(SummaryDescription&& from) noexcept |
134 | : SummaryDescription() { |
135 | *this = ::std::move(from); |
136 | } |
137 | |
138 | inline SummaryDescription& operator=(const SummaryDescription& from) { |
139 | CopyFrom(from); |
140 | return *this; |
141 | } |
142 | inline SummaryDescription& operator=(SummaryDescription&& from) noexcept { |
143 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
144 | if (this != &from) InternalSwap(&from); |
145 | } else { |
146 | CopyFrom(from); |
147 | } |
148 | return *this; |
149 | } |
150 | |
151 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
152 | return GetArenaNoVirtual(); |
153 | } |
154 | inline void* GetMaybeArenaPointer() const final { |
155 | return MaybeArenaPtr(); |
156 | } |
157 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
158 | return GetDescriptor(); |
159 | } |
160 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
161 | return GetMetadataStatic().descriptor; |
162 | } |
163 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
164 | return GetMetadataStatic().reflection; |
165 | } |
166 | static const SummaryDescription& default_instance(); |
167 | |
168 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
169 | static inline const SummaryDescription* internal_default_instance() { |
170 | return reinterpret_cast<const SummaryDescription*>( |
171 | &_SummaryDescription_default_instance_); |
172 | } |
173 | static constexpr int kIndexInFileMessages = |
174 | 0; |
175 | |
176 | friend void swap(SummaryDescription& a, SummaryDescription& b) { |
177 | a.Swap(&b); |
178 | } |
179 | inline void Swap(SummaryDescription* other) { |
180 | if (other == this) return; |
181 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
182 | InternalSwap(other); |
183 | } else { |
184 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
185 | } |
186 | } |
187 | void UnsafeArenaSwap(SummaryDescription* other) { |
188 | if (other == this) return; |
189 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
190 | InternalSwap(other); |
191 | } |
192 | |
193 | // implements Message ---------------------------------------------- |
194 | |
195 | inline SummaryDescription* New() const final { |
196 | return CreateMaybeMessage<SummaryDescription>(nullptr); |
197 | } |
198 | |
199 | SummaryDescription* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
200 | return CreateMaybeMessage<SummaryDescription>(arena); |
201 | } |
202 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
203 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
204 | void CopyFrom(const SummaryDescription& from); |
205 | void MergeFrom(const SummaryDescription& from); |
206 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
207 | bool IsInitialized() const final; |
208 | |
209 | size_t ByteSizeLong() const final; |
210 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
211 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
212 | #else |
213 | bool MergePartialFromCodedStream( |
214 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
215 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
216 | void SerializeWithCachedSizes( |
217 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
218 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
219 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
220 | int GetCachedSize() const final { return _cached_size_.Get(); } |
221 | |
222 | private: |
223 | inline void SharedCtor(); |
224 | inline void SharedDtor(); |
225 | void SetCachedSize(int size) const final; |
226 | void InternalSwap(SummaryDescription* other); |
227 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
228 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
229 | return "tensorflow.SummaryDescription" ; |
230 | } |
231 | protected: |
232 | explicit SummaryDescription(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
233 | private: |
234 | static void ArenaDtor(void* object); |
235 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
236 | private: |
237 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
238 | return _internal_metadata_.arena(); |
239 | } |
240 | inline void* MaybeArenaPtr() const { |
241 | return _internal_metadata_.raw_arena_ptr(); |
242 | } |
243 | public: |
244 | |
245 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
246 | private: |
247 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
248 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fsummary_2eproto); |
249 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fsummary_2eproto.file_level_metadata[kIndexInFileMessages]; |
250 | } |
251 | |
252 | public: |
253 | |
254 | // nested types ---------------------------------------------------- |
255 | |
256 | // accessors ------------------------------------------------------- |
257 | |
258 | enum : int { |
259 | kTypeHintFieldNumber = 1, |
260 | }; |
261 | // string type_hint = 1; |
262 | void clear_type_hint(); |
263 | const std::string& type_hint() const; |
264 | void set_type_hint(const std::string& value); |
265 | void set_type_hint(std::string&& value); |
266 | void set_type_hint(const char* value); |
267 | void set_type_hint(const char* value, size_t size); |
268 | std::string* mutable_type_hint(); |
269 | std::string* release_type_hint(); |
270 | void set_allocated_type_hint(std::string* type_hint); |
271 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
272 | " string fields are deprecated and will be removed in a" |
273 | " future release." ) |
274 | std::string* unsafe_arena_release_type_hint(); |
275 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
276 | " string fields are deprecated and will be removed in a" |
277 | " future release." ) |
278 | void unsafe_arena_set_allocated_type_hint( |
279 | std::string* type_hint); |
280 | |
281 | // @@protoc_insertion_point(class_scope:tensorflow.SummaryDescription) |
282 | private: |
283 | class _Internal; |
284 | |
285 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
286 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
287 | typedef void InternalArenaConstructable_; |
288 | typedef void DestructorSkippable_; |
289 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_hint_; |
290 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
291 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fsummary_2eproto; |
292 | }; |
293 | // ------------------------------------------------------------------- |
294 | |
295 | class HistogramProto : |
296 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.HistogramProto) */ { |
297 | public: |
298 | HistogramProto(); |
299 | virtual ~HistogramProto(); |
300 | |
301 | HistogramProto(const HistogramProto& from); |
302 | HistogramProto(HistogramProto&& from) noexcept |
303 | : HistogramProto() { |
304 | *this = ::std::move(from); |
305 | } |
306 | |
307 | inline HistogramProto& operator=(const HistogramProto& from) { |
308 | CopyFrom(from); |
309 | return *this; |
310 | } |
311 | inline HistogramProto& operator=(HistogramProto&& from) noexcept { |
312 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
313 | if (this != &from) InternalSwap(&from); |
314 | } else { |
315 | CopyFrom(from); |
316 | } |
317 | return *this; |
318 | } |
319 | |
320 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
321 | return GetArenaNoVirtual(); |
322 | } |
323 | inline void* GetMaybeArenaPointer() const final { |
324 | return MaybeArenaPtr(); |
325 | } |
326 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
327 | return GetDescriptor(); |
328 | } |
329 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
330 | return GetMetadataStatic().descriptor; |
331 | } |
332 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
333 | return GetMetadataStatic().reflection; |
334 | } |
335 | static const HistogramProto& default_instance(); |
336 | |
337 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
338 | static inline const HistogramProto* internal_default_instance() { |
339 | return reinterpret_cast<const HistogramProto*>( |
340 | &_HistogramProto_default_instance_); |
341 | } |
342 | static constexpr int kIndexInFileMessages = |
343 | 1; |
344 | |
345 | friend void swap(HistogramProto& a, HistogramProto& b) { |
346 | a.Swap(&b); |
347 | } |
348 | inline void Swap(HistogramProto* other) { |
349 | if (other == this) return; |
350 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
351 | InternalSwap(other); |
352 | } else { |
353 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
354 | } |
355 | } |
356 | void UnsafeArenaSwap(HistogramProto* other) { |
357 | if (other == this) return; |
358 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
359 | InternalSwap(other); |
360 | } |
361 | |
362 | // implements Message ---------------------------------------------- |
363 | |
364 | inline HistogramProto* New() const final { |
365 | return CreateMaybeMessage<HistogramProto>(nullptr); |
366 | } |
367 | |
368 | HistogramProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
369 | return CreateMaybeMessage<HistogramProto>(arena); |
370 | } |
371 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
372 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
373 | void CopyFrom(const HistogramProto& from); |
374 | void MergeFrom(const HistogramProto& from); |
375 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
376 | bool IsInitialized() const final; |
377 | |
378 | size_t ByteSizeLong() const final; |
379 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
380 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
381 | #else |
382 | bool MergePartialFromCodedStream( |
383 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
384 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
385 | void SerializeWithCachedSizes( |
386 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
387 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
388 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
389 | int GetCachedSize() const final { return _cached_size_.Get(); } |
390 | |
391 | private: |
392 | inline void SharedCtor(); |
393 | inline void SharedDtor(); |
394 | void SetCachedSize(int size) const final; |
395 | void InternalSwap(HistogramProto* other); |
396 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
397 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
398 | return "tensorflow.HistogramProto" ; |
399 | } |
400 | protected: |
401 | explicit HistogramProto(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
402 | private: |
403 | static void ArenaDtor(void* object); |
404 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
405 | private: |
406 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
407 | return _internal_metadata_.arena(); |
408 | } |
409 | inline void* MaybeArenaPtr() const { |
410 | return _internal_metadata_.raw_arena_ptr(); |
411 | } |
412 | public: |
413 | |
414 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
415 | private: |
416 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
417 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fsummary_2eproto); |
418 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fsummary_2eproto.file_level_metadata[kIndexInFileMessages]; |
419 | } |
420 | |
421 | public: |
422 | |
423 | // nested types ---------------------------------------------------- |
424 | |
425 | // accessors ------------------------------------------------------- |
426 | |
427 | enum : int { |
428 | kBucketLimitFieldNumber = 6, |
429 | kBucketFieldNumber = 7, |
430 | kMinFieldNumber = 1, |
431 | kMaxFieldNumber = 2, |
432 | kNumFieldNumber = 3, |
433 | kSumFieldNumber = 4, |
434 | kSumSquaresFieldNumber = 5, |
435 | }; |
436 | // repeated double bucket_limit = 6 [packed = true]; |
437 | int bucket_limit_size() const; |
438 | void clear_bucket_limit(); |
439 | double bucket_limit(int index) const; |
440 | void set_bucket_limit(int index, double value); |
441 | void add_bucket_limit(double value); |
442 | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& |
443 | bucket_limit() const; |
444 | ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* |
445 | mutable_bucket_limit(); |
446 | |
447 | // repeated double bucket = 7 [packed = true]; |
448 | int bucket_size() const; |
449 | void clear_bucket(); |
450 | double bucket(int index) const; |
451 | void set_bucket(int index, double value); |
452 | void add_bucket(double value); |
453 | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& |
454 | bucket() const; |
455 | ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* |
456 | mutable_bucket(); |
457 | |
458 | // double min = 1; |
459 | void clear_min(); |
460 | double min() const; |
461 | void set_min(double value); |
462 | |
463 | // double max = 2; |
464 | void clear_max(); |
465 | double max() const; |
466 | void set_max(double value); |
467 | |
468 | // double num = 3; |
469 | void clear_num(); |
470 | double num() const; |
471 | void set_num(double value); |
472 | |
473 | // double sum = 4; |
474 | void clear_sum(); |
475 | double sum() const; |
476 | void set_sum(double value); |
477 | |
478 | // double sum_squares = 5; |
479 | void clear_sum_squares(); |
480 | double sum_squares() const; |
481 | void set_sum_squares(double value); |
482 | |
483 | // @@protoc_insertion_point(class_scope:tensorflow.HistogramProto) |
484 | private: |
485 | class _Internal; |
486 | |
487 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
488 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
489 | typedef void InternalArenaConstructable_; |
490 | typedef void DestructorSkippable_; |
491 | ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > bucket_limit_; |
492 | mutable std::atomic<int> _bucket_limit_cached_byte_size_; |
493 | ::PROTOBUF_NAMESPACE_ID::RepeatedField< double > bucket_; |
494 | mutable std::atomic<int> _bucket_cached_byte_size_; |
495 | double min_; |
496 | double max_; |
497 | double num_; |
498 | double sum_; |
499 | double sum_squares_; |
500 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
501 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fsummary_2eproto; |
502 | }; |
503 | // ------------------------------------------------------------------- |
504 | |
505 | class SummaryMetadata_PluginData : |
506 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SummaryMetadata.PluginData) */ { |
507 | public: |
508 | SummaryMetadata_PluginData(); |
509 | virtual ~SummaryMetadata_PluginData(); |
510 | |
511 | SummaryMetadata_PluginData(const SummaryMetadata_PluginData& from); |
512 | SummaryMetadata_PluginData(SummaryMetadata_PluginData&& from) noexcept |
513 | : SummaryMetadata_PluginData() { |
514 | *this = ::std::move(from); |
515 | } |
516 | |
517 | inline SummaryMetadata_PluginData& operator=(const SummaryMetadata_PluginData& from) { |
518 | CopyFrom(from); |
519 | return *this; |
520 | } |
521 | inline SummaryMetadata_PluginData& operator=(SummaryMetadata_PluginData&& from) noexcept { |
522 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
523 | if (this != &from) InternalSwap(&from); |
524 | } else { |
525 | CopyFrom(from); |
526 | } |
527 | return *this; |
528 | } |
529 | |
530 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
531 | return GetArenaNoVirtual(); |
532 | } |
533 | inline void* GetMaybeArenaPointer() const final { |
534 | return MaybeArenaPtr(); |
535 | } |
536 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
537 | return GetDescriptor(); |
538 | } |
539 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
540 | return GetMetadataStatic().descriptor; |
541 | } |
542 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
543 | return GetMetadataStatic().reflection; |
544 | } |
545 | static const SummaryMetadata_PluginData& default_instance(); |
546 | |
547 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
548 | static inline const SummaryMetadata_PluginData* internal_default_instance() { |
549 | return reinterpret_cast<const SummaryMetadata_PluginData*>( |
550 | &_SummaryMetadata_PluginData_default_instance_); |
551 | } |
552 | static constexpr int kIndexInFileMessages = |
553 | 2; |
554 | |
555 | friend void swap(SummaryMetadata_PluginData& a, SummaryMetadata_PluginData& b) { |
556 | a.Swap(&b); |
557 | } |
558 | inline void Swap(SummaryMetadata_PluginData* other) { |
559 | if (other == this) return; |
560 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
561 | InternalSwap(other); |
562 | } else { |
563 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
564 | } |
565 | } |
566 | void UnsafeArenaSwap(SummaryMetadata_PluginData* other) { |
567 | if (other == this) return; |
568 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
569 | InternalSwap(other); |
570 | } |
571 | |
572 | // implements Message ---------------------------------------------- |
573 | |
574 | inline SummaryMetadata_PluginData* New() const final { |
575 | return CreateMaybeMessage<SummaryMetadata_PluginData>(nullptr); |
576 | } |
577 | |
578 | SummaryMetadata_PluginData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
579 | return CreateMaybeMessage<SummaryMetadata_PluginData>(arena); |
580 | } |
581 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
582 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
583 | void CopyFrom(const SummaryMetadata_PluginData& from); |
584 | void MergeFrom(const SummaryMetadata_PluginData& from); |
585 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
586 | bool IsInitialized() const final; |
587 | |
588 | size_t ByteSizeLong() const final; |
589 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
590 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
591 | #else |
592 | bool MergePartialFromCodedStream( |
593 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
594 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
595 | void SerializeWithCachedSizes( |
596 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
597 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
598 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
599 | int GetCachedSize() const final { return _cached_size_.Get(); } |
600 | |
601 | private: |
602 | inline void SharedCtor(); |
603 | inline void SharedDtor(); |
604 | void SetCachedSize(int size) const final; |
605 | void InternalSwap(SummaryMetadata_PluginData* other); |
606 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
607 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
608 | return "tensorflow.SummaryMetadata.PluginData" ; |
609 | } |
610 | protected: |
611 | explicit SummaryMetadata_PluginData(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
612 | private: |
613 | static void ArenaDtor(void* object); |
614 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
615 | private: |
616 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
617 | return _internal_metadata_.arena(); |
618 | } |
619 | inline void* MaybeArenaPtr() const { |
620 | return _internal_metadata_.raw_arena_ptr(); |
621 | } |
622 | public: |
623 | |
624 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
625 | private: |
626 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
627 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fsummary_2eproto); |
628 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fsummary_2eproto.file_level_metadata[kIndexInFileMessages]; |
629 | } |
630 | |
631 | public: |
632 | |
633 | // nested types ---------------------------------------------------- |
634 | |
635 | // accessors ------------------------------------------------------- |
636 | |
637 | enum : int { |
638 | kPluginNameFieldNumber = 1, |
639 | kContentFieldNumber = 2, |
640 | }; |
641 | // string plugin_name = 1; |
642 | void clear_plugin_name(); |
643 | const std::string& plugin_name() const; |
644 | void set_plugin_name(const std::string& value); |
645 | void set_plugin_name(std::string&& value); |
646 | void set_plugin_name(const char* value); |
647 | void set_plugin_name(const char* value, size_t size); |
648 | std::string* mutable_plugin_name(); |
649 | std::string* release_plugin_name(); |
650 | void set_allocated_plugin_name(std::string* plugin_name); |
651 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
652 | " string fields are deprecated and will be removed in a" |
653 | " future release." ) |
654 | std::string* unsafe_arena_release_plugin_name(); |
655 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
656 | " string fields are deprecated and will be removed in a" |
657 | " future release." ) |
658 | void unsafe_arena_set_allocated_plugin_name( |
659 | std::string* plugin_name); |
660 | |
661 | // bytes content = 2; |
662 | void clear_content(); |
663 | const std::string& content() const; |
664 | void set_content(const std::string& value); |
665 | void set_content(std::string&& value); |
666 | void set_content(const char* value); |
667 | void set_content(const void* value, size_t size); |
668 | std::string* mutable_content(); |
669 | std::string* release_content(); |
670 | void set_allocated_content(std::string* content); |
671 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
672 | " string fields are deprecated and will be removed in a" |
673 | " future release." ) |
674 | std::string* unsafe_arena_release_content(); |
675 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
676 | " string fields are deprecated and will be removed in a" |
677 | " future release." ) |
678 | void unsafe_arena_set_allocated_content( |
679 | std::string* content); |
680 | |
681 | // @@protoc_insertion_point(class_scope:tensorflow.SummaryMetadata.PluginData) |
682 | private: |
683 | class _Internal; |
684 | |
685 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
686 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
687 | typedef void InternalArenaConstructable_; |
688 | typedef void DestructorSkippable_; |
689 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr plugin_name_; |
690 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_; |
691 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
692 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fsummary_2eproto; |
693 | }; |
694 | // ------------------------------------------------------------------- |
695 | |
696 | class SummaryMetadata : |
697 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SummaryMetadata) */ { |
698 | public: |
699 | SummaryMetadata(); |
700 | virtual ~SummaryMetadata(); |
701 | |
702 | SummaryMetadata(const SummaryMetadata& from); |
703 | SummaryMetadata(SummaryMetadata&& from) noexcept |
704 | : SummaryMetadata() { |
705 | *this = ::std::move(from); |
706 | } |
707 | |
708 | inline SummaryMetadata& operator=(const SummaryMetadata& from) { |
709 | CopyFrom(from); |
710 | return *this; |
711 | } |
712 | inline SummaryMetadata& operator=(SummaryMetadata&& from) noexcept { |
713 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
714 | if (this != &from) InternalSwap(&from); |
715 | } else { |
716 | CopyFrom(from); |
717 | } |
718 | return *this; |
719 | } |
720 | |
721 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
722 | return GetArenaNoVirtual(); |
723 | } |
724 | inline void* GetMaybeArenaPointer() const final { |
725 | return MaybeArenaPtr(); |
726 | } |
727 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
728 | return GetDescriptor(); |
729 | } |
730 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
731 | return GetMetadataStatic().descriptor; |
732 | } |
733 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
734 | return GetMetadataStatic().reflection; |
735 | } |
736 | static const SummaryMetadata& default_instance(); |
737 | |
738 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
739 | static inline const SummaryMetadata* internal_default_instance() { |
740 | return reinterpret_cast<const SummaryMetadata*>( |
741 | &_SummaryMetadata_default_instance_); |
742 | } |
743 | static constexpr int kIndexInFileMessages = |
744 | 3; |
745 | |
746 | friend void swap(SummaryMetadata& a, SummaryMetadata& b) { |
747 | a.Swap(&b); |
748 | } |
749 | inline void Swap(SummaryMetadata* other) { |
750 | if (other == this) return; |
751 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
752 | InternalSwap(other); |
753 | } else { |
754 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
755 | } |
756 | } |
757 | void UnsafeArenaSwap(SummaryMetadata* other) { |
758 | if (other == this) return; |
759 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
760 | InternalSwap(other); |
761 | } |
762 | |
763 | // implements Message ---------------------------------------------- |
764 | |
765 | inline SummaryMetadata* New() const final { |
766 | return CreateMaybeMessage<SummaryMetadata>(nullptr); |
767 | } |
768 | |
769 | SummaryMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
770 | return CreateMaybeMessage<SummaryMetadata>(arena); |
771 | } |
772 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
773 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
774 | void CopyFrom(const SummaryMetadata& from); |
775 | void MergeFrom(const SummaryMetadata& from); |
776 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
777 | bool IsInitialized() const final; |
778 | |
779 | size_t ByteSizeLong() const final; |
780 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
781 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
782 | #else |
783 | bool MergePartialFromCodedStream( |
784 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
785 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
786 | void SerializeWithCachedSizes( |
787 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
788 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
789 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
790 | int GetCachedSize() const final { return _cached_size_.Get(); } |
791 | |
792 | private: |
793 | inline void SharedCtor(); |
794 | inline void SharedDtor(); |
795 | void SetCachedSize(int size) const final; |
796 | void InternalSwap(SummaryMetadata* other); |
797 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
798 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
799 | return "tensorflow.SummaryMetadata" ; |
800 | } |
801 | protected: |
802 | explicit SummaryMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
803 | private: |
804 | static void ArenaDtor(void* object); |
805 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
806 | private: |
807 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
808 | return _internal_metadata_.arena(); |
809 | } |
810 | inline void* MaybeArenaPtr() const { |
811 | return _internal_metadata_.raw_arena_ptr(); |
812 | } |
813 | public: |
814 | |
815 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
816 | private: |
817 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
818 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fsummary_2eproto); |
819 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fsummary_2eproto.file_level_metadata[kIndexInFileMessages]; |
820 | } |
821 | |
822 | public: |
823 | |
824 | // nested types ---------------------------------------------------- |
825 | |
826 | typedef SummaryMetadata_PluginData PluginData; |
827 | |
828 | // accessors ------------------------------------------------------- |
829 | |
830 | enum : int { |
831 | kDisplayNameFieldNumber = 2, |
832 | kSummaryDescriptionFieldNumber = 3, |
833 | kPluginDataFieldNumber = 1, |
834 | kDataClassFieldNumber = 4, |
835 | }; |
836 | // string display_name = 2; |
837 | void clear_display_name(); |
838 | const std::string& display_name() const; |
839 | void set_display_name(const std::string& value); |
840 | void set_display_name(std::string&& value); |
841 | void set_display_name(const char* value); |
842 | void set_display_name(const char* value, size_t size); |
843 | std::string* mutable_display_name(); |
844 | std::string* release_display_name(); |
845 | void set_allocated_display_name(std::string* display_name); |
846 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
847 | " string fields are deprecated and will be removed in a" |
848 | " future release." ) |
849 | std::string* unsafe_arena_release_display_name(); |
850 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
851 | " string fields are deprecated and will be removed in a" |
852 | " future release." ) |
853 | void unsafe_arena_set_allocated_display_name( |
854 | std::string* display_name); |
855 | |
856 | // string summary_description = 3; |
857 | void clear_summary_description(); |
858 | const std::string& summary_description() const; |
859 | void set_summary_description(const std::string& value); |
860 | void set_summary_description(std::string&& value); |
861 | void set_summary_description(const char* value); |
862 | void set_summary_description(const char* value, size_t size); |
863 | std::string* mutable_summary_description(); |
864 | std::string* release_summary_description(); |
865 | void set_allocated_summary_description(std::string* summary_description); |
866 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
867 | " string fields are deprecated and will be removed in a" |
868 | " future release." ) |
869 | std::string* unsafe_arena_release_summary_description(); |
870 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
871 | " string fields are deprecated and will be removed in a" |
872 | " future release." ) |
873 | void unsafe_arena_set_allocated_summary_description( |
874 | std::string* summary_description); |
875 | |
876 | // .tensorflow.SummaryMetadata.PluginData plugin_data = 1; |
877 | bool has_plugin_data() const; |
878 | void clear_plugin_data(); |
879 | const ::tensorflow::SummaryMetadata_PluginData& plugin_data() const; |
880 | ::tensorflow::SummaryMetadata_PluginData* release_plugin_data(); |
881 | ::tensorflow::SummaryMetadata_PluginData* mutable_plugin_data(); |
882 | void set_allocated_plugin_data(::tensorflow::SummaryMetadata_PluginData* plugin_data); |
883 | void unsafe_arena_set_allocated_plugin_data( |
884 | ::tensorflow::SummaryMetadata_PluginData* plugin_data); |
885 | ::tensorflow::SummaryMetadata_PluginData* unsafe_arena_release_plugin_data(); |
886 | |
887 | // .tensorflow.DataClass data_class = 4; |
888 | void clear_data_class(); |
889 | ::tensorflow::DataClass data_class() const; |
890 | void set_data_class(::tensorflow::DataClass value); |
891 | |
892 | // @@protoc_insertion_point(class_scope:tensorflow.SummaryMetadata) |
893 | private: |
894 | class _Internal; |
895 | |
896 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
897 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
898 | typedef void InternalArenaConstructable_; |
899 | typedef void DestructorSkippable_; |
900 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr display_name_; |
901 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr summary_description_; |
902 | ::tensorflow::SummaryMetadata_PluginData* plugin_data_; |
903 | int data_class_; |
904 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
905 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fsummary_2eproto; |
906 | }; |
907 | // ------------------------------------------------------------------- |
908 | |
909 | class Summary_Image : |
910 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.Summary.Image) */ { |
911 | public: |
912 | Summary_Image(); |
913 | virtual ~Summary_Image(); |
914 | |
915 | Summary_Image(const Summary_Image& from); |
916 | Summary_Image(Summary_Image&& from) noexcept |
917 | : Summary_Image() { |
918 | *this = ::std::move(from); |
919 | } |
920 | |
921 | inline Summary_Image& operator=(const Summary_Image& from) { |
922 | CopyFrom(from); |
923 | return *this; |
924 | } |
925 | inline Summary_Image& operator=(Summary_Image&& from) noexcept { |
926 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
927 | if (this != &from) InternalSwap(&from); |
928 | } else { |
929 | CopyFrom(from); |
930 | } |
931 | return *this; |
932 | } |
933 | |
934 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
935 | return GetArenaNoVirtual(); |
936 | } |
937 | inline void* GetMaybeArenaPointer() const final { |
938 | return MaybeArenaPtr(); |
939 | } |
940 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
941 | return GetDescriptor(); |
942 | } |
943 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
944 | return GetMetadataStatic().descriptor; |
945 | } |
946 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
947 | return GetMetadataStatic().reflection; |
948 | } |
949 | static const Summary_Image& default_instance(); |
950 | |
951 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
952 | static inline const Summary_Image* internal_default_instance() { |
953 | return reinterpret_cast<const Summary_Image*>( |
954 | &_Summary_Image_default_instance_); |
955 | } |
956 | static constexpr int kIndexInFileMessages = |
957 | 4; |
958 | |
959 | friend void swap(Summary_Image& a, Summary_Image& b) { |
960 | a.Swap(&b); |
961 | } |
962 | inline void Swap(Summary_Image* other) { |
963 | if (other == this) return; |
964 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
965 | InternalSwap(other); |
966 | } else { |
967 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
968 | } |
969 | } |
970 | void UnsafeArenaSwap(Summary_Image* other) { |
971 | if (other == this) return; |
972 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
973 | InternalSwap(other); |
974 | } |
975 | |
976 | // implements Message ---------------------------------------------- |
977 | |
978 | inline Summary_Image* New() const final { |
979 | return CreateMaybeMessage<Summary_Image>(nullptr); |
980 | } |
981 | |
982 | Summary_Image* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
983 | return CreateMaybeMessage<Summary_Image>(arena); |
984 | } |
985 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
986 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
987 | void CopyFrom(const Summary_Image& from); |
988 | void MergeFrom(const Summary_Image& from); |
989 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
990 | bool IsInitialized() const final; |
991 | |
992 | size_t ByteSizeLong() const final; |
993 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
994 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
995 | #else |
996 | bool MergePartialFromCodedStream( |
997 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
998 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
999 | void SerializeWithCachedSizes( |
1000 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
1001 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
1002 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
1003 | int GetCachedSize() const final { return _cached_size_.Get(); } |
1004 | |
1005 | private: |
1006 | inline void SharedCtor(); |
1007 | inline void SharedDtor(); |
1008 | void SetCachedSize(int size) const final; |
1009 | void InternalSwap(Summary_Image* other); |
1010 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1011 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1012 | return "tensorflow.Summary.Image" ; |
1013 | } |
1014 | protected: |
1015 | explicit Summary_Image(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
1016 | private: |
1017 | static void ArenaDtor(void* object); |
1018 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
1019 | private: |
1020 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
1021 | return _internal_metadata_.arena(); |
1022 | } |
1023 | inline void* MaybeArenaPtr() const { |
1024 | return _internal_metadata_.raw_arena_ptr(); |
1025 | } |
1026 | public: |
1027 | |
1028 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1029 | private: |
1030 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
1031 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fsummary_2eproto); |
1032 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fsummary_2eproto.file_level_metadata[kIndexInFileMessages]; |
1033 | } |
1034 | |
1035 | public: |
1036 | |
1037 | // nested types ---------------------------------------------------- |
1038 | |
1039 | // accessors ------------------------------------------------------- |
1040 | |
1041 | enum : int { |
1042 | kEncodedImageStringFieldNumber = 4, |
1043 | kHeightFieldNumber = 1, |
1044 | kWidthFieldNumber = 2, |
1045 | kColorspaceFieldNumber = 3, |
1046 | }; |
1047 | // bytes encoded_image_string = 4; |
1048 | void clear_encoded_image_string(); |
1049 | const std::string& encoded_image_string() const; |
1050 | void set_encoded_image_string(const std::string& value); |
1051 | void set_encoded_image_string(std::string&& value); |
1052 | void set_encoded_image_string(const char* value); |
1053 | void set_encoded_image_string(const void* value, size_t size); |
1054 | std::string* mutable_encoded_image_string(); |
1055 | std::string* release_encoded_image_string(); |
1056 | void set_allocated_encoded_image_string(std::string* encoded_image_string); |
1057 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
1058 | " string fields are deprecated and will be removed in a" |
1059 | " future release." ) |
1060 | std::string* unsafe_arena_release_encoded_image_string(); |
1061 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
1062 | " string fields are deprecated and will be removed in a" |
1063 | " future release." ) |
1064 | void unsafe_arena_set_allocated_encoded_image_string( |
1065 | std::string* encoded_image_string); |
1066 | |
1067 | // int32 height = 1; |
1068 | void clear_height(); |
1069 | ::PROTOBUF_NAMESPACE_ID::int32 height() const; |
1070 | void set_height(::PROTOBUF_NAMESPACE_ID::int32 value); |
1071 | |
1072 | // int32 width = 2; |
1073 | void clear_width(); |
1074 | ::PROTOBUF_NAMESPACE_ID::int32 width() const; |
1075 | void set_width(::PROTOBUF_NAMESPACE_ID::int32 value); |
1076 | |
1077 | // int32 colorspace = 3; |
1078 | void clear_colorspace(); |
1079 | ::PROTOBUF_NAMESPACE_ID::int32 colorspace() const; |
1080 | void set_colorspace(::PROTOBUF_NAMESPACE_ID::int32 value); |
1081 | |
1082 | // @@protoc_insertion_point(class_scope:tensorflow.Summary.Image) |
1083 | private: |
1084 | class _Internal; |
1085 | |
1086 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
1087 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1088 | typedef void InternalArenaConstructable_; |
1089 | typedef void DestructorSkippable_; |
1090 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr encoded_image_string_; |
1091 | ::PROTOBUF_NAMESPACE_ID::int32 height_; |
1092 | ::PROTOBUF_NAMESPACE_ID::int32 width_; |
1093 | ::PROTOBUF_NAMESPACE_ID::int32 colorspace_; |
1094 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1095 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fsummary_2eproto; |
1096 | }; |
1097 | // ------------------------------------------------------------------- |
1098 | |
1099 | class Summary_Audio : |
1100 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.Summary.Audio) */ { |
1101 | public: |
1102 | Summary_Audio(); |
1103 | virtual ~Summary_Audio(); |
1104 | |
1105 | Summary_Audio(const Summary_Audio& from); |
1106 | Summary_Audio(Summary_Audio&& from) noexcept |
1107 | : Summary_Audio() { |
1108 | *this = ::std::move(from); |
1109 | } |
1110 | |
1111 | inline Summary_Audio& operator=(const Summary_Audio& from) { |
1112 | CopyFrom(from); |
1113 | return *this; |
1114 | } |
1115 | inline Summary_Audio& operator=(Summary_Audio&& from) noexcept { |
1116 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1117 | if (this != &from) InternalSwap(&from); |
1118 | } else { |
1119 | CopyFrom(from); |
1120 | } |
1121 | return *this; |
1122 | } |
1123 | |
1124 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
1125 | return GetArenaNoVirtual(); |
1126 | } |
1127 | inline void* GetMaybeArenaPointer() const final { |
1128 | return MaybeArenaPtr(); |
1129 | } |
1130 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1131 | return GetDescriptor(); |
1132 | } |
1133 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1134 | return GetMetadataStatic().descriptor; |
1135 | } |
1136 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1137 | return GetMetadataStatic().reflection; |
1138 | } |
1139 | static const Summary_Audio& default_instance(); |
1140 | |
1141 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1142 | static inline const Summary_Audio* internal_default_instance() { |
1143 | return reinterpret_cast<const Summary_Audio*>( |
1144 | &_Summary_Audio_default_instance_); |
1145 | } |
1146 | static constexpr int kIndexInFileMessages = |
1147 | 5; |
1148 | |
1149 | friend void swap(Summary_Audio& a, Summary_Audio& b) { |
1150 | a.Swap(&b); |
1151 | } |
1152 | inline void Swap(Summary_Audio* other) { |
1153 | if (other == this) return; |
1154 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
1155 | InternalSwap(other); |
1156 | } else { |
1157 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1158 | } |
1159 | } |
1160 | void UnsafeArenaSwap(Summary_Audio* other) { |
1161 | if (other == this) return; |
1162 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
1163 | InternalSwap(other); |
1164 | } |
1165 | |
1166 | // implements Message ---------------------------------------------- |
1167 | |
1168 | inline Summary_Audio* New() const final { |
1169 | return CreateMaybeMessage<Summary_Audio>(nullptr); |
1170 | } |
1171 | |
1172 | Summary_Audio* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
1173 | return CreateMaybeMessage<Summary_Audio>(arena); |
1174 | } |
1175 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1176 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1177 | void CopyFrom(const Summary_Audio& from); |
1178 | void MergeFrom(const Summary_Audio& from); |
1179 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1180 | bool IsInitialized() const final; |
1181 | |
1182 | size_t ByteSizeLong() const final; |
1183 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1184 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1185 | #else |
1186 | bool MergePartialFromCodedStream( |
1187 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
1188 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1189 | void SerializeWithCachedSizes( |
1190 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
1191 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
1192 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
1193 | int GetCachedSize() const final { return _cached_size_.Get(); } |
1194 | |
1195 | private: |
1196 | inline void SharedCtor(); |
1197 | inline void SharedDtor(); |
1198 | void SetCachedSize(int size) const final; |
1199 | void InternalSwap(Summary_Audio* other); |
1200 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1201 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1202 | return "tensorflow.Summary.Audio" ; |
1203 | } |
1204 | protected: |
1205 | explicit Summary_Audio(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
1206 | private: |
1207 | static void ArenaDtor(void* object); |
1208 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
1209 | private: |
1210 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
1211 | return _internal_metadata_.arena(); |
1212 | } |
1213 | inline void* MaybeArenaPtr() const { |
1214 | return _internal_metadata_.raw_arena_ptr(); |
1215 | } |
1216 | public: |
1217 | |
1218 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1219 | private: |
1220 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
1221 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fsummary_2eproto); |
1222 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fsummary_2eproto.file_level_metadata[kIndexInFileMessages]; |
1223 | } |
1224 | |
1225 | public: |
1226 | |
1227 | // nested types ---------------------------------------------------- |
1228 | |
1229 | // accessors ------------------------------------------------------- |
1230 | |
1231 | enum : int { |
1232 | kEncodedAudioStringFieldNumber = 4, |
1233 | kContentTypeFieldNumber = 5, |
1234 | kNumChannelsFieldNumber = 2, |
1235 | kLengthFramesFieldNumber = 3, |
1236 | kSampleRateFieldNumber = 1, |
1237 | }; |
1238 | // bytes encoded_audio_string = 4; |
1239 | void clear_encoded_audio_string(); |
1240 | const std::string& encoded_audio_string() const; |
1241 | void set_encoded_audio_string(const std::string& value); |
1242 | void set_encoded_audio_string(std::string&& value); |
1243 | void set_encoded_audio_string(const char* value); |
1244 | void set_encoded_audio_string(const void* value, size_t size); |
1245 | std::string* mutable_encoded_audio_string(); |
1246 | std::string* release_encoded_audio_string(); |
1247 | void set_allocated_encoded_audio_string(std::string* encoded_audio_string); |
1248 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
1249 | " string fields are deprecated and will be removed in a" |
1250 | " future release." ) |
1251 | std::string* unsafe_arena_release_encoded_audio_string(); |
1252 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
1253 | " string fields are deprecated and will be removed in a" |
1254 | " future release." ) |
1255 | void unsafe_arena_set_allocated_encoded_audio_string( |
1256 | std::string* encoded_audio_string); |
1257 | |
1258 | // string content_type = 5; |
1259 | void clear_content_type(); |
1260 | const std::string& content_type() const; |
1261 | void set_content_type(const std::string& value); |
1262 | void set_content_type(std::string&& value); |
1263 | void set_content_type(const char* value); |
1264 | void set_content_type(const char* value, size_t size); |
1265 | std::string* mutable_content_type(); |
1266 | std::string* release_content_type(); |
1267 | void set_allocated_content_type(std::string* content_type); |
1268 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
1269 | " string fields are deprecated and will be removed in a" |
1270 | " future release." ) |
1271 | std::string* unsafe_arena_release_content_type(); |
1272 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
1273 | " string fields are deprecated and will be removed in a" |
1274 | " future release." ) |
1275 | void unsafe_arena_set_allocated_content_type( |
1276 | std::string* content_type); |
1277 | |
1278 | // int64 num_channels = 2; |
1279 | void clear_num_channels(); |
1280 | ::PROTOBUF_NAMESPACE_ID::int64 num_channels() const; |
1281 | void set_num_channels(::PROTOBUF_NAMESPACE_ID::int64 value); |
1282 | |
1283 | // int64 length_frames = 3; |
1284 | void clear_length_frames(); |
1285 | ::PROTOBUF_NAMESPACE_ID::int64 length_frames() const; |
1286 | void set_length_frames(::PROTOBUF_NAMESPACE_ID::int64 value); |
1287 | |
1288 | // float sample_rate = 1; |
1289 | void clear_sample_rate(); |
1290 | float sample_rate() const; |
1291 | void set_sample_rate(float value); |
1292 | |
1293 | // @@protoc_insertion_point(class_scope:tensorflow.Summary.Audio) |
1294 | private: |
1295 | class _Internal; |
1296 | |
1297 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
1298 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1299 | typedef void InternalArenaConstructable_; |
1300 | typedef void DestructorSkippable_; |
1301 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr encoded_audio_string_; |
1302 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_type_; |
1303 | ::PROTOBUF_NAMESPACE_ID::int64 num_channels_; |
1304 | ::PROTOBUF_NAMESPACE_ID::int64 length_frames_; |
1305 | float sample_rate_; |
1306 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1307 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fsummary_2eproto; |
1308 | }; |
1309 | // ------------------------------------------------------------------- |
1310 | |
1311 | class Summary_Value : |
1312 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.Summary.Value) */ { |
1313 | public: |
1314 | Summary_Value(); |
1315 | virtual ~Summary_Value(); |
1316 | |
1317 | Summary_Value(const Summary_Value& from); |
1318 | Summary_Value(Summary_Value&& from) noexcept |
1319 | : Summary_Value() { |
1320 | *this = ::std::move(from); |
1321 | } |
1322 | |
1323 | inline Summary_Value& operator=(const Summary_Value& from) { |
1324 | CopyFrom(from); |
1325 | return *this; |
1326 | } |
1327 | inline Summary_Value& operator=(Summary_Value&& from) noexcept { |
1328 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1329 | if (this != &from) InternalSwap(&from); |
1330 | } else { |
1331 | CopyFrom(from); |
1332 | } |
1333 | return *this; |
1334 | } |
1335 | |
1336 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
1337 | return GetArenaNoVirtual(); |
1338 | } |
1339 | inline void* GetMaybeArenaPointer() const final { |
1340 | return MaybeArenaPtr(); |
1341 | } |
1342 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1343 | return GetDescriptor(); |
1344 | } |
1345 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1346 | return GetMetadataStatic().descriptor; |
1347 | } |
1348 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1349 | return GetMetadataStatic().reflection; |
1350 | } |
1351 | static const Summary_Value& default_instance(); |
1352 | |
1353 | enum ValueCase { |
1354 | kSimpleValue = 2, |
1355 | kObsoleteOldStyleHistogram = 3, |
1356 | kImage = 4, |
1357 | kHisto = 5, |
1358 | kAudio = 6, |
1359 | kTensor = 8, |
1360 | VALUE_NOT_SET = 0, |
1361 | }; |
1362 | |
1363 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1364 | static inline const Summary_Value* internal_default_instance() { |
1365 | return reinterpret_cast<const Summary_Value*>( |
1366 | &_Summary_Value_default_instance_); |
1367 | } |
1368 | static constexpr int kIndexInFileMessages = |
1369 | 6; |
1370 | |
1371 | friend void swap(Summary_Value& a, Summary_Value& b) { |
1372 | a.Swap(&b); |
1373 | } |
1374 | inline void Swap(Summary_Value* other) { |
1375 | if (other == this) return; |
1376 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
1377 | InternalSwap(other); |
1378 | } else { |
1379 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1380 | } |
1381 | } |
1382 | void UnsafeArenaSwap(Summary_Value* other) { |
1383 | if (other == this) return; |
1384 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
1385 | InternalSwap(other); |
1386 | } |
1387 | |
1388 | // implements Message ---------------------------------------------- |
1389 | |
1390 | inline Summary_Value* New() const final { |
1391 | return CreateMaybeMessage<Summary_Value>(nullptr); |
1392 | } |
1393 | |
1394 | Summary_Value* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
1395 | return CreateMaybeMessage<Summary_Value>(arena); |
1396 | } |
1397 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1398 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1399 | void CopyFrom(const Summary_Value& from); |
1400 | void MergeFrom(const Summary_Value& from); |
1401 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1402 | bool IsInitialized() const final; |
1403 | |
1404 | size_t ByteSizeLong() const final; |
1405 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1406 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1407 | #else |
1408 | bool MergePartialFromCodedStream( |
1409 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
1410 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1411 | void SerializeWithCachedSizes( |
1412 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
1413 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
1414 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
1415 | int GetCachedSize() const final { return _cached_size_.Get(); } |
1416 | |
1417 | private: |
1418 | inline void SharedCtor(); |
1419 | inline void SharedDtor(); |
1420 | void SetCachedSize(int size) const final; |
1421 | void InternalSwap(Summary_Value* other); |
1422 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1423 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1424 | return "tensorflow.Summary.Value" ; |
1425 | } |
1426 | protected: |
1427 | explicit Summary_Value(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
1428 | private: |
1429 | static void ArenaDtor(void* object); |
1430 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
1431 | private: |
1432 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
1433 | return _internal_metadata_.arena(); |
1434 | } |
1435 | inline void* MaybeArenaPtr() const { |
1436 | return _internal_metadata_.raw_arena_ptr(); |
1437 | } |
1438 | public: |
1439 | |
1440 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1441 | private: |
1442 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
1443 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fsummary_2eproto); |
1444 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fsummary_2eproto.file_level_metadata[kIndexInFileMessages]; |
1445 | } |
1446 | |
1447 | public: |
1448 | |
1449 | // nested types ---------------------------------------------------- |
1450 | |
1451 | // accessors ------------------------------------------------------- |
1452 | |
1453 | enum : int { |
1454 | kTagFieldNumber = 1, |
1455 | kNodeNameFieldNumber = 7, |
1456 | kMetadataFieldNumber = 9, |
1457 | kSimpleValueFieldNumber = 2, |
1458 | kObsoleteOldStyleHistogramFieldNumber = 3, |
1459 | kImageFieldNumber = 4, |
1460 | kHistoFieldNumber = 5, |
1461 | kAudioFieldNumber = 6, |
1462 | kTensorFieldNumber = 8, |
1463 | }; |
1464 | // string tag = 1; |
1465 | void clear_tag(); |
1466 | const std::string& tag() const; |
1467 | void set_tag(const std::string& value); |
1468 | void set_tag(std::string&& value); |
1469 | void set_tag(const char* value); |
1470 | void set_tag(const char* value, size_t size); |
1471 | std::string* mutable_tag(); |
1472 | std::string* release_tag(); |
1473 | void set_allocated_tag(std::string* tag); |
1474 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
1475 | " string fields are deprecated and will be removed in a" |
1476 | " future release." ) |
1477 | std::string* unsafe_arena_release_tag(); |
1478 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
1479 | " string fields are deprecated and will be removed in a" |
1480 | " future release." ) |
1481 | void unsafe_arena_set_allocated_tag( |
1482 | std::string* tag); |
1483 | |
1484 | // string node_name = 7; |
1485 | void clear_node_name(); |
1486 | const std::string& node_name() const; |
1487 | void set_node_name(const std::string& value); |
1488 | void set_node_name(std::string&& value); |
1489 | void set_node_name(const char* value); |
1490 | void set_node_name(const char* value, size_t size); |
1491 | std::string* mutable_node_name(); |
1492 | std::string* release_node_name(); |
1493 | void set_allocated_node_name(std::string* node_name); |
1494 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
1495 | " string fields are deprecated and will be removed in a" |
1496 | " future release." ) |
1497 | std::string* unsafe_arena_release_node_name(); |
1498 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
1499 | " string fields are deprecated and will be removed in a" |
1500 | " future release." ) |
1501 | void unsafe_arena_set_allocated_node_name( |
1502 | std::string* node_name); |
1503 | |
1504 | // .tensorflow.SummaryMetadata metadata = 9; |
1505 | bool has_metadata() const; |
1506 | void clear_metadata(); |
1507 | const ::tensorflow::SummaryMetadata& metadata() const; |
1508 | ::tensorflow::SummaryMetadata* release_metadata(); |
1509 | ::tensorflow::SummaryMetadata* mutable_metadata(); |
1510 | void set_allocated_metadata(::tensorflow::SummaryMetadata* metadata); |
1511 | void unsafe_arena_set_allocated_metadata( |
1512 | ::tensorflow::SummaryMetadata* metadata); |
1513 | ::tensorflow::SummaryMetadata* unsafe_arena_release_metadata(); |
1514 | |
1515 | // float simple_value = 2; |
1516 | private: |
1517 | bool has_simple_value() const; |
1518 | public: |
1519 | void clear_simple_value(); |
1520 | float simple_value() const; |
1521 | void set_simple_value(float value); |
1522 | |
1523 | // bytes obsolete_old_style_histogram = 3; |
1524 | private: |
1525 | bool has_obsolete_old_style_histogram() const; |
1526 | public: |
1527 | void clear_obsolete_old_style_histogram(); |
1528 | const std::string& obsolete_old_style_histogram() const; |
1529 | void set_obsolete_old_style_histogram(const std::string& value); |
1530 | void set_obsolete_old_style_histogram(std::string&& value); |
1531 | void set_obsolete_old_style_histogram(const char* value); |
1532 | void set_obsolete_old_style_histogram(const void* value, size_t size); |
1533 | std::string* mutable_obsolete_old_style_histogram(); |
1534 | std::string* release_obsolete_old_style_histogram(); |
1535 | void set_allocated_obsolete_old_style_histogram(std::string* obsolete_old_style_histogram); |
1536 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
1537 | " string fields are deprecated and will be removed in a" |
1538 | " future release." ) |
1539 | std::string* unsafe_arena_release_obsolete_old_style_histogram(); |
1540 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
1541 | " string fields are deprecated and will be removed in a" |
1542 | " future release." ) |
1543 | void unsafe_arena_set_allocated_obsolete_old_style_histogram( |
1544 | std::string* obsolete_old_style_histogram); |
1545 | |
1546 | // .tensorflow.Summary.Image image = 4; |
1547 | bool has_image() const; |
1548 | void clear_image(); |
1549 | const ::tensorflow::Summary_Image& image() const; |
1550 | ::tensorflow::Summary_Image* release_image(); |
1551 | ::tensorflow::Summary_Image* mutable_image(); |
1552 | void set_allocated_image(::tensorflow::Summary_Image* image); |
1553 | void unsafe_arena_set_allocated_image( |
1554 | ::tensorflow::Summary_Image* image); |
1555 | ::tensorflow::Summary_Image* unsafe_arena_release_image(); |
1556 | |
1557 | // .tensorflow.HistogramProto histo = 5; |
1558 | bool has_histo() const; |
1559 | void clear_histo(); |
1560 | const ::tensorflow::HistogramProto& histo() const; |
1561 | ::tensorflow::HistogramProto* release_histo(); |
1562 | ::tensorflow::HistogramProto* mutable_histo(); |
1563 | void set_allocated_histo(::tensorflow::HistogramProto* histo); |
1564 | void unsafe_arena_set_allocated_histo( |
1565 | ::tensorflow::HistogramProto* histo); |
1566 | ::tensorflow::HistogramProto* unsafe_arena_release_histo(); |
1567 | |
1568 | // .tensorflow.Summary.Audio audio = 6; |
1569 | bool has_audio() const; |
1570 | void clear_audio(); |
1571 | const ::tensorflow::Summary_Audio& audio() const; |
1572 | ::tensorflow::Summary_Audio* release_audio(); |
1573 | ::tensorflow::Summary_Audio* mutable_audio(); |
1574 | void set_allocated_audio(::tensorflow::Summary_Audio* audio); |
1575 | void unsafe_arena_set_allocated_audio( |
1576 | ::tensorflow::Summary_Audio* audio); |
1577 | ::tensorflow::Summary_Audio* unsafe_arena_release_audio(); |
1578 | |
1579 | // .tensorflow.TensorProto tensor = 8; |
1580 | bool has_tensor() const; |
1581 | void clear_tensor(); |
1582 | const ::tensorflow::TensorProto& tensor() const; |
1583 | ::tensorflow::TensorProto* release_tensor(); |
1584 | ::tensorflow::TensorProto* mutable_tensor(); |
1585 | void set_allocated_tensor(::tensorflow::TensorProto* tensor); |
1586 | void unsafe_arena_set_allocated_tensor( |
1587 | ::tensorflow::TensorProto* tensor); |
1588 | ::tensorflow::TensorProto* unsafe_arena_release_tensor(); |
1589 | |
1590 | void clear_value(); |
1591 | ValueCase value_case() const; |
1592 | // @@protoc_insertion_point(class_scope:tensorflow.Summary.Value) |
1593 | private: |
1594 | class _Internal; |
1595 | void set_has_simple_value(); |
1596 | void set_has_obsolete_old_style_histogram(); |
1597 | void set_has_image(); |
1598 | void set_has_histo(); |
1599 | void set_has_audio(); |
1600 | void set_has_tensor(); |
1601 | |
1602 | inline bool has_value() const; |
1603 | inline void clear_has_value(); |
1604 | |
1605 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
1606 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1607 | typedef void InternalArenaConstructable_; |
1608 | typedef void DestructorSkippable_; |
1609 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tag_; |
1610 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr node_name_; |
1611 | ::tensorflow::SummaryMetadata* metadata_; |
1612 | union ValueUnion { |
1613 | ValueUnion() {} |
1614 | float simple_value_; |
1615 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr obsolete_old_style_histogram_; |
1616 | ::tensorflow::Summary_Image* image_; |
1617 | ::tensorflow::HistogramProto* histo_; |
1618 | ::tensorflow::Summary_Audio* audio_; |
1619 | ::tensorflow::TensorProto* tensor_; |
1620 | } value_; |
1621 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1622 | ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; |
1623 | |
1624 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fsummary_2eproto; |
1625 | }; |
1626 | // ------------------------------------------------------------------- |
1627 | |
1628 | class Summary : |
1629 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.Summary) */ { |
1630 | public: |
1631 | Summary(); |
1632 | virtual ~Summary(); |
1633 | |
1634 | Summary(const Summary& from); |
1635 | Summary(Summary&& from) noexcept |
1636 | : Summary() { |
1637 | *this = ::std::move(from); |
1638 | } |
1639 | |
1640 | inline Summary& operator=(const Summary& from) { |
1641 | CopyFrom(from); |
1642 | return *this; |
1643 | } |
1644 | inline Summary& operator=(Summary&& from) noexcept { |
1645 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1646 | if (this != &from) InternalSwap(&from); |
1647 | } else { |
1648 | CopyFrom(from); |
1649 | } |
1650 | return *this; |
1651 | } |
1652 | |
1653 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
1654 | return GetArenaNoVirtual(); |
1655 | } |
1656 | inline void* GetMaybeArenaPointer() const final { |
1657 | return MaybeArenaPtr(); |
1658 | } |
1659 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1660 | return GetDescriptor(); |
1661 | } |
1662 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1663 | return GetMetadataStatic().descriptor; |
1664 | } |
1665 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1666 | return GetMetadataStatic().reflection; |
1667 | } |
1668 | static const Summary& default_instance(); |
1669 | |
1670 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1671 | static inline const Summary* internal_default_instance() { |
1672 | return reinterpret_cast<const Summary*>( |
1673 | &_Summary_default_instance_); |
1674 | } |
1675 | static constexpr int kIndexInFileMessages = |
1676 | 7; |
1677 | |
1678 | friend void swap(Summary& a, Summary& b) { |
1679 | a.Swap(&b); |
1680 | } |
1681 | inline void Swap(Summary* other) { |
1682 | if (other == this) return; |
1683 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
1684 | InternalSwap(other); |
1685 | } else { |
1686 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1687 | } |
1688 | } |
1689 | void UnsafeArenaSwap(Summary* other) { |
1690 | if (other == this) return; |
1691 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
1692 | InternalSwap(other); |
1693 | } |
1694 | |
1695 | // implements Message ---------------------------------------------- |
1696 | |
1697 | inline Summary* New() const final { |
1698 | return CreateMaybeMessage<Summary>(nullptr); |
1699 | } |
1700 | |
1701 | Summary* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
1702 | return CreateMaybeMessage<Summary>(arena); |
1703 | } |
1704 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1705 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1706 | void CopyFrom(const Summary& from); |
1707 | void MergeFrom(const Summary& from); |
1708 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1709 | bool IsInitialized() const final; |
1710 | |
1711 | size_t ByteSizeLong() const final; |
1712 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1713 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1714 | #else |
1715 | bool MergePartialFromCodedStream( |
1716 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
1717 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1718 | void SerializeWithCachedSizes( |
1719 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
1720 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
1721 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
1722 | int GetCachedSize() const final { return _cached_size_.Get(); } |
1723 | |
1724 | private: |
1725 | inline void SharedCtor(); |
1726 | inline void SharedDtor(); |
1727 | void SetCachedSize(int size) const final; |
1728 | void InternalSwap(Summary* other); |
1729 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1730 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1731 | return "tensorflow.Summary" ; |
1732 | } |
1733 | protected: |
1734 | explicit Summary(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
1735 | private: |
1736 | static void ArenaDtor(void* object); |
1737 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
1738 | private: |
1739 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
1740 | return _internal_metadata_.arena(); |
1741 | } |
1742 | inline void* MaybeArenaPtr() const { |
1743 | return _internal_metadata_.raw_arena_ptr(); |
1744 | } |
1745 | public: |
1746 | |
1747 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1748 | private: |
1749 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
1750 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fsummary_2eproto); |
1751 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fsummary_2eproto.file_level_metadata[kIndexInFileMessages]; |
1752 | } |
1753 | |
1754 | public: |
1755 | |
1756 | // nested types ---------------------------------------------------- |
1757 | |
1758 | typedef Summary_Image Image; |
1759 | typedef Summary_Audio Audio; |
1760 | typedef Summary_Value Value; |
1761 | |
1762 | // accessors ------------------------------------------------------- |
1763 | |
1764 | enum : int { |
1765 | kValueFieldNumber = 1, |
1766 | }; |
1767 | // repeated .tensorflow.Summary.Value value = 1; |
1768 | int value_size() const; |
1769 | void clear_value(); |
1770 | ::tensorflow::Summary_Value* mutable_value(int index); |
1771 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::Summary_Value >* |
1772 | mutable_value(); |
1773 | const ::tensorflow::Summary_Value& value(int index) const; |
1774 | ::tensorflow::Summary_Value* add_value(); |
1775 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::Summary_Value >& |
1776 | value() const; |
1777 | |
1778 | // @@protoc_insertion_point(class_scope:tensorflow.Summary) |
1779 | private: |
1780 | class _Internal; |
1781 | |
1782 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
1783 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1784 | typedef void InternalArenaConstructable_; |
1785 | typedef void DestructorSkippable_; |
1786 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::Summary_Value > value_; |
1787 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1788 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fsummary_2eproto; |
1789 | }; |
1790 | // =================================================================== |
1791 | |
1792 | |
1793 | // =================================================================== |
1794 | |
1795 | #ifdef __GNUC__ |
1796 | #pragma GCC diagnostic push |
1797 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
1798 | #endif // __GNUC__ |
1799 | // SummaryDescription |
1800 | |
1801 | // string type_hint = 1; |
1802 | inline void SummaryDescription::clear_type_hint() { |
1803 | type_hint_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
1804 | } |
1805 | inline const std::string& SummaryDescription::type_hint() const { |
1806 | // @@protoc_insertion_point(field_get:tensorflow.SummaryDescription.type_hint) |
1807 | return type_hint_.Get(); |
1808 | } |
1809 | inline void SummaryDescription::set_type_hint(const std::string& value) { |
1810 | |
1811 | type_hint_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
1812 | // @@protoc_insertion_point(field_set:tensorflow.SummaryDescription.type_hint) |
1813 | } |
1814 | inline void SummaryDescription::set_type_hint(std::string&& value) { |
1815 | |
1816 | type_hint_.Set( |
1817 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
1818 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.SummaryDescription.type_hint) |
1819 | } |
1820 | inline void SummaryDescription::set_type_hint(const char* value) { |
1821 | GOOGLE_DCHECK(value != nullptr); |
1822 | |
1823 | type_hint_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
1824 | GetArenaNoVirtual()); |
1825 | // @@protoc_insertion_point(field_set_char:tensorflow.SummaryDescription.type_hint) |
1826 | } |
1827 | inline void SummaryDescription::set_type_hint(const char* value, |
1828 | size_t size) { |
1829 | |
1830 | type_hint_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
1831 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
1832 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SummaryDescription.type_hint) |
1833 | } |
1834 | inline std::string* SummaryDescription::mutable_type_hint() { |
1835 | |
1836 | // @@protoc_insertion_point(field_mutable:tensorflow.SummaryDescription.type_hint) |
1837 | return type_hint_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
1838 | } |
1839 | inline std::string* SummaryDescription::release_type_hint() { |
1840 | // @@protoc_insertion_point(field_release:tensorflow.SummaryDescription.type_hint) |
1841 | |
1842 | return type_hint_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
1843 | } |
1844 | inline void SummaryDescription::set_allocated_type_hint(std::string* type_hint) { |
1845 | if (type_hint != nullptr) { |
1846 | |
1847 | } else { |
1848 | |
1849 | } |
1850 | type_hint_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), type_hint, |
1851 | GetArenaNoVirtual()); |
1852 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SummaryDescription.type_hint) |
1853 | } |
1854 | inline std::string* SummaryDescription::unsafe_arena_release_type_hint() { |
1855 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SummaryDescription.type_hint) |
1856 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
1857 | |
1858 | return type_hint_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1859 | GetArenaNoVirtual()); |
1860 | } |
1861 | inline void SummaryDescription::unsafe_arena_set_allocated_type_hint( |
1862 | std::string* type_hint) { |
1863 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
1864 | if (type_hint != nullptr) { |
1865 | |
1866 | } else { |
1867 | |
1868 | } |
1869 | type_hint_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1870 | type_hint, GetArenaNoVirtual()); |
1871 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SummaryDescription.type_hint) |
1872 | } |
1873 | |
1874 | // ------------------------------------------------------------------- |
1875 | |
1876 | // HistogramProto |
1877 | |
1878 | // double min = 1; |
1879 | inline void HistogramProto::clear_min() { |
1880 | min_ = 0; |
1881 | } |
1882 | inline double HistogramProto::min() const { |
1883 | // @@protoc_insertion_point(field_get:tensorflow.HistogramProto.min) |
1884 | return min_; |
1885 | } |
1886 | inline void HistogramProto::set_min(double value) { |
1887 | |
1888 | min_ = value; |
1889 | // @@protoc_insertion_point(field_set:tensorflow.HistogramProto.min) |
1890 | } |
1891 | |
1892 | // double max = 2; |
1893 | inline void HistogramProto::clear_max() { |
1894 | max_ = 0; |
1895 | } |
1896 | inline double HistogramProto::max() const { |
1897 | // @@protoc_insertion_point(field_get:tensorflow.HistogramProto.max) |
1898 | return max_; |
1899 | } |
1900 | inline void HistogramProto::set_max(double value) { |
1901 | |
1902 | max_ = value; |
1903 | // @@protoc_insertion_point(field_set:tensorflow.HistogramProto.max) |
1904 | } |
1905 | |
1906 | // double num = 3; |
1907 | inline void HistogramProto::clear_num() { |
1908 | num_ = 0; |
1909 | } |
1910 | inline double HistogramProto::num() const { |
1911 | // @@protoc_insertion_point(field_get:tensorflow.HistogramProto.num) |
1912 | return num_; |
1913 | } |
1914 | inline void HistogramProto::set_num(double value) { |
1915 | |
1916 | num_ = value; |
1917 | // @@protoc_insertion_point(field_set:tensorflow.HistogramProto.num) |
1918 | } |
1919 | |
1920 | // double sum = 4; |
1921 | inline void HistogramProto::clear_sum() { |
1922 | sum_ = 0; |
1923 | } |
1924 | inline double HistogramProto::sum() const { |
1925 | // @@protoc_insertion_point(field_get:tensorflow.HistogramProto.sum) |
1926 | return sum_; |
1927 | } |
1928 | inline void HistogramProto::set_sum(double value) { |
1929 | |
1930 | sum_ = value; |
1931 | // @@protoc_insertion_point(field_set:tensorflow.HistogramProto.sum) |
1932 | } |
1933 | |
1934 | // double sum_squares = 5; |
1935 | inline void HistogramProto::clear_sum_squares() { |
1936 | sum_squares_ = 0; |
1937 | } |
1938 | inline double HistogramProto::sum_squares() const { |
1939 | // @@protoc_insertion_point(field_get:tensorflow.HistogramProto.sum_squares) |
1940 | return sum_squares_; |
1941 | } |
1942 | inline void HistogramProto::set_sum_squares(double value) { |
1943 | |
1944 | sum_squares_ = value; |
1945 | // @@protoc_insertion_point(field_set:tensorflow.HistogramProto.sum_squares) |
1946 | } |
1947 | |
1948 | // repeated double bucket_limit = 6 [packed = true]; |
1949 | inline int HistogramProto::bucket_limit_size() const { |
1950 | return bucket_limit_.size(); |
1951 | } |
1952 | inline void HistogramProto::clear_bucket_limit() { |
1953 | bucket_limit_.Clear(); |
1954 | } |
1955 | inline double HistogramProto::bucket_limit(int index) const { |
1956 | // @@protoc_insertion_point(field_get:tensorflow.HistogramProto.bucket_limit) |
1957 | return bucket_limit_.Get(index); |
1958 | } |
1959 | inline void HistogramProto::set_bucket_limit(int index, double value) { |
1960 | bucket_limit_.Set(index, value); |
1961 | // @@protoc_insertion_point(field_set:tensorflow.HistogramProto.bucket_limit) |
1962 | } |
1963 | inline void HistogramProto::add_bucket_limit(double value) { |
1964 | bucket_limit_.Add(value); |
1965 | // @@protoc_insertion_point(field_add:tensorflow.HistogramProto.bucket_limit) |
1966 | } |
1967 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& |
1968 | HistogramProto::bucket_limit() const { |
1969 | // @@protoc_insertion_point(field_list:tensorflow.HistogramProto.bucket_limit) |
1970 | return bucket_limit_; |
1971 | } |
1972 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* |
1973 | HistogramProto::mutable_bucket_limit() { |
1974 | // @@protoc_insertion_point(field_mutable_list:tensorflow.HistogramProto.bucket_limit) |
1975 | return &bucket_limit_; |
1976 | } |
1977 | |
1978 | // repeated double bucket = 7 [packed = true]; |
1979 | inline int HistogramProto::bucket_size() const { |
1980 | return bucket_.size(); |
1981 | } |
1982 | inline void HistogramProto::clear_bucket() { |
1983 | bucket_.Clear(); |
1984 | } |
1985 | inline double HistogramProto::bucket(int index) const { |
1986 | // @@protoc_insertion_point(field_get:tensorflow.HistogramProto.bucket) |
1987 | return bucket_.Get(index); |
1988 | } |
1989 | inline void HistogramProto::set_bucket(int index, double value) { |
1990 | bucket_.Set(index, value); |
1991 | // @@protoc_insertion_point(field_set:tensorflow.HistogramProto.bucket) |
1992 | } |
1993 | inline void HistogramProto::add_bucket(double value) { |
1994 | bucket_.Add(value); |
1995 | // @@protoc_insertion_point(field_add:tensorflow.HistogramProto.bucket) |
1996 | } |
1997 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >& |
1998 | HistogramProto::bucket() const { |
1999 | // @@protoc_insertion_point(field_list:tensorflow.HistogramProto.bucket) |
2000 | return bucket_; |
2001 | } |
2002 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >* |
2003 | HistogramProto::mutable_bucket() { |
2004 | // @@protoc_insertion_point(field_mutable_list:tensorflow.HistogramProto.bucket) |
2005 | return &bucket_; |
2006 | } |
2007 | |
2008 | // ------------------------------------------------------------------- |
2009 | |
2010 | // SummaryMetadata_PluginData |
2011 | |
2012 | // string plugin_name = 1; |
2013 | inline void SummaryMetadata_PluginData::clear_plugin_name() { |
2014 | plugin_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2015 | } |
2016 | inline const std::string& SummaryMetadata_PluginData::plugin_name() const { |
2017 | // @@protoc_insertion_point(field_get:tensorflow.SummaryMetadata.PluginData.plugin_name) |
2018 | return plugin_name_.Get(); |
2019 | } |
2020 | inline void SummaryMetadata_PluginData::set_plugin_name(const std::string& value) { |
2021 | |
2022 | plugin_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
2023 | // @@protoc_insertion_point(field_set:tensorflow.SummaryMetadata.PluginData.plugin_name) |
2024 | } |
2025 | inline void SummaryMetadata_PluginData::set_plugin_name(std::string&& value) { |
2026 | |
2027 | plugin_name_.Set( |
2028 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
2029 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.SummaryMetadata.PluginData.plugin_name) |
2030 | } |
2031 | inline void SummaryMetadata_PluginData::set_plugin_name(const char* value) { |
2032 | GOOGLE_DCHECK(value != nullptr); |
2033 | |
2034 | plugin_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
2035 | GetArenaNoVirtual()); |
2036 | // @@protoc_insertion_point(field_set_char:tensorflow.SummaryMetadata.PluginData.plugin_name) |
2037 | } |
2038 | inline void SummaryMetadata_PluginData::set_plugin_name(const char* value, |
2039 | size_t size) { |
2040 | |
2041 | plugin_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
2042 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
2043 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SummaryMetadata.PluginData.plugin_name) |
2044 | } |
2045 | inline std::string* SummaryMetadata_PluginData::mutable_plugin_name() { |
2046 | |
2047 | // @@protoc_insertion_point(field_mutable:tensorflow.SummaryMetadata.PluginData.plugin_name) |
2048 | return plugin_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2049 | } |
2050 | inline std::string* SummaryMetadata_PluginData::release_plugin_name() { |
2051 | // @@protoc_insertion_point(field_release:tensorflow.SummaryMetadata.PluginData.plugin_name) |
2052 | |
2053 | return plugin_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2054 | } |
2055 | inline void SummaryMetadata_PluginData::set_allocated_plugin_name(std::string* plugin_name) { |
2056 | if (plugin_name != nullptr) { |
2057 | |
2058 | } else { |
2059 | |
2060 | } |
2061 | plugin_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), plugin_name, |
2062 | GetArenaNoVirtual()); |
2063 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SummaryMetadata.PluginData.plugin_name) |
2064 | } |
2065 | inline std::string* SummaryMetadata_PluginData::unsafe_arena_release_plugin_name() { |
2066 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SummaryMetadata.PluginData.plugin_name) |
2067 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
2068 | |
2069 | return plugin_name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2070 | GetArenaNoVirtual()); |
2071 | } |
2072 | inline void SummaryMetadata_PluginData::unsafe_arena_set_allocated_plugin_name( |
2073 | std::string* plugin_name) { |
2074 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
2075 | if (plugin_name != nullptr) { |
2076 | |
2077 | } else { |
2078 | |
2079 | } |
2080 | plugin_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2081 | plugin_name, GetArenaNoVirtual()); |
2082 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SummaryMetadata.PluginData.plugin_name) |
2083 | } |
2084 | |
2085 | // bytes content = 2; |
2086 | inline void SummaryMetadata_PluginData::clear_content() { |
2087 | content_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2088 | } |
2089 | inline const std::string& SummaryMetadata_PluginData::content() const { |
2090 | // @@protoc_insertion_point(field_get:tensorflow.SummaryMetadata.PluginData.content) |
2091 | return content_.Get(); |
2092 | } |
2093 | inline void SummaryMetadata_PluginData::set_content(const std::string& value) { |
2094 | |
2095 | content_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
2096 | // @@protoc_insertion_point(field_set:tensorflow.SummaryMetadata.PluginData.content) |
2097 | } |
2098 | inline void SummaryMetadata_PluginData::set_content(std::string&& value) { |
2099 | |
2100 | content_.Set( |
2101 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
2102 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.SummaryMetadata.PluginData.content) |
2103 | } |
2104 | inline void SummaryMetadata_PluginData::set_content(const char* value) { |
2105 | GOOGLE_DCHECK(value != nullptr); |
2106 | |
2107 | content_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
2108 | GetArenaNoVirtual()); |
2109 | // @@protoc_insertion_point(field_set_char:tensorflow.SummaryMetadata.PluginData.content) |
2110 | } |
2111 | inline void SummaryMetadata_PluginData::set_content(const void* value, |
2112 | size_t size) { |
2113 | |
2114 | content_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
2115 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
2116 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SummaryMetadata.PluginData.content) |
2117 | } |
2118 | inline std::string* SummaryMetadata_PluginData::mutable_content() { |
2119 | |
2120 | // @@protoc_insertion_point(field_mutable:tensorflow.SummaryMetadata.PluginData.content) |
2121 | return content_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2122 | } |
2123 | inline std::string* SummaryMetadata_PluginData::release_content() { |
2124 | // @@protoc_insertion_point(field_release:tensorflow.SummaryMetadata.PluginData.content) |
2125 | |
2126 | return content_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2127 | } |
2128 | inline void SummaryMetadata_PluginData::set_allocated_content(std::string* content) { |
2129 | if (content != nullptr) { |
2130 | |
2131 | } else { |
2132 | |
2133 | } |
2134 | content_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), content, |
2135 | GetArenaNoVirtual()); |
2136 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SummaryMetadata.PluginData.content) |
2137 | } |
2138 | inline std::string* SummaryMetadata_PluginData::unsafe_arena_release_content() { |
2139 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SummaryMetadata.PluginData.content) |
2140 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
2141 | |
2142 | return content_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2143 | GetArenaNoVirtual()); |
2144 | } |
2145 | inline void SummaryMetadata_PluginData::unsafe_arena_set_allocated_content( |
2146 | std::string* content) { |
2147 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
2148 | if (content != nullptr) { |
2149 | |
2150 | } else { |
2151 | |
2152 | } |
2153 | content_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2154 | content, GetArenaNoVirtual()); |
2155 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SummaryMetadata.PluginData.content) |
2156 | } |
2157 | |
2158 | // ------------------------------------------------------------------- |
2159 | |
2160 | // SummaryMetadata |
2161 | |
2162 | // .tensorflow.SummaryMetadata.PluginData plugin_data = 1; |
2163 | inline bool SummaryMetadata::has_plugin_data() const { |
2164 | return this != internal_default_instance() && plugin_data_ != nullptr; |
2165 | } |
2166 | inline void SummaryMetadata::clear_plugin_data() { |
2167 | if (GetArenaNoVirtual() == nullptr && plugin_data_ != nullptr) { |
2168 | delete plugin_data_; |
2169 | } |
2170 | plugin_data_ = nullptr; |
2171 | } |
2172 | inline const ::tensorflow::SummaryMetadata_PluginData& SummaryMetadata::plugin_data() const { |
2173 | const ::tensorflow::SummaryMetadata_PluginData* p = plugin_data_; |
2174 | // @@protoc_insertion_point(field_get:tensorflow.SummaryMetadata.plugin_data) |
2175 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::SummaryMetadata_PluginData*>( |
2176 | &::tensorflow::_SummaryMetadata_PluginData_default_instance_); |
2177 | } |
2178 | inline ::tensorflow::SummaryMetadata_PluginData* SummaryMetadata::release_plugin_data() { |
2179 | // @@protoc_insertion_point(field_release:tensorflow.SummaryMetadata.plugin_data) |
2180 | |
2181 | ::tensorflow::SummaryMetadata_PluginData* temp = plugin_data_; |
2182 | if (GetArenaNoVirtual() != nullptr) { |
2183 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
2184 | } |
2185 | plugin_data_ = nullptr; |
2186 | return temp; |
2187 | } |
2188 | inline ::tensorflow::SummaryMetadata_PluginData* SummaryMetadata::unsafe_arena_release_plugin_data() { |
2189 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SummaryMetadata.plugin_data) |
2190 | |
2191 | ::tensorflow::SummaryMetadata_PluginData* temp = plugin_data_; |
2192 | plugin_data_ = nullptr; |
2193 | return temp; |
2194 | } |
2195 | inline ::tensorflow::SummaryMetadata_PluginData* SummaryMetadata::mutable_plugin_data() { |
2196 | |
2197 | if (plugin_data_ == nullptr) { |
2198 | auto* p = CreateMaybeMessage<::tensorflow::SummaryMetadata_PluginData>(GetArenaNoVirtual()); |
2199 | plugin_data_ = p; |
2200 | } |
2201 | // @@protoc_insertion_point(field_mutable:tensorflow.SummaryMetadata.plugin_data) |
2202 | return plugin_data_; |
2203 | } |
2204 | inline void SummaryMetadata::set_allocated_plugin_data(::tensorflow::SummaryMetadata_PluginData* plugin_data) { |
2205 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
2206 | if (message_arena == nullptr) { |
2207 | delete plugin_data_; |
2208 | } |
2209 | if (plugin_data) { |
2210 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2211 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(plugin_data); |
2212 | if (message_arena != submessage_arena) { |
2213 | plugin_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2214 | message_arena, plugin_data, submessage_arena); |
2215 | } |
2216 | |
2217 | } else { |
2218 | |
2219 | } |
2220 | plugin_data_ = plugin_data; |
2221 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SummaryMetadata.plugin_data) |
2222 | } |
2223 | |
2224 | // string display_name = 2; |
2225 | inline void SummaryMetadata::clear_display_name() { |
2226 | display_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2227 | } |
2228 | inline const std::string& SummaryMetadata::display_name() const { |
2229 | // @@protoc_insertion_point(field_get:tensorflow.SummaryMetadata.display_name) |
2230 | return display_name_.Get(); |
2231 | } |
2232 | inline void SummaryMetadata::set_display_name(const std::string& value) { |
2233 | |
2234 | display_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
2235 | // @@protoc_insertion_point(field_set:tensorflow.SummaryMetadata.display_name) |
2236 | } |
2237 | inline void SummaryMetadata::set_display_name(std::string&& value) { |
2238 | |
2239 | display_name_.Set( |
2240 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
2241 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.SummaryMetadata.display_name) |
2242 | } |
2243 | inline void SummaryMetadata::set_display_name(const char* value) { |
2244 | GOOGLE_DCHECK(value != nullptr); |
2245 | |
2246 | display_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
2247 | GetArenaNoVirtual()); |
2248 | // @@protoc_insertion_point(field_set_char:tensorflow.SummaryMetadata.display_name) |
2249 | } |
2250 | inline void SummaryMetadata::set_display_name(const char* value, |
2251 | size_t size) { |
2252 | |
2253 | display_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
2254 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
2255 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SummaryMetadata.display_name) |
2256 | } |
2257 | inline std::string* SummaryMetadata::mutable_display_name() { |
2258 | |
2259 | // @@protoc_insertion_point(field_mutable:tensorflow.SummaryMetadata.display_name) |
2260 | return display_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2261 | } |
2262 | inline std::string* SummaryMetadata::release_display_name() { |
2263 | // @@protoc_insertion_point(field_release:tensorflow.SummaryMetadata.display_name) |
2264 | |
2265 | return display_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2266 | } |
2267 | inline void SummaryMetadata::set_allocated_display_name(std::string* display_name) { |
2268 | if (display_name != nullptr) { |
2269 | |
2270 | } else { |
2271 | |
2272 | } |
2273 | display_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), display_name, |
2274 | GetArenaNoVirtual()); |
2275 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SummaryMetadata.display_name) |
2276 | } |
2277 | inline std::string* SummaryMetadata::unsafe_arena_release_display_name() { |
2278 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SummaryMetadata.display_name) |
2279 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
2280 | |
2281 | return display_name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2282 | GetArenaNoVirtual()); |
2283 | } |
2284 | inline void SummaryMetadata::unsafe_arena_set_allocated_display_name( |
2285 | std::string* display_name) { |
2286 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
2287 | if (display_name != nullptr) { |
2288 | |
2289 | } else { |
2290 | |
2291 | } |
2292 | display_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2293 | display_name, GetArenaNoVirtual()); |
2294 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SummaryMetadata.display_name) |
2295 | } |
2296 | |
2297 | // string summary_description = 3; |
2298 | inline void SummaryMetadata::clear_summary_description() { |
2299 | summary_description_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2300 | } |
2301 | inline const std::string& SummaryMetadata::summary_description() const { |
2302 | // @@protoc_insertion_point(field_get:tensorflow.SummaryMetadata.summary_description) |
2303 | return summary_description_.Get(); |
2304 | } |
2305 | inline void SummaryMetadata::set_summary_description(const std::string& value) { |
2306 | |
2307 | summary_description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
2308 | // @@protoc_insertion_point(field_set:tensorflow.SummaryMetadata.summary_description) |
2309 | } |
2310 | inline void SummaryMetadata::set_summary_description(std::string&& value) { |
2311 | |
2312 | summary_description_.Set( |
2313 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
2314 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.SummaryMetadata.summary_description) |
2315 | } |
2316 | inline void SummaryMetadata::set_summary_description(const char* value) { |
2317 | GOOGLE_DCHECK(value != nullptr); |
2318 | |
2319 | summary_description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
2320 | GetArenaNoVirtual()); |
2321 | // @@protoc_insertion_point(field_set_char:tensorflow.SummaryMetadata.summary_description) |
2322 | } |
2323 | inline void SummaryMetadata::set_summary_description(const char* value, |
2324 | size_t size) { |
2325 | |
2326 | summary_description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
2327 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
2328 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SummaryMetadata.summary_description) |
2329 | } |
2330 | inline std::string* SummaryMetadata::mutable_summary_description() { |
2331 | |
2332 | // @@protoc_insertion_point(field_mutable:tensorflow.SummaryMetadata.summary_description) |
2333 | return summary_description_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2334 | } |
2335 | inline std::string* SummaryMetadata::release_summary_description() { |
2336 | // @@protoc_insertion_point(field_release:tensorflow.SummaryMetadata.summary_description) |
2337 | |
2338 | return summary_description_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2339 | } |
2340 | inline void SummaryMetadata::set_allocated_summary_description(std::string* summary_description) { |
2341 | if (summary_description != nullptr) { |
2342 | |
2343 | } else { |
2344 | |
2345 | } |
2346 | summary_description_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), summary_description, |
2347 | GetArenaNoVirtual()); |
2348 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SummaryMetadata.summary_description) |
2349 | } |
2350 | inline std::string* SummaryMetadata::unsafe_arena_release_summary_description() { |
2351 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SummaryMetadata.summary_description) |
2352 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
2353 | |
2354 | return summary_description_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2355 | GetArenaNoVirtual()); |
2356 | } |
2357 | inline void SummaryMetadata::unsafe_arena_set_allocated_summary_description( |
2358 | std::string* summary_description) { |
2359 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
2360 | if (summary_description != nullptr) { |
2361 | |
2362 | } else { |
2363 | |
2364 | } |
2365 | summary_description_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2366 | summary_description, GetArenaNoVirtual()); |
2367 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SummaryMetadata.summary_description) |
2368 | } |
2369 | |
2370 | // .tensorflow.DataClass data_class = 4; |
2371 | inline void SummaryMetadata::clear_data_class() { |
2372 | data_class_ = 0; |
2373 | } |
2374 | inline ::tensorflow::DataClass SummaryMetadata::data_class() const { |
2375 | // @@protoc_insertion_point(field_get:tensorflow.SummaryMetadata.data_class) |
2376 | return static_cast< ::tensorflow::DataClass >(data_class_); |
2377 | } |
2378 | inline void SummaryMetadata::set_data_class(::tensorflow::DataClass value) { |
2379 | |
2380 | data_class_ = value; |
2381 | // @@protoc_insertion_point(field_set:tensorflow.SummaryMetadata.data_class) |
2382 | } |
2383 | |
2384 | // ------------------------------------------------------------------- |
2385 | |
2386 | // Summary_Image |
2387 | |
2388 | // int32 height = 1; |
2389 | inline void Summary_Image::clear_height() { |
2390 | height_ = 0; |
2391 | } |
2392 | inline ::PROTOBUF_NAMESPACE_ID::int32 Summary_Image::height() const { |
2393 | // @@protoc_insertion_point(field_get:tensorflow.Summary.Image.height) |
2394 | return height_; |
2395 | } |
2396 | inline void Summary_Image::set_height(::PROTOBUF_NAMESPACE_ID::int32 value) { |
2397 | |
2398 | height_ = value; |
2399 | // @@protoc_insertion_point(field_set:tensorflow.Summary.Image.height) |
2400 | } |
2401 | |
2402 | // int32 width = 2; |
2403 | inline void Summary_Image::clear_width() { |
2404 | width_ = 0; |
2405 | } |
2406 | inline ::PROTOBUF_NAMESPACE_ID::int32 Summary_Image::width() const { |
2407 | // @@protoc_insertion_point(field_get:tensorflow.Summary.Image.width) |
2408 | return width_; |
2409 | } |
2410 | inline void Summary_Image::set_width(::PROTOBUF_NAMESPACE_ID::int32 value) { |
2411 | |
2412 | width_ = value; |
2413 | // @@protoc_insertion_point(field_set:tensorflow.Summary.Image.width) |
2414 | } |
2415 | |
2416 | // int32 colorspace = 3; |
2417 | inline void Summary_Image::clear_colorspace() { |
2418 | colorspace_ = 0; |
2419 | } |
2420 | inline ::PROTOBUF_NAMESPACE_ID::int32 Summary_Image::colorspace() const { |
2421 | // @@protoc_insertion_point(field_get:tensorflow.Summary.Image.colorspace) |
2422 | return colorspace_; |
2423 | } |
2424 | inline void Summary_Image::set_colorspace(::PROTOBUF_NAMESPACE_ID::int32 value) { |
2425 | |
2426 | colorspace_ = value; |
2427 | // @@protoc_insertion_point(field_set:tensorflow.Summary.Image.colorspace) |
2428 | } |
2429 | |
2430 | // bytes encoded_image_string = 4; |
2431 | inline void Summary_Image::clear_encoded_image_string() { |
2432 | encoded_image_string_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2433 | } |
2434 | inline const std::string& Summary_Image::encoded_image_string() const { |
2435 | // @@protoc_insertion_point(field_get:tensorflow.Summary.Image.encoded_image_string) |
2436 | return encoded_image_string_.Get(); |
2437 | } |
2438 | inline void Summary_Image::set_encoded_image_string(const std::string& value) { |
2439 | |
2440 | encoded_image_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
2441 | // @@protoc_insertion_point(field_set:tensorflow.Summary.Image.encoded_image_string) |
2442 | } |
2443 | inline void Summary_Image::set_encoded_image_string(std::string&& value) { |
2444 | |
2445 | encoded_image_string_.Set( |
2446 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
2447 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.Summary.Image.encoded_image_string) |
2448 | } |
2449 | inline void Summary_Image::set_encoded_image_string(const char* value) { |
2450 | GOOGLE_DCHECK(value != nullptr); |
2451 | |
2452 | encoded_image_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
2453 | GetArenaNoVirtual()); |
2454 | // @@protoc_insertion_point(field_set_char:tensorflow.Summary.Image.encoded_image_string) |
2455 | } |
2456 | inline void Summary_Image::set_encoded_image_string(const void* value, |
2457 | size_t size) { |
2458 | |
2459 | encoded_image_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
2460 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
2461 | // @@protoc_insertion_point(field_set_pointer:tensorflow.Summary.Image.encoded_image_string) |
2462 | } |
2463 | inline std::string* Summary_Image::mutable_encoded_image_string() { |
2464 | |
2465 | // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Image.encoded_image_string) |
2466 | return encoded_image_string_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2467 | } |
2468 | inline std::string* Summary_Image::release_encoded_image_string() { |
2469 | // @@protoc_insertion_point(field_release:tensorflow.Summary.Image.encoded_image_string) |
2470 | |
2471 | return encoded_image_string_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2472 | } |
2473 | inline void Summary_Image::set_allocated_encoded_image_string(std::string* encoded_image_string) { |
2474 | if (encoded_image_string != nullptr) { |
2475 | |
2476 | } else { |
2477 | |
2478 | } |
2479 | encoded_image_string_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), encoded_image_string, |
2480 | GetArenaNoVirtual()); |
2481 | // @@protoc_insertion_point(field_set_allocated:tensorflow.Summary.Image.encoded_image_string) |
2482 | } |
2483 | inline std::string* Summary_Image::unsafe_arena_release_encoded_image_string() { |
2484 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Image.encoded_image_string) |
2485 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
2486 | |
2487 | return encoded_image_string_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2488 | GetArenaNoVirtual()); |
2489 | } |
2490 | inline void Summary_Image::unsafe_arena_set_allocated_encoded_image_string( |
2491 | std::string* encoded_image_string) { |
2492 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
2493 | if (encoded_image_string != nullptr) { |
2494 | |
2495 | } else { |
2496 | |
2497 | } |
2498 | encoded_image_string_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2499 | encoded_image_string, GetArenaNoVirtual()); |
2500 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Summary.Image.encoded_image_string) |
2501 | } |
2502 | |
2503 | // ------------------------------------------------------------------- |
2504 | |
2505 | // Summary_Audio |
2506 | |
2507 | // float sample_rate = 1; |
2508 | inline void Summary_Audio::clear_sample_rate() { |
2509 | sample_rate_ = 0; |
2510 | } |
2511 | inline float Summary_Audio::sample_rate() const { |
2512 | // @@protoc_insertion_point(field_get:tensorflow.Summary.Audio.sample_rate) |
2513 | return sample_rate_; |
2514 | } |
2515 | inline void Summary_Audio::set_sample_rate(float value) { |
2516 | |
2517 | sample_rate_ = value; |
2518 | // @@protoc_insertion_point(field_set:tensorflow.Summary.Audio.sample_rate) |
2519 | } |
2520 | |
2521 | // int64 num_channels = 2; |
2522 | inline void Summary_Audio::clear_num_channels() { |
2523 | num_channels_ = PROTOBUF_LONGLONG(0); |
2524 | } |
2525 | inline ::PROTOBUF_NAMESPACE_ID::int64 Summary_Audio::num_channels() const { |
2526 | // @@protoc_insertion_point(field_get:tensorflow.Summary.Audio.num_channels) |
2527 | return num_channels_; |
2528 | } |
2529 | inline void Summary_Audio::set_num_channels(::PROTOBUF_NAMESPACE_ID::int64 value) { |
2530 | |
2531 | num_channels_ = value; |
2532 | // @@protoc_insertion_point(field_set:tensorflow.Summary.Audio.num_channels) |
2533 | } |
2534 | |
2535 | // int64 length_frames = 3; |
2536 | inline void Summary_Audio::clear_length_frames() { |
2537 | length_frames_ = PROTOBUF_LONGLONG(0); |
2538 | } |
2539 | inline ::PROTOBUF_NAMESPACE_ID::int64 Summary_Audio::length_frames() const { |
2540 | // @@protoc_insertion_point(field_get:tensorflow.Summary.Audio.length_frames) |
2541 | return length_frames_; |
2542 | } |
2543 | inline void Summary_Audio::set_length_frames(::PROTOBUF_NAMESPACE_ID::int64 value) { |
2544 | |
2545 | length_frames_ = value; |
2546 | // @@protoc_insertion_point(field_set:tensorflow.Summary.Audio.length_frames) |
2547 | } |
2548 | |
2549 | // bytes encoded_audio_string = 4; |
2550 | inline void Summary_Audio::clear_encoded_audio_string() { |
2551 | encoded_audio_string_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2552 | } |
2553 | inline const std::string& Summary_Audio::encoded_audio_string() const { |
2554 | // @@protoc_insertion_point(field_get:tensorflow.Summary.Audio.encoded_audio_string) |
2555 | return encoded_audio_string_.Get(); |
2556 | } |
2557 | inline void Summary_Audio::set_encoded_audio_string(const std::string& value) { |
2558 | |
2559 | encoded_audio_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
2560 | // @@protoc_insertion_point(field_set:tensorflow.Summary.Audio.encoded_audio_string) |
2561 | } |
2562 | inline void Summary_Audio::set_encoded_audio_string(std::string&& value) { |
2563 | |
2564 | encoded_audio_string_.Set( |
2565 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
2566 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.Summary.Audio.encoded_audio_string) |
2567 | } |
2568 | inline void Summary_Audio::set_encoded_audio_string(const char* value) { |
2569 | GOOGLE_DCHECK(value != nullptr); |
2570 | |
2571 | encoded_audio_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
2572 | GetArenaNoVirtual()); |
2573 | // @@protoc_insertion_point(field_set_char:tensorflow.Summary.Audio.encoded_audio_string) |
2574 | } |
2575 | inline void Summary_Audio::set_encoded_audio_string(const void* value, |
2576 | size_t size) { |
2577 | |
2578 | encoded_audio_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
2579 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
2580 | // @@protoc_insertion_point(field_set_pointer:tensorflow.Summary.Audio.encoded_audio_string) |
2581 | } |
2582 | inline std::string* Summary_Audio::mutable_encoded_audio_string() { |
2583 | |
2584 | // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Audio.encoded_audio_string) |
2585 | return encoded_audio_string_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2586 | } |
2587 | inline std::string* Summary_Audio::release_encoded_audio_string() { |
2588 | // @@protoc_insertion_point(field_release:tensorflow.Summary.Audio.encoded_audio_string) |
2589 | |
2590 | return encoded_audio_string_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2591 | } |
2592 | inline void Summary_Audio::set_allocated_encoded_audio_string(std::string* encoded_audio_string) { |
2593 | if (encoded_audio_string != nullptr) { |
2594 | |
2595 | } else { |
2596 | |
2597 | } |
2598 | encoded_audio_string_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), encoded_audio_string, |
2599 | GetArenaNoVirtual()); |
2600 | // @@protoc_insertion_point(field_set_allocated:tensorflow.Summary.Audio.encoded_audio_string) |
2601 | } |
2602 | inline std::string* Summary_Audio::unsafe_arena_release_encoded_audio_string() { |
2603 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Audio.encoded_audio_string) |
2604 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
2605 | |
2606 | return encoded_audio_string_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2607 | GetArenaNoVirtual()); |
2608 | } |
2609 | inline void Summary_Audio::unsafe_arena_set_allocated_encoded_audio_string( |
2610 | std::string* encoded_audio_string) { |
2611 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
2612 | if (encoded_audio_string != nullptr) { |
2613 | |
2614 | } else { |
2615 | |
2616 | } |
2617 | encoded_audio_string_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2618 | encoded_audio_string, GetArenaNoVirtual()); |
2619 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Summary.Audio.encoded_audio_string) |
2620 | } |
2621 | |
2622 | // string content_type = 5; |
2623 | inline void Summary_Audio::clear_content_type() { |
2624 | content_type_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2625 | } |
2626 | inline const std::string& Summary_Audio::content_type() const { |
2627 | // @@protoc_insertion_point(field_get:tensorflow.Summary.Audio.content_type) |
2628 | return content_type_.Get(); |
2629 | } |
2630 | inline void Summary_Audio::set_content_type(const std::string& value) { |
2631 | |
2632 | content_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
2633 | // @@protoc_insertion_point(field_set:tensorflow.Summary.Audio.content_type) |
2634 | } |
2635 | inline void Summary_Audio::set_content_type(std::string&& value) { |
2636 | |
2637 | content_type_.Set( |
2638 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
2639 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.Summary.Audio.content_type) |
2640 | } |
2641 | inline void Summary_Audio::set_content_type(const char* value) { |
2642 | GOOGLE_DCHECK(value != nullptr); |
2643 | |
2644 | content_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
2645 | GetArenaNoVirtual()); |
2646 | // @@protoc_insertion_point(field_set_char:tensorflow.Summary.Audio.content_type) |
2647 | } |
2648 | inline void Summary_Audio::set_content_type(const char* value, |
2649 | size_t size) { |
2650 | |
2651 | content_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
2652 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
2653 | // @@protoc_insertion_point(field_set_pointer:tensorflow.Summary.Audio.content_type) |
2654 | } |
2655 | inline std::string* Summary_Audio::mutable_content_type() { |
2656 | |
2657 | // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Audio.content_type) |
2658 | return content_type_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2659 | } |
2660 | inline std::string* Summary_Audio::release_content_type() { |
2661 | // @@protoc_insertion_point(field_release:tensorflow.Summary.Audio.content_type) |
2662 | |
2663 | return content_type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2664 | } |
2665 | inline void Summary_Audio::set_allocated_content_type(std::string* content_type) { |
2666 | if (content_type != nullptr) { |
2667 | |
2668 | } else { |
2669 | |
2670 | } |
2671 | content_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), content_type, |
2672 | GetArenaNoVirtual()); |
2673 | // @@protoc_insertion_point(field_set_allocated:tensorflow.Summary.Audio.content_type) |
2674 | } |
2675 | inline std::string* Summary_Audio::unsafe_arena_release_content_type() { |
2676 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Audio.content_type) |
2677 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
2678 | |
2679 | return content_type_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2680 | GetArenaNoVirtual()); |
2681 | } |
2682 | inline void Summary_Audio::unsafe_arena_set_allocated_content_type( |
2683 | std::string* content_type) { |
2684 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
2685 | if (content_type != nullptr) { |
2686 | |
2687 | } else { |
2688 | |
2689 | } |
2690 | content_type_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2691 | content_type, GetArenaNoVirtual()); |
2692 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Summary.Audio.content_type) |
2693 | } |
2694 | |
2695 | // ------------------------------------------------------------------- |
2696 | |
2697 | // Summary_Value |
2698 | |
2699 | // string node_name = 7; |
2700 | inline void Summary_Value::clear_node_name() { |
2701 | node_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2702 | } |
2703 | inline const std::string& Summary_Value::node_name() const { |
2704 | // @@protoc_insertion_point(field_get:tensorflow.Summary.Value.node_name) |
2705 | return node_name_.Get(); |
2706 | } |
2707 | inline void Summary_Value::set_node_name(const std::string& value) { |
2708 | |
2709 | node_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
2710 | // @@protoc_insertion_point(field_set:tensorflow.Summary.Value.node_name) |
2711 | } |
2712 | inline void Summary_Value::set_node_name(std::string&& value) { |
2713 | |
2714 | node_name_.Set( |
2715 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
2716 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.Summary.Value.node_name) |
2717 | } |
2718 | inline void Summary_Value::set_node_name(const char* value) { |
2719 | GOOGLE_DCHECK(value != nullptr); |
2720 | |
2721 | node_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
2722 | GetArenaNoVirtual()); |
2723 | // @@protoc_insertion_point(field_set_char:tensorflow.Summary.Value.node_name) |
2724 | } |
2725 | inline void Summary_Value::set_node_name(const char* value, |
2726 | size_t size) { |
2727 | |
2728 | node_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
2729 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
2730 | // @@protoc_insertion_point(field_set_pointer:tensorflow.Summary.Value.node_name) |
2731 | } |
2732 | inline std::string* Summary_Value::mutable_node_name() { |
2733 | |
2734 | // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Value.node_name) |
2735 | return node_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2736 | } |
2737 | inline std::string* Summary_Value::release_node_name() { |
2738 | // @@protoc_insertion_point(field_release:tensorflow.Summary.Value.node_name) |
2739 | |
2740 | return node_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2741 | } |
2742 | inline void Summary_Value::set_allocated_node_name(std::string* node_name) { |
2743 | if (node_name != nullptr) { |
2744 | |
2745 | } else { |
2746 | |
2747 | } |
2748 | node_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), node_name, |
2749 | GetArenaNoVirtual()); |
2750 | // @@protoc_insertion_point(field_set_allocated:tensorflow.Summary.Value.node_name) |
2751 | } |
2752 | inline std::string* Summary_Value::unsafe_arena_release_node_name() { |
2753 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Value.node_name) |
2754 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
2755 | |
2756 | return node_name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2757 | GetArenaNoVirtual()); |
2758 | } |
2759 | inline void Summary_Value::unsafe_arena_set_allocated_node_name( |
2760 | std::string* node_name) { |
2761 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
2762 | if (node_name != nullptr) { |
2763 | |
2764 | } else { |
2765 | |
2766 | } |
2767 | node_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2768 | node_name, GetArenaNoVirtual()); |
2769 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Summary.Value.node_name) |
2770 | } |
2771 | |
2772 | // string tag = 1; |
2773 | inline void Summary_Value::clear_tag() { |
2774 | tag_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2775 | } |
2776 | inline const std::string& Summary_Value::tag() const { |
2777 | // @@protoc_insertion_point(field_get:tensorflow.Summary.Value.tag) |
2778 | return tag_.Get(); |
2779 | } |
2780 | inline void Summary_Value::set_tag(const std::string& value) { |
2781 | |
2782 | tag_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
2783 | // @@protoc_insertion_point(field_set:tensorflow.Summary.Value.tag) |
2784 | } |
2785 | inline void Summary_Value::set_tag(std::string&& value) { |
2786 | |
2787 | tag_.Set( |
2788 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
2789 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.Summary.Value.tag) |
2790 | } |
2791 | inline void Summary_Value::set_tag(const char* value) { |
2792 | GOOGLE_DCHECK(value != nullptr); |
2793 | |
2794 | tag_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
2795 | GetArenaNoVirtual()); |
2796 | // @@protoc_insertion_point(field_set_char:tensorflow.Summary.Value.tag) |
2797 | } |
2798 | inline void Summary_Value::set_tag(const char* value, |
2799 | size_t size) { |
2800 | |
2801 | tag_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
2802 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
2803 | // @@protoc_insertion_point(field_set_pointer:tensorflow.Summary.Value.tag) |
2804 | } |
2805 | inline std::string* Summary_Value::mutable_tag() { |
2806 | |
2807 | // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Value.tag) |
2808 | return tag_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2809 | } |
2810 | inline std::string* Summary_Value::release_tag() { |
2811 | // @@protoc_insertion_point(field_release:tensorflow.Summary.Value.tag) |
2812 | |
2813 | return tag_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
2814 | } |
2815 | inline void Summary_Value::set_allocated_tag(std::string* tag) { |
2816 | if (tag != nullptr) { |
2817 | |
2818 | } else { |
2819 | |
2820 | } |
2821 | tag_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tag, |
2822 | GetArenaNoVirtual()); |
2823 | // @@protoc_insertion_point(field_set_allocated:tensorflow.Summary.Value.tag) |
2824 | } |
2825 | inline std::string* Summary_Value::unsafe_arena_release_tag() { |
2826 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Value.tag) |
2827 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
2828 | |
2829 | return tag_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2830 | GetArenaNoVirtual()); |
2831 | } |
2832 | inline void Summary_Value::unsafe_arena_set_allocated_tag( |
2833 | std::string* tag) { |
2834 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
2835 | if (tag != nullptr) { |
2836 | |
2837 | } else { |
2838 | |
2839 | } |
2840 | tag_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2841 | tag, GetArenaNoVirtual()); |
2842 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Summary.Value.tag) |
2843 | } |
2844 | |
2845 | // .tensorflow.SummaryMetadata metadata = 9; |
2846 | inline bool Summary_Value::has_metadata() const { |
2847 | return this != internal_default_instance() && metadata_ != nullptr; |
2848 | } |
2849 | inline void Summary_Value::clear_metadata() { |
2850 | if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { |
2851 | delete metadata_; |
2852 | } |
2853 | metadata_ = nullptr; |
2854 | } |
2855 | inline const ::tensorflow::SummaryMetadata& Summary_Value::metadata() const { |
2856 | const ::tensorflow::SummaryMetadata* p = metadata_; |
2857 | // @@protoc_insertion_point(field_get:tensorflow.Summary.Value.metadata) |
2858 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::SummaryMetadata*>( |
2859 | &::tensorflow::_SummaryMetadata_default_instance_); |
2860 | } |
2861 | inline ::tensorflow::SummaryMetadata* Summary_Value::release_metadata() { |
2862 | // @@protoc_insertion_point(field_release:tensorflow.Summary.Value.metadata) |
2863 | |
2864 | ::tensorflow::SummaryMetadata* temp = metadata_; |
2865 | if (GetArenaNoVirtual() != nullptr) { |
2866 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
2867 | } |
2868 | metadata_ = nullptr; |
2869 | return temp; |
2870 | } |
2871 | inline ::tensorflow::SummaryMetadata* Summary_Value::unsafe_arena_release_metadata() { |
2872 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Value.metadata) |
2873 | |
2874 | ::tensorflow::SummaryMetadata* temp = metadata_; |
2875 | metadata_ = nullptr; |
2876 | return temp; |
2877 | } |
2878 | inline ::tensorflow::SummaryMetadata* Summary_Value::mutable_metadata() { |
2879 | |
2880 | if (metadata_ == nullptr) { |
2881 | auto* p = CreateMaybeMessage<::tensorflow::SummaryMetadata>(GetArenaNoVirtual()); |
2882 | metadata_ = p; |
2883 | } |
2884 | // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Value.metadata) |
2885 | return metadata_; |
2886 | } |
2887 | inline void Summary_Value::set_allocated_metadata(::tensorflow::SummaryMetadata* metadata) { |
2888 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
2889 | if (message_arena == nullptr) { |
2890 | delete metadata_; |
2891 | } |
2892 | if (metadata) { |
2893 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2894 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(metadata); |
2895 | if (message_arena != submessage_arena) { |
2896 | metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2897 | message_arena, metadata, submessage_arena); |
2898 | } |
2899 | |
2900 | } else { |
2901 | |
2902 | } |
2903 | metadata_ = metadata; |
2904 | // @@protoc_insertion_point(field_set_allocated:tensorflow.Summary.Value.metadata) |
2905 | } |
2906 | |
2907 | // float simple_value = 2; |
2908 | inline bool Summary_Value::has_simple_value() const { |
2909 | return value_case() == kSimpleValue; |
2910 | } |
2911 | inline void Summary_Value::set_has_simple_value() { |
2912 | _oneof_case_[0] = kSimpleValue; |
2913 | } |
2914 | inline void Summary_Value::clear_simple_value() { |
2915 | if (has_simple_value()) { |
2916 | value_.simple_value_ = 0; |
2917 | clear_has_value(); |
2918 | } |
2919 | } |
2920 | inline float Summary_Value::simple_value() const { |
2921 | // @@protoc_insertion_point(field_get:tensorflow.Summary.Value.simple_value) |
2922 | if (has_simple_value()) { |
2923 | return value_.simple_value_; |
2924 | } |
2925 | return 0; |
2926 | } |
2927 | inline void Summary_Value::set_simple_value(float value) { |
2928 | if (!has_simple_value()) { |
2929 | clear_value(); |
2930 | set_has_simple_value(); |
2931 | } |
2932 | value_.simple_value_ = value; |
2933 | // @@protoc_insertion_point(field_set:tensorflow.Summary.Value.simple_value) |
2934 | } |
2935 | |
2936 | // bytes obsolete_old_style_histogram = 3; |
2937 | inline bool Summary_Value::has_obsolete_old_style_histogram() const { |
2938 | return value_case() == kObsoleteOldStyleHistogram; |
2939 | } |
2940 | inline void Summary_Value::set_has_obsolete_old_style_histogram() { |
2941 | _oneof_case_[0] = kObsoleteOldStyleHistogram; |
2942 | } |
2943 | inline void Summary_Value::clear_obsolete_old_style_histogram() { |
2944 | if (has_obsolete_old_style_histogram()) { |
2945 | value_.obsolete_old_style_histogram_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2946 | GetArenaNoVirtual()); |
2947 | clear_has_value(); |
2948 | } |
2949 | } |
2950 | inline const std::string& Summary_Value::obsolete_old_style_histogram() const { |
2951 | // @@protoc_insertion_point(field_get:tensorflow.Summary.Value.obsolete_old_style_histogram) |
2952 | if (has_obsolete_old_style_histogram()) { |
2953 | return value_.obsolete_old_style_histogram_.Get(); |
2954 | } |
2955 | return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); |
2956 | } |
2957 | inline void Summary_Value::set_obsolete_old_style_histogram(const std::string& value) { |
2958 | if (!has_obsolete_old_style_histogram()) { |
2959 | clear_value(); |
2960 | set_has_obsolete_old_style_histogram(); |
2961 | value_.obsolete_old_style_histogram_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2962 | } |
2963 | value_.obsolete_old_style_histogram_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, |
2964 | GetArenaNoVirtual()); |
2965 | // @@protoc_insertion_point(field_set:tensorflow.Summary.Value.obsolete_old_style_histogram) |
2966 | } |
2967 | inline void Summary_Value::set_obsolete_old_style_histogram(std::string&& value) { |
2968 | // @@protoc_insertion_point(field_set:tensorflow.Summary.Value.obsolete_old_style_histogram) |
2969 | if (!has_obsolete_old_style_histogram()) { |
2970 | clear_value(); |
2971 | set_has_obsolete_old_style_histogram(); |
2972 | value_.obsolete_old_style_histogram_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2973 | } |
2974 | value_.obsolete_old_style_histogram_.Set( |
2975 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
2976 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.Summary.Value.obsolete_old_style_histogram) |
2977 | } |
2978 | inline void Summary_Value::set_obsolete_old_style_histogram(const char* value) { |
2979 | GOOGLE_DCHECK(value != nullptr); |
2980 | if (!has_obsolete_old_style_histogram()) { |
2981 | clear_value(); |
2982 | set_has_obsolete_old_style_histogram(); |
2983 | value_.obsolete_old_style_histogram_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2984 | } |
2985 | value_.obsolete_old_style_histogram_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
2986 | ::std::string(value), GetArenaNoVirtual()); |
2987 | // @@protoc_insertion_point(field_set_char:tensorflow.Summary.Value.obsolete_old_style_histogram) |
2988 | } |
2989 | inline void Summary_Value::set_obsolete_old_style_histogram(const void* value, |
2990 | size_t size) { |
2991 | if (!has_obsolete_old_style_histogram()) { |
2992 | clear_value(); |
2993 | set_has_obsolete_old_style_histogram(); |
2994 | value_.obsolete_old_style_histogram_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
2995 | } |
2996 | value_.obsolete_old_style_histogram_.Set( |
2997 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
2998 | reinterpret_cast<const char*>(value), size), |
2999 | GetArenaNoVirtual()); |
3000 | // @@protoc_insertion_point(field_set_pointer:tensorflow.Summary.Value.obsolete_old_style_histogram) |
3001 | } |
3002 | inline std::string* Summary_Value::mutable_obsolete_old_style_histogram() { |
3003 | if (!has_obsolete_old_style_histogram()) { |
3004 | clear_value(); |
3005 | set_has_obsolete_old_style_histogram(); |
3006 | value_.obsolete_old_style_histogram_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
3007 | } |
3008 | return value_.obsolete_old_style_histogram_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
3009 | GetArenaNoVirtual()); |
3010 | // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Value.obsolete_old_style_histogram) |
3011 | } |
3012 | inline std::string* Summary_Value::release_obsolete_old_style_histogram() { |
3013 | // @@protoc_insertion_point(field_release:tensorflow.Summary.Value.obsolete_old_style_histogram) |
3014 | if (has_obsolete_old_style_histogram()) { |
3015 | clear_has_value(); |
3016 | return value_.obsolete_old_style_histogram_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
3017 | GetArenaNoVirtual()); |
3018 | } else { |
3019 | return nullptr; |
3020 | } |
3021 | } |
3022 | inline void Summary_Value::set_allocated_obsolete_old_style_histogram(std::string* obsolete_old_style_histogram) { |
3023 | if (has_value()) { |
3024 | clear_value(); |
3025 | } |
3026 | if (obsolete_old_style_histogram != nullptr) { |
3027 | set_has_obsolete_old_style_histogram(); |
3028 | value_.obsolete_old_style_histogram_.UnsafeSetDefault(obsolete_old_style_histogram); |
3029 | } |
3030 | // @@protoc_insertion_point(field_set_allocated:tensorflow.Summary.Value.obsolete_old_style_histogram) |
3031 | } |
3032 | inline std::string* Summary_Value::unsafe_arena_release_obsolete_old_style_histogram() { |
3033 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Value.obsolete_old_style_histogram) |
3034 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
3035 | if (has_obsolete_old_style_histogram()) { |
3036 | clear_has_value(); |
3037 | return value_.obsolete_old_style_histogram_.UnsafeArenaRelease( |
3038 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
3039 | } else { |
3040 | return nullptr; |
3041 | } |
3042 | } |
3043 | inline void Summary_Value::unsafe_arena_set_allocated_obsolete_old_style_histogram(std::string* obsolete_old_style_histogram) { |
3044 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
3045 | if (!has_obsolete_old_style_histogram()) { |
3046 | value_.obsolete_old_style_histogram_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
3047 | } |
3048 | clear_value(); |
3049 | if (obsolete_old_style_histogram) { |
3050 | set_has_obsolete_old_style_histogram(); |
3051 | value_.obsolete_old_style_histogram_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), obsolete_old_style_histogram, GetArenaNoVirtual()); |
3052 | } |
3053 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Summary.Value.obsolete_old_style_histogram) |
3054 | } |
3055 | |
3056 | // .tensorflow.Summary.Image image = 4; |
3057 | inline bool Summary_Value::has_image() const { |
3058 | return value_case() == kImage; |
3059 | } |
3060 | inline void Summary_Value::set_has_image() { |
3061 | _oneof_case_[0] = kImage; |
3062 | } |
3063 | inline void Summary_Value::clear_image() { |
3064 | if (has_image()) { |
3065 | if (GetArenaNoVirtual() == nullptr) { |
3066 | delete value_.image_; |
3067 | } |
3068 | clear_has_value(); |
3069 | } |
3070 | } |
3071 | inline ::tensorflow::Summary_Image* Summary_Value::release_image() { |
3072 | // @@protoc_insertion_point(field_release:tensorflow.Summary.Value.image) |
3073 | if (has_image()) { |
3074 | clear_has_value(); |
3075 | ::tensorflow::Summary_Image* temp = value_.image_; |
3076 | if (GetArenaNoVirtual() != nullptr) { |
3077 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3078 | } |
3079 | value_.image_ = nullptr; |
3080 | return temp; |
3081 | } else { |
3082 | return nullptr; |
3083 | } |
3084 | } |
3085 | inline const ::tensorflow::Summary_Image& Summary_Value::image() const { |
3086 | // @@protoc_insertion_point(field_get:tensorflow.Summary.Value.image) |
3087 | return has_image() |
3088 | ? *value_.image_ |
3089 | : *reinterpret_cast< ::tensorflow::Summary_Image*>(&::tensorflow::_Summary_Image_default_instance_); |
3090 | } |
3091 | inline ::tensorflow::Summary_Image* Summary_Value::unsafe_arena_release_image() { |
3092 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Value.image) |
3093 | if (has_image()) { |
3094 | clear_has_value(); |
3095 | ::tensorflow::Summary_Image* temp = value_.image_; |
3096 | value_.image_ = nullptr; |
3097 | return temp; |
3098 | } else { |
3099 | return nullptr; |
3100 | } |
3101 | } |
3102 | inline void Summary_Value::unsafe_arena_set_allocated_image(::tensorflow::Summary_Image* image) { |
3103 | clear_value(); |
3104 | if (image) { |
3105 | set_has_image(); |
3106 | value_.image_ = image; |
3107 | } |
3108 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Summary.Value.image) |
3109 | } |
3110 | inline ::tensorflow::Summary_Image* Summary_Value::mutable_image() { |
3111 | if (!has_image()) { |
3112 | clear_value(); |
3113 | set_has_image(); |
3114 | value_.image_ = CreateMaybeMessage< ::tensorflow::Summary_Image >( |
3115 | GetArenaNoVirtual()); |
3116 | } |
3117 | // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Value.image) |
3118 | return value_.image_; |
3119 | } |
3120 | |
3121 | // .tensorflow.HistogramProto histo = 5; |
3122 | inline bool Summary_Value::has_histo() const { |
3123 | return value_case() == kHisto; |
3124 | } |
3125 | inline void Summary_Value::set_has_histo() { |
3126 | _oneof_case_[0] = kHisto; |
3127 | } |
3128 | inline void Summary_Value::clear_histo() { |
3129 | if (has_histo()) { |
3130 | if (GetArenaNoVirtual() == nullptr) { |
3131 | delete value_.histo_; |
3132 | } |
3133 | clear_has_value(); |
3134 | } |
3135 | } |
3136 | inline ::tensorflow::HistogramProto* Summary_Value::release_histo() { |
3137 | // @@protoc_insertion_point(field_release:tensorflow.Summary.Value.histo) |
3138 | if (has_histo()) { |
3139 | clear_has_value(); |
3140 | ::tensorflow::HistogramProto* temp = value_.histo_; |
3141 | if (GetArenaNoVirtual() != nullptr) { |
3142 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3143 | } |
3144 | value_.histo_ = nullptr; |
3145 | return temp; |
3146 | } else { |
3147 | return nullptr; |
3148 | } |
3149 | } |
3150 | inline const ::tensorflow::HistogramProto& Summary_Value::histo() const { |
3151 | // @@protoc_insertion_point(field_get:tensorflow.Summary.Value.histo) |
3152 | return has_histo() |
3153 | ? *value_.histo_ |
3154 | : *reinterpret_cast< ::tensorflow::HistogramProto*>(&::tensorflow::_HistogramProto_default_instance_); |
3155 | } |
3156 | inline ::tensorflow::HistogramProto* Summary_Value::unsafe_arena_release_histo() { |
3157 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Value.histo) |
3158 | if (has_histo()) { |
3159 | clear_has_value(); |
3160 | ::tensorflow::HistogramProto* temp = value_.histo_; |
3161 | value_.histo_ = nullptr; |
3162 | return temp; |
3163 | } else { |
3164 | return nullptr; |
3165 | } |
3166 | } |
3167 | inline void Summary_Value::unsafe_arena_set_allocated_histo(::tensorflow::HistogramProto* histo) { |
3168 | clear_value(); |
3169 | if (histo) { |
3170 | set_has_histo(); |
3171 | value_.histo_ = histo; |
3172 | } |
3173 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Summary.Value.histo) |
3174 | } |
3175 | inline ::tensorflow::HistogramProto* Summary_Value::mutable_histo() { |
3176 | if (!has_histo()) { |
3177 | clear_value(); |
3178 | set_has_histo(); |
3179 | value_.histo_ = CreateMaybeMessage< ::tensorflow::HistogramProto >( |
3180 | GetArenaNoVirtual()); |
3181 | } |
3182 | // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Value.histo) |
3183 | return value_.histo_; |
3184 | } |
3185 | |
3186 | // .tensorflow.Summary.Audio audio = 6; |
3187 | inline bool Summary_Value::has_audio() const { |
3188 | return value_case() == kAudio; |
3189 | } |
3190 | inline void Summary_Value::set_has_audio() { |
3191 | _oneof_case_[0] = kAudio; |
3192 | } |
3193 | inline void Summary_Value::clear_audio() { |
3194 | if (has_audio()) { |
3195 | if (GetArenaNoVirtual() == nullptr) { |
3196 | delete value_.audio_; |
3197 | } |
3198 | clear_has_value(); |
3199 | } |
3200 | } |
3201 | inline ::tensorflow::Summary_Audio* Summary_Value::release_audio() { |
3202 | // @@protoc_insertion_point(field_release:tensorflow.Summary.Value.audio) |
3203 | if (has_audio()) { |
3204 | clear_has_value(); |
3205 | ::tensorflow::Summary_Audio* temp = value_.audio_; |
3206 | if (GetArenaNoVirtual() != nullptr) { |
3207 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3208 | } |
3209 | value_.audio_ = nullptr; |
3210 | return temp; |
3211 | } else { |
3212 | return nullptr; |
3213 | } |
3214 | } |
3215 | inline const ::tensorflow::Summary_Audio& Summary_Value::audio() const { |
3216 | // @@protoc_insertion_point(field_get:tensorflow.Summary.Value.audio) |
3217 | return has_audio() |
3218 | ? *value_.audio_ |
3219 | : *reinterpret_cast< ::tensorflow::Summary_Audio*>(&::tensorflow::_Summary_Audio_default_instance_); |
3220 | } |
3221 | inline ::tensorflow::Summary_Audio* Summary_Value::unsafe_arena_release_audio() { |
3222 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Value.audio) |
3223 | if (has_audio()) { |
3224 | clear_has_value(); |
3225 | ::tensorflow::Summary_Audio* temp = value_.audio_; |
3226 | value_.audio_ = nullptr; |
3227 | return temp; |
3228 | } else { |
3229 | return nullptr; |
3230 | } |
3231 | } |
3232 | inline void Summary_Value::unsafe_arena_set_allocated_audio(::tensorflow::Summary_Audio* audio) { |
3233 | clear_value(); |
3234 | if (audio) { |
3235 | set_has_audio(); |
3236 | value_.audio_ = audio; |
3237 | } |
3238 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Summary.Value.audio) |
3239 | } |
3240 | inline ::tensorflow::Summary_Audio* Summary_Value::mutable_audio() { |
3241 | if (!has_audio()) { |
3242 | clear_value(); |
3243 | set_has_audio(); |
3244 | value_.audio_ = CreateMaybeMessage< ::tensorflow::Summary_Audio >( |
3245 | GetArenaNoVirtual()); |
3246 | } |
3247 | // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Value.audio) |
3248 | return value_.audio_; |
3249 | } |
3250 | |
3251 | // .tensorflow.TensorProto tensor = 8; |
3252 | inline bool Summary_Value::has_tensor() const { |
3253 | return value_case() == kTensor; |
3254 | } |
3255 | inline void Summary_Value::set_has_tensor() { |
3256 | _oneof_case_[0] = kTensor; |
3257 | } |
3258 | inline ::tensorflow::TensorProto* Summary_Value::release_tensor() { |
3259 | // @@protoc_insertion_point(field_release:tensorflow.Summary.Value.tensor) |
3260 | if (has_tensor()) { |
3261 | clear_has_value(); |
3262 | ::tensorflow::TensorProto* temp = value_.tensor_; |
3263 | if (GetArenaNoVirtual() != nullptr) { |
3264 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3265 | } |
3266 | value_.tensor_ = nullptr; |
3267 | return temp; |
3268 | } else { |
3269 | return nullptr; |
3270 | } |
3271 | } |
3272 | inline const ::tensorflow::TensorProto& Summary_Value::tensor() const { |
3273 | // @@protoc_insertion_point(field_get:tensorflow.Summary.Value.tensor) |
3274 | return has_tensor() |
3275 | ? *value_.tensor_ |
3276 | : *reinterpret_cast< ::tensorflow::TensorProto*>(&::tensorflow::_TensorProto_default_instance_); |
3277 | } |
3278 | inline ::tensorflow::TensorProto* Summary_Value::unsafe_arena_release_tensor() { |
3279 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Value.tensor) |
3280 | if (has_tensor()) { |
3281 | clear_has_value(); |
3282 | ::tensorflow::TensorProto* temp = value_.tensor_; |
3283 | value_.tensor_ = nullptr; |
3284 | return temp; |
3285 | } else { |
3286 | return nullptr; |
3287 | } |
3288 | } |
3289 | inline void Summary_Value::unsafe_arena_set_allocated_tensor(::tensorflow::TensorProto* tensor) { |
3290 | clear_value(); |
3291 | if (tensor) { |
3292 | set_has_tensor(); |
3293 | value_.tensor_ = tensor; |
3294 | } |
3295 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Summary.Value.tensor) |
3296 | } |
3297 | inline ::tensorflow::TensorProto* Summary_Value::mutable_tensor() { |
3298 | if (!has_tensor()) { |
3299 | clear_value(); |
3300 | set_has_tensor(); |
3301 | value_.tensor_ = CreateMaybeMessage< ::tensorflow::TensorProto >( |
3302 | GetArenaNoVirtual()); |
3303 | } |
3304 | // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Value.tensor) |
3305 | return value_.tensor_; |
3306 | } |
3307 | |
3308 | inline bool Summary_Value::has_value() const { |
3309 | return value_case() != VALUE_NOT_SET; |
3310 | } |
3311 | inline void Summary_Value::clear_has_value() { |
3312 | _oneof_case_[0] = VALUE_NOT_SET; |
3313 | } |
3314 | inline Summary_Value::ValueCase Summary_Value::value_case() const { |
3315 | return Summary_Value::ValueCase(_oneof_case_[0]); |
3316 | } |
3317 | // ------------------------------------------------------------------- |
3318 | |
3319 | // Summary |
3320 | |
3321 | // repeated .tensorflow.Summary.Value value = 1; |
3322 | inline int Summary::value_size() const { |
3323 | return value_.size(); |
3324 | } |
3325 | inline void Summary::clear_value() { |
3326 | value_.Clear(); |
3327 | } |
3328 | inline ::tensorflow::Summary_Value* Summary::mutable_value(int index) { |
3329 | // @@protoc_insertion_point(field_mutable:tensorflow.Summary.value) |
3330 | return value_.Mutable(index); |
3331 | } |
3332 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::Summary_Value >* |
3333 | Summary::mutable_value() { |
3334 | // @@protoc_insertion_point(field_mutable_list:tensorflow.Summary.value) |
3335 | return &value_; |
3336 | } |
3337 | inline const ::tensorflow::Summary_Value& Summary::value(int index) const { |
3338 | // @@protoc_insertion_point(field_get:tensorflow.Summary.value) |
3339 | return value_.Get(index); |
3340 | } |
3341 | inline ::tensorflow::Summary_Value* Summary::add_value() { |
3342 | // @@protoc_insertion_point(field_add:tensorflow.Summary.value) |
3343 | return value_.Add(); |
3344 | } |
3345 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::Summary_Value >& |
3346 | Summary::value() const { |
3347 | // @@protoc_insertion_point(field_list:tensorflow.Summary.value) |
3348 | return value_; |
3349 | } |
3350 | |
3351 | #ifdef __GNUC__ |
3352 | #pragma GCC diagnostic pop |
3353 | #endif // __GNUC__ |
3354 | // ------------------------------------------------------------------- |
3355 | |
3356 | // ------------------------------------------------------------------- |
3357 | |
3358 | // ------------------------------------------------------------------- |
3359 | |
3360 | // ------------------------------------------------------------------- |
3361 | |
3362 | // ------------------------------------------------------------------- |
3363 | |
3364 | // ------------------------------------------------------------------- |
3365 | |
3366 | // ------------------------------------------------------------------- |
3367 | |
3368 | |
3369 | // @@protoc_insertion_point(namespace_scope) |
3370 | |
3371 | } // namespace tensorflow |
3372 | |
3373 | PROTOBUF_NAMESPACE_OPEN |
3374 | |
3375 | template <> struct is_proto_enum< ::tensorflow::DataClass> : ::std::true_type {}; |
3376 | template <> |
3377 | inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::DataClass>() { |
3378 | return ::tensorflow::DataClass_descriptor(); |
3379 | } |
3380 | |
3381 | PROTOBUF_NAMESPACE_CLOSE |
3382 | |
3383 | // @@protoc_insertion_point(global_scope) |
3384 | |
3385 | #include <google/protobuf/port_undef.inc> |
3386 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fsummary_2eproto |
3387 | |