1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: quiche/quic/core/proto/cached_network_parameters.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_quiche_2fquic_2fcore_2fproto_2fcached_5fnetwork_5fparameters_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_quiche_2fquic_2fcore_2fproto_2fcached_5fnetwork_5fparameters_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 <google/protobuf/generated_enum_util.h>
32 // @@protoc_insertion_point(includes)
33 #include <google/protobuf/port_def.inc>
34 #define PROTOBUF_INTERNAL_EXPORT_quiche_2fquic_2fcore_2fproto_2fcached_5fnetwork_5fparameters_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_2fcached_5fnetwork_5fparameters_2eproto {
43 static const uint32_t offsets[];
44 };
45 namespace quic {
46 class CachedNetworkParameters;
47 struct CachedNetworkParametersDefaultTypeInternal;
48 extern CachedNetworkParametersDefaultTypeInternal _CachedNetworkParameters_default_instance_;
49 } // namespace quic
50 PROTOBUF_NAMESPACE_OPEN
51 template<> ::quic::CachedNetworkParameters* Arena::CreateMaybeMessage<::quic::CachedNetworkParameters>(Arena*);
52 PROTOBUF_NAMESPACE_CLOSE
53 namespace quic {
54
55 enum CachedNetworkParameters_PreviousConnectionState : int {
56 CachedNetworkParameters_PreviousConnectionState_SLOW_START = 0,
57 CachedNetworkParameters_PreviousConnectionState_CONGESTION_AVOIDANCE = 1
58 };
59 bool CachedNetworkParameters_PreviousConnectionState_IsValid(int value);
60 constexpr CachedNetworkParameters_PreviousConnectionState CachedNetworkParameters_PreviousConnectionState_PreviousConnectionState_MIN = CachedNetworkParameters_PreviousConnectionState_SLOW_START;
61 constexpr CachedNetworkParameters_PreviousConnectionState CachedNetworkParameters_PreviousConnectionState_PreviousConnectionState_MAX = CachedNetworkParameters_PreviousConnectionState_CONGESTION_AVOIDANCE;
62 constexpr int CachedNetworkParameters_PreviousConnectionState_PreviousConnectionState_ARRAYSIZE = CachedNetworkParameters_PreviousConnectionState_PreviousConnectionState_MAX + 1;
63
64 const std::string& CachedNetworkParameters_PreviousConnectionState_Name(CachedNetworkParameters_PreviousConnectionState value);
65 template<typename T>
CachedNetworkParameters_PreviousConnectionState_Name(T enum_t_value)66 inline const std::string& CachedNetworkParameters_PreviousConnectionState_Name(T enum_t_value) {
67 static_assert(::std::is_same<T, CachedNetworkParameters_PreviousConnectionState>::value ||
68 ::std::is_integral<T>::value,
69 "Incorrect type passed to function CachedNetworkParameters_PreviousConnectionState_Name.");
70 return CachedNetworkParameters_PreviousConnectionState_Name(static_cast<CachedNetworkParameters_PreviousConnectionState>(enum_t_value));
71 }
72 bool CachedNetworkParameters_PreviousConnectionState_Parse(
73 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CachedNetworkParameters_PreviousConnectionState* value);
74 // ===================================================================
75
76 class CachedNetworkParameters final :
77 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:quic.CachedNetworkParameters) */ {
78 public:
CachedNetworkParameters()79 inline CachedNetworkParameters() : CachedNetworkParameters(nullptr) {}
80 ~CachedNetworkParameters() override;
81 explicit PROTOBUF_CONSTEXPR CachedNetworkParameters(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
82
83 CachedNetworkParameters(const CachedNetworkParameters& from);
CachedNetworkParameters(CachedNetworkParameters && from)84 CachedNetworkParameters(CachedNetworkParameters&& from) noexcept
85 : CachedNetworkParameters() {
86 *this = ::std::move(from);
87 }
88
89 inline CachedNetworkParameters& operator=(const CachedNetworkParameters& from) {
90 CopyFrom(from);
91 return *this;
92 }
93 inline CachedNetworkParameters& operator=(CachedNetworkParameters&& from) noexcept {
94 if (this == &from) return *this;
95 if (GetOwningArena() == from.GetOwningArena()
96 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
97 && GetOwningArena() != nullptr
98 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
99 ) {
100 InternalSwap(&from);
101 } else {
102 CopyFrom(from);
103 }
104 return *this;
105 }
106
unknown_fields()107 inline const std::string& unknown_fields() const {
108 return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
109 }
mutable_unknown_fields()110 inline std::string* mutable_unknown_fields() {
111 return _internal_metadata_.mutable_unknown_fields<std::string>();
112 }
113
default_instance()114 static const CachedNetworkParameters& default_instance() {
115 return *internal_default_instance();
116 }
internal_default_instance()117 static inline const CachedNetworkParameters* internal_default_instance() {
118 return reinterpret_cast<const CachedNetworkParameters*>(
119 &_CachedNetworkParameters_default_instance_);
120 }
121 static constexpr int kIndexInFileMessages =
122 0;
123
swap(CachedNetworkParameters & a,CachedNetworkParameters & b)124 friend void swap(CachedNetworkParameters& a, CachedNetworkParameters& b) {
125 a.Swap(&b);
126 }
Swap(CachedNetworkParameters * other)127 PROTOBUF_NOINLINE void Swap(CachedNetworkParameters* other) {
128 if (other == this) return;
129 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
130 if (GetOwningArena() != nullptr &&
131 GetOwningArena() == other->GetOwningArena()) {
132 #else // PROTOBUF_FORCE_COPY_IN_SWAP
133 if (GetOwningArena() == other->GetOwningArena()) {
134 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
135 InternalSwap(other);
136 } else {
137 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
138 }
139 }
140 void UnsafeArenaSwap(CachedNetworkParameters* other) {
141 if (other == this) return;
142 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
143 InternalSwap(other);
144 }
145
146 // implements Message ----------------------------------------------
147
148 CachedNetworkParameters* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
149 return CreateMaybeMessage<CachedNetworkParameters>(arena);
150 }
151 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
152 void CopyFrom(const CachedNetworkParameters& from);
153 void MergeFrom(const CachedNetworkParameters& from);
154 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
155 bool IsInitialized() const final;
156
157 size_t ByteSizeLong() const final;
158 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
159 uint8_t* _InternalSerialize(
160 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
161 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
162
163 private:
164 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
165 void SharedDtor();
166 void SetCachedSize(int size) const;
167 void InternalSwap(CachedNetworkParameters* other);
168
169 private:
170 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
171 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
172 return "quic.CachedNetworkParameters";
173 }
174 protected:
175 explicit CachedNetworkParameters(::PROTOBUF_NAMESPACE_ID::Arena* arena,
176 bool is_message_owned = false);
177 public:
178
179 std::string GetTypeName() const final;
180
181 // nested types ----------------------------------------------------
182
183 typedef CachedNetworkParameters_PreviousConnectionState PreviousConnectionState;
184 static constexpr PreviousConnectionState SLOW_START =
185 CachedNetworkParameters_PreviousConnectionState_SLOW_START;
186 static constexpr PreviousConnectionState CONGESTION_AVOIDANCE =
187 CachedNetworkParameters_PreviousConnectionState_CONGESTION_AVOIDANCE;
188 static inline bool PreviousConnectionState_IsValid(int value) {
189 return CachedNetworkParameters_PreviousConnectionState_IsValid(value);
190 }
191 static constexpr PreviousConnectionState PreviousConnectionState_MIN =
192 CachedNetworkParameters_PreviousConnectionState_PreviousConnectionState_MIN;
193 static constexpr PreviousConnectionState PreviousConnectionState_MAX =
194 CachedNetworkParameters_PreviousConnectionState_PreviousConnectionState_MAX;
195 static constexpr int PreviousConnectionState_ARRAYSIZE =
196 CachedNetworkParameters_PreviousConnectionState_PreviousConnectionState_ARRAYSIZE;
197 template<typename T>
198 static inline const std::string& PreviousConnectionState_Name(T enum_t_value) {
199 static_assert(::std::is_same<T, PreviousConnectionState>::value ||
200 ::std::is_integral<T>::value,
201 "Incorrect type passed to function PreviousConnectionState_Name.");
202 return CachedNetworkParameters_PreviousConnectionState_Name(enum_t_value);
203 }
204 static inline bool PreviousConnectionState_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
205 PreviousConnectionState* value) {
206 return CachedNetworkParameters_PreviousConnectionState_Parse(name, value);
207 }
208
209 // accessors -------------------------------------------------------
210
211 enum : int {
212 kServingRegionFieldNumber = 1,
213 kBandwidthEstimateBytesPerSecondFieldNumber = 2,
214 kMinRttMsFieldNumber = 3,
215 kPreviousConnectionStateFieldNumber = 4,
216 kMaxBandwidthEstimateBytesPerSecondFieldNumber = 5,
217 kMaxBandwidthTimestampSecondsFieldNumber = 6,
218 kTimestampFieldNumber = 7,
219 };
220 // optional string serving_region = 1;
221 bool has_serving_region() const;
222 private:
223 bool _internal_has_serving_region() const;
224 public:
225 void clear_serving_region();
226 const std::string& serving_region() const;
227 template <typename ArgT0 = const std::string&, typename... ArgT>
228 void set_serving_region(ArgT0&& arg0, ArgT... args);
229 std::string* mutable_serving_region();
230 PROTOBUF_NODISCARD std::string* release_serving_region();
231 void set_allocated_serving_region(std::string* serving_region);
232 private:
233 const std::string& _internal_serving_region() const;
234 inline PROTOBUF_ALWAYS_INLINE void _internal_set_serving_region(const std::string& value);
235 std::string* _internal_mutable_serving_region();
236 public:
237
238 // optional int32 bandwidth_estimate_bytes_per_second = 2;
239 bool has_bandwidth_estimate_bytes_per_second() const;
240 private:
241 bool _internal_has_bandwidth_estimate_bytes_per_second() const;
242 public:
243 void clear_bandwidth_estimate_bytes_per_second();
244 int32_t bandwidth_estimate_bytes_per_second() const;
245 void set_bandwidth_estimate_bytes_per_second(int32_t value);
246 private:
247 int32_t _internal_bandwidth_estimate_bytes_per_second() const;
248 void _internal_set_bandwidth_estimate_bytes_per_second(int32_t value);
249 public:
250
251 // optional int32 min_rtt_ms = 3;
252 bool has_min_rtt_ms() const;
253 private:
254 bool _internal_has_min_rtt_ms() const;
255 public:
256 void clear_min_rtt_ms();
257 int32_t min_rtt_ms() const;
258 void set_min_rtt_ms(int32_t value);
259 private:
260 int32_t _internal_min_rtt_ms() const;
261 void _internal_set_min_rtt_ms(int32_t value);
262 public:
263
264 // optional int32 previous_connection_state = 4;
265 bool has_previous_connection_state() const;
266 private:
267 bool _internal_has_previous_connection_state() const;
268 public:
269 void clear_previous_connection_state();
270 int32_t previous_connection_state() const;
271 void set_previous_connection_state(int32_t value);
272 private:
273 int32_t _internal_previous_connection_state() const;
274 void _internal_set_previous_connection_state(int32_t value);
275 public:
276
277 // optional int32 max_bandwidth_estimate_bytes_per_second = 5;
278 bool has_max_bandwidth_estimate_bytes_per_second() const;
279 private:
280 bool _internal_has_max_bandwidth_estimate_bytes_per_second() const;
281 public:
282 void clear_max_bandwidth_estimate_bytes_per_second();
283 int32_t max_bandwidth_estimate_bytes_per_second() const;
284 void set_max_bandwidth_estimate_bytes_per_second(int32_t value);
285 private:
286 int32_t _internal_max_bandwidth_estimate_bytes_per_second() const;
287 void _internal_set_max_bandwidth_estimate_bytes_per_second(int32_t value);
288 public:
289
290 // optional int64 max_bandwidth_timestamp_seconds = 6;
291 bool has_max_bandwidth_timestamp_seconds() const;
292 private:
293 bool _internal_has_max_bandwidth_timestamp_seconds() const;
294 public:
295 void clear_max_bandwidth_timestamp_seconds();
296 int64_t max_bandwidth_timestamp_seconds() const;
297 void set_max_bandwidth_timestamp_seconds(int64_t value);
298 private:
299 int64_t _internal_max_bandwidth_timestamp_seconds() const;
300 void _internal_set_max_bandwidth_timestamp_seconds(int64_t value);
301 public:
302
303 // optional int64 timestamp = 7;
304 bool has_timestamp() const;
305 private:
306 bool _internal_has_timestamp() const;
307 public:
308 void clear_timestamp();
309 int64_t timestamp() const;
310 void set_timestamp(int64_t value);
311 private:
312 int64_t _internal_timestamp() const;
313 void _internal_set_timestamp(int64_t value);
314 public:
315
316 // @@protoc_insertion_point(class_scope:quic.CachedNetworkParameters)
317 private:
318 class _Internal;
319
320 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
321 typedef void InternalArenaConstructable_;
322 typedef void DestructorSkippable_;
323 struct Impl_ {
324 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
325 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
326 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr serving_region_;
327 int32_t bandwidth_estimate_bytes_per_second_;
328 int32_t min_rtt_ms_;
329 int32_t previous_connection_state_;
330 int32_t max_bandwidth_estimate_bytes_per_second_;
331 int64_t max_bandwidth_timestamp_seconds_;
332 int64_t timestamp_;
333 };
334 union { Impl_ _impl_; };
335 friend struct ::TableStruct_quiche_2fquic_2fcore_2fproto_2fcached_5fnetwork_5fparameters_2eproto;
336 };
337 // ===================================================================
338
339
340 // ===================================================================
341
342 #ifdef __GNUC__
343 #pragma GCC diagnostic push
344 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
345 #endif // __GNUC__
346 // CachedNetworkParameters
347
348 // optional string serving_region = 1;
_internal_has_serving_region()349 inline bool CachedNetworkParameters::_internal_has_serving_region() const {
350 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
351 return value;
352 }
has_serving_region()353 inline bool CachedNetworkParameters::has_serving_region() const {
354 return _internal_has_serving_region();
355 }
clear_serving_region()356 inline void CachedNetworkParameters::clear_serving_region() {
357 _impl_.serving_region_.ClearToEmpty();
358 _impl_._has_bits_[0] &= ~0x00000001u;
359 }
serving_region()360 inline const std::string& CachedNetworkParameters::serving_region() const {
361 // @@protoc_insertion_point(field_get:quic.CachedNetworkParameters.serving_region)
362 return _internal_serving_region();
363 }
364 template <typename ArgT0, typename... ArgT>
365 inline PROTOBUF_ALWAYS_INLINE
set_serving_region(ArgT0 && arg0,ArgT...args)366 void CachedNetworkParameters::set_serving_region(ArgT0&& arg0, ArgT... args) {
367 _impl_._has_bits_[0] |= 0x00000001u;
368 _impl_.serving_region_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
369 // @@protoc_insertion_point(field_set:quic.CachedNetworkParameters.serving_region)
370 }
mutable_serving_region()371 inline std::string* CachedNetworkParameters::mutable_serving_region() {
372 std::string* _s = _internal_mutable_serving_region();
373 // @@protoc_insertion_point(field_mutable:quic.CachedNetworkParameters.serving_region)
374 return _s;
375 }
_internal_serving_region()376 inline const std::string& CachedNetworkParameters::_internal_serving_region() const {
377 return _impl_.serving_region_.Get();
378 }
_internal_set_serving_region(const std::string & value)379 inline void CachedNetworkParameters::_internal_set_serving_region(const std::string& value) {
380 _impl_._has_bits_[0] |= 0x00000001u;
381 _impl_.serving_region_.Set(value, GetArenaForAllocation());
382 }
_internal_mutable_serving_region()383 inline std::string* CachedNetworkParameters::_internal_mutable_serving_region() {
384 _impl_._has_bits_[0] |= 0x00000001u;
385 return _impl_.serving_region_.Mutable(GetArenaForAllocation());
386 }
release_serving_region()387 inline std::string* CachedNetworkParameters::release_serving_region() {
388 // @@protoc_insertion_point(field_release:quic.CachedNetworkParameters.serving_region)
389 if (!_internal_has_serving_region()) {
390 return nullptr;
391 }
392 _impl_._has_bits_[0] &= ~0x00000001u;
393 auto* p = _impl_.serving_region_.Release();
394 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
395 if (_impl_.serving_region_.IsDefault()) {
396 _impl_.serving_region_.Set("", GetArenaForAllocation());
397 }
398 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
399 return p;
400 }
set_allocated_serving_region(std::string * serving_region)401 inline void CachedNetworkParameters::set_allocated_serving_region(std::string* serving_region) {
402 if (serving_region != nullptr) {
403 _impl_._has_bits_[0] |= 0x00000001u;
404 } else {
405 _impl_._has_bits_[0] &= ~0x00000001u;
406 }
407 _impl_.serving_region_.SetAllocated(serving_region, GetArenaForAllocation());
408 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
409 if (_impl_.serving_region_.IsDefault()) {
410 _impl_.serving_region_.Set("", GetArenaForAllocation());
411 }
412 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
413 // @@protoc_insertion_point(field_set_allocated:quic.CachedNetworkParameters.serving_region)
414 }
415
416 // optional int32 bandwidth_estimate_bytes_per_second = 2;
_internal_has_bandwidth_estimate_bytes_per_second()417 inline bool CachedNetworkParameters::_internal_has_bandwidth_estimate_bytes_per_second() const {
418 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
419 return value;
420 }
has_bandwidth_estimate_bytes_per_second()421 inline bool CachedNetworkParameters::has_bandwidth_estimate_bytes_per_second() const {
422 return _internal_has_bandwidth_estimate_bytes_per_second();
423 }
clear_bandwidth_estimate_bytes_per_second()424 inline void CachedNetworkParameters::clear_bandwidth_estimate_bytes_per_second() {
425 _impl_.bandwidth_estimate_bytes_per_second_ = 0;
426 _impl_._has_bits_[0] &= ~0x00000002u;
427 }
_internal_bandwidth_estimate_bytes_per_second()428 inline int32_t CachedNetworkParameters::_internal_bandwidth_estimate_bytes_per_second() const {
429 return _impl_.bandwidth_estimate_bytes_per_second_;
430 }
bandwidth_estimate_bytes_per_second()431 inline int32_t CachedNetworkParameters::bandwidth_estimate_bytes_per_second() const {
432 // @@protoc_insertion_point(field_get:quic.CachedNetworkParameters.bandwidth_estimate_bytes_per_second)
433 return _internal_bandwidth_estimate_bytes_per_second();
434 }
_internal_set_bandwidth_estimate_bytes_per_second(int32_t value)435 inline void CachedNetworkParameters::_internal_set_bandwidth_estimate_bytes_per_second(int32_t value) {
436 _impl_._has_bits_[0] |= 0x00000002u;
437 _impl_.bandwidth_estimate_bytes_per_second_ = value;
438 }
set_bandwidth_estimate_bytes_per_second(int32_t value)439 inline void CachedNetworkParameters::set_bandwidth_estimate_bytes_per_second(int32_t value) {
440 _internal_set_bandwidth_estimate_bytes_per_second(value);
441 // @@protoc_insertion_point(field_set:quic.CachedNetworkParameters.bandwidth_estimate_bytes_per_second)
442 }
443
444 // optional int32 max_bandwidth_estimate_bytes_per_second = 5;
_internal_has_max_bandwidth_estimate_bytes_per_second()445 inline bool CachedNetworkParameters::_internal_has_max_bandwidth_estimate_bytes_per_second() const {
446 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
447 return value;
448 }
has_max_bandwidth_estimate_bytes_per_second()449 inline bool CachedNetworkParameters::has_max_bandwidth_estimate_bytes_per_second() const {
450 return _internal_has_max_bandwidth_estimate_bytes_per_second();
451 }
clear_max_bandwidth_estimate_bytes_per_second()452 inline void CachedNetworkParameters::clear_max_bandwidth_estimate_bytes_per_second() {
453 _impl_.max_bandwidth_estimate_bytes_per_second_ = 0;
454 _impl_._has_bits_[0] &= ~0x00000010u;
455 }
_internal_max_bandwidth_estimate_bytes_per_second()456 inline int32_t CachedNetworkParameters::_internal_max_bandwidth_estimate_bytes_per_second() const {
457 return _impl_.max_bandwidth_estimate_bytes_per_second_;
458 }
max_bandwidth_estimate_bytes_per_second()459 inline int32_t CachedNetworkParameters::max_bandwidth_estimate_bytes_per_second() const {
460 // @@protoc_insertion_point(field_get:quic.CachedNetworkParameters.max_bandwidth_estimate_bytes_per_second)
461 return _internal_max_bandwidth_estimate_bytes_per_second();
462 }
_internal_set_max_bandwidth_estimate_bytes_per_second(int32_t value)463 inline void CachedNetworkParameters::_internal_set_max_bandwidth_estimate_bytes_per_second(int32_t value) {
464 _impl_._has_bits_[0] |= 0x00000010u;
465 _impl_.max_bandwidth_estimate_bytes_per_second_ = value;
466 }
set_max_bandwidth_estimate_bytes_per_second(int32_t value)467 inline void CachedNetworkParameters::set_max_bandwidth_estimate_bytes_per_second(int32_t value) {
468 _internal_set_max_bandwidth_estimate_bytes_per_second(value);
469 // @@protoc_insertion_point(field_set:quic.CachedNetworkParameters.max_bandwidth_estimate_bytes_per_second)
470 }
471
472 // optional int64 max_bandwidth_timestamp_seconds = 6;
_internal_has_max_bandwidth_timestamp_seconds()473 inline bool CachedNetworkParameters::_internal_has_max_bandwidth_timestamp_seconds() const {
474 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
475 return value;
476 }
has_max_bandwidth_timestamp_seconds()477 inline bool CachedNetworkParameters::has_max_bandwidth_timestamp_seconds() const {
478 return _internal_has_max_bandwidth_timestamp_seconds();
479 }
clear_max_bandwidth_timestamp_seconds()480 inline void CachedNetworkParameters::clear_max_bandwidth_timestamp_seconds() {
481 _impl_.max_bandwidth_timestamp_seconds_ = int64_t{0};
482 _impl_._has_bits_[0] &= ~0x00000020u;
483 }
_internal_max_bandwidth_timestamp_seconds()484 inline int64_t CachedNetworkParameters::_internal_max_bandwidth_timestamp_seconds() const {
485 return _impl_.max_bandwidth_timestamp_seconds_;
486 }
max_bandwidth_timestamp_seconds()487 inline int64_t CachedNetworkParameters::max_bandwidth_timestamp_seconds() const {
488 // @@protoc_insertion_point(field_get:quic.CachedNetworkParameters.max_bandwidth_timestamp_seconds)
489 return _internal_max_bandwidth_timestamp_seconds();
490 }
_internal_set_max_bandwidth_timestamp_seconds(int64_t value)491 inline void CachedNetworkParameters::_internal_set_max_bandwidth_timestamp_seconds(int64_t value) {
492 _impl_._has_bits_[0] |= 0x00000020u;
493 _impl_.max_bandwidth_timestamp_seconds_ = value;
494 }
set_max_bandwidth_timestamp_seconds(int64_t value)495 inline void CachedNetworkParameters::set_max_bandwidth_timestamp_seconds(int64_t value) {
496 _internal_set_max_bandwidth_timestamp_seconds(value);
497 // @@protoc_insertion_point(field_set:quic.CachedNetworkParameters.max_bandwidth_timestamp_seconds)
498 }
499
500 // optional int32 min_rtt_ms = 3;
_internal_has_min_rtt_ms()501 inline bool CachedNetworkParameters::_internal_has_min_rtt_ms() const {
502 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
503 return value;
504 }
has_min_rtt_ms()505 inline bool CachedNetworkParameters::has_min_rtt_ms() const {
506 return _internal_has_min_rtt_ms();
507 }
clear_min_rtt_ms()508 inline void CachedNetworkParameters::clear_min_rtt_ms() {
509 _impl_.min_rtt_ms_ = 0;
510 _impl_._has_bits_[0] &= ~0x00000004u;
511 }
_internal_min_rtt_ms()512 inline int32_t CachedNetworkParameters::_internal_min_rtt_ms() const {
513 return _impl_.min_rtt_ms_;
514 }
min_rtt_ms()515 inline int32_t CachedNetworkParameters::min_rtt_ms() const {
516 // @@protoc_insertion_point(field_get:quic.CachedNetworkParameters.min_rtt_ms)
517 return _internal_min_rtt_ms();
518 }
_internal_set_min_rtt_ms(int32_t value)519 inline void CachedNetworkParameters::_internal_set_min_rtt_ms(int32_t value) {
520 _impl_._has_bits_[0] |= 0x00000004u;
521 _impl_.min_rtt_ms_ = value;
522 }
set_min_rtt_ms(int32_t value)523 inline void CachedNetworkParameters::set_min_rtt_ms(int32_t value) {
524 _internal_set_min_rtt_ms(value);
525 // @@protoc_insertion_point(field_set:quic.CachedNetworkParameters.min_rtt_ms)
526 }
527
528 // optional int32 previous_connection_state = 4;
_internal_has_previous_connection_state()529 inline bool CachedNetworkParameters::_internal_has_previous_connection_state() const {
530 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
531 return value;
532 }
has_previous_connection_state()533 inline bool CachedNetworkParameters::has_previous_connection_state() const {
534 return _internal_has_previous_connection_state();
535 }
clear_previous_connection_state()536 inline void CachedNetworkParameters::clear_previous_connection_state() {
537 _impl_.previous_connection_state_ = 0;
538 _impl_._has_bits_[0] &= ~0x00000008u;
539 }
_internal_previous_connection_state()540 inline int32_t CachedNetworkParameters::_internal_previous_connection_state() const {
541 return _impl_.previous_connection_state_;
542 }
previous_connection_state()543 inline int32_t CachedNetworkParameters::previous_connection_state() const {
544 // @@protoc_insertion_point(field_get:quic.CachedNetworkParameters.previous_connection_state)
545 return _internal_previous_connection_state();
546 }
_internal_set_previous_connection_state(int32_t value)547 inline void CachedNetworkParameters::_internal_set_previous_connection_state(int32_t value) {
548 _impl_._has_bits_[0] |= 0x00000008u;
549 _impl_.previous_connection_state_ = value;
550 }
set_previous_connection_state(int32_t value)551 inline void CachedNetworkParameters::set_previous_connection_state(int32_t value) {
552 _internal_set_previous_connection_state(value);
553 // @@protoc_insertion_point(field_set:quic.CachedNetworkParameters.previous_connection_state)
554 }
555
556 // optional int64 timestamp = 7;
_internal_has_timestamp()557 inline bool CachedNetworkParameters::_internal_has_timestamp() const {
558 bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
559 return value;
560 }
has_timestamp()561 inline bool CachedNetworkParameters::has_timestamp() const {
562 return _internal_has_timestamp();
563 }
clear_timestamp()564 inline void CachedNetworkParameters::clear_timestamp() {
565 _impl_.timestamp_ = int64_t{0};
566 _impl_._has_bits_[0] &= ~0x00000040u;
567 }
_internal_timestamp()568 inline int64_t CachedNetworkParameters::_internal_timestamp() const {
569 return _impl_.timestamp_;
570 }
timestamp()571 inline int64_t CachedNetworkParameters::timestamp() const {
572 // @@protoc_insertion_point(field_get:quic.CachedNetworkParameters.timestamp)
573 return _internal_timestamp();
574 }
_internal_set_timestamp(int64_t value)575 inline void CachedNetworkParameters::_internal_set_timestamp(int64_t value) {
576 _impl_._has_bits_[0] |= 0x00000040u;
577 _impl_.timestamp_ = value;
578 }
set_timestamp(int64_t value)579 inline void CachedNetworkParameters::set_timestamp(int64_t value) {
580 _internal_set_timestamp(value);
581 // @@protoc_insertion_point(field_set:quic.CachedNetworkParameters.timestamp)
582 }
583
584 #ifdef __GNUC__
585 #pragma GCC diagnostic pop
586 #endif // __GNUC__
587
588 // @@protoc_insertion_point(namespace_scope)
589
590 } // namespace quic
591
592 PROTOBUF_NAMESPACE_OPEN
593
594 template <> struct is_proto_enum< ::quic::CachedNetworkParameters_PreviousConnectionState> : ::std::true_type {};
595
596 PROTOBUF_NAMESPACE_CLOSE
597
598 // @@protoc_insertion_point(global_scope)
599
600 #include <google/protobuf/port_undef.inc>
601 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_quiche_2fquic_2fcore_2fproto_2fcached_5fnetwork_5fparameters_2eproto
602