1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: quiche/quic/core/proto/source_address_token.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_quiche_2fquic_2fcore_2fproto_2fsource_5faddress_5ftoken_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_quiche_2fquic_2fcore_2fproto_2fsource_5faddress_5ftoken_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 #include "quiche/quic/core/proto/cached_network_parameters.pb.h"
32 // @@protoc_insertion_point(includes)
33 #include <google/protobuf/port_def.inc>
34 #define PROTOBUF_INTERNAL_EXPORT_quiche_2fquic_2fcore_2fproto_2fsource_5faddress_5ftoken_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_quiche_2fquic_2fcore_2fproto_2fsource_5faddress_5ftoken_2eproto {
43   static const uint32_t offsets[];
44 };
45 namespace quic {
46 class SourceAddressToken;
47 struct SourceAddressTokenDefaultTypeInternal;
48 extern SourceAddressTokenDefaultTypeInternal _SourceAddressToken_default_instance_;
49 class SourceAddressTokens;
50 struct SourceAddressTokensDefaultTypeInternal;
51 extern SourceAddressTokensDefaultTypeInternal _SourceAddressTokens_default_instance_;
52 }  // namespace quic
53 PROTOBUF_NAMESPACE_OPEN
54 template<> ::quic::SourceAddressToken* Arena::CreateMaybeMessage<::quic::SourceAddressToken>(Arena*);
55 template<> ::quic::SourceAddressTokens* Arena::CreateMaybeMessage<::quic::SourceAddressTokens>(Arena*);
56 PROTOBUF_NAMESPACE_CLOSE
57 namespace quic {
58 
59 // ===================================================================
60 
61 class SourceAddressToken final :
62     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:quic.SourceAddressToken) */ {
63  public:
SourceAddressToken()64   inline SourceAddressToken() : SourceAddressToken(nullptr) {}
65   ~SourceAddressToken() override;
66   explicit PROTOBUF_CONSTEXPR SourceAddressToken(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
67 
68   SourceAddressToken(const SourceAddressToken& from);
SourceAddressToken(SourceAddressToken && from)69   SourceAddressToken(SourceAddressToken&& from) noexcept
70     : SourceAddressToken() {
71     *this = ::std::move(from);
72   }
73 
74   inline SourceAddressToken& operator=(const SourceAddressToken& from) {
75     CopyFrom(from);
76     return *this;
77   }
78   inline SourceAddressToken& operator=(SourceAddressToken&& from) noexcept {
79     if (this == &from) return *this;
80     if (GetOwningArena() == from.GetOwningArena()
81   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
82         && GetOwningArena() != nullptr
83   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
84     ) {
85       InternalSwap(&from);
86     } else {
87       CopyFrom(from);
88     }
89     return *this;
90   }
91 
unknown_fields()92   inline const std::string& unknown_fields() const {
93     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
94   }
mutable_unknown_fields()95   inline std::string* mutable_unknown_fields() {
96     return _internal_metadata_.mutable_unknown_fields<std::string>();
97   }
98 
default_instance()99   static const SourceAddressToken& default_instance() {
100     return *internal_default_instance();
101   }
internal_default_instance()102   static inline const SourceAddressToken* internal_default_instance() {
103     return reinterpret_cast<const SourceAddressToken*>(
104                &_SourceAddressToken_default_instance_);
105   }
106   static constexpr int kIndexInFileMessages =
107     0;
108 
swap(SourceAddressToken & a,SourceAddressToken & b)109   friend void swap(SourceAddressToken& a, SourceAddressToken& b) {
110     a.Swap(&b);
111   }
Swap(SourceAddressToken * other)112   PROTOBUF_NOINLINE void Swap(SourceAddressToken* other) {
113     if (other == this) return;
114   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
115     if (GetOwningArena() != nullptr &&
116         GetOwningArena() == other->GetOwningArena()) {
117    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
118     if (GetOwningArena() == other->GetOwningArena()) {
119   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
120       InternalSwap(other);
121     } else {
122       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
123     }
124   }
125   void UnsafeArenaSwap(SourceAddressToken* other) {
126     if (other == this) return;
127     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
128     InternalSwap(other);
129   }
130 
131   // implements Message ----------------------------------------------
132 
133   SourceAddressToken* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
134     return CreateMaybeMessage<SourceAddressToken>(arena);
135   }
136   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
137   void CopyFrom(const SourceAddressToken& from);
138   void MergeFrom(const SourceAddressToken& from);
139   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
140   bool IsInitialized() const final;
141 
142   size_t ByteSizeLong() const final;
143   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
144   uint8_t* _InternalSerialize(
145       uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
146   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
147 
148   private:
149   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
150   void SharedDtor();
151   void SetCachedSize(int size) const;
152   void InternalSwap(SourceAddressToken* other);
153 
154   private:
155   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
156   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
157     return "quic.SourceAddressToken";
158   }
159   protected:
160   explicit SourceAddressToken(::PROTOBUF_NAMESPACE_ID::Arena* arena,
161                        bool is_message_owned = false);
162   public:
163 
164   std::string GetTypeName() const final;
165 
166   // nested types ----------------------------------------------------
167 
168   // accessors -------------------------------------------------------
169 
170   enum : int {
171     kIpFieldNumber = 1,
172     kCachedNetworkParametersFieldNumber = 3,
173     kTimestampFieldNumber = 2,
174   };
175   // required bytes ip = 1;
176   bool has_ip() const;
177   private:
178   bool _internal_has_ip() const;
179   public:
180   void clear_ip();
181   const std::string& ip() const;
182   template <typename ArgT0 = const std::string&, typename... ArgT>
183   void set_ip(ArgT0&& arg0, ArgT... args);
184   std::string* mutable_ip();
185   PROTOBUF_NODISCARD std::string* release_ip();
186   void set_allocated_ip(std::string* ip);
187   private:
188   const std::string& _internal_ip() const;
189   inline PROTOBUF_ALWAYS_INLINE void _internal_set_ip(const std::string& value);
190   std::string* _internal_mutable_ip();
191   public:
192 
193   // optional .quic.CachedNetworkParameters cached_network_parameters = 3;
194   bool has_cached_network_parameters() const;
195   private:
196   bool _internal_has_cached_network_parameters() const;
197   public:
198   void clear_cached_network_parameters();
199   const ::quic::CachedNetworkParameters& cached_network_parameters() const;
200   PROTOBUF_NODISCARD ::quic::CachedNetworkParameters* release_cached_network_parameters();
201   ::quic::CachedNetworkParameters* mutable_cached_network_parameters();
202   void set_allocated_cached_network_parameters(::quic::CachedNetworkParameters* cached_network_parameters);
203   private:
204   const ::quic::CachedNetworkParameters& _internal_cached_network_parameters() const;
205   ::quic::CachedNetworkParameters* _internal_mutable_cached_network_parameters();
206   public:
207   void unsafe_arena_set_allocated_cached_network_parameters(
208       ::quic::CachedNetworkParameters* cached_network_parameters);
209   ::quic::CachedNetworkParameters* unsafe_arena_release_cached_network_parameters();
210 
211   // required int64 timestamp = 2;
212   bool has_timestamp() const;
213   private:
214   bool _internal_has_timestamp() const;
215   public:
216   void clear_timestamp();
217   int64_t timestamp() const;
218   void set_timestamp(int64_t value);
219   private:
220   int64_t _internal_timestamp() const;
221   void _internal_set_timestamp(int64_t value);
222   public:
223 
224   // @@protoc_insertion_point(class_scope:quic.SourceAddressToken)
225  private:
226   class _Internal;
227 
228   // helper for ByteSizeLong()
229   size_t RequiredFieldsByteSizeFallback() const;
230 
231   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
232   typedef void InternalArenaConstructable_;
233   typedef void DestructorSkippable_;
234   struct Impl_ {
235     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
236     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
237     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_;
238     ::quic::CachedNetworkParameters* cached_network_parameters_;
239     int64_t timestamp_;
240   };
241   union { Impl_ _impl_; };
242   friend struct ::TableStruct_quiche_2fquic_2fcore_2fproto_2fsource_5faddress_5ftoken_2eproto;
243 };
244 // -------------------------------------------------------------------
245 
246 class SourceAddressTokens final :
247     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:quic.SourceAddressTokens) */ {
248  public:
SourceAddressTokens()249   inline SourceAddressTokens() : SourceAddressTokens(nullptr) {}
250   ~SourceAddressTokens() override;
251   explicit PROTOBUF_CONSTEXPR SourceAddressTokens(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
252 
253   SourceAddressTokens(const SourceAddressTokens& from);
SourceAddressTokens(SourceAddressTokens && from)254   SourceAddressTokens(SourceAddressTokens&& from) noexcept
255     : SourceAddressTokens() {
256     *this = ::std::move(from);
257   }
258 
259   inline SourceAddressTokens& operator=(const SourceAddressTokens& from) {
260     CopyFrom(from);
261     return *this;
262   }
263   inline SourceAddressTokens& operator=(SourceAddressTokens&& from) noexcept {
264     if (this == &from) return *this;
265     if (GetOwningArena() == from.GetOwningArena()
266   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
267         && GetOwningArena() != nullptr
268   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
269     ) {
270       InternalSwap(&from);
271     } else {
272       CopyFrom(from);
273     }
274     return *this;
275   }
276 
unknown_fields()277   inline const std::string& unknown_fields() const {
278     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
279   }
mutable_unknown_fields()280   inline std::string* mutable_unknown_fields() {
281     return _internal_metadata_.mutable_unknown_fields<std::string>();
282   }
283 
default_instance()284   static const SourceAddressTokens& default_instance() {
285     return *internal_default_instance();
286   }
internal_default_instance()287   static inline const SourceAddressTokens* internal_default_instance() {
288     return reinterpret_cast<const SourceAddressTokens*>(
289                &_SourceAddressTokens_default_instance_);
290   }
291   static constexpr int kIndexInFileMessages =
292     1;
293 
swap(SourceAddressTokens & a,SourceAddressTokens & b)294   friend void swap(SourceAddressTokens& a, SourceAddressTokens& b) {
295     a.Swap(&b);
296   }
Swap(SourceAddressTokens * other)297   PROTOBUF_NOINLINE void Swap(SourceAddressTokens* other) {
298     if (other == this) return;
299   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
300     if (GetOwningArena() != nullptr &&
301         GetOwningArena() == other->GetOwningArena()) {
302    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
303     if (GetOwningArena() == other->GetOwningArena()) {
304   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
305       InternalSwap(other);
306     } else {
307       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
308     }
309   }
310   void UnsafeArenaSwap(SourceAddressTokens* other) {
311     if (other == this) return;
312     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
313     InternalSwap(other);
314   }
315 
316   // implements Message ----------------------------------------------
317 
318   SourceAddressTokens* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
319     return CreateMaybeMessage<SourceAddressTokens>(arena);
320   }
321   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
322   void CopyFrom(const SourceAddressTokens& from);
323   void MergeFrom(const SourceAddressTokens& from);
324   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
325   bool IsInitialized() const final;
326 
327   size_t ByteSizeLong() const final;
328   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
329   uint8_t* _InternalSerialize(
330       uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
331   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
332 
333   private:
334   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
335   void SharedDtor();
336   void SetCachedSize(int size) const;
337   void InternalSwap(SourceAddressTokens* other);
338 
339   private:
340   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
341   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
342     return "quic.SourceAddressTokens";
343   }
344   protected:
345   explicit SourceAddressTokens(::PROTOBUF_NAMESPACE_ID::Arena* arena,
346                        bool is_message_owned = false);
347   public:
348 
349   std::string GetTypeName() const final;
350 
351   // nested types ----------------------------------------------------
352 
353   // accessors -------------------------------------------------------
354 
355   enum : int {
356     kTokensFieldNumber = 4,
357   };
358   // repeated .quic.SourceAddressToken tokens = 4;
359   int tokens_size() const;
360   private:
361   int _internal_tokens_size() const;
362   public:
363   void clear_tokens();
364   ::quic::SourceAddressToken* mutable_tokens(int index);
365   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::quic::SourceAddressToken >*
366       mutable_tokens();
367   private:
368   const ::quic::SourceAddressToken& _internal_tokens(int index) const;
369   ::quic::SourceAddressToken* _internal_add_tokens();
370   public:
371   const ::quic::SourceAddressToken& tokens(int index) const;
372   ::quic::SourceAddressToken* add_tokens();
373   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::quic::SourceAddressToken >&
374       tokens() const;
375 
376   // @@protoc_insertion_point(class_scope:quic.SourceAddressTokens)
377  private:
378   class _Internal;
379 
380   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
381   typedef void InternalArenaConstructable_;
382   typedef void DestructorSkippable_;
383   struct Impl_ {
384     ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::quic::SourceAddressToken > tokens_;
385     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
386   };
387   union { Impl_ _impl_; };
388   friend struct ::TableStruct_quiche_2fquic_2fcore_2fproto_2fsource_5faddress_5ftoken_2eproto;
389 };
390 // ===================================================================
391 
392 
393 // ===================================================================
394 
395 #ifdef __GNUC__
396   #pragma GCC diagnostic push
397   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
398 #endif  // __GNUC__
399 // SourceAddressToken
400 
401 // required bytes ip = 1;
_internal_has_ip()402 inline bool SourceAddressToken::_internal_has_ip() const {
403   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
404   return value;
405 }
has_ip()406 inline bool SourceAddressToken::has_ip() const {
407   return _internal_has_ip();
408 }
clear_ip()409 inline void SourceAddressToken::clear_ip() {
410   _impl_.ip_.ClearToEmpty();
411   _impl_._has_bits_[0] &= ~0x00000001u;
412 }
ip()413 inline const std::string& SourceAddressToken::ip() const {
414   // @@protoc_insertion_point(field_get:quic.SourceAddressToken.ip)
415   return _internal_ip();
416 }
417 template <typename ArgT0, typename... ArgT>
418 inline PROTOBUF_ALWAYS_INLINE
set_ip(ArgT0 && arg0,ArgT...args)419 void SourceAddressToken::set_ip(ArgT0&& arg0, ArgT... args) {
420  _impl_._has_bits_[0] |= 0x00000001u;
421  _impl_.ip_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
422   // @@protoc_insertion_point(field_set:quic.SourceAddressToken.ip)
423 }
mutable_ip()424 inline std::string* SourceAddressToken::mutable_ip() {
425   std::string* _s = _internal_mutable_ip();
426   // @@protoc_insertion_point(field_mutable:quic.SourceAddressToken.ip)
427   return _s;
428 }
_internal_ip()429 inline const std::string& SourceAddressToken::_internal_ip() const {
430   return _impl_.ip_.Get();
431 }
_internal_set_ip(const std::string & value)432 inline void SourceAddressToken::_internal_set_ip(const std::string& value) {
433   _impl_._has_bits_[0] |= 0x00000001u;
434   _impl_.ip_.Set(value, GetArenaForAllocation());
435 }
_internal_mutable_ip()436 inline std::string* SourceAddressToken::_internal_mutable_ip() {
437   _impl_._has_bits_[0] |= 0x00000001u;
438   return _impl_.ip_.Mutable(GetArenaForAllocation());
439 }
release_ip()440 inline std::string* SourceAddressToken::release_ip() {
441   // @@protoc_insertion_point(field_release:quic.SourceAddressToken.ip)
442   if (!_internal_has_ip()) {
443     return nullptr;
444   }
445   _impl_._has_bits_[0] &= ~0x00000001u;
446   auto* p = _impl_.ip_.Release();
447 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
448   if (_impl_.ip_.IsDefault()) {
449     _impl_.ip_.Set("", GetArenaForAllocation());
450   }
451 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
452   return p;
453 }
set_allocated_ip(std::string * ip)454 inline void SourceAddressToken::set_allocated_ip(std::string* ip) {
455   if (ip != nullptr) {
456     _impl_._has_bits_[0] |= 0x00000001u;
457   } else {
458     _impl_._has_bits_[0] &= ~0x00000001u;
459   }
460   _impl_.ip_.SetAllocated(ip, GetArenaForAllocation());
461 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
462   if (_impl_.ip_.IsDefault()) {
463     _impl_.ip_.Set("", GetArenaForAllocation());
464   }
465 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
466   // @@protoc_insertion_point(field_set_allocated:quic.SourceAddressToken.ip)
467 }
468 
469 // required int64 timestamp = 2;
_internal_has_timestamp()470 inline bool SourceAddressToken::_internal_has_timestamp() const {
471   bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
472   return value;
473 }
has_timestamp()474 inline bool SourceAddressToken::has_timestamp() const {
475   return _internal_has_timestamp();
476 }
clear_timestamp()477 inline void SourceAddressToken::clear_timestamp() {
478   _impl_.timestamp_ = int64_t{0};
479   _impl_._has_bits_[0] &= ~0x00000004u;
480 }
_internal_timestamp()481 inline int64_t SourceAddressToken::_internal_timestamp() const {
482   return _impl_.timestamp_;
483 }
timestamp()484 inline int64_t SourceAddressToken::timestamp() const {
485   // @@protoc_insertion_point(field_get:quic.SourceAddressToken.timestamp)
486   return _internal_timestamp();
487 }
_internal_set_timestamp(int64_t value)488 inline void SourceAddressToken::_internal_set_timestamp(int64_t value) {
489   _impl_._has_bits_[0] |= 0x00000004u;
490   _impl_.timestamp_ = value;
491 }
set_timestamp(int64_t value)492 inline void SourceAddressToken::set_timestamp(int64_t value) {
493   _internal_set_timestamp(value);
494   // @@protoc_insertion_point(field_set:quic.SourceAddressToken.timestamp)
495 }
496 
497 // optional .quic.CachedNetworkParameters cached_network_parameters = 3;
_internal_has_cached_network_parameters()498 inline bool SourceAddressToken::_internal_has_cached_network_parameters() const {
499   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
500   PROTOBUF_ASSUME(!value || _impl_.cached_network_parameters_ != nullptr);
501   return value;
502 }
has_cached_network_parameters()503 inline bool SourceAddressToken::has_cached_network_parameters() const {
504   return _internal_has_cached_network_parameters();
505 }
_internal_cached_network_parameters()506 inline const ::quic::CachedNetworkParameters& SourceAddressToken::_internal_cached_network_parameters() const {
507   const ::quic::CachedNetworkParameters* p = _impl_.cached_network_parameters_;
508   return p != nullptr ? *p : reinterpret_cast<const ::quic::CachedNetworkParameters&>(
509       ::quic::_CachedNetworkParameters_default_instance_);
510 }
cached_network_parameters()511 inline const ::quic::CachedNetworkParameters& SourceAddressToken::cached_network_parameters() const {
512   // @@protoc_insertion_point(field_get:quic.SourceAddressToken.cached_network_parameters)
513   return _internal_cached_network_parameters();
514 }
unsafe_arena_set_allocated_cached_network_parameters(::quic::CachedNetworkParameters * cached_network_parameters)515 inline void SourceAddressToken::unsafe_arena_set_allocated_cached_network_parameters(
516     ::quic::CachedNetworkParameters* cached_network_parameters) {
517   if (GetArenaForAllocation() == nullptr) {
518     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.cached_network_parameters_);
519   }
520   _impl_.cached_network_parameters_ = cached_network_parameters;
521   if (cached_network_parameters) {
522     _impl_._has_bits_[0] |= 0x00000002u;
523   } else {
524     _impl_._has_bits_[0] &= ~0x00000002u;
525   }
526   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:quic.SourceAddressToken.cached_network_parameters)
527 }
release_cached_network_parameters()528 inline ::quic::CachedNetworkParameters* SourceAddressToken::release_cached_network_parameters() {
529   _impl_._has_bits_[0] &= ~0x00000002u;
530   ::quic::CachedNetworkParameters* temp = _impl_.cached_network_parameters_;
531   _impl_.cached_network_parameters_ = nullptr;
532 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
533   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
534   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
535   if (GetArenaForAllocation() == nullptr) { delete old; }
536 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
537   if (GetArenaForAllocation() != nullptr) {
538     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
539   }
540 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
541   return temp;
542 }
unsafe_arena_release_cached_network_parameters()543 inline ::quic::CachedNetworkParameters* SourceAddressToken::unsafe_arena_release_cached_network_parameters() {
544   // @@protoc_insertion_point(field_release:quic.SourceAddressToken.cached_network_parameters)
545   _impl_._has_bits_[0] &= ~0x00000002u;
546   ::quic::CachedNetworkParameters* temp = _impl_.cached_network_parameters_;
547   _impl_.cached_network_parameters_ = nullptr;
548   return temp;
549 }
_internal_mutable_cached_network_parameters()550 inline ::quic::CachedNetworkParameters* SourceAddressToken::_internal_mutable_cached_network_parameters() {
551   _impl_._has_bits_[0] |= 0x00000002u;
552   if (_impl_.cached_network_parameters_ == nullptr) {
553     auto* p = CreateMaybeMessage<::quic::CachedNetworkParameters>(GetArenaForAllocation());
554     _impl_.cached_network_parameters_ = p;
555   }
556   return _impl_.cached_network_parameters_;
557 }
mutable_cached_network_parameters()558 inline ::quic::CachedNetworkParameters* SourceAddressToken::mutable_cached_network_parameters() {
559   ::quic::CachedNetworkParameters* _msg = _internal_mutable_cached_network_parameters();
560   // @@protoc_insertion_point(field_mutable:quic.SourceAddressToken.cached_network_parameters)
561   return _msg;
562 }
set_allocated_cached_network_parameters(::quic::CachedNetworkParameters * cached_network_parameters)563 inline void SourceAddressToken::set_allocated_cached_network_parameters(::quic::CachedNetworkParameters* cached_network_parameters) {
564   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
565   if (message_arena == nullptr) {
566     delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.cached_network_parameters_);
567   }
568   if (cached_network_parameters) {
569     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
570         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
571                 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cached_network_parameters));
572     if (message_arena != submessage_arena) {
573       cached_network_parameters = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
574           message_arena, cached_network_parameters, submessage_arena);
575     }
576     _impl_._has_bits_[0] |= 0x00000002u;
577   } else {
578     _impl_._has_bits_[0] &= ~0x00000002u;
579   }
580   _impl_.cached_network_parameters_ = cached_network_parameters;
581   // @@protoc_insertion_point(field_set_allocated:quic.SourceAddressToken.cached_network_parameters)
582 }
583 
584 // -------------------------------------------------------------------
585 
586 // SourceAddressTokens
587 
588 // repeated .quic.SourceAddressToken tokens = 4;
_internal_tokens_size()589 inline int SourceAddressTokens::_internal_tokens_size() const {
590   return _impl_.tokens_.size();
591 }
tokens_size()592 inline int SourceAddressTokens::tokens_size() const {
593   return _internal_tokens_size();
594 }
clear_tokens()595 inline void SourceAddressTokens::clear_tokens() {
596   _impl_.tokens_.Clear();
597 }
mutable_tokens(int index)598 inline ::quic::SourceAddressToken* SourceAddressTokens::mutable_tokens(int index) {
599   // @@protoc_insertion_point(field_mutable:quic.SourceAddressTokens.tokens)
600   return _impl_.tokens_.Mutable(index);
601 }
602 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::quic::SourceAddressToken >*
mutable_tokens()603 SourceAddressTokens::mutable_tokens() {
604   // @@protoc_insertion_point(field_mutable_list:quic.SourceAddressTokens.tokens)
605   return &_impl_.tokens_;
606 }
_internal_tokens(int index)607 inline const ::quic::SourceAddressToken& SourceAddressTokens::_internal_tokens(int index) const {
608   return _impl_.tokens_.Get(index);
609 }
tokens(int index)610 inline const ::quic::SourceAddressToken& SourceAddressTokens::tokens(int index) const {
611   // @@protoc_insertion_point(field_get:quic.SourceAddressTokens.tokens)
612   return _internal_tokens(index);
613 }
_internal_add_tokens()614 inline ::quic::SourceAddressToken* SourceAddressTokens::_internal_add_tokens() {
615   return _impl_.tokens_.Add();
616 }
add_tokens()617 inline ::quic::SourceAddressToken* SourceAddressTokens::add_tokens() {
618   ::quic::SourceAddressToken* _add = _internal_add_tokens();
619   // @@protoc_insertion_point(field_add:quic.SourceAddressTokens.tokens)
620   return _add;
621 }
622 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::quic::SourceAddressToken >&
tokens()623 SourceAddressTokens::tokens() const {
624   // @@protoc_insertion_point(field_list:quic.SourceAddressTokens.tokens)
625   return _impl_.tokens_;
626 }
627 
628 #ifdef __GNUC__
629   #pragma GCC diagnostic pop
630 #endif  // __GNUC__
631 // -------------------------------------------------------------------
632 
633 
634 // @@protoc_insertion_point(namespace_scope)
635 
636 }  // namespace quic
637 
638 // @@protoc_insertion_point(global_scope)
639 
640 #include <google/protobuf/port_undef.inc>
641 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_quiche_2fquic_2fcore_2fproto_2fsource_5faddress_5ftoken_2eproto
642