1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: fcp/client/http/http_resource_metadata.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_fcp_2fclient_2fhttp_2fhttp_5fresource_5fmetadata_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_fcp_2fclient_2fhttp_2fhttp_5fresource_5fmetadata_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/generated_enum_util.h>
33 // @@protoc_insertion_point(includes)
34 #include <google/protobuf/port_def.inc>
35 #define PROTOBUF_INTERNAL_EXPORT_fcp_2fclient_2fhttp_2fhttp_5fresource_5fmetadata_2eproto
36 PROTOBUF_NAMESPACE_OPEN
37 namespace internal {
38 class AnyMetadata;
39 } // namespace internal
40 PROTOBUF_NAMESPACE_CLOSE
41
42 // Internal implementation detail -- do not use these members.
43 struct TableStruct_fcp_2fclient_2fhttp_2fhttp_5fresource_5fmetadata_2eproto {
44 static const ::uint32_t offsets[];
45 };
46 namespace fcp {
47 namespace client {
48 namespace http {
49 class HttpResourceMetadata;
50 struct HttpResourceMetadataDefaultTypeInternal;
51 extern HttpResourceMetadataDefaultTypeInternal _HttpResourceMetadata_default_instance_;
52 } // namespace http
53 } // namespace client
54 } // namespace fcp
55 PROTOBUF_NAMESPACE_OPEN
56 template<> ::fcp::client::http::HttpResourceMetadata* Arena::CreateMaybeMessage<::fcp::client::http::HttpResourceMetadata>(Arena*);
57 PROTOBUF_NAMESPACE_CLOSE
58 namespace fcp {
59 namespace client {
60 namespace http {
61
62 enum ResourceCompressionFormat : int {
63 RESOURCE_COMPRESSION_FORMAT_UNSPECIFIED = 0,
64 RESOURCE_COMPRESSION_FORMAT_GZIP = 1,
65 ResourceCompressionFormat_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
66 ResourceCompressionFormat_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
67 };
68 bool ResourceCompressionFormat_IsValid(int value);
69 constexpr ResourceCompressionFormat ResourceCompressionFormat_MIN = RESOURCE_COMPRESSION_FORMAT_UNSPECIFIED;
70 constexpr ResourceCompressionFormat ResourceCompressionFormat_MAX = RESOURCE_COMPRESSION_FORMAT_GZIP;
71 constexpr int ResourceCompressionFormat_ARRAYSIZE = ResourceCompressionFormat_MAX + 1;
72
73 const std::string& ResourceCompressionFormat_Name(ResourceCompressionFormat value);
74 template<typename T>
ResourceCompressionFormat_Name(T enum_t_value)75 inline const std::string& ResourceCompressionFormat_Name(T enum_t_value) {
76 static_assert(::std::is_same<T, ResourceCompressionFormat>::value ||
77 ::std::is_integral<T>::value,
78 "Incorrect type passed to function ResourceCompressionFormat_Name.");
79 return ResourceCompressionFormat_Name(static_cast<ResourceCompressionFormat>(enum_t_value));
80 }
81 bool ResourceCompressionFormat_Parse(
82 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ResourceCompressionFormat* value);
83 // ===================================================================
84
85 class HttpResourceMetadata final :
86 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:fcp.client.http.HttpResourceMetadata) */ {
87 public:
HttpResourceMetadata()88 inline HttpResourceMetadata() : HttpResourceMetadata(nullptr) {}
89 ~HttpResourceMetadata() override;
90 explicit PROTOBUF_CONSTEXPR HttpResourceMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
91
92 HttpResourceMetadata(const HttpResourceMetadata& from);
HttpResourceMetadata(HttpResourceMetadata && from)93 HttpResourceMetadata(HttpResourceMetadata&& from) noexcept
94 : HttpResourceMetadata() {
95 *this = ::std::move(from);
96 }
97
98 inline HttpResourceMetadata& operator=(const HttpResourceMetadata& from) {
99 if (this == &from) return *this;
100 CopyFrom(from);
101 return *this;
102 }
103 inline HttpResourceMetadata& operator=(HttpResourceMetadata&& from) noexcept {
104 if (this == &from) return *this;
105 if (GetOwningArena() == from.GetOwningArena()
106 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
107 && GetOwningArena() != nullptr
108 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
109 ) {
110 InternalSwap(&from);
111 } else {
112 CopyFrom(from);
113 }
114 return *this;
115 }
116
default_instance()117 static const HttpResourceMetadata& default_instance() {
118 return *internal_default_instance();
119 }
internal_default_instance()120 static inline const HttpResourceMetadata* internal_default_instance() {
121 return reinterpret_cast<const HttpResourceMetadata*>(
122 &_HttpResourceMetadata_default_instance_);
123 }
124 static constexpr int kIndexInFileMessages =
125 0;
126
swap(HttpResourceMetadata & a,HttpResourceMetadata & b)127 friend void swap(HttpResourceMetadata& a, HttpResourceMetadata& b) {
128 a.Swap(&b);
129 }
Swap(HttpResourceMetadata * other)130 inline void Swap(HttpResourceMetadata* other) {
131 if (other == this) return;
132 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
133 if (GetOwningArena() != nullptr &&
134 GetOwningArena() == other->GetOwningArena()) {
135 #else // PROTOBUF_FORCE_COPY_IN_SWAP
136 if (GetOwningArena() == other->GetOwningArena()) {
137 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
138 InternalSwap(other);
139 } else {
140 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
141 }
142 }
143 void UnsafeArenaSwap(HttpResourceMetadata* other) {
144 if (other == this) return;
145 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
146 InternalSwap(other);
147 }
148
149 // implements Message ----------------------------------------------
150
151 HttpResourceMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
152 return CreateMaybeMessage<HttpResourceMetadata>(arena);
153 }
154 HttpResourceMetadata* New() const {
155 return New(nullptr);
156 }
157 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
158 void CopyFrom(const HttpResourceMetadata& from);
159 void MergeFrom(const HttpResourceMetadata& from);
160 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
161 bool IsInitialized() const final;
162
163 size_t ByteSizeLong() const final;
164 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
165 ::uint8_t* _InternalSerialize(
166 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
167 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
168
169 private:
170 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
171 void SharedDtor();
172 void SetCachedSize(int size) const;
173 void InternalSwap(HttpResourceMetadata* other);
174
175 private:
176 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
177 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
178 return "fcp.client.http.HttpResourceMetadata";
179 }
180 protected:
181 explicit HttpResourceMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena,
182 bool is_message_owned = false);
183 public:
184
185 std::string GetTypeName() const final;
186
187 // nested types ----------------------------------------------------
188
189 // accessors -------------------------------------------------------
190
191 enum : int {
192 kCompressionFormatFieldNumber = 1,
193 };
194 // .fcp.client.http.ResourceCompressionFormat compression_format = 1;
195 void clear_compression_format();
196 ::fcp::client::http::ResourceCompressionFormat compression_format() const;
197 void set_compression_format(::fcp::client::http::ResourceCompressionFormat value);
198 private:
199 ::fcp::client::http::ResourceCompressionFormat _internal_compression_format() const;
200 void _internal_set_compression_format(::fcp::client::http::ResourceCompressionFormat value);
201 public:
202
203 // @@protoc_insertion_point(class_scope:fcp.client.http.HttpResourceMetadata)
204 private:
205 class _Internal;
206
207 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
208 typedef void InternalArenaConstructable_;
209 typedef void DestructorSkippable_;
210 struct Impl_ {
211 int compression_format_;
212 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
213 };
214 union { Impl_ _impl_; };
215 friend struct ::TableStruct_fcp_2fclient_2fhttp_2fhttp_5fresource_5fmetadata_2eproto;
216 };
217 // ===================================================================
218
219
220 // ===================================================================
221
222 #ifdef __GNUC__
223 #pragma GCC diagnostic push
224 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
225 #endif // __GNUC__
226 // HttpResourceMetadata
227
228 // .fcp.client.http.ResourceCompressionFormat compression_format = 1;
clear_compression_format()229 inline void HttpResourceMetadata::clear_compression_format() {
230 _impl_.compression_format_ = 0;
231 }
_internal_compression_format()232 inline ::fcp::client::http::ResourceCompressionFormat HttpResourceMetadata::_internal_compression_format() const {
233 return static_cast< ::fcp::client::http::ResourceCompressionFormat >(_impl_.compression_format_);
234 }
compression_format()235 inline ::fcp::client::http::ResourceCompressionFormat HttpResourceMetadata::compression_format() const {
236 // @@protoc_insertion_point(field_get:fcp.client.http.HttpResourceMetadata.compression_format)
237 return _internal_compression_format();
238 }
_internal_set_compression_format(::fcp::client::http::ResourceCompressionFormat value)239 inline void HttpResourceMetadata::_internal_set_compression_format(::fcp::client::http::ResourceCompressionFormat value) {
240
241 _impl_.compression_format_ = value;
242 }
set_compression_format(::fcp::client::http::ResourceCompressionFormat value)243 inline void HttpResourceMetadata::set_compression_format(::fcp::client::http::ResourceCompressionFormat value) {
244 _internal_set_compression_format(value);
245 // @@protoc_insertion_point(field_set:fcp.client.http.HttpResourceMetadata.compression_format)
246 }
247
248 #ifdef __GNUC__
249 #pragma GCC diagnostic pop
250 #endif // __GNUC__
251
252 // @@protoc_insertion_point(namespace_scope)
253
254 } // namespace http
255 } // namespace client
256 } // namespace fcp
257
258 PROTOBUF_NAMESPACE_OPEN
259
260 template <> struct is_proto_enum< ::fcp::client::http::ResourceCompressionFormat> : ::std::true_type {};
261
262 PROTOBUF_NAMESPACE_CLOSE
263
264 // @@protoc_insertion_point(global_scope)
265
266 #include <google/protobuf/port_undef.inc>
267 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_fcp_2fclient_2fhttp_2fhttp_5fresource_5fmetadata_2eproto
268