1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: tensorflow/core/protobuf/transport_options.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto
6
7 #include <cstdint>
8 #include <limits>
9 #include <string>
10
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/message_lite.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 // @@protoc_insertion_point(includes)
33 #include <google/protobuf/port_def.inc>
34 #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto
35 PROTOBUF_NAMESPACE_OPEN
36 namespace internal {
37 class AnyMetadata;
38 } // namespace internal
39 PROTOBUF_NAMESPACE_CLOSE
40
41 // Internal implementation detail -- do not use these members.
42 struct TableStruct_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto {
43 static const ::uint32_t offsets[];
44 };
45 namespace tensorflow {
46 class RecvBufRespExtra;
47 struct RecvBufRespExtraDefaultTypeInternal;
48 extern RecvBufRespExtraDefaultTypeInternal _RecvBufRespExtra_default_instance_;
49 } // namespace tensorflow
50 PROTOBUF_NAMESPACE_OPEN
51 template<> ::tensorflow::RecvBufRespExtra* Arena::CreateMaybeMessage<::tensorflow::RecvBufRespExtra>(Arena*);
52 PROTOBUF_NAMESPACE_CLOSE
53 namespace tensorflow {
54
55 // ===================================================================
56
57 class RecvBufRespExtra final :
58 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.RecvBufRespExtra) */ {
59 public:
RecvBufRespExtra()60 inline RecvBufRespExtra() : RecvBufRespExtra(nullptr) {}
61 ~RecvBufRespExtra() override;
62 explicit PROTOBUF_CONSTEXPR RecvBufRespExtra(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
63
64 RecvBufRespExtra(const RecvBufRespExtra& from);
RecvBufRespExtra(RecvBufRespExtra && from)65 RecvBufRespExtra(RecvBufRespExtra&& from) noexcept
66 : RecvBufRespExtra() {
67 *this = ::std::move(from);
68 }
69
70 inline RecvBufRespExtra& operator=(const RecvBufRespExtra& from) {
71 if (this == &from) return *this;
72 CopyFrom(from);
73 return *this;
74 }
75 inline RecvBufRespExtra& operator=(RecvBufRespExtra&& from) noexcept {
76 if (this == &from) return *this;
77 if (GetOwningArena() == from.GetOwningArena()
78 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
79 && GetOwningArena() != nullptr
80 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
81 ) {
82 InternalSwap(&from);
83 } else {
84 CopyFrom(from);
85 }
86 return *this;
87 }
88
default_instance()89 static const RecvBufRespExtra& default_instance() {
90 return *internal_default_instance();
91 }
internal_default_instance()92 static inline const RecvBufRespExtra* internal_default_instance() {
93 return reinterpret_cast<const RecvBufRespExtra*>(
94 &_RecvBufRespExtra_default_instance_);
95 }
96 static constexpr int kIndexInFileMessages =
97 0;
98
swap(RecvBufRespExtra & a,RecvBufRespExtra & b)99 friend void swap(RecvBufRespExtra& a, RecvBufRespExtra& b) {
100 a.Swap(&b);
101 }
Swap(RecvBufRespExtra * other)102 inline void Swap(RecvBufRespExtra* other) {
103 if (other == this) return;
104 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
105 if (GetOwningArena() != nullptr &&
106 GetOwningArena() == other->GetOwningArena()) {
107 #else // PROTOBUF_FORCE_COPY_IN_SWAP
108 if (GetOwningArena() == other->GetOwningArena()) {
109 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
110 InternalSwap(other);
111 } else {
112 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
113 }
114 }
115 void UnsafeArenaSwap(RecvBufRespExtra* other) {
116 if (other == this) return;
117 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
118 InternalSwap(other);
119 }
120
121 // implements Message ----------------------------------------------
122
123 RecvBufRespExtra* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
124 return CreateMaybeMessage<RecvBufRespExtra>(arena);
125 }
126 RecvBufRespExtra* New() const {
127 return New(nullptr);
128 }
129 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
130 void CopyFrom(const RecvBufRespExtra& from);
131 void MergeFrom(const RecvBufRespExtra& from);
132 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
133 bool IsInitialized() const final;
134
135 size_t ByteSizeLong() const final;
136 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
137 ::uint8_t* _InternalSerialize(
138 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
139 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
140
141 private:
142 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
143 void SharedDtor();
144 void SetCachedSize(int size) const;
145 void InternalSwap(RecvBufRespExtra* other);
146
147 private:
148 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
149 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
150 return "tensorflow.RecvBufRespExtra";
151 }
152 protected:
153 explicit RecvBufRespExtra(::PROTOBUF_NAMESPACE_ID::Arena* arena,
154 bool is_message_owned = false);
155 public:
156
157 std::string GetTypeName() const final;
158
159 // nested types ----------------------------------------------------
160
161 // accessors -------------------------------------------------------
162
163 enum : int {
164 kTensorContentFieldNumber = 1,
165 };
166 // repeated bytes tensor_content = 1;
167 int tensor_content_size() const;
168 private:
169 int _internal_tensor_content_size() const;
170 public:
171 void clear_tensor_content();
172 const std::string& tensor_content(int index) const;
173 std::string* mutable_tensor_content(int index);
174 void set_tensor_content(int index, const std::string& value);
175 void set_tensor_content(int index, std::string&& value);
176 void set_tensor_content(int index, const char* value);
177 void set_tensor_content(int index, const void* value, size_t size);
178 std::string* add_tensor_content();
179 void add_tensor_content(const std::string& value);
180 void add_tensor_content(std::string&& value);
181 void add_tensor_content(const char* value);
182 void add_tensor_content(const void* value, size_t size);
183 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& tensor_content() const;
184 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_tensor_content();
185 private:
186 const std::string& _internal_tensor_content(int index) const;
187 std::string* _internal_add_tensor_content();
188 public:
189
190 // @@protoc_insertion_point(class_scope:tensorflow.RecvBufRespExtra)
191 private:
192 class _Internal;
193
194 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
195 typedef void InternalArenaConstructable_;
196 typedef void DestructorSkippable_;
197 struct Impl_ {
198 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> tensor_content_;
199 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
200 };
201 union { Impl_ _impl_; };
202 friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto;
203 };
204 // ===================================================================
205
206
207 // ===================================================================
208
209 #ifdef __GNUC__
210 #pragma GCC diagnostic push
211 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
212 #endif // __GNUC__
213 // RecvBufRespExtra
214
215 // repeated bytes tensor_content = 1;
_internal_tensor_content_size()216 inline int RecvBufRespExtra::_internal_tensor_content_size() const {
217 return _impl_.tensor_content_.size();
218 }
tensor_content_size()219 inline int RecvBufRespExtra::tensor_content_size() const {
220 return _internal_tensor_content_size();
221 }
clear_tensor_content()222 inline void RecvBufRespExtra::clear_tensor_content() {
223 _impl_.tensor_content_.Clear();
224 }
add_tensor_content()225 inline std::string* RecvBufRespExtra::add_tensor_content() {
226 std::string* _s = _internal_add_tensor_content();
227 // @@protoc_insertion_point(field_add_mutable:tensorflow.RecvBufRespExtra.tensor_content)
228 return _s;
229 }
_internal_tensor_content(int index)230 inline const std::string& RecvBufRespExtra::_internal_tensor_content(int index) const {
231 return _impl_.tensor_content_.Get(index);
232 }
tensor_content(int index)233 inline const std::string& RecvBufRespExtra::tensor_content(int index) const {
234 // @@protoc_insertion_point(field_get:tensorflow.RecvBufRespExtra.tensor_content)
235 return _internal_tensor_content(index);
236 }
mutable_tensor_content(int index)237 inline std::string* RecvBufRespExtra::mutable_tensor_content(int index) {
238 // @@protoc_insertion_point(field_mutable:tensorflow.RecvBufRespExtra.tensor_content)
239 return _impl_.tensor_content_.Mutable(index);
240 }
set_tensor_content(int index,const std::string & value)241 inline void RecvBufRespExtra::set_tensor_content(int index, const std::string& value) {
242 _impl_.tensor_content_.Mutable(index)->assign(value);
243 // @@protoc_insertion_point(field_set:tensorflow.RecvBufRespExtra.tensor_content)
244 }
set_tensor_content(int index,std::string && value)245 inline void RecvBufRespExtra::set_tensor_content(int index, std::string&& value) {
246 _impl_.tensor_content_.Mutable(index)->assign(std::move(value));
247 // @@protoc_insertion_point(field_set:tensorflow.RecvBufRespExtra.tensor_content)
248 }
set_tensor_content(int index,const char * value)249 inline void RecvBufRespExtra::set_tensor_content(int index, const char* value) {
250 GOOGLE_DCHECK(value != nullptr);
251 _impl_.tensor_content_.Mutable(index)->assign(value);
252 // @@protoc_insertion_point(field_set_char:tensorflow.RecvBufRespExtra.tensor_content)
253 }
set_tensor_content(int index,const void * value,size_t size)254 inline void RecvBufRespExtra::set_tensor_content(int index, const void* value, size_t size) {
255 _impl_.tensor_content_.Mutable(index)->assign(
256 reinterpret_cast<const char*>(value), size);
257 // @@protoc_insertion_point(field_set_pointer:tensorflow.RecvBufRespExtra.tensor_content)
258 }
_internal_add_tensor_content()259 inline std::string* RecvBufRespExtra::_internal_add_tensor_content() {
260 return _impl_.tensor_content_.Add();
261 }
add_tensor_content(const std::string & value)262 inline void RecvBufRespExtra::add_tensor_content(const std::string& value) {
263 _impl_.tensor_content_.Add()->assign(value);
264 // @@protoc_insertion_point(field_add:tensorflow.RecvBufRespExtra.tensor_content)
265 }
add_tensor_content(std::string && value)266 inline void RecvBufRespExtra::add_tensor_content(std::string&& value) {
267 _impl_.tensor_content_.Add(std::move(value));
268 // @@protoc_insertion_point(field_add:tensorflow.RecvBufRespExtra.tensor_content)
269 }
add_tensor_content(const char * value)270 inline void RecvBufRespExtra::add_tensor_content(const char* value) {
271 GOOGLE_DCHECK(value != nullptr);
272 _impl_.tensor_content_.Add()->assign(value);
273 // @@protoc_insertion_point(field_add_char:tensorflow.RecvBufRespExtra.tensor_content)
274 }
add_tensor_content(const void * value,size_t size)275 inline void RecvBufRespExtra::add_tensor_content(const void* value, size_t size) {
276 _impl_.tensor_content_.Add()->assign(reinterpret_cast<const char*>(value), size);
277 // @@protoc_insertion_point(field_add_pointer:tensorflow.RecvBufRespExtra.tensor_content)
278 }
279 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
tensor_content()280 RecvBufRespExtra::tensor_content() const {
281 // @@protoc_insertion_point(field_list:tensorflow.RecvBufRespExtra.tensor_content)
282 return _impl_.tensor_content_;
283 }
284 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
mutable_tensor_content()285 RecvBufRespExtra::mutable_tensor_content() {
286 // @@protoc_insertion_point(field_mutable_list:tensorflow.RecvBufRespExtra.tensor_content)
287 return &_impl_.tensor_content_;
288 }
289
290 #ifdef __GNUC__
291 #pragma GCC diagnostic pop
292 #endif // __GNUC__
293
294 // @@protoc_insertion_point(namespace_scope)
295
296 } // namespace tensorflow
297
298 // @@protoc_insertion_point(global_scope)
299
300 #include <google/protobuf/port_undef.inc>
301 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto
302