1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/core/debug/debugger_event_metadata.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fdebug_2fdebugger_5fevent_5fmetadata_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fdebug_2fdebugger_5fevent_5fmetadata_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/unknown_field_set.h>
35// @@protoc_insertion_point(includes)
36#include <google/protobuf/port_def.inc>
37#define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fdebug_2fdebugger_5fevent_5fmetadata_2eproto
38PROTOBUF_NAMESPACE_OPEN
39namespace internal {
40class AnyMetadata;
41} // namespace internal
42PROTOBUF_NAMESPACE_CLOSE
43
44// Internal implementation detail -- do not use these members.
45struct TableStruct_tensorflow_2fcore_2fdebug_2fdebugger_5fevent_5fmetadata_2eproto {
46 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
47 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
48 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
49 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
50 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
51 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
52 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
53 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
54 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
55};
56extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fdebug_2fdebugger_5fevent_5fmetadata_2eproto;
57namespace third_party {
58namespace tensorflow {
59namespace core {
60namespace debug {
61class DebuggerEventMetadata;
62class DebuggerEventMetadataDefaultTypeInternal;
63extern DebuggerEventMetadataDefaultTypeInternal _DebuggerEventMetadata_default_instance_;
64} // namespace debug
65} // namespace core
66} // namespace tensorflow
67} // namespace third_party
68PROTOBUF_NAMESPACE_OPEN
69template<> ::third_party::tensorflow::core::debug::DebuggerEventMetadata* Arena::CreateMaybeMessage<::third_party::tensorflow::core::debug::DebuggerEventMetadata>(Arena*);
70PROTOBUF_NAMESPACE_CLOSE
71namespace third_party {
72namespace tensorflow {
73namespace core {
74namespace debug {
75
76// ===================================================================
77
78class DebuggerEventMetadata :
79 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:third_party.tensorflow.core.debug.DebuggerEventMetadata) */ {
80 public:
81 DebuggerEventMetadata();
82 virtual ~DebuggerEventMetadata();
83
84 DebuggerEventMetadata(const DebuggerEventMetadata& from);
85 DebuggerEventMetadata(DebuggerEventMetadata&& from) noexcept
86 : DebuggerEventMetadata() {
87 *this = ::std::move(from);
88 }
89
90 inline DebuggerEventMetadata& operator=(const DebuggerEventMetadata& from) {
91 CopyFrom(from);
92 return *this;
93 }
94 inline DebuggerEventMetadata& operator=(DebuggerEventMetadata&& from) noexcept {
95 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
96 if (this != &from) InternalSwap(&from);
97 } else {
98 CopyFrom(from);
99 }
100 return *this;
101 }
102
103 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
104 return GetDescriptor();
105 }
106 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
107 return GetMetadataStatic().descriptor;
108 }
109 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
110 return GetMetadataStatic().reflection;
111 }
112 static const DebuggerEventMetadata& default_instance();
113
114 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
115 static inline const DebuggerEventMetadata* internal_default_instance() {
116 return reinterpret_cast<const DebuggerEventMetadata*>(
117 &_DebuggerEventMetadata_default_instance_);
118 }
119 static constexpr int kIndexInFileMessages =
120 0;
121
122 friend void swap(DebuggerEventMetadata& a, DebuggerEventMetadata& b) {
123 a.Swap(&b);
124 }
125 inline void Swap(DebuggerEventMetadata* other) {
126 if (other == this) return;
127 InternalSwap(other);
128 }
129
130 // implements Message ----------------------------------------------
131
132 inline DebuggerEventMetadata* New() const final {
133 return CreateMaybeMessage<DebuggerEventMetadata>(nullptr);
134 }
135
136 DebuggerEventMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
137 return CreateMaybeMessage<DebuggerEventMetadata>(arena);
138 }
139 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
140 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
141 void CopyFrom(const DebuggerEventMetadata& from);
142 void MergeFrom(const DebuggerEventMetadata& from);
143 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
144 bool IsInitialized() const final;
145
146 size_t ByteSizeLong() const final;
147 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
148 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
149 #else
150 bool MergePartialFromCodedStream(
151 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
152 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
153 void SerializeWithCachedSizes(
154 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
155 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
156 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
157 int GetCachedSize() const final { return _cached_size_.Get(); }
158
159 private:
160 inline void SharedCtor();
161 inline void SharedDtor();
162 void SetCachedSize(int size) const final;
163 void InternalSwap(DebuggerEventMetadata* other);
164 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
165 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
166 return "third_party.tensorflow.core.debug.DebuggerEventMetadata";
167 }
168 private:
169 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
170 return nullptr;
171 }
172 inline void* MaybeArenaPtr() const {
173 return nullptr;
174 }
175 public:
176
177 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
178 private:
179 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
180 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fdebug_2fdebugger_5fevent_5fmetadata_2eproto);
181 return ::descriptor_table_tensorflow_2fcore_2fdebug_2fdebugger_5fevent_5fmetadata_2eproto.file_level_metadata[kIndexInFileMessages];
182 }
183
184 public:
185
186 // nested types ----------------------------------------------------
187
188 // accessors -------------------------------------------------------
189
190 enum : int {
191 kDeviceFieldNumber = 1,
192 kOutputSlotFieldNumber = 2,
193 kNumChunksFieldNumber = 3,
194 kChunkIndexFieldNumber = 4,
195 };
196 // string device = 1;
197 void clear_device();
198 const std::string& device() const;
199 void set_device(const std::string& value);
200 void set_device(std::string&& value);
201 void set_device(const char* value);
202 void set_device(const char* value, size_t size);
203 std::string* mutable_device();
204 std::string* release_device();
205 void set_allocated_device(std::string* device);
206
207 // int32 output_slot = 2;
208 void clear_output_slot();
209 ::PROTOBUF_NAMESPACE_ID::int32 output_slot() const;
210 void set_output_slot(::PROTOBUF_NAMESPACE_ID::int32 value);
211
212 // int32 num_chunks = 3;
213 void clear_num_chunks();
214 ::PROTOBUF_NAMESPACE_ID::int32 num_chunks() const;
215 void set_num_chunks(::PROTOBUF_NAMESPACE_ID::int32 value);
216
217 // int32 chunk_index = 4;
218 void clear_chunk_index();
219 ::PROTOBUF_NAMESPACE_ID::int32 chunk_index() const;
220 void set_chunk_index(::PROTOBUF_NAMESPACE_ID::int32 value);
221
222 // @@protoc_insertion_point(class_scope:third_party.tensorflow.core.debug.DebuggerEventMetadata)
223 private:
224 class _Internal;
225
226 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
227 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_;
228 ::PROTOBUF_NAMESPACE_ID::int32 output_slot_;
229 ::PROTOBUF_NAMESPACE_ID::int32 num_chunks_;
230 ::PROTOBUF_NAMESPACE_ID::int32 chunk_index_;
231 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
232 friend struct ::TableStruct_tensorflow_2fcore_2fdebug_2fdebugger_5fevent_5fmetadata_2eproto;
233};
234// ===================================================================
235
236
237// ===================================================================
238
239#ifdef __GNUC__
240 #pragma GCC diagnostic push
241 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
242#endif // __GNUC__
243// DebuggerEventMetadata
244
245// string device = 1;
246inline void DebuggerEventMetadata::clear_device() {
247 device_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
248}
249inline const std::string& DebuggerEventMetadata::device() const {
250 // @@protoc_insertion_point(field_get:third_party.tensorflow.core.debug.DebuggerEventMetadata.device)
251 return device_.GetNoArena();
252}
253inline void DebuggerEventMetadata::set_device(const std::string& value) {
254
255 device_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
256 // @@protoc_insertion_point(field_set:third_party.tensorflow.core.debug.DebuggerEventMetadata.device)
257}
258inline void DebuggerEventMetadata::set_device(std::string&& value) {
259
260 device_.SetNoArena(
261 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
262 // @@protoc_insertion_point(field_set_rvalue:third_party.tensorflow.core.debug.DebuggerEventMetadata.device)
263}
264inline void DebuggerEventMetadata::set_device(const char* value) {
265 GOOGLE_DCHECK(value != nullptr);
266
267 device_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
268 // @@protoc_insertion_point(field_set_char:third_party.tensorflow.core.debug.DebuggerEventMetadata.device)
269}
270inline void DebuggerEventMetadata::set_device(const char* value, size_t size) {
271
272 device_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
273 ::std::string(reinterpret_cast<const char*>(value), size));
274 // @@protoc_insertion_point(field_set_pointer:third_party.tensorflow.core.debug.DebuggerEventMetadata.device)
275}
276inline std::string* DebuggerEventMetadata::mutable_device() {
277
278 // @@protoc_insertion_point(field_mutable:third_party.tensorflow.core.debug.DebuggerEventMetadata.device)
279 return device_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
280}
281inline std::string* DebuggerEventMetadata::release_device() {
282 // @@protoc_insertion_point(field_release:third_party.tensorflow.core.debug.DebuggerEventMetadata.device)
283
284 return device_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
285}
286inline void DebuggerEventMetadata::set_allocated_device(std::string* device) {
287 if (device != nullptr) {
288
289 } else {
290
291 }
292 device_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device);
293 // @@protoc_insertion_point(field_set_allocated:third_party.tensorflow.core.debug.DebuggerEventMetadata.device)
294}
295
296// int32 output_slot = 2;
297inline void DebuggerEventMetadata::clear_output_slot() {
298 output_slot_ = 0;
299}
300inline ::PROTOBUF_NAMESPACE_ID::int32 DebuggerEventMetadata::output_slot() const {
301 // @@protoc_insertion_point(field_get:third_party.tensorflow.core.debug.DebuggerEventMetadata.output_slot)
302 return output_slot_;
303}
304inline void DebuggerEventMetadata::set_output_slot(::PROTOBUF_NAMESPACE_ID::int32 value) {
305
306 output_slot_ = value;
307 // @@protoc_insertion_point(field_set:third_party.tensorflow.core.debug.DebuggerEventMetadata.output_slot)
308}
309
310// int32 num_chunks = 3;
311inline void DebuggerEventMetadata::clear_num_chunks() {
312 num_chunks_ = 0;
313}
314inline ::PROTOBUF_NAMESPACE_ID::int32 DebuggerEventMetadata::num_chunks() const {
315 // @@protoc_insertion_point(field_get:third_party.tensorflow.core.debug.DebuggerEventMetadata.num_chunks)
316 return num_chunks_;
317}
318inline void DebuggerEventMetadata::set_num_chunks(::PROTOBUF_NAMESPACE_ID::int32 value) {
319
320 num_chunks_ = value;
321 // @@protoc_insertion_point(field_set:third_party.tensorflow.core.debug.DebuggerEventMetadata.num_chunks)
322}
323
324// int32 chunk_index = 4;
325inline void DebuggerEventMetadata::clear_chunk_index() {
326 chunk_index_ = 0;
327}
328inline ::PROTOBUF_NAMESPACE_ID::int32 DebuggerEventMetadata::chunk_index() const {
329 // @@protoc_insertion_point(field_get:third_party.tensorflow.core.debug.DebuggerEventMetadata.chunk_index)
330 return chunk_index_;
331}
332inline void DebuggerEventMetadata::set_chunk_index(::PROTOBUF_NAMESPACE_ID::int32 value) {
333
334 chunk_index_ = value;
335 // @@protoc_insertion_point(field_set:third_party.tensorflow.core.debug.DebuggerEventMetadata.chunk_index)
336}
337
338#ifdef __GNUC__
339 #pragma GCC diagnostic pop
340#endif // __GNUC__
341
342// @@protoc_insertion_point(namespace_scope)
343
344} // namespace debug
345} // namespace core
346} // namespace tensorflow
347} // namespace third_party
348
349// @@protoc_insertion_point(global_scope)
350
351#include <google/protobuf/port_undef.inc>
352#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fdebug_2fdebugger_5fevent_5fmetadata_2eproto
353