1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: fcp/client/cache/cache_manifest.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_fcp_2fclient_2fcache_2fcache_5fmanifest_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_fcp_2fclient_2fcache_2fcache_5fmanifest_2eproto
6
7 #include <cstdint>
8 #include <limits>
9 #include <string>
10
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/message_lite.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/map.h> // IWYU pragma: export
33 #include <google/protobuf/map_entry_lite.h>
34 #include <google/protobuf/map_field_lite.h>
35 #include <google/protobuf/any.pb.h>
36 #include <google/protobuf/timestamp.pb.h>
37 // @@protoc_insertion_point(includes)
38 #include <google/protobuf/port_def.inc>
39 #define PROTOBUF_INTERNAL_EXPORT_fcp_2fclient_2fcache_2fcache_5fmanifest_2eproto
40 PROTOBUF_NAMESPACE_OPEN
41 namespace internal {
42 class AnyMetadata;
43 } // namespace internal
44 PROTOBUF_NAMESPACE_CLOSE
45
46 // Internal implementation detail -- do not use these members.
47 struct TableStruct_fcp_2fclient_2fcache_2fcache_5fmanifest_2eproto {
48 static const ::uint32_t offsets[];
49 };
50 namespace fcp {
51 namespace client {
52 namespace cache {
53 class CacheManifest;
54 struct CacheManifestDefaultTypeInternal;
55 extern CacheManifestDefaultTypeInternal _CacheManifest_default_instance_;
56 class CacheManifest_CacheEntry_DoNotUse;
57 struct CacheManifest_CacheEntry_DoNotUseDefaultTypeInternal;
58 extern CacheManifest_CacheEntry_DoNotUseDefaultTypeInternal _CacheManifest_CacheEntry_DoNotUse_default_instance_;
59 class CachedResource;
60 struct CachedResourceDefaultTypeInternal;
61 extern CachedResourceDefaultTypeInternal _CachedResource_default_instance_;
62 } // namespace cache
63 } // namespace client
64 } // namespace fcp
65 PROTOBUF_NAMESPACE_OPEN
66 template<> ::fcp::client::cache::CacheManifest* Arena::CreateMaybeMessage<::fcp::client::cache::CacheManifest>(Arena*);
67 template<> ::fcp::client::cache::CacheManifest_CacheEntry_DoNotUse* Arena::CreateMaybeMessage<::fcp::client::cache::CacheManifest_CacheEntry_DoNotUse>(Arena*);
68 template<> ::fcp::client::cache::CachedResource* Arena::CreateMaybeMessage<::fcp::client::cache::CachedResource>(Arena*);
69 PROTOBUF_NAMESPACE_CLOSE
70 namespace fcp {
71 namespace client {
72 namespace cache {
73
74 // ===================================================================
75
76 class CacheManifest_CacheEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntryLite<CacheManifest_CacheEntry_DoNotUse,
77 std::string, ::fcp::client::cache::CachedResource,
78 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
79 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> {
80 public:
81 typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntryLite<CacheManifest_CacheEntry_DoNotUse,
82 std::string, ::fcp::client::cache::CachedResource,
83 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
84 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> SuperType;
85 CacheManifest_CacheEntry_DoNotUse();
86 explicit PROTOBUF_CONSTEXPR CacheManifest_CacheEntry_DoNotUse(
87 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
88 explicit CacheManifest_CacheEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
89 void MergeFrom(const CacheManifest_CacheEntry_DoNotUse& other);
internal_default_instance()90 static const CacheManifest_CacheEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const CacheManifest_CacheEntry_DoNotUse*>(&_CacheManifest_CacheEntry_DoNotUse_default_instance_); }
ValidateKey(std::string * s)91 static bool ValidateKey(std::string* s) {
92 return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "fcp.client.cache.CacheManifest.CacheEntry.key");
93 }
ValidateValue(void *)94 static bool ValidateValue(void*) { return true; }
95 friend struct ::TableStruct_fcp_2fclient_2fcache_2fcache_5fmanifest_2eproto;
96 };
97
98 // -------------------------------------------------------------------
99
100 class CacheManifest final :
101 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:fcp.client.cache.CacheManifest) */ {
102 public:
CacheManifest()103 inline CacheManifest() : CacheManifest(nullptr) {}
104 ~CacheManifest() override;
105 explicit PROTOBUF_CONSTEXPR CacheManifest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
106
107 CacheManifest(const CacheManifest& from);
CacheManifest(CacheManifest && from)108 CacheManifest(CacheManifest&& from) noexcept
109 : CacheManifest() {
110 *this = ::std::move(from);
111 }
112
113 inline CacheManifest& operator=(const CacheManifest& from) {
114 if (this == &from) return *this;
115 CopyFrom(from);
116 return *this;
117 }
118 inline CacheManifest& operator=(CacheManifest&& from) noexcept {
119 if (this == &from) return *this;
120 if (GetOwningArena() == from.GetOwningArena()
121 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
122 && GetOwningArena() != nullptr
123 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
124 ) {
125 InternalSwap(&from);
126 } else {
127 CopyFrom(from);
128 }
129 return *this;
130 }
131
default_instance()132 static const CacheManifest& default_instance() {
133 return *internal_default_instance();
134 }
internal_default_instance()135 static inline const CacheManifest* internal_default_instance() {
136 return reinterpret_cast<const CacheManifest*>(
137 &_CacheManifest_default_instance_);
138 }
139 static constexpr int kIndexInFileMessages =
140 1;
141
swap(CacheManifest & a,CacheManifest & b)142 friend void swap(CacheManifest& a, CacheManifest& b) {
143 a.Swap(&b);
144 }
Swap(CacheManifest * other)145 inline void Swap(CacheManifest* other) {
146 if (other == this) return;
147 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
148 if (GetOwningArena() != nullptr &&
149 GetOwningArena() == other->GetOwningArena()) {
150 #else // PROTOBUF_FORCE_COPY_IN_SWAP
151 if (GetOwningArena() == other->GetOwningArena()) {
152 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
153 InternalSwap(other);
154 } else {
155 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
156 }
157 }
158 void UnsafeArenaSwap(CacheManifest* other) {
159 if (other == this) return;
160 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
161 InternalSwap(other);
162 }
163
164 // implements Message ----------------------------------------------
165
166 CacheManifest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
167 return CreateMaybeMessage<CacheManifest>(arena);
168 }
169 CacheManifest* New() const {
170 return New(nullptr);
171 }
172 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
173 void CopyFrom(const CacheManifest& from);
174 void MergeFrom(const CacheManifest& from);
175 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
176 bool IsInitialized() const final;
177
178 size_t ByteSizeLong() const final;
179 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
180 ::uint8_t* _InternalSerialize(
181 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
182 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
183
184 private:
185 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
186 void SharedDtor();
187 void SetCachedSize(int size) const;
188 void InternalSwap(CacheManifest* other);
189
190 private:
191 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
192 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
193 return "fcp.client.cache.CacheManifest";
194 }
195 protected:
196 explicit CacheManifest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
197 bool is_message_owned = false);
198 public:
199
200 std::string GetTypeName() const final;
201
202 // nested types ----------------------------------------------------
203
204
205 // accessors -------------------------------------------------------
206
207 enum : int {
208 kCacheFieldNumber = 1,
209 };
210 // map<string, .fcp.client.cache.CachedResource> cache = 1;
211 int cache_size() const;
212 private:
213 int _internal_cache_size() const;
214 public:
215 void clear_cache();
216 private:
217 const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::fcp::client::cache::CachedResource >&
218 _internal_cache() const;
219 ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::fcp::client::cache::CachedResource >*
220 _internal_mutable_cache();
221 public:
222 const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::fcp::client::cache::CachedResource >&
223 cache() const;
224 ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::fcp::client::cache::CachedResource >*
225 mutable_cache();
226
227 // @@protoc_insertion_point(class_scope:fcp.client.cache.CacheManifest)
228 private:
229 class _Internal;
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::MapFieldLite<
236 CacheManifest_CacheEntry_DoNotUse,
237 std::string, ::fcp::client::cache::CachedResource,
238 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
239 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> cache_;
240 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
241 };
242 union { Impl_ _impl_; };
243 friend struct ::TableStruct_fcp_2fclient_2fcache_2fcache_5fmanifest_2eproto;
244 };
245 // -------------------------------------------------------------------
246
247 class CachedResource final :
248 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:fcp.client.cache.CachedResource) */ {
249 public:
CachedResource()250 inline CachedResource() : CachedResource(nullptr) {}
251 ~CachedResource() override;
252 explicit PROTOBUF_CONSTEXPR CachedResource(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
253
254 CachedResource(const CachedResource& from);
CachedResource(CachedResource && from)255 CachedResource(CachedResource&& from) noexcept
256 : CachedResource() {
257 *this = ::std::move(from);
258 }
259
260 inline CachedResource& operator=(const CachedResource& from) {
261 if (this == &from) return *this;
262 CopyFrom(from);
263 return *this;
264 }
265 inline CachedResource& operator=(CachedResource&& from) noexcept {
266 if (this == &from) return *this;
267 if (GetOwningArena() == from.GetOwningArena()
268 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
269 && GetOwningArena() != nullptr
270 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
271 ) {
272 InternalSwap(&from);
273 } else {
274 CopyFrom(from);
275 }
276 return *this;
277 }
278
default_instance()279 static const CachedResource& default_instance() {
280 return *internal_default_instance();
281 }
internal_default_instance()282 static inline const CachedResource* internal_default_instance() {
283 return reinterpret_cast<const CachedResource*>(
284 &_CachedResource_default_instance_);
285 }
286 static constexpr int kIndexInFileMessages =
287 2;
288
swap(CachedResource & a,CachedResource & b)289 friend void swap(CachedResource& a, CachedResource& b) {
290 a.Swap(&b);
291 }
Swap(CachedResource * other)292 inline void Swap(CachedResource* other) {
293 if (other == this) return;
294 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
295 if (GetOwningArena() != nullptr &&
296 GetOwningArena() == other->GetOwningArena()) {
297 #else // PROTOBUF_FORCE_COPY_IN_SWAP
298 if (GetOwningArena() == other->GetOwningArena()) {
299 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
300 InternalSwap(other);
301 } else {
302 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
303 }
304 }
305 void UnsafeArenaSwap(CachedResource* other) {
306 if (other == this) return;
307 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
308 InternalSwap(other);
309 }
310
311 // implements Message ----------------------------------------------
312
313 CachedResource* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
314 return CreateMaybeMessage<CachedResource>(arena);
315 }
316 CachedResource* New() const {
317 return New(nullptr);
318 }
319 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
320 void CopyFrom(const CachedResource& from);
321 void MergeFrom(const CachedResource& from);
322 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
323 bool IsInitialized() const final;
324
325 size_t ByteSizeLong() const final;
326 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
327 ::uint8_t* _InternalSerialize(
328 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
329 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
330
331 private:
332 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
333 void SharedDtor();
334 void SetCachedSize(int size) const;
335 void InternalSwap(CachedResource* other);
336
337 private:
338 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
339 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
340 return "fcp.client.cache.CachedResource";
341 }
342 protected:
343 explicit CachedResource(::PROTOBUF_NAMESPACE_ID::Arena* arena,
344 bool is_message_owned = false);
345 public:
346
347 std::string GetTypeName() const final;
348
349 // nested types ----------------------------------------------------
350
351 // accessors -------------------------------------------------------
352
353 enum : int {
354 kFileNameFieldNumber = 1,
355 kMetadataFieldNumber = 2,
356 kExpiryTimeFieldNumber = 3,
357 kLastAccessedTimeFieldNumber = 4,
358 };
359 // string file_name = 1;
360 void clear_file_name();
361 const std::string& file_name() const;
362 template <typename ArgT0 = const std::string&, typename... ArgT>
363 void set_file_name(ArgT0&& arg0, ArgT... args);
364 std::string* mutable_file_name();
365 PROTOBUF_NODISCARD std::string* release_file_name();
366 void set_allocated_file_name(std::string* file_name);
367 private:
368 const std::string& _internal_file_name() const;
369 inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_name(const std::string& value);
370 std::string* _internal_mutable_file_name();
371 public:
372
373 // .google.protobuf.Any metadata = 2;
374 bool has_metadata() const;
375 private:
376 bool _internal_has_metadata() const;
377 public:
378 void clear_metadata();
379 const ::PROTOBUF_NAMESPACE_ID::Any& metadata() const;
380 PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Any* release_metadata();
381 ::PROTOBUF_NAMESPACE_ID::Any* mutable_metadata();
382 void set_allocated_metadata(::PROTOBUF_NAMESPACE_ID::Any* metadata);
383 private:
384 const ::PROTOBUF_NAMESPACE_ID::Any& _internal_metadata() const;
385 ::PROTOBUF_NAMESPACE_ID::Any* _internal_mutable_metadata();
386 public:
387 void unsafe_arena_set_allocated_metadata(
388 ::PROTOBUF_NAMESPACE_ID::Any* metadata);
389 ::PROTOBUF_NAMESPACE_ID::Any* unsafe_arena_release_metadata();
390
391 // .google.protobuf.Timestamp expiry_time = 3;
392 bool has_expiry_time() const;
393 private:
394 bool _internal_has_expiry_time() const;
395 public:
396 void clear_expiry_time();
397 const ::PROTOBUF_NAMESPACE_ID::Timestamp& expiry_time() const;
398 PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_expiry_time();
399 ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_expiry_time();
400 void set_allocated_expiry_time(::PROTOBUF_NAMESPACE_ID::Timestamp* expiry_time);
401 private:
402 const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_expiry_time() const;
403 ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_expiry_time();
404 public:
405 void unsafe_arena_set_allocated_expiry_time(
406 ::PROTOBUF_NAMESPACE_ID::Timestamp* expiry_time);
407 ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_expiry_time();
408
409 // .google.protobuf.Timestamp last_accessed_time = 4;
410 bool has_last_accessed_time() const;
411 private:
412 bool _internal_has_last_accessed_time() const;
413 public:
414 void clear_last_accessed_time();
415 const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_accessed_time() const;
416 PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_last_accessed_time();
417 ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_accessed_time();
418 void set_allocated_last_accessed_time(::PROTOBUF_NAMESPACE_ID::Timestamp* last_accessed_time);
419 private:
420 const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_last_accessed_time() const;
421 ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_last_accessed_time();
422 public:
423 void unsafe_arena_set_allocated_last_accessed_time(
424 ::PROTOBUF_NAMESPACE_ID::Timestamp* last_accessed_time);
425 ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_last_accessed_time();
426
427 // @@protoc_insertion_point(class_scope:fcp.client.cache.CachedResource)
428 private:
429 class _Internal;
430
431 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
432 typedef void InternalArenaConstructable_;
433 typedef void DestructorSkippable_;
434 struct Impl_ {
435 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_;
436 ::PROTOBUF_NAMESPACE_ID::Any* metadata_;
437 ::PROTOBUF_NAMESPACE_ID::Timestamp* expiry_time_;
438 ::PROTOBUF_NAMESPACE_ID::Timestamp* last_accessed_time_;
439 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
440 };
441 union { Impl_ _impl_; };
442 friend struct ::TableStruct_fcp_2fclient_2fcache_2fcache_5fmanifest_2eproto;
443 };
444 // ===================================================================
445
446
447 // ===================================================================
448
449 #ifdef __GNUC__
450 #pragma GCC diagnostic push
451 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
452 #endif // __GNUC__
453 // -------------------------------------------------------------------
454
455 // CacheManifest
456
457 // map<string, .fcp.client.cache.CachedResource> cache = 1;
_internal_cache_size()458 inline int CacheManifest::_internal_cache_size() const {
459 return _impl_.cache_.size();
460 }
cache_size()461 inline int CacheManifest::cache_size() const {
462 return _internal_cache_size();
463 }
clear_cache()464 inline void CacheManifest::clear_cache() {
465 _impl_.cache_.Clear();
466 }
467 inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::fcp::client::cache::CachedResource >&
_internal_cache()468 CacheManifest::_internal_cache() const {
469 return _impl_.cache_.GetMap();
470 }
471 inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::fcp::client::cache::CachedResource >&
cache()472 CacheManifest::cache() const {
473 // @@protoc_insertion_point(field_map:fcp.client.cache.CacheManifest.cache)
474 return _internal_cache();
475 }
476 inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::fcp::client::cache::CachedResource >*
_internal_mutable_cache()477 CacheManifest::_internal_mutable_cache() {
478 return _impl_.cache_.MutableMap();
479 }
480 inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::fcp::client::cache::CachedResource >*
mutable_cache()481 CacheManifest::mutable_cache() {
482 // @@protoc_insertion_point(field_mutable_map:fcp.client.cache.CacheManifest.cache)
483 return _internal_mutable_cache();
484 }
485
486 // -------------------------------------------------------------------
487
488 // CachedResource
489
490 // string file_name = 1;
clear_file_name()491 inline void CachedResource::clear_file_name() {
492 _impl_.file_name_.ClearToEmpty();
493 }
file_name()494 inline const std::string& CachedResource::file_name() const {
495 // @@protoc_insertion_point(field_get:fcp.client.cache.CachedResource.file_name)
496 return _internal_file_name();
497 }
498 template <typename ArgT0, typename... ArgT>
499 inline PROTOBUF_ALWAYS_INLINE
set_file_name(ArgT0 && arg0,ArgT...args)500 void CachedResource::set_file_name(ArgT0&& arg0, ArgT... args) {
501
502 _impl_.file_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
503 // @@protoc_insertion_point(field_set:fcp.client.cache.CachedResource.file_name)
504 }
mutable_file_name()505 inline std::string* CachedResource::mutable_file_name() {
506 std::string* _s = _internal_mutable_file_name();
507 // @@protoc_insertion_point(field_mutable:fcp.client.cache.CachedResource.file_name)
508 return _s;
509 }
_internal_file_name()510 inline const std::string& CachedResource::_internal_file_name() const {
511 return _impl_.file_name_.Get();
512 }
_internal_set_file_name(const std::string & value)513 inline void CachedResource::_internal_set_file_name(const std::string& value) {
514
515 _impl_.file_name_.Set(value, GetArenaForAllocation());
516 }
_internal_mutable_file_name()517 inline std::string* CachedResource::_internal_mutable_file_name() {
518
519 return _impl_.file_name_.Mutable(GetArenaForAllocation());
520 }
release_file_name()521 inline std::string* CachedResource::release_file_name() {
522 // @@protoc_insertion_point(field_release:fcp.client.cache.CachedResource.file_name)
523 return _impl_.file_name_.Release();
524 }
set_allocated_file_name(std::string * file_name)525 inline void CachedResource::set_allocated_file_name(std::string* file_name) {
526 _impl_.file_name_.SetAllocated(file_name, GetArenaForAllocation());
527 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
528 if (_impl_.file_name_.IsDefault()) {
529 _impl_.file_name_.Set("", GetArenaForAllocation());
530 }
531 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
532 // @@protoc_insertion_point(field_set_allocated:fcp.client.cache.CachedResource.file_name)
533 }
534
535 // .google.protobuf.Any metadata = 2;
_internal_has_metadata()536 inline bool CachedResource::_internal_has_metadata() const {
537 return this != internal_default_instance() && _impl_.metadata_ != nullptr;
538 }
has_metadata()539 inline bool CachedResource::has_metadata() const {
540 return _internal_has_metadata();
541 }
_internal_metadata()542 inline const ::PROTOBUF_NAMESPACE_ID::Any& CachedResource::_internal_metadata() const {
543 const ::PROTOBUF_NAMESPACE_ID::Any* p = _impl_.metadata_;
544 return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Any&>(
545 ::PROTOBUF_NAMESPACE_ID::_Any_default_instance_);
546 }
metadata()547 inline const ::PROTOBUF_NAMESPACE_ID::Any& CachedResource::metadata() const {
548 // @@protoc_insertion_point(field_get:fcp.client.cache.CachedResource.metadata)
549 return _internal_metadata();
550 }
unsafe_arena_set_allocated_metadata(::PROTOBUF_NAMESPACE_ID::Any * metadata)551 inline void CachedResource::unsafe_arena_set_allocated_metadata(
552 ::PROTOBUF_NAMESPACE_ID::Any* metadata) {
553 if (GetArenaForAllocation() == nullptr) {
554 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.metadata_);
555 }
556 _impl_.metadata_ = metadata;
557 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:fcp.client.cache.CachedResource.metadata)
558 }
release_metadata()559 inline ::PROTOBUF_NAMESPACE_ID::Any* CachedResource::release_metadata() {
560
561 ::PROTOBUF_NAMESPACE_ID::Any* temp = _impl_.metadata_;
562 _impl_.metadata_ = nullptr;
563 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
564 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
565 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
566 if (GetArenaForAllocation() == nullptr) { delete old; }
567 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
568 if (GetArenaForAllocation() != nullptr) {
569 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
570 }
571 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
572 return temp;
573 }
unsafe_arena_release_metadata()574 inline ::PROTOBUF_NAMESPACE_ID::Any* CachedResource::unsafe_arena_release_metadata() {
575 // @@protoc_insertion_point(field_release:fcp.client.cache.CachedResource.metadata)
576
577 ::PROTOBUF_NAMESPACE_ID::Any* temp = _impl_.metadata_;
578 _impl_.metadata_ = nullptr;
579 return temp;
580 }
_internal_mutable_metadata()581 inline ::PROTOBUF_NAMESPACE_ID::Any* CachedResource::_internal_mutable_metadata() {
582
583 if (_impl_.metadata_ == nullptr) {
584 auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Any>(GetArenaForAllocation());
585 _impl_.metadata_ = p;
586 }
587 return _impl_.metadata_;
588 }
mutable_metadata()589 inline ::PROTOBUF_NAMESPACE_ID::Any* CachedResource::mutable_metadata() {
590 ::PROTOBUF_NAMESPACE_ID::Any* _msg = _internal_mutable_metadata();
591 // @@protoc_insertion_point(field_mutable:fcp.client.cache.CachedResource.metadata)
592 return _msg;
593 }
set_allocated_metadata(::PROTOBUF_NAMESPACE_ID::Any * metadata)594 inline void CachedResource::set_allocated_metadata(::PROTOBUF_NAMESPACE_ID::Any* metadata) {
595 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
596 if (message_arena == nullptr) {
597 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.metadata_);
598 }
599 if (metadata) {
600 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
601 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
602 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(metadata));
603 if (message_arena != submessage_arena) {
604 metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
605 message_arena, metadata, submessage_arena);
606 }
607
608 } else {
609
610 }
611 _impl_.metadata_ = metadata;
612 // @@protoc_insertion_point(field_set_allocated:fcp.client.cache.CachedResource.metadata)
613 }
614
615 // .google.protobuf.Timestamp expiry_time = 3;
_internal_has_expiry_time()616 inline bool CachedResource::_internal_has_expiry_time() const {
617 return this != internal_default_instance() && _impl_.expiry_time_ != nullptr;
618 }
has_expiry_time()619 inline bool CachedResource::has_expiry_time() const {
620 return _internal_has_expiry_time();
621 }
_internal_expiry_time()622 inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& CachedResource::_internal_expiry_time() const {
623 const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.expiry_time_;
624 return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Timestamp&>(
625 ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
626 }
expiry_time()627 inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& CachedResource::expiry_time() const {
628 // @@protoc_insertion_point(field_get:fcp.client.cache.CachedResource.expiry_time)
629 return _internal_expiry_time();
630 }
unsafe_arena_set_allocated_expiry_time(::PROTOBUF_NAMESPACE_ID::Timestamp * expiry_time)631 inline void CachedResource::unsafe_arena_set_allocated_expiry_time(
632 ::PROTOBUF_NAMESPACE_ID::Timestamp* expiry_time) {
633 if (GetArenaForAllocation() == nullptr) {
634 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.expiry_time_);
635 }
636 _impl_.expiry_time_ = expiry_time;
637 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:fcp.client.cache.CachedResource.expiry_time)
638 }
release_expiry_time()639 inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CachedResource::release_expiry_time() {
640
641 ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.expiry_time_;
642 _impl_.expiry_time_ = nullptr;
643 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
644 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
645 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
646 if (GetArenaForAllocation() == nullptr) { delete old; }
647 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
648 if (GetArenaForAllocation() != nullptr) {
649 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
650 }
651 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
652 return temp;
653 }
unsafe_arena_release_expiry_time()654 inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CachedResource::unsafe_arena_release_expiry_time() {
655 // @@protoc_insertion_point(field_release:fcp.client.cache.CachedResource.expiry_time)
656
657 ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.expiry_time_;
658 _impl_.expiry_time_ = nullptr;
659 return temp;
660 }
_internal_mutable_expiry_time()661 inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CachedResource::_internal_mutable_expiry_time() {
662
663 if (_impl_.expiry_time_ == nullptr) {
664 auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation());
665 _impl_.expiry_time_ = p;
666 }
667 return _impl_.expiry_time_;
668 }
mutable_expiry_time()669 inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CachedResource::mutable_expiry_time() {
670 ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_expiry_time();
671 // @@protoc_insertion_point(field_mutable:fcp.client.cache.CachedResource.expiry_time)
672 return _msg;
673 }
set_allocated_expiry_time(::PROTOBUF_NAMESPACE_ID::Timestamp * expiry_time)674 inline void CachedResource::set_allocated_expiry_time(::PROTOBUF_NAMESPACE_ID::Timestamp* expiry_time) {
675 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
676 if (message_arena == nullptr) {
677 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.expiry_time_);
678 }
679 if (expiry_time) {
680 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
681 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
682 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(expiry_time));
683 if (message_arena != submessage_arena) {
684 expiry_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
685 message_arena, expiry_time, submessage_arena);
686 }
687
688 } else {
689
690 }
691 _impl_.expiry_time_ = expiry_time;
692 // @@protoc_insertion_point(field_set_allocated:fcp.client.cache.CachedResource.expiry_time)
693 }
694
695 // .google.protobuf.Timestamp last_accessed_time = 4;
_internal_has_last_accessed_time()696 inline bool CachedResource::_internal_has_last_accessed_time() const {
697 return this != internal_default_instance() && _impl_.last_accessed_time_ != nullptr;
698 }
has_last_accessed_time()699 inline bool CachedResource::has_last_accessed_time() const {
700 return _internal_has_last_accessed_time();
701 }
_internal_last_accessed_time()702 inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& CachedResource::_internal_last_accessed_time() const {
703 const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.last_accessed_time_;
704 return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Timestamp&>(
705 ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
706 }
last_accessed_time()707 inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& CachedResource::last_accessed_time() const {
708 // @@protoc_insertion_point(field_get:fcp.client.cache.CachedResource.last_accessed_time)
709 return _internal_last_accessed_time();
710 }
unsafe_arena_set_allocated_last_accessed_time(::PROTOBUF_NAMESPACE_ID::Timestamp * last_accessed_time)711 inline void CachedResource::unsafe_arena_set_allocated_last_accessed_time(
712 ::PROTOBUF_NAMESPACE_ID::Timestamp* last_accessed_time) {
713 if (GetArenaForAllocation() == nullptr) {
714 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.last_accessed_time_);
715 }
716 _impl_.last_accessed_time_ = last_accessed_time;
717 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:fcp.client.cache.CachedResource.last_accessed_time)
718 }
release_last_accessed_time()719 inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CachedResource::release_last_accessed_time() {
720
721 ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.last_accessed_time_;
722 _impl_.last_accessed_time_ = nullptr;
723 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
724 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
725 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
726 if (GetArenaForAllocation() == nullptr) { delete old; }
727 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
728 if (GetArenaForAllocation() != nullptr) {
729 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
730 }
731 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
732 return temp;
733 }
unsafe_arena_release_last_accessed_time()734 inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CachedResource::unsafe_arena_release_last_accessed_time() {
735 // @@protoc_insertion_point(field_release:fcp.client.cache.CachedResource.last_accessed_time)
736
737 ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.last_accessed_time_;
738 _impl_.last_accessed_time_ = nullptr;
739 return temp;
740 }
_internal_mutable_last_accessed_time()741 inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CachedResource::_internal_mutable_last_accessed_time() {
742
743 if (_impl_.last_accessed_time_ == nullptr) {
744 auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation());
745 _impl_.last_accessed_time_ = p;
746 }
747 return _impl_.last_accessed_time_;
748 }
mutable_last_accessed_time()749 inline ::PROTOBUF_NAMESPACE_ID::Timestamp* CachedResource::mutable_last_accessed_time() {
750 ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_last_accessed_time();
751 // @@protoc_insertion_point(field_mutable:fcp.client.cache.CachedResource.last_accessed_time)
752 return _msg;
753 }
set_allocated_last_accessed_time(::PROTOBUF_NAMESPACE_ID::Timestamp * last_accessed_time)754 inline void CachedResource::set_allocated_last_accessed_time(::PROTOBUF_NAMESPACE_ID::Timestamp* last_accessed_time) {
755 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
756 if (message_arena == nullptr) {
757 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.last_accessed_time_);
758 }
759 if (last_accessed_time) {
760 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
761 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
762 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_accessed_time));
763 if (message_arena != submessage_arena) {
764 last_accessed_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
765 message_arena, last_accessed_time, submessage_arena);
766 }
767
768 } else {
769
770 }
771 _impl_.last_accessed_time_ = last_accessed_time;
772 // @@protoc_insertion_point(field_set_allocated:fcp.client.cache.CachedResource.last_accessed_time)
773 }
774
775 #ifdef __GNUC__
776 #pragma GCC diagnostic pop
777 #endif // __GNUC__
778 // -------------------------------------------------------------------
779
780 // -------------------------------------------------------------------
781
782
783 // @@protoc_insertion_point(namespace_scope)
784
785 } // namespace cache
786 } // namespace client
787 } // namespace fcp
788
789 // @@protoc_insertion_point(global_scope)
790
791 #include <google/protobuf/port_undef.inc>
792 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_fcp_2fclient_2fcache_2fcache_5fmanifest_2eproto
793