1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: send_algorithm_test_result.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_send_5falgorithm_5ftest_5fresult_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_send_5falgorithm_5ftest_5fresult_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3021000
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 3021012 < 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_util.h>
27 #include <google/protobuf/metadata_lite.h>
28 #include <google/protobuf/message_lite.h>
29 #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
30 #include <google/protobuf/extension_set.h>  // IWYU pragma: export
31 // @@protoc_insertion_point(includes)
32 #include <google/protobuf/port_def.inc>
33 #define PROTOBUF_INTERNAL_EXPORT_send_5falgorithm_5ftest_5fresult_2eproto
34 PROTOBUF_NAMESPACE_OPEN
35 namespace internal {
36 class AnyMetadata;
37 }  // namespace internal
38 PROTOBUF_NAMESPACE_CLOSE
39 
40 // Internal implementation detail -- do not use these members.
41 struct TableStruct_send_5falgorithm_5ftest_5fresult_2eproto {
42   static const uint32_t offsets[];
43 };
44 namespace quic {
45 class SendAlgorithmTestResult;
46 struct SendAlgorithmTestResultDefaultTypeInternal;
47 extern SendAlgorithmTestResultDefaultTypeInternal _SendAlgorithmTestResult_default_instance_;
48 }  // namespace quic
49 PROTOBUF_NAMESPACE_OPEN
50 template<> ::quic::SendAlgorithmTestResult* Arena::CreateMaybeMessage<::quic::SendAlgorithmTestResult>(Arena*);
51 PROTOBUF_NAMESPACE_CLOSE
52 namespace quic {
53 
54 // ===================================================================
55 
56 class SendAlgorithmTestResult final :
57     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:quic.SendAlgorithmTestResult) */ {
58  public:
SendAlgorithmTestResult()59   inline SendAlgorithmTestResult() : SendAlgorithmTestResult(nullptr) {}
60   ~SendAlgorithmTestResult() override;
61   explicit PROTOBUF_CONSTEXPR SendAlgorithmTestResult(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
62 
63   SendAlgorithmTestResult(const SendAlgorithmTestResult& from);
SendAlgorithmTestResult(SendAlgorithmTestResult && from)64   SendAlgorithmTestResult(SendAlgorithmTestResult&& from) noexcept
65     : SendAlgorithmTestResult() {
66     *this = ::std::move(from);
67   }
68 
69   inline SendAlgorithmTestResult& operator=(const SendAlgorithmTestResult& from) {
70     CopyFrom(from);
71     return *this;
72   }
73   inline SendAlgorithmTestResult& operator=(SendAlgorithmTestResult&& from) noexcept {
74     if (this == &from) return *this;
75     if (GetOwningArena() == from.GetOwningArena()
76   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
77         && GetOwningArena() != nullptr
78   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
79     ) {
80       InternalSwap(&from);
81     } else {
82       CopyFrom(from);
83     }
84     return *this;
85   }
86 
unknown_fields()87   inline const std::string& unknown_fields() const {
88     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
89   }
mutable_unknown_fields()90   inline std::string* mutable_unknown_fields() {
91     return _internal_metadata_.mutable_unknown_fields<std::string>();
92   }
93 
default_instance()94   static const SendAlgorithmTestResult& default_instance() {
95     return *internal_default_instance();
96   }
internal_default_instance()97   static inline const SendAlgorithmTestResult* internal_default_instance() {
98     return reinterpret_cast<const SendAlgorithmTestResult*>(
99                &_SendAlgorithmTestResult_default_instance_);
100   }
101   static constexpr int kIndexInFileMessages =
102     0;
103 
swap(SendAlgorithmTestResult & a,SendAlgorithmTestResult & b)104   friend void swap(SendAlgorithmTestResult& a, SendAlgorithmTestResult& b) {
105     a.Swap(&b);
106   }
Swap(SendAlgorithmTestResult * other)107   PROTOBUF_NOINLINE void Swap(SendAlgorithmTestResult* other) {
108     if (other == this) return;
109   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
110     if (GetOwningArena() != nullptr &&
111         GetOwningArena() == other->GetOwningArena()) {
112    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
113     if (GetOwningArena() == other->GetOwningArena()) {
114   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
115       InternalSwap(other);
116     } else {
117       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
118     }
119   }
120   void UnsafeArenaSwap(SendAlgorithmTestResult* other) {
121     if (other == this) return;
122     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
123     InternalSwap(other);
124   }
125 
126   // implements Message ----------------------------------------------
127 
128   SendAlgorithmTestResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
129     return CreateMaybeMessage<SendAlgorithmTestResult>(arena);
130   }
131   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
132   void CopyFrom(const SendAlgorithmTestResult& from);
133   void MergeFrom(const SendAlgorithmTestResult& from);
134   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
135   bool IsInitialized() const final;
136 
137   size_t ByteSizeLong() const final;
138   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
139   uint8_t* _InternalSerialize(
140       uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
141   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
142 
143   private:
144   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
145   void SharedDtor();
146   void SetCachedSize(int size) const;
147   void InternalSwap(SendAlgorithmTestResult* other);
148 
149   private:
150   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
151   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
152     return "quic.SendAlgorithmTestResult";
153   }
154   protected:
155   explicit SendAlgorithmTestResult(::PROTOBUF_NAMESPACE_ID::Arena* arena,
156                        bool is_message_owned = false);
157   public:
158 
159   std::string GetTypeName() const final;
160 
161   // nested types ----------------------------------------------------
162 
163   // accessors -------------------------------------------------------
164 
165   enum : int {
166     kTestNameFieldNumber = 1,
167     kRandomSeedFieldNumber = 2,
168     kSimulatedDurationMicrosFieldNumber = 3,
169   };
170   // optional string test_name = 1;
171   bool has_test_name() const;
172   private:
173   bool _internal_has_test_name() const;
174   public:
175   void clear_test_name();
176   const std::string& test_name() const;
177   template <typename ArgT0 = const std::string&, typename... ArgT>
178   void set_test_name(ArgT0&& arg0, ArgT... args);
179   std::string* mutable_test_name();
180   PROTOBUF_NODISCARD std::string* release_test_name();
181   void set_allocated_test_name(std::string* test_name);
182   private:
183   const std::string& _internal_test_name() const;
184   inline PROTOBUF_ALWAYS_INLINE void _internal_set_test_name(const std::string& value);
185   std::string* _internal_mutable_test_name();
186   public:
187 
188   // optional uint64 random_seed = 2;
189   bool has_random_seed() const;
190   private:
191   bool _internal_has_random_seed() const;
192   public:
193   void clear_random_seed();
194   uint64_t random_seed() const;
195   void set_random_seed(uint64_t value);
196   private:
197   uint64_t _internal_random_seed() const;
198   void _internal_set_random_seed(uint64_t value);
199   public:
200 
201   // optional int64 simulated_duration_micros = 3;
202   bool has_simulated_duration_micros() const;
203   private:
204   bool _internal_has_simulated_duration_micros() const;
205   public:
206   void clear_simulated_duration_micros();
207   int64_t simulated_duration_micros() const;
208   void set_simulated_duration_micros(int64_t value);
209   private:
210   int64_t _internal_simulated_duration_micros() const;
211   void _internal_set_simulated_duration_micros(int64_t value);
212   public:
213 
214   // @@protoc_insertion_point(class_scope:quic.SendAlgorithmTestResult)
215  private:
216   class _Internal;
217 
218   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
219   typedef void InternalArenaConstructable_;
220   typedef void DestructorSkippable_;
221   struct Impl_ {
222     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
223     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
224     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr test_name_;
225     uint64_t random_seed_;
226     int64_t simulated_duration_micros_;
227   };
228   union { Impl_ _impl_; };
229   friend struct ::TableStruct_send_5falgorithm_5ftest_5fresult_2eproto;
230 };
231 // ===================================================================
232 
233 
234 // ===================================================================
235 
236 #ifdef __GNUC__
237   #pragma GCC diagnostic push
238   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
239 #endif  // __GNUC__
240 // SendAlgorithmTestResult
241 
242 // optional string test_name = 1;
_internal_has_test_name()243 inline bool SendAlgorithmTestResult::_internal_has_test_name() const {
244   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
245   return value;
246 }
has_test_name()247 inline bool SendAlgorithmTestResult::has_test_name() const {
248   return _internal_has_test_name();
249 }
clear_test_name()250 inline void SendAlgorithmTestResult::clear_test_name() {
251   _impl_.test_name_.ClearToEmpty();
252   _impl_._has_bits_[0] &= ~0x00000001u;
253 }
test_name()254 inline const std::string& SendAlgorithmTestResult::test_name() const {
255   // @@protoc_insertion_point(field_get:quic.SendAlgorithmTestResult.test_name)
256   return _internal_test_name();
257 }
258 template <typename ArgT0, typename... ArgT>
259 inline PROTOBUF_ALWAYS_INLINE
set_test_name(ArgT0 && arg0,ArgT...args)260 void SendAlgorithmTestResult::set_test_name(ArgT0&& arg0, ArgT... args) {
261  _impl_._has_bits_[0] |= 0x00000001u;
262  _impl_.test_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
263   // @@protoc_insertion_point(field_set:quic.SendAlgorithmTestResult.test_name)
264 }
mutable_test_name()265 inline std::string* SendAlgorithmTestResult::mutable_test_name() {
266   std::string* _s = _internal_mutable_test_name();
267   // @@protoc_insertion_point(field_mutable:quic.SendAlgorithmTestResult.test_name)
268   return _s;
269 }
_internal_test_name()270 inline const std::string& SendAlgorithmTestResult::_internal_test_name() const {
271   return _impl_.test_name_.Get();
272 }
_internal_set_test_name(const std::string & value)273 inline void SendAlgorithmTestResult::_internal_set_test_name(const std::string& value) {
274   _impl_._has_bits_[0] |= 0x00000001u;
275   _impl_.test_name_.Set(value, GetArenaForAllocation());
276 }
_internal_mutable_test_name()277 inline std::string* SendAlgorithmTestResult::_internal_mutable_test_name() {
278   _impl_._has_bits_[0] |= 0x00000001u;
279   return _impl_.test_name_.Mutable(GetArenaForAllocation());
280 }
release_test_name()281 inline std::string* SendAlgorithmTestResult::release_test_name() {
282   // @@protoc_insertion_point(field_release:quic.SendAlgorithmTestResult.test_name)
283   if (!_internal_has_test_name()) {
284     return nullptr;
285   }
286   _impl_._has_bits_[0] &= ~0x00000001u;
287   auto* p = _impl_.test_name_.Release();
288 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
289   if (_impl_.test_name_.IsDefault()) {
290     _impl_.test_name_.Set("", GetArenaForAllocation());
291   }
292 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
293   return p;
294 }
set_allocated_test_name(std::string * test_name)295 inline void SendAlgorithmTestResult::set_allocated_test_name(std::string* test_name) {
296   if (test_name != nullptr) {
297     _impl_._has_bits_[0] |= 0x00000001u;
298   } else {
299     _impl_._has_bits_[0] &= ~0x00000001u;
300   }
301   _impl_.test_name_.SetAllocated(test_name, GetArenaForAllocation());
302 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
303   if (_impl_.test_name_.IsDefault()) {
304     _impl_.test_name_.Set("", GetArenaForAllocation());
305   }
306 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
307   // @@protoc_insertion_point(field_set_allocated:quic.SendAlgorithmTestResult.test_name)
308 }
309 
310 // optional uint64 random_seed = 2;
_internal_has_random_seed()311 inline bool SendAlgorithmTestResult::_internal_has_random_seed() const {
312   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
313   return value;
314 }
has_random_seed()315 inline bool SendAlgorithmTestResult::has_random_seed() const {
316   return _internal_has_random_seed();
317 }
clear_random_seed()318 inline void SendAlgorithmTestResult::clear_random_seed() {
319   _impl_.random_seed_ = uint64_t{0u};
320   _impl_._has_bits_[0] &= ~0x00000002u;
321 }
_internal_random_seed()322 inline uint64_t SendAlgorithmTestResult::_internal_random_seed() const {
323   return _impl_.random_seed_;
324 }
random_seed()325 inline uint64_t SendAlgorithmTestResult::random_seed() const {
326   // @@protoc_insertion_point(field_get:quic.SendAlgorithmTestResult.random_seed)
327   return _internal_random_seed();
328 }
_internal_set_random_seed(uint64_t value)329 inline void SendAlgorithmTestResult::_internal_set_random_seed(uint64_t value) {
330   _impl_._has_bits_[0] |= 0x00000002u;
331   _impl_.random_seed_ = value;
332 }
set_random_seed(uint64_t value)333 inline void SendAlgorithmTestResult::set_random_seed(uint64_t value) {
334   _internal_set_random_seed(value);
335   // @@protoc_insertion_point(field_set:quic.SendAlgorithmTestResult.random_seed)
336 }
337 
338 // optional int64 simulated_duration_micros = 3;
_internal_has_simulated_duration_micros()339 inline bool SendAlgorithmTestResult::_internal_has_simulated_duration_micros() const {
340   bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
341   return value;
342 }
has_simulated_duration_micros()343 inline bool SendAlgorithmTestResult::has_simulated_duration_micros() const {
344   return _internal_has_simulated_duration_micros();
345 }
clear_simulated_duration_micros()346 inline void SendAlgorithmTestResult::clear_simulated_duration_micros() {
347   _impl_.simulated_duration_micros_ = int64_t{0};
348   _impl_._has_bits_[0] &= ~0x00000004u;
349 }
_internal_simulated_duration_micros()350 inline int64_t SendAlgorithmTestResult::_internal_simulated_duration_micros() const {
351   return _impl_.simulated_duration_micros_;
352 }
simulated_duration_micros()353 inline int64_t SendAlgorithmTestResult::simulated_duration_micros() const {
354   // @@protoc_insertion_point(field_get:quic.SendAlgorithmTestResult.simulated_duration_micros)
355   return _internal_simulated_duration_micros();
356 }
_internal_set_simulated_duration_micros(int64_t value)357 inline void SendAlgorithmTestResult::_internal_set_simulated_duration_micros(int64_t value) {
358   _impl_._has_bits_[0] |= 0x00000004u;
359   _impl_.simulated_duration_micros_ = value;
360 }
set_simulated_duration_micros(int64_t value)361 inline void SendAlgorithmTestResult::set_simulated_duration_micros(int64_t value) {
362   _internal_set_simulated_duration_micros(value);
363   // @@protoc_insertion_point(field_set:quic.SendAlgorithmTestResult.simulated_duration_micros)
364 }
365 
366 #ifdef __GNUC__
367   #pragma GCC diagnostic pop
368 #endif  // __GNUC__
369 
370 // @@protoc_insertion_point(namespace_scope)
371 
372 }  // namespace quic
373 
374 // @@protoc_insertion_point(global_scope)
375 
376 #include <google/protobuf/port_undef.inc>
377 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_send_5falgorithm_5ftest_5fresult_2eproto
378