1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: system/security/ondevice-signing/proto/odsign_info.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_system_2fsecurity_2fondevice_2dsigning_2fproto_2fodsign_5finfo_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_system_2fsecurity_2fondevice_2dsigning_2fproto_2fodsign_5finfo_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 // @@protoc_insertion_point(includes)
36 #include <google/protobuf/port_def.inc>
37 #define PROTOBUF_INTERNAL_EXPORT_system_2fsecurity_2fondevice_2dsigning_2fproto_2fodsign_5finfo_2eproto
38 PROTOBUF_NAMESPACE_OPEN
39 namespace internal {
40 class AnyMetadata;
41 } // namespace internal
42 PROTOBUF_NAMESPACE_CLOSE
43
44 // Internal implementation detail -- do not use these members.
45 struct TableStruct_system_2fsecurity_2fondevice_2dsigning_2fproto_2fodsign_5finfo_2eproto {
46 static const ::uint32_t offsets[];
47 };
48 namespace odsign {
49 namespace proto {
50 class OdsignInfo;
51 struct OdsignInfoDefaultTypeInternal;
52 extern OdsignInfoDefaultTypeInternal _OdsignInfo_default_instance_;
53 class OdsignInfo_FileHashesEntry_DoNotUse;
54 struct OdsignInfo_FileHashesEntry_DoNotUseDefaultTypeInternal;
55 extern OdsignInfo_FileHashesEntry_DoNotUseDefaultTypeInternal _OdsignInfo_FileHashesEntry_DoNotUse_default_instance_;
56 } // namespace proto
57 } // namespace odsign
58 PROTOBUF_NAMESPACE_OPEN
59 template<> ::odsign::proto::OdsignInfo* Arena::CreateMaybeMessage<::odsign::proto::OdsignInfo>(Arena*);
60 template<> ::odsign::proto::OdsignInfo_FileHashesEntry_DoNotUse* Arena::CreateMaybeMessage<::odsign::proto::OdsignInfo_FileHashesEntry_DoNotUse>(Arena*);
61 PROTOBUF_NAMESPACE_CLOSE
62 namespace odsign {
63 namespace proto {
64
65 // ===================================================================
66
67 class OdsignInfo_FileHashesEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntryLite<OdsignInfo_FileHashesEntry_DoNotUse,
68 std::string, std::string,
69 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
70 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> {
71 public:
72 typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntryLite<OdsignInfo_FileHashesEntry_DoNotUse,
73 std::string, std::string,
74 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
75 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> SuperType;
76 OdsignInfo_FileHashesEntry_DoNotUse();
77 explicit PROTOBUF_CONSTEXPR OdsignInfo_FileHashesEntry_DoNotUse(
78 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
79 explicit OdsignInfo_FileHashesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
80 void MergeFrom(const OdsignInfo_FileHashesEntry_DoNotUse& other);
internal_default_instance()81 static const OdsignInfo_FileHashesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const OdsignInfo_FileHashesEntry_DoNotUse*>(&_OdsignInfo_FileHashesEntry_DoNotUse_default_instance_); }
ValidateKey(std::string * s)82 static bool ValidateKey(std::string* s) {
83 return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "odsign.proto.OdsignInfo.FileHashesEntry.key");
84 }
ValidateValue(std::string * s)85 static bool ValidateValue(std::string* s) {
86 return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "odsign.proto.OdsignInfo.FileHashesEntry.value");
87 }
88 friend struct ::TableStruct_system_2fsecurity_2fondevice_2dsigning_2fproto_2fodsign_5finfo_2eproto;
89 };
90
91 // -------------------------------------------------------------------
92
93 class OdsignInfo final :
94 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:odsign.proto.OdsignInfo) */ {
95 public:
OdsignInfo()96 inline OdsignInfo() : OdsignInfo(nullptr) {}
97 ~OdsignInfo() override;
98 explicit PROTOBUF_CONSTEXPR OdsignInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
99
100 OdsignInfo(const OdsignInfo& from);
OdsignInfo(OdsignInfo && from)101 OdsignInfo(OdsignInfo&& from) noexcept
102 : OdsignInfo() {
103 *this = ::std::move(from);
104 }
105
106 inline OdsignInfo& operator=(const OdsignInfo& from) {
107 if (this == &from) return *this;
108 CopyFrom(from);
109 return *this;
110 }
111 inline OdsignInfo& operator=(OdsignInfo&& from) noexcept {
112 if (this == &from) return *this;
113 if (GetOwningArena() == from.GetOwningArena()
114 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
115 && GetOwningArena() != nullptr
116 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
117 ) {
118 InternalSwap(&from);
119 } else {
120 CopyFrom(from);
121 }
122 return *this;
123 }
124
default_instance()125 static const OdsignInfo& default_instance() {
126 return *internal_default_instance();
127 }
internal_default_instance()128 static inline const OdsignInfo* internal_default_instance() {
129 return reinterpret_cast<const OdsignInfo*>(
130 &_OdsignInfo_default_instance_);
131 }
132 static constexpr int kIndexInFileMessages =
133 1;
134
swap(OdsignInfo & a,OdsignInfo & b)135 friend void swap(OdsignInfo& a, OdsignInfo& b) {
136 a.Swap(&b);
137 }
Swap(OdsignInfo * other)138 inline void Swap(OdsignInfo* other) {
139 if (other == this) return;
140 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
141 if (GetOwningArena() != nullptr &&
142 GetOwningArena() == other->GetOwningArena()) {
143 #else // PROTOBUF_FORCE_COPY_IN_SWAP
144 if (GetOwningArena() == other->GetOwningArena()) {
145 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
146 InternalSwap(other);
147 } else {
148 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
149 }
150 }
151 void UnsafeArenaSwap(OdsignInfo* other) {
152 if (other == this) return;
153 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
154 InternalSwap(other);
155 }
156
157 // implements Message ----------------------------------------------
158
159 OdsignInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
160 return CreateMaybeMessage<OdsignInfo>(arena);
161 }
162 OdsignInfo* New() const {
163 return New(nullptr);
164 }
165 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
166 void CopyFrom(const OdsignInfo& from);
167 void MergeFrom(const OdsignInfo& from);
168 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
169 bool IsInitialized() const final;
170
171 size_t ByteSizeLong() const final;
172 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
173 ::uint8_t* _InternalSerialize(
174 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
175 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
176
177 private:
178 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
179 void SharedDtor();
180 void SetCachedSize(int size) const;
181 void InternalSwap(OdsignInfo* other);
182
183 private:
184 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
185 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
186 return "odsign.proto.OdsignInfo";
187 }
188 protected:
189 explicit OdsignInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
190 bool is_message_owned = false);
191 public:
192
193 std::string GetTypeName() const final;
194
195 // nested types ----------------------------------------------------
196
197
198 // accessors -------------------------------------------------------
199
200 enum : int {
201 kFileHashesFieldNumber = 1,
202 };
203 // map<string, string> file_hashes = 1;
204 int file_hashes_size() const;
205 private:
206 int _internal_file_hashes_size() const;
207 public:
208 void clear_file_hashes();
209 private:
210 const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
211 _internal_file_hashes() const;
212 ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
213 _internal_mutable_file_hashes();
214 public:
215 const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
216 file_hashes() const;
217 ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
218 mutable_file_hashes();
219
220 // @@protoc_insertion_point(class_scope:odsign.proto.OdsignInfo)
221 private:
222 class _Internal;
223
224 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
225 typedef void InternalArenaConstructable_;
226 typedef void DestructorSkippable_;
227 struct Impl_ {
228 ::PROTOBUF_NAMESPACE_ID::internal::MapFieldLite<
229 OdsignInfo_FileHashesEntry_DoNotUse,
230 std::string, std::string,
231 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
232 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> file_hashes_;
233 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
234 };
235 union { Impl_ _impl_; };
236 friend struct ::TableStruct_system_2fsecurity_2fondevice_2dsigning_2fproto_2fodsign_5finfo_2eproto;
237 };
238 // ===================================================================
239
240
241 // ===================================================================
242
243 #ifdef __GNUC__
244 #pragma GCC diagnostic push
245 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
246 #endif // __GNUC__
247 // -------------------------------------------------------------------
248
249 // OdsignInfo
250
251 // map<string, string> file_hashes = 1;
_internal_file_hashes_size()252 inline int OdsignInfo::_internal_file_hashes_size() const {
253 return _impl_.file_hashes_.size();
254 }
file_hashes_size()255 inline int OdsignInfo::file_hashes_size() const {
256 return _internal_file_hashes_size();
257 }
clear_file_hashes()258 inline void OdsignInfo::clear_file_hashes() {
259 _impl_.file_hashes_.Clear();
260 }
261 inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
_internal_file_hashes()262 OdsignInfo::_internal_file_hashes() const {
263 return _impl_.file_hashes_.GetMap();
264 }
265 inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
file_hashes()266 OdsignInfo::file_hashes() const {
267 // @@protoc_insertion_point(field_map:odsign.proto.OdsignInfo.file_hashes)
268 return _internal_file_hashes();
269 }
270 inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
_internal_mutable_file_hashes()271 OdsignInfo::_internal_mutable_file_hashes() {
272 return _impl_.file_hashes_.MutableMap();
273 }
274 inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
mutable_file_hashes()275 OdsignInfo::mutable_file_hashes() {
276 // @@protoc_insertion_point(field_mutable_map:odsign.proto.OdsignInfo.file_hashes)
277 return _internal_mutable_file_hashes();
278 }
279
280 #ifdef __GNUC__
281 #pragma GCC diagnostic pop
282 #endif // __GNUC__
283 // -------------------------------------------------------------------
284
285
286 // @@protoc_insertion_point(namespace_scope)
287
288 } // namespace proto
289 } // namespace odsign
290
291 // @@protoc_insertion_point(global_scope)
292
293 #include <google/protobuf/port_undef.inc>
294 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_system_2fsecurity_2fondevice_2dsigning_2fproto_2fodsign_5finfo_2eproto
295