1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: packages/modules/StatsD/statsd/src/experiment_ids.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2fexperiment_5fids_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2fexperiment_5fids_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 // @@protoc_insertion_point(includes)
33 #include <google/protobuf/port_def.inc>
34 #define PROTOBUF_INTERNAL_EXPORT_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2fexperiment_5fids_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_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2fexperiment_5fids_2eproto {
43   static const ::uint32_t offsets[];
44 };
45 namespace android {
46 namespace os {
47 namespace statsd {
48 class ExperimentIds;
49 struct ExperimentIdsDefaultTypeInternal;
50 extern ExperimentIdsDefaultTypeInternal _ExperimentIds_default_instance_;
51 }  // namespace statsd
52 }  // namespace os
53 }  // namespace android
54 PROTOBUF_NAMESPACE_OPEN
55 template<> ::android::os::statsd::ExperimentIds* Arena::CreateMaybeMessage<::android::os::statsd::ExperimentIds>(Arena*);
56 PROTOBUF_NAMESPACE_CLOSE
57 namespace android {
58 namespace os {
59 namespace statsd {
60 
61 // ===================================================================
62 
63 class ExperimentIds final :
64     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:android.os.statsd.ExperimentIds) */ {
65  public:
ExperimentIds()66   inline ExperimentIds() : ExperimentIds(nullptr) {}
67   ~ExperimentIds() override;
68   explicit PROTOBUF_CONSTEXPR ExperimentIds(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
69 
70   ExperimentIds(const ExperimentIds& from);
ExperimentIds(ExperimentIds && from)71   ExperimentIds(ExperimentIds&& from) noexcept
72     : ExperimentIds() {
73     *this = ::std::move(from);
74   }
75 
76   inline ExperimentIds& operator=(const ExperimentIds& from) {
77     if (this == &from) return *this;
78     CopyFrom(from);
79     return *this;
80   }
81   inline ExperimentIds& operator=(ExperimentIds&& from) noexcept {
82     if (this == &from) return *this;
83     if (GetOwningArena() == from.GetOwningArena()
84   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
85         && GetOwningArena() != nullptr
86   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
87     ) {
88       InternalSwap(&from);
89     } else {
90       CopyFrom(from);
91     }
92     return *this;
93   }
94 
unknown_fields()95   inline const std::string& unknown_fields() const {
96     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
97   }
mutable_unknown_fields()98   inline std::string* mutable_unknown_fields() {
99     return _internal_metadata_.mutable_unknown_fields<std::string>();
100   }
101 
default_instance()102   static const ExperimentIds& default_instance() {
103     return *internal_default_instance();
104   }
internal_default_instance()105   static inline const ExperimentIds* internal_default_instance() {
106     return reinterpret_cast<const ExperimentIds*>(
107                &_ExperimentIds_default_instance_);
108   }
109   static constexpr int kIndexInFileMessages =
110     0;
111 
swap(ExperimentIds & a,ExperimentIds & b)112   friend void swap(ExperimentIds& a, ExperimentIds& b) {
113     a.Swap(&b);
114   }
Swap(ExperimentIds * other)115   inline void Swap(ExperimentIds* other) {
116     if (other == this) return;
117   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
118     if (GetOwningArena() != nullptr &&
119         GetOwningArena() == other->GetOwningArena()) {
120    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
121     if (GetOwningArena() == other->GetOwningArena()) {
122   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
123       InternalSwap(other);
124     } else {
125       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
126     }
127   }
128   void UnsafeArenaSwap(ExperimentIds* other) {
129     if (other == this) return;
130     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
131     InternalSwap(other);
132   }
133 
134   // implements Message ----------------------------------------------
135 
136   ExperimentIds* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
137     return CreateMaybeMessage<ExperimentIds>(arena);
138   }
139   ExperimentIds* New() const {
140     return New(nullptr);
141   }
142   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
143   void CopyFrom(const ExperimentIds& from);
144   void MergeFrom(const ExperimentIds& from);
145   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
146   bool IsInitialized() const final;
147 
148   size_t ByteSizeLong() const final;
149   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
150   ::uint8_t* _InternalSerialize(
151       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
152   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
153 
154   private:
155   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
156   void SharedDtor();
157   void SetCachedSize(int size) const;
158   void InternalSwap(ExperimentIds* other);
159 
160   private:
161   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
162   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
163     return "android.os.statsd.ExperimentIds";
164   }
165   protected:
166   explicit ExperimentIds(::PROTOBUF_NAMESPACE_ID::Arena* arena,
167                        bool is_message_owned = false);
168   public:
169 
170   std::string GetTypeName() const final;
171 
172   // nested types ----------------------------------------------------
173 
174   // accessors -------------------------------------------------------
175 
176   enum : int {
177     kExperimentIdFieldNumber = 1,
178   };
179   // repeated int64 experiment_id = 1;
180   int experiment_id_size() const;
181   private:
182   int _internal_experiment_id_size() const;
183   public:
184   void clear_experiment_id();
185   private:
186   ::int64_t _internal_experiment_id(int index) const;
187   const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >&
188       _internal_experiment_id() const;
189   void _internal_add_experiment_id(::int64_t value);
190   ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >*
191       _internal_mutable_experiment_id();
192   public:
193   ::int64_t experiment_id(int index) const;
194   void set_experiment_id(int index, ::int64_t value);
195   void add_experiment_id(::int64_t value);
196   const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >&
197       experiment_id() const;
198   ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >*
199       mutable_experiment_id();
200 
201   // @@protoc_insertion_point(class_scope:android.os.statsd.ExperimentIds)
202  private:
203   class _Internal;
204 
205   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
206   typedef void InternalArenaConstructable_;
207   typedef void DestructorSkippable_;
208   struct Impl_ {
209     ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t > experiment_id_;
210     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
211   };
212   union { Impl_ _impl_; };
213   friend struct ::TableStruct_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2fexperiment_5fids_2eproto;
214 };
215 // ===================================================================
216 
217 
218 // ===================================================================
219 
220 #ifdef __GNUC__
221   #pragma GCC diagnostic push
222   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
223 #endif  // __GNUC__
224 // ExperimentIds
225 
226 // repeated int64 experiment_id = 1;
_internal_experiment_id_size()227 inline int ExperimentIds::_internal_experiment_id_size() const {
228   return _impl_.experiment_id_.size();
229 }
experiment_id_size()230 inline int ExperimentIds::experiment_id_size() const {
231   return _internal_experiment_id_size();
232 }
clear_experiment_id()233 inline void ExperimentIds::clear_experiment_id() {
234   _impl_.experiment_id_.Clear();
235 }
_internal_experiment_id(int index)236 inline ::int64_t ExperimentIds::_internal_experiment_id(int index) const {
237   return _impl_.experiment_id_.Get(index);
238 }
experiment_id(int index)239 inline ::int64_t ExperimentIds::experiment_id(int index) const {
240   // @@protoc_insertion_point(field_get:android.os.statsd.ExperimentIds.experiment_id)
241   return _internal_experiment_id(index);
242 }
set_experiment_id(int index,::int64_t value)243 inline void ExperimentIds::set_experiment_id(int index, ::int64_t value) {
244   _impl_.experiment_id_.Set(index, value);
245   // @@protoc_insertion_point(field_set:android.os.statsd.ExperimentIds.experiment_id)
246 }
_internal_add_experiment_id(::int64_t value)247 inline void ExperimentIds::_internal_add_experiment_id(::int64_t value) {
248   _impl_.experiment_id_.Add(value);
249 }
add_experiment_id(::int64_t value)250 inline void ExperimentIds::add_experiment_id(::int64_t value) {
251   _internal_add_experiment_id(value);
252   // @@protoc_insertion_point(field_add:android.os.statsd.ExperimentIds.experiment_id)
253 }
254 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >&
_internal_experiment_id()255 ExperimentIds::_internal_experiment_id() const {
256   return _impl_.experiment_id_;
257 }
258 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >&
experiment_id()259 ExperimentIds::experiment_id() const {
260   // @@protoc_insertion_point(field_list:android.os.statsd.ExperimentIds.experiment_id)
261   return _internal_experiment_id();
262 }
263 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >*
_internal_mutable_experiment_id()264 ExperimentIds::_internal_mutable_experiment_id() {
265   return &_impl_.experiment_id_;
266 }
267 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >*
mutable_experiment_id()268 ExperimentIds::mutable_experiment_id() {
269   // @@protoc_insertion_point(field_mutable_list:android.os.statsd.ExperimentIds.experiment_id)
270   return _internal_mutable_experiment_id();
271 }
272 
273 #ifdef __GNUC__
274   #pragma GCC diagnostic pop
275 #endif  // __GNUC__
276 
277 // @@protoc_insertion_point(namespace_scope)
278 
279 }  // namespace statsd
280 }  // namespace os
281 }  // namespace android
282 
283 // @@protoc_insertion_point(global_scope)
284 
285 #include <google/protobuf/port_undef.inc>
286 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_packages_2fmodules_2fStatsD_2fstatsd_2fsrc_2fexperiment_5fids_2eproto
287