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 #include <cstdint>
8 
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/io/zero_copy_stream_impl_lite.h>
13 // @@protoc_insertion_point(includes)
14 #include <google/protobuf/port_def.inc>
15 
16 PROTOBUF_PRAGMA_INIT_SEG
17 
18 namespace _pb = ::PROTOBUF_NAMESPACE_ID;
19 namespace _pbi = _pb::internal;
20 
21 namespace tensorflow {
RecvBufRespExtra(::_pbi::ConstantInitialized)22 PROTOBUF_CONSTEXPR RecvBufRespExtra::RecvBufRespExtra(
23     ::_pbi::ConstantInitialized): _impl_{
24     /*decltype(_impl_.tensor_content_)*/{}
25   , /*decltype(_impl_._cached_size_)*/{}} {}
26 struct RecvBufRespExtraDefaultTypeInternal {
RecvBufRespExtraDefaultTypeInternaltensorflow::RecvBufRespExtraDefaultTypeInternal27   PROTOBUF_CONSTEXPR RecvBufRespExtraDefaultTypeInternal()
28       : _instance(::_pbi::ConstantInitialized{}) {}
~RecvBufRespExtraDefaultTypeInternaltensorflow::RecvBufRespExtraDefaultTypeInternal29   ~RecvBufRespExtraDefaultTypeInternal() {}
30   union {  // NOLINT(misc-non-private-member-variables-in-classes)
31     RecvBufRespExtra _instance;
32   };
33 };
34 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RecvBufRespExtraDefaultTypeInternal _RecvBufRespExtra_default_instance_;
35 }  // namespace tensorflow
36 namespace tensorflow {
37 
38 // ===================================================================
39 
40 class RecvBufRespExtra::_Internal {
41  public:
42 };
43 
RecvBufRespExtra(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)44 RecvBufRespExtra::RecvBufRespExtra(::PROTOBUF_NAMESPACE_ID::Arena* arena,
45                          bool is_message_owned)
46   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
47   SharedCtor(arena, is_message_owned);
48   // @@protoc_insertion_point(arena_constructor:tensorflow.RecvBufRespExtra)
49 }
RecvBufRespExtra(const RecvBufRespExtra & from)50 RecvBufRespExtra::RecvBufRespExtra(const RecvBufRespExtra& from)
51   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
52   RecvBufRespExtra* const _this = this; (void)_this;
53   new (&_impl_) Impl_{
54       decltype(_impl_.tensor_content_){from._impl_.tensor_content_}
55     , /*decltype(_impl_._cached_size_)*/{}};
56 
57   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
58   // @@protoc_insertion_point(copy_constructor:tensorflow.RecvBufRespExtra)
59 }
60 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)61 inline void RecvBufRespExtra::SharedCtor(
62     ::_pb::Arena* arena, bool is_message_owned) {
63   (void)arena;
64   (void)is_message_owned;
65   new (&_impl_) Impl_{
66       decltype(_impl_.tensor_content_){arena}
67     , /*decltype(_impl_._cached_size_)*/{}
68   };
69 }
70 
~RecvBufRespExtra()71 RecvBufRespExtra::~RecvBufRespExtra() {
72   // @@protoc_insertion_point(destructor:tensorflow.RecvBufRespExtra)
73   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
74   (void)arena;
75     return;
76   }
77   SharedDtor();
78 }
79 
SharedDtor()80 inline void RecvBufRespExtra::SharedDtor() {
81   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
82   _impl_.tensor_content_.~RepeatedPtrField();
83 }
84 
SetCachedSize(int size) const85 void RecvBufRespExtra::SetCachedSize(int size) const {
86   _impl_._cached_size_.Set(size);
87 }
88 
Clear()89 void RecvBufRespExtra::Clear() {
90 // @@protoc_insertion_point(message_clear_start:tensorflow.RecvBufRespExtra)
91   ::uint32_t cached_has_bits = 0;
92   // Prevent compiler warnings about cached_has_bits being unused
93   (void) cached_has_bits;
94 
95   _impl_.tensor_content_.Clear();
96   _internal_metadata_.Clear<std::string>();
97 }
98 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)99 const char* RecvBufRespExtra::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
100 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
101   while (!ctx->Done(&ptr)) {
102     ::uint32_t tag;
103     ptr = ::_pbi::ReadTag(ptr, &tag);
104     switch (tag >> 3) {
105       // repeated bytes tensor_content = 1;
106       case 1:
107         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
108           ptr -= 1;
109           do {
110             ptr += 1;
111             auto str = _internal_add_tensor_content();
112             ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
113             CHK_(ptr);
114             if (!ctx->DataAvailable(ptr)) break;
115           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
116         } else {
117           goto handle_unusual;
118         }
119         continue;
120       default:
121         goto handle_unusual;
122     }  // switch
123   handle_unusual:
124     if ((tag == 0) || ((tag & 7) == 4)) {
125       CHK_(ptr);
126       ctx->SetLastTag(tag);
127       goto message_done;
128     }
129     ptr = UnknownFieldParse(
130         tag,
131         _internal_metadata_.mutable_unknown_fields<std::string>(),
132         ptr, ctx);
133     CHK_(ptr != nullptr);
134   }  // while
135 message_done:
136   return ptr;
137 failure:
138   ptr = nullptr;
139   goto message_done;
140 #undef CHK_
141 }
142 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const143 ::uint8_t* RecvBufRespExtra::_InternalSerialize(
144     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
145   // @@protoc_insertion_point(serialize_to_array_start:tensorflow.RecvBufRespExtra)
146   ::uint32_t cached_has_bits = 0;
147   (void) cached_has_bits;
148 
149   // repeated bytes tensor_content = 1;
150   for (int i = 0, n = this->_internal_tensor_content_size(); i < n; i++) {
151     const auto& s = this->_internal_tensor_content(i);
152     target = stream->WriteBytes(1, s, target);
153   }
154 
155   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
156     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
157         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
158   }
159   // @@protoc_insertion_point(serialize_to_array_end:tensorflow.RecvBufRespExtra)
160   return target;
161 }
162 
ByteSizeLong() const163 size_t RecvBufRespExtra::ByteSizeLong() const {
164 // @@protoc_insertion_point(message_byte_size_start:tensorflow.RecvBufRespExtra)
165   size_t total_size = 0;
166 
167   ::uint32_t cached_has_bits = 0;
168   // Prevent compiler warnings about cached_has_bits being unused
169   (void) cached_has_bits;
170 
171   // repeated bytes tensor_content = 1;
172   total_size += 1 *
173       ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.tensor_content_.size());
174   for (int i = 0, n = _impl_.tensor_content_.size(); i < n; i++) {
175     total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
176       _impl_.tensor_content_.Get(i));
177   }
178 
179   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
180     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
181   }
182   int cached_size = ::_pbi::ToCachedSize(total_size);
183   SetCachedSize(cached_size);
184   return total_size;
185 }
186 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)187 void RecvBufRespExtra::CheckTypeAndMergeFrom(
188     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
189   MergeFrom(*::_pbi::DownCast<const RecvBufRespExtra*>(
190       &from));
191 }
192 
MergeFrom(const RecvBufRespExtra & from)193 void RecvBufRespExtra::MergeFrom(const RecvBufRespExtra& from) {
194   RecvBufRespExtra* const _this = this;
195   // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.RecvBufRespExtra)
196   GOOGLE_DCHECK_NE(&from, _this);
197   ::uint32_t cached_has_bits = 0;
198   (void) cached_has_bits;
199 
200   _this->_impl_.tensor_content_.MergeFrom(from._impl_.tensor_content_);
201   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
202 }
203 
CopyFrom(const RecvBufRespExtra & from)204 void RecvBufRespExtra::CopyFrom(const RecvBufRespExtra& from) {
205 // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.RecvBufRespExtra)
206   if (&from == this) return;
207   Clear();
208   MergeFrom(from);
209 }
210 
IsInitialized() const211 bool RecvBufRespExtra::IsInitialized() const {
212   return true;
213 }
214 
InternalSwap(RecvBufRespExtra * other)215 void RecvBufRespExtra::InternalSwap(RecvBufRespExtra* other) {
216   using std::swap;
217   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
218   _impl_.tensor_content_.InternalSwap(&other->_impl_.tensor_content_);
219 }
220 
GetTypeName() const221 std::string RecvBufRespExtra::GetTypeName() const {
222   return "tensorflow.RecvBufRespExtra";
223 }
224 
225 
226 // @@protoc_insertion_point(namespace_scope)
227 }  // namespace tensorflow
228 PROTOBUF_NAMESPACE_OPEN
229 template<> PROTOBUF_NOINLINE ::tensorflow::RecvBufRespExtra*
CreateMaybeMessage(Arena * arena)230 Arena::CreateMaybeMessage< ::tensorflow::RecvBufRespExtra >(Arena* arena) {
231   return Arena::CreateMessageInternal< ::tensorflow::RecvBufRespExtra >(arena);
232 }
233 PROTOBUF_NAMESPACE_CLOSE
234 
235 // @@protoc_insertion_point(global_scope)
236 #include <google/protobuf/port_undef.inc>
237