1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/protobuf/transport_options.proto |
3 | |
4 | #include "tensorflow/core/protobuf/transport_options.pb.h" |
5 | |
6 | #include <algorithm> |
7 | |
8 | #include <google/protobuf/stubs/common.h> |
9 | #include <google/protobuf/io/coded_stream.h> |
10 | #include <google/protobuf/extension_set.h> |
11 | #include <google/protobuf/wire_format_lite.h> |
12 | #include <google/protobuf/descriptor.h> |
13 | #include <google/protobuf/generated_message_reflection.h> |
14 | #include <google/protobuf/reflection_ops.h> |
15 | #include <google/protobuf/wire_format.h> |
16 | // @@protoc_insertion_point(includes) |
17 | #include <google/protobuf/port_def.inc> |
18 | namespace tensorflow { |
19 | class { |
20 | public: |
21 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<RecvBufRespExtra> ; |
22 | } ; |
23 | } // namespace tensorflow |
24 | static void () { |
25 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
26 | |
27 | { |
28 | void* ptr = &::tensorflow::_RecvBufRespExtra_default_instance_; |
29 | new (ptr) ::tensorflow::RecvBufRespExtra(); |
30 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
31 | } |
32 | ::tensorflow::RecvBufRespExtra::InitAsDefaultInstance(); |
33 | } |
34 | |
35 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> = |
36 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_RecvBufRespExtra_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto}, {}}; |
37 | |
38 | static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto[1]; |
39 | static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto = nullptr; |
40 | static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto = nullptr; |
41 | |
42 | const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
43 | ~0u, // no _has_bits_ |
44 | PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufRespExtra, _internal_metadata_), |
45 | ~0u, // no _extensions_ |
46 | ~0u, // no _oneof_case_ |
47 | ~0u, // no _weak_field_map_ |
48 | PROTOBUF_FIELD_OFFSET(::tensorflow::RecvBufRespExtra, tensor_content_), |
49 | }; |
50 | static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
51 | { 0, -1, sizeof(::tensorflow::RecvBufRespExtra)}, |
52 | }; |
53 | |
54 | static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { |
55 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_RecvBufRespExtra_default_instance_), |
56 | }; |
57 | |
58 | const char descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
59 | "\n0tensorflow/core/protobuf/transport_opt" |
60 | "ions.proto\022\ntensorflow\"*\n\020RecvBufRespExt" |
61 | "ra\022\026\n\016tensor_content\030\001 \003(\014BWZUgithub.com" |
62 | "/tensorflow/tensorflow/tensorflow/go/cor" |
63 | "e/protobuf/for_core_protos_go_protob\006pro" |
64 | "to3" |
65 | ; |
66 | static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto_deps[1] = { |
67 | }; |
68 | static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto_sccs[1] = { |
69 | &scc_info_RecvBufRespExtra_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto.base, |
70 | }; |
71 | static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto_once; |
72 | static bool descriptor_table_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto_initialized = false; |
73 | const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto = { |
74 | &descriptor_table_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto, "tensorflow/core/protobuf/transport_options.proto" , 203, |
75 | &descriptor_table_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto_once, descriptor_table_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto_deps, 1, 0, |
76 | schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto::offsets, |
77 | file_level_metadata_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto, 1, file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto, |
78 | }; |
79 | |
80 | // Force running AddDescriptors() at dynamic initialization time. |
81 | static bool dynamic_init_dummy_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto), true); |
82 | namespace tensorflow { |
83 | |
84 | // =================================================================== |
85 | |
86 | void RecvBufRespExtra::() { |
87 | } |
88 | class RecvBufRespExtra:: { |
89 | public: |
90 | }; |
91 | |
92 | RecvBufRespExtra::() |
93 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
94 | SharedCtor(); |
95 | // @@protoc_insertion_point(constructor:tensorflow.RecvBufRespExtra) |
96 | } |
97 | RecvBufRespExtra::(const RecvBufRespExtra& from) |
98 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
99 | _internal_metadata_(nullptr), |
100 | tensor_content_(from.tensor_content_) { |
101 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
102 | // @@protoc_insertion_point(copy_constructor:tensorflow.RecvBufRespExtra) |
103 | } |
104 | |
105 | void RecvBufRespExtra::() { |
106 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RecvBufRespExtra_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto.base); |
107 | } |
108 | |
109 | RecvBufRespExtra::() { |
110 | // @@protoc_insertion_point(destructor:tensorflow.RecvBufRespExtra) |
111 | SharedDtor(); |
112 | } |
113 | |
114 | void RecvBufRespExtra::() { |
115 | } |
116 | |
117 | void RecvBufRespExtra::(int size) const { |
118 | _cached_size_.Set(size); |
119 | } |
120 | const RecvBufRespExtra& RecvBufRespExtra::() { |
121 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RecvBufRespExtra_tensorflow_2fcore_2fprotobuf_2ftransport_5foptions_2eproto.base); |
122 | return *internal_default_instance(); |
123 | } |
124 | |
125 | |
126 | void RecvBufRespExtra::() { |
127 | // @@protoc_insertion_point(message_clear_start:tensorflow.RecvBufRespExtra) |
128 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
129 | // Prevent compiler warnings about cached_has_bits being unused |
130 | (void) cached_has_bits; |
131 | |
132 | tensor_content_.Clear(); |
133 | _internal_metadata_.Clear(); |
134 | } |
135 | |
136 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
137 | const char* RecvBufRespExtra::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
138 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
139 | while (!ctx->Done(&ptr)) { |
140 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
141 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
142 | CHK_(ptr); |
143 | switch (tag >> 3) { |
144 | // repeated bytes tensor_content = 1; |
145 | case 1: |
146 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
147 | ptr -= 1; |
148 | do { |
149 | ptr += 1; |
150 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(add_tensor_content(), ptr, ctx); |
151 | CHK_(ptr); |
152 | if (!ctx->DataAvailable(ptr)) break; |
153 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); |
154 | } else goto handle_unusual; |
155 | continue; |
156 | default: { |
157 | handle_unusual: |
158 | if ((tag & 7) == 4 || tag == 0) { |
159 | ctx->SetLastTag(tag); |
160 | goto success; |
161 | } |
162 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
163 | CHK_(ptr != nullptr); |
164 | continue; |
165 | } |
166 | } // switch |
167 | } // while |
168 | success: |
169 | return ptr; |
170 | failure: |
171 | ptr = nullptr; |
172 | goto success; |
173 | #undef CHK_ |
174 | } |
175 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
176 | bool RecvBufRespExtra::( |
177 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
178 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
179 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
180 | // @@protoc_insertion_point(parse_start:tensorflow.RecvBufRespExtra) |
181 | for (;;) { |
182 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
183 | tag = p.first; |
184 | if (!p.second) goto handle_unusual; |
185 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
186 | // repeated bytes tensor_content = 1; |
187 | case 1: { |
188 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
189 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes( |
190 | input, this->add_tensor_content())); |
191 | } else { |
192 | goto handle_unusual; |
193 | } |
194 | break; |
195 | } |
196 | |
197 | default: { |
198 | handle_unusual: |
199 | if (tag == 0) { |
200 | goto success; |
201 | } |
202 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
203 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
204 | break; |
205 | } |
206 | } |
207 | } |
208 | success: |
209 | // @@protoc_insertion_point(parse_success:tensorflow.RecvBufRespExtra) |
210 | return true; |
211 | failure: |
212 | // @@protoc_insertion_point(parse_failure:tensorflow.RecvBufRespExtra) |
213 | return false; |
214 | #undef DO_ |
215 | } |
216 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
217 | |
218 | void RecvBufRespExtra::( |
219 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
220 | // @@protoc_insertion_point(serialize_start:tensorflow.RecvBufRespExtra) |
221 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
222 | (void) cached_has_bits; |
223 | |
224 | // repeated bytes tensor_content = 1; |
225 | for (int i = 0, n = this->tensor_content_size(); i < n; i++) { |
226 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytes( |
227 | 1, this->tensor_content(i), output); |
228 | } |
229 | |
230 | if (_internal_metadata_.have_unknown_fields()) { |
231 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
232 | _internal_metadata_.unknown_fields(), output); |
233 | } |
234 | // @@protoc_insertion_point(serialize_end:tensorflow.RecvBufRespExtra) |
235 | } |
236 | |
237 | ::PROTOBUF_NAMESPACE_ID::uint8* RecvBufRespExtra::( |
238 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
239 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.RecvBufRespExtra) |
240 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
241 | (void) cached_has_bits; |
242 | |
243 | // repeated bytes tensor_content = 1; |
244 | for (int i = 0, n = this->tensor_content_size(); i < n; i++) { |
245 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
246 | WriteBytesToArray(1, this->tensor_content(i), target); |
247 | } |
248 | |
249 | if (_internal_metadata_.have_unknown_fields()) { |
250 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
251 | _internal_metadata_.unknown_fields(), target); |
252 | } |
253 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.RecvBufRespExtra) |
254 | return target; |
255 | } |
256 | |
257 | size_t RecvBufRespExtra::() const { |
258 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.RecvBufRespExtra) |
259 | size_t total_size = 0; |
260 | |
261 | if (_internal_metadata_.have_unknown_fields()) { |
262 | total_size += |
263 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
264 | _internal_metadata_.unknown_fields()); |
265 | } |
266 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
267 | // Prevent compiler warnings about cached_has_bits being unused |
268 | (void) cached_has_bits; |
269 | |
270 | // repeated bytes tensor_content = 1; |
271 | total_size += 1 * |
272 | ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->tensor_content_size()); |
273 | for (int i = 0, n = this->tensor_content_size(); i < n; i++) { |
274 | total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( |
275 | this->tensor_content(i)); |
276 | } |
277 | |
278 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
279 | SetCachedSize(cached_size); |
280 | return total_size; |
281 | } |
282 | |
283 | void RecvBufRespExtra::(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
284 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.RecvBufRespExtra) |
285 | GOOGLE_DCHECK_NE(&from, this); |
286 | const RecvBufRespExtra* source = |
287 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RecvBufRespExtra>( |
288 | &from); |
289 | if (source == nullptr) { |
290 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.RecvBufRespExtra) |
291 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
292 | } else { |
293 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.RecvBufRespExtra) |
294 | MergeFrom(*source); |
295 | } |
296 | } |
297 | |
298 | void RecvBufRespExtra::(const RecvBufRespExtra& from) { |
299 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.RecvBufRespExtra) |
300 | GOOGLE_DCHECK_NE(&from, this); |
301 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
302 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
303 | (void) cached_has_bits; |
304 | |
305 | tensor_content_.MergeFrom(from.tensor_content_); |
306 | } |
307 | |
308 | void RecvBufRespExtra::(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
309 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.RecvBufRespExtra) |
310 | if (&from == this) return; |
311 | Clear(); |
312 | MergeFrom(from); |
313 | } |
314 | |
315 | void RecvBufRespExtra::(const RecvBufRespExtra& from) { |
316 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.RecvBufRespExtra) |
317 | if (&from == this) return; |
318 | Clear(); |
319 | MergeFrom(from); |
320 | } |
321 | |
322 | bool RecvBufRespExtra::() const { |
323 | return true; |
324 | } |
325 | |
326 | void RecvBufRespExtra::(RecvBufRespExtra* other) { |
327 | using std::swap; |
328 | _internal_metadata_.Swap(&other->_internal_metadata_); |
329 | tensor_content_.InternalSwap(CastToBase(&other->tensor_content_)); |
330 | } |
331 | |
332 | ::PROTOBUF_NAMESPACE_ID::Metadata RecvBufRespExtra::() const { |
333 | return GetMetadataStatic(); |
334 | } |
335 | |
336 | |
337 | // @@protoc_insertion_point(namespace_scope) |
338 | } // namespace tensorflow |
339 | PROTOBUF_NAMESPACE_OPEN |
340 | template<> PROTOBUF_NOINLINE ::tensorflow::RecvBufRespExtra* Arena::CreateMaybeMessage< ::tensorflow::RecvBufRespExtra >(Arena* arena) { |
341 | return Arena::CreateInternal< ::tensorflow::RecvBufRespExtra >(arena); |
342 | } |
343 | PROTOBUF_NAMESPACE_CLOSE |
344 | |
345 | // @@protoc_insertion_point(global_scope) |
346 | #include <google/protobuf/port_undef.inc> |
347 | |