1 // Autogenerated by the ProtoZero compiler plugin. DO NOT EDIT.
2 
3 #ifndef PERFETTO_PROTOS_PROTOS_PERFETTO_TRACE_ANDROID_VIEWCAPTURE_PROTO_H_
4 #define PERFETTO_PROTOS_PROTOS_PERFETTO_TRACE_ANDROID_VIEWCAPTURE_PROTO_H_
5 
6 #include <stddef.h>
7 #include <stdint.h>
8 
9 #include "perfetto/protozero/field_writer.h"
10 #include "perfetto/protozero/message.h"
11 #include "perfetto/protozero/packed_repeated_fields.h"
12 #include "perfetto/protozero/proto_decoder.h"
13 #include "perfetto/protozero/proto_utils.h"
14 
15 namespace perfetto {
16 namespace protos {
17 namespace pbzero {
18 class ViewCapture_View;
19 } // Namespace pbzero.
20 } // Namespace protos.
21 } // Namespace perfetto.
22 
23 namespace perfetto {
24 namespace protos {
25 namespace pbzero {
26 
27 class ViewCapture_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/3, /*HAS_NONPACKED_REPEATED_FIELDS=*/true> {
28  public:
ViewCapture_Decoder(const uint8_t * data,size_t len)29   ViewCapture_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
ViewCapture_Decoder(const std::string & raw)30   explicit ViewCapture_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
ViewCapture_Decoder(const::protozero::ConstBytes & raw)31   explicit ViewCapture_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
has_package_name_iid()32   bool has_package_name_iid() const { return at<1>().valid(); }
package_name_iid()33   int32_t package_name_iid() const { return at<1>().as_int32(); }
has_window_name_iid()34   bool has_window_name_iid() const { return at<2>().valid(); }
window_name_iid()35   int32_t window_name_iid() const { return at<2>().as_int32(); }
has_views()36   bool has_views() const { return at<3>().valid(); }
views()37   ::protozero::RepeatedFieldIterator<::protozero::ConstBytes> views() const { return GetRepeated<::protozero::ConstBytes>(3); }
38 };
39 
40 class ViewCapture : public ::protozero::Message {
41  public:
42   using Decoder = ViewCapture_Decoder;
43   enum : int32_t {
44     kPackageNameIidFieldNumber = 1,
45     kWindowNameIidFieldNumber = 2,
46     kViewsFieldNumber = 3,
47   };
GetName()48   static constexpr const char* GetName() { return ".perfetto.protos.ViewCapture"; }
49 
50   using View = ::perfetto::protos::pbzero::ViewCapture_View;
51 
52   using FieldMetadata_PackageNameIid =
53     ::protozero::proto_utils::FieldMetadata<
54       1,
55       ::protozero::proto_utils::RepetitionType::kNotRepeated,
56       ::protozero::proto_utils::ProtoSchemaType::kInt32,
57       int32_t,
58       ViewCapture>;
59 
60   static constexpr FieldMetadata_PackageNameIid kPackageNameIid{};
set_package_name_iid(int32_t value)61   void set_package_name_iid(int32_t value) {
62     static constexpr uint32_t field_id = FieldMetadata_PackageNameIid::kFieldId;
63     // Call the appropriate protozero::Message::Append(field_id, ...)
64     // method based on the type of the field.
65     ::protozero::internal::FieldWriter<
66       ::protozero::proto_utils::ProtoSchemaType::kInt32>
67         ::Append(*this, field_id, value);
68   }
69 
70   using FieldMetadata_WindowNameIid =
71     ::protozero::proto_utils::FieldMetadata<
72       2,
73       ::protozero::proto_utils::RepetitionType::kNotRepeated,
74       ::protozero::proto_utils::ProtoSchemaType::kInt32,
75       int32_t,
76       ViewCapture>;
77 
78   static constexpr FieldMetadata_WindowNameIid kWindowNameIid{};
set_window_name_iid(int32_t value)79   void set_window_name_iid(int32_t value) {
80     static constexpr uint32_t field_id = FieldMetadata_WindowNameIid::kFieldId;
81     // Call the appropriate protozero::Message::Append(field_id, ...)
82     // method based on the type of the field.
83     ::protozero::internal::FieldWriter<
84       ::protozero::proto_utils::ProtoSchemaType::kInt32>
85         ::Append(*this, field_id, value);
86   }
87 
88   using FieldMetadata_Views =
89     ::protozero::proto_utils::FieldMetadata<
90       3,
91       ::protozero::proto_utils::RepetitionType::kRepeatedNotPacked,
92       ::protozero::proto_utils::ProtoSchemaType::kMessage,
93       ViewCapture_View,
94       ViewCapture>;
95 
96   static constexpr FieldMetadata_Views kViews{};
add_views()97   template <typename T = ViewCapture_View> T* add_views() {
98     return BeginNestedMessage<T>(3);
99   }
100 
101 };
102 
103 class ViewCapture_View_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/20, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
104  public:
ViewCapture_View_Decoder(const uint8_t * data,size_t len)105   ViewCapture_View_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
ViewCapture_View_Decoder(const std::string & raw)106   explicit ViewCapture_View_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
ViewCapture_View_Decoder(const::protozero::ConstBytes & raw)107   explicit ViewCapture_View_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
has_id()108   bool has_id() const { return at<1>().valid(); }
id()109   int32_t id() const { return at<1>().as_int32(); }
has_parent_id()110   bool has_parent_id() const { return at<2>().valid(); }
parent_id()111   int32_t parent_id() const { return at<2>().as_int32(); }
has_hashcode()112   bool has_hashcode() const { return at<3>().valid(); }
hashcode()113   int32_t hashcode() const { return at<3>().as_int32(); }
has_view_id_iid()114   bool has_view_id_iid() const { return at<4>().valid(); }
view_id_iid()115   int32_t view_id_iid() const { return at<4>().as_int32(); }
has_class_name_iid()116   bool has_class_name_iid() const { return at<5>().valid(); }
class_name_iid()117   int32_t class_name_iid() const { return at<5>().as_int32(); }
has_left()118   bool has_left() const { return at<6>().valid(); }
left()119   int32_t left() const { return at<6>().as_int32(); }
has_top()120   bool has_top() const { return at<7>().valid(); }
top()121   int32_t top() const { return at<7>().as_int32(); }
has_width()122   bool has_width() const { return at<8>().valid(); }
width()123   int32_t width() const { return at<8>().as_int32(); }
has_height()124   bool has_height() const { return at<9>().valid(); }
height()125   int32_t height() const { return at<9>().as_int32(); }
has_scroll_x()126   bool has_scroll_x() const { return at<10>().valid(); }
scroll_x()127   int32_t scroll_x() const { return at<10>().as_int32(); }
has_scroll_y()128   bool has_scroll_y() const { return at<11>().valid(); }
scroll_y()129   int32_t scroll_y() const { return at<11>().as_int32(); }
has_translation_x()130   bool has_translation_x() const { return at<12>().valid(); }
translation_x()131   float translation_x() const { return at<12>().as_float(); }
has_translation_y()132   bool has_translation_y() const { return at<13>().valid(); }
translation_y()133   float translation_y() const { return at<13>().as_float(); }
has_scale_x()134   bool has_scale_x() const { return at<14>().valid(); }
scale_x()135   float scale_x() const { return at<14>().as_float(); }
has_scale_y()136   bool has_scale_y() const { return at<15>().valid(); }
scale_y()137   float scale_y() const { return at<15>().as_float(); }
has_alpha()138   bool has_alpha() const { return at<16>().valid(); }
alpha()139   float alpha() const { return at<16>().as_float(); }
has_will_not_draw()140   bool has_will_not_draw() const { return at<17>().valid(); }
will_not_draw()141   bool will_not_draw() const { return at<17>().as_bool(); }
has_clip_children()142   bool has_clip_children() const { return at<18>().valid(); }
clip_children()143   bool clip_children() const { return at<18>().as_bool(); }
has_visibility()144   bool has_visibility() const { return at<19>().valid(); }
visibility()145   int32_t visibility() const { return at<19>().as_int32(); }
has_elevation()146   bool has_elevation() const { return at<20>().valid(); }
elevation()147   float elevation() const { return at<20>().as_float(); }
148 };
149 
150 class ViewCapture_View : public ::protozero::Message {
151  public:
152   using Decoder = ViewCapture_View_Decoder;
153   enum : int32_t {
154     kIdFieldNumber = 1,
155     kParentIdFieldNumber = 2,
156     kHashcodeFieldNumber = 3,
157     kViewIdIidFieldNumber = 4,
158     kClassNameIidFieldNumber = 5,
159     kLeftFieldNumber = 6,
160     kTopFieldNumber = 7,
161     kWidthFieldNumber = 8,
162     kHeightFieldNumber = 9,
163     kScrollXFieldNumber = 10,
164     kScrollYFieldNumber = 11,
165     kTranslationXFieldNumber = 12,
166     kTranslationYFieldNumber = 13,
167     kScaleXFieldNumber = 14,
168     kScaleYFieldNumber = 15,
169     kAlphaFieldNumber = 16,
170     kWillNotDrawFieldNumber = 17,
171     kClipChildrenFieldNumber = 18,
172     kVisibilityFieldNumber = 19,
173     kElevationFieldNumber = 20,
174   };
GetName()175   static constexpr const char* GetName() { return ".perfetto.protos.ViewCapture.View"; }
176 
177 
178   using FieldMetadata_Id =
179     ::protozero::proto_utils::FieldMetadata<
180       1,
181       ::protozero::proto_utils::RepetitionType::kNotRepeated,
182       ::protozero::proto_utils::ProtoSchemaType::kInt32,
183       int32_t,
184       ViewCapture_View>;
185 
186   static constexpr FieldMetadata_Id kId{};
set_id(int32_t value)187   void set_id(int32_t value) {
188     static constexpr uint32_t field_id = FieldMetadata_Id::kFieldId;
189     // Call the appropriate protozero::Message::Append(field_id, ...)
190     // method based on the type of the field.
191     ::protozero::internal::FieldWriter<
192       ::protozero::proto_utils::ProtoSchemaType::kInt32>
193         ::Append(*this, field_id, value);
194   }
195 
196   using FieldMetadata_ParentId =
197     ::protozero::proto_utils::FieldMetadata<
198       2,
199       ::protozero::proto_utils::RepetitionType::kNotRepeated,
200       ::protozero::proto_utils::ProtoSchemaType::kInt32,
201       int32_t,
202       ViewCapture_View>;
203 
204   static constexpr FieldMetadata_ParentId kParentId{};
set_parent_id(int32_t value)205   void set_parent_id(int32_t value) {
206     static constexpr uint32_t field_id = FieldMetadata_ParentId::kFieldId;
207     // Call the appropriate protozero::Message::Append(field_id, ...)
208     // method based on the type of the field.
209     ::protozero::internal::FieldWriter<
210       ::protozero::proto_utils::ProtoSchemaType::kInt32>
211         ::Append(*this, field_id, value);
212   }
213 
214   using FieldMetadata_Hashcode =
215     ::protozero::proto_utils::FieldMetadata<
216       3,
217       ::protozero::proto_utils::RepetitionType::kNotRepeated,
218       ::protozero::proto_utils::ProtoSchemaType::kInt32,
219       int32_t,
220       ViewCapture_View>;
221 
222   static constexpr FieldMetadata_Hashcode kHashcode{};
set_hashcode(int32_t value)223   void set_hashcode(int32_t value) {
224     static constexpr uint32_t field_id = FieldMetadata_Hashcode::kFieldId;
225     // Call the appropriate protozero::Message::Append(field_id, ...)
226     // method based on the type of the field.
227     ::protozero::internal::FieldWriter<
228       ::protozero::proto_utils::ProtoSchemaType::kInt32>
229         ::Append(*this, field_id, value);
230   }
231 
232   using FieldMetadata_ViewIdIid =
233     ::protozero::proto_utils::FieldMetadata<
234       4,
235       ::protozero::proto_utils::RepetitionType::kNotRepeated,
236       ::protozero::proto_utils::ProtoSchemaType::kInt32,
237       int32_t,
238       ViewCapture_View>;
239 
240   static constexpr FieldMetadata_ViewIdIid kViewIdIid{};
set_view_id_iid(int32_t value)241   void set_view_id_iid(int32_t value) {
242     static constexpr uint32_t field_id = FieldMetadata_ViewIdIid::kFieldId;
243     // Call the appropriate protozero::Message::Append(field_id, ...)
244     // method based on the type of the field.
245     ::protozero::internal::FieldWriter<
246       ::protozero::proto_utils::ProtoSchemaType::kInt32>
247         ::Append(*this, field_id, value);
248   }
249 
250   using FieldMetadata_ClassNameIid =
251     ::protozero::proto_utils::FieldMetadata<
252       5,
253       ::protozero::proto_utils::RepetitionType::kNotRepeated,
254       ::protozero::proto_utils::ProtoSchemaType::kInt32,
255       int32_t,
256       ViewCapture_View>;
257 
258   static constexpr FieldMetadata_ClassNameIid kClassNameIid{};
set_class_name_iid(int32_t value)259   void set_class_name_iid(int32_t value) {
260     static constexpr uint32_t field_id = FieldMetadata_ClassNameIid::kFieldId;
261     // Call the appropriate protozero::Message::Append(field_id, ...)
262     // method based on the type of the field.
263     ::protozero::internal::FieldWriter<
264       ::protozero::proto_utils::ProtoSchemaType::kInt32>
265         ::Append(*this, field_id, value);
266   }
267 
268   using FieldMetadata_Left =
269     ::protozero::proto_utils::FieldMetadata<
270       6,
271       ::protozero::proto_utils::RepetitionType::kNotRepeated,
272       ::protozero::proto_utils::ProtoSchemaType::kInt32,
273       int32_t,
274       ViewCapture_View>;
275 
276   static constexpr FieldMetadata_Left kLeft{};
set_left(int32_t value)277   void set_left(int32_t value) {
278     static constexpr uint32_t field_id = FieldMetadata_Left::kFieldId;
279     // Call the appropriate protozero::Message::Append(field_id, ...)
280     // method based on the type of the field.
281     ::protozero::internal::FieldWriter<
282       ::protozero::proto_utils::ProtoSchemaType::kInt32>
283         ::Append(*this, field_id, value);
284   }
285 
286   using FieldMetadata_Top =
287     ::protozero::proto_utils::FieldMetadata<
288       7,
289       ::protozero::proto_utils::RepetitionType::kNotRepeated,
290       ::protozero::proto_utils::ProtoSchemaType::kInt32,
291       int32_t,
292       ViewCapture_View>;
293 
294   static constexpr FieldMetadata_Top kTop{};
set_top(int32_t value)295   void set_top(int32_t value) {
296     static constexpr uint32_t field_id = FieldMetadata_Top::kFieldId;
297     // Call the appropriate protozero::Message::Append(field_id, ...)
298     // method based on the type of the field.
299     ::protozero::internal::FieldWriter<
300       ::protozero::proto_utils::ProtoSchemaType::kInt32>
301         ::Append(*this, field_id, value);
302   }
303 
304   using FieldMetadata_Width =
305     ::protozero::proto_utils::FieldMetadata<
306       8,
307       ::protozero::proto_utils::RepetitionType::kNotRepeated,
308       ::protozero::proto_utils::ProtoSchemaType::kInt32,
309       int32_t,
310       ViewCapture_View>;
311 
312   static constexpr FieldMetadata_Width kWidth{};
set_width(int32_t value)313   void set_width(int32_t value) {
314     static constexpr uint32_t field_id = FieldMetadata_Width::kFieldId;
315     // Call the appropriate protozero::Message::Append(field_id, ...)
316     // method based on the type of the field.
317     ::protozero::internal::FieldWriter<
318       ::protozero::proto_utils::ProtoSchemaType::kInt32>
319         ::Append(*this, field_id, value);
320   }
321 
322   using FieldMetadata_Height =
323     ::protozero::proto_utils::FieldMetadata<
324       9,
325       ::protozero::proto_utils::RepetitionType::kNotRepeated,
326       ::protozero::proto_utils::ProtoSchemaType::kInt32,
327       int32_t,
328       ViewCapture_View>;
329 
330   static constexpr FieldMetadata_Height kHeight{};
set_height(int32_t value)331   void set_height(int32_t value) {
332     static constexpr uint32_t field_id = FieldMetadata_Height::kFieldId;
333     // Call the appropriate protozero::Message::Append(field_id, ...)
334     // method based on the type of the field.
335     ::protozero::internal::FieldWriter<
336       ::protozero::proto_utils::ProtoSchemaType::kInt32>
337         ::Append(*this, field_id, value);
338   }
339 
340   using FieldMetadata_ScrollX =
341     ::protozero::proto_utils::FieldMetadata<
342       10,
343       ::protozero::proto_utils::RepetitionType::kNotRepeated,
344       ::protozero::proto_utils::ProtoSchemaType::kInt32,
345       int32_t,
346       ViewCapture_View>;
347 
348   static constexpr FieldMetadata_ScrollX kScrollX{};
set_scroll_x(int32_t value)349   void set_scroll_x(int32_t value) {
350     static constexpr uint32_t field_id = FieldMetadata_ScrollX::kFieldId;
351     // Call the appropriate protozero::Message::Append(field_id, ...)
352     // method based on the type of the field.
353     ::protozero::internal::FieldWriter<
354       ::protozero::proto_utils::ProtoSchemaType::kInt32>
355         ::Append(*this, field_id, value);
356   }
357 
358   using FieldMetadata_ScrollY =
359     ::protozero::proto_utils::FieldMetadata<
360       11,
361       ::protozero::proto_utils::RepetitionType::kNotRepeated,
362       ::protozero::proto_utils::ProtoSchemaType::kInt32,
363       int32_t,
364       ViewCapture_View>;
365 
366   static constexpr FieldMetadata_ScrollY kScrollY{};
set_scroll_y(int32_t value)367   void set_scroll_y(int32_t value) {
368     static constexpr uint32_t field_id = FieldMetadata_ScrollY::kFieldId;
369     // Call the appropriate protozero::Message::Append(field_id, ...)
370     // method based on the type of the field.
371     ::protozero::internal::FieldWriter<
372       ::protozero::proto_utils::ProtoSchemaType::kInt32>
373         ::Append(*this, field_id, value);
374   }
375 
376   using FieldMetadata_TranslationX =
377     ::protozero::proto_utils::FieldMetadata<
378       12,
379       ::protozero::proto_utils::RepetitionType::kNotRepeated,
380       ::protozero::proto_utils::ProtoSchemaType::kFloat,
381       float,
382       ViewCapture_View>;
383 
384   static constexpr FieldMetadata_TranslationX kTranslationX{};
set_translation_x(float value)385   void set_translation_x(float value) {
386     static constexpr uint32_t field_id = FieldMetadata_TranslationX::kFieldId;
387     // Call the appropriate protozero::Message::Append(field_id, ...)
388     // method based on the type of the field.
389     ::protozero::internal::FieldWriter<
390       ::protozero::proto_utils::ProtoSchemaType::kFloat>
391         ::Append(*this, field_id, value);
392   }
393 
394   using FieldMetadata_TranslationY =
395     ::protozero::proto_utils::FieldMetadata<
396       13,
397       ::protozero::proto_utils::RepetitionType::kNotRepeated,
398       ::protozero::proto_utils::ProtoSchemaType::kFloat,
399       float,
400       ViewCapture_View>;
401 
402   static constexpr FieldMetadata_TranslationY kTranslationY{};
set_translation_y(float value)403   void set_translation_y(float value) {
404     static constexpr uint32_t field_id = FieldMetadata_TranslationY::kFieldId;
405     // Call the appropriate protozero::Message::Append(field_id, ...)
406     // method based on the type of the field.
407     ::protozero::internal::FieldWriter<
408       ::protozero::proto_utils::ProtoSchemaType::kFloat>
409         ::Append(*this, field_id, value);
410   }
411 
412   using FieldMetadata_ScaleX =
413     ::protozero::proto_utils::FieldMetadata<
414       14,
415       ::protozero::proto_utils::RepetitionType::kNotRepeated,
416       ::protozero::proto_utils::ProtoSchemaType::kFloat,
417       float,
418       ViewCapture_View>;
419 
420   static constexpr FieldMetadata_ScaleX kScaleX{};
set_scale_x(float value)421   void set_scale_x(float value) {
422     static constexpr uint32_t field_id = FieldMetadata_ScaleX::kFieldId;
423     // Call the appropriate protozero::Message::Append(field_id, ...)
424     // method based on the type of the field.
425     ::protozero::internal::FieldWriter<
426       ::protozero::proto_utils::ProtoSchemaType::kFloat>
427         ::Append(*this, field_id, value);
428   }
429 
430   using FieldMetadata_ScaleY =
431     ::protozero::proto_utils::FieldMetadata<
432       15,
433       ::protozero::proto_utils::RepetitionType::kNotRepeated,
434       ::protozero::proto_utils::ProtoSchemaType::kFloat,
435       float,
436       ViewCapture_View>;
437 
438   static constexpr FieldMetadata_ScaleY kScaleY{};
set_scale_y(float value)439   void set_scale_y(float value) {
440     static constexpr uint32_t field_id = FieldMetadata_ScaleY::kFieldId;
441     // Call the appropriate protozero::Message::Append(field_id, ...)
442     // method based on the type of the field.
443     ::protozero::internal::FieldWriter<
444       ::protozero::proto_utils::ProtoSchemaType::kFloat>
445         ::Append(*this, field_id, value);
446   }
447 
448   using FieldMetadata_Alpha =
449     ::protozero::proto_utils::FieldMetadata<
450       16,
451       ::protozero::proto_utils::RepetitionType::kNotRepeated,
452       ::protozero::proto_utils::ProtoSchemaType::kFloat,
453       float,
454       ViewCapture_View>;
455 
456   static constexpr FieldMetadata_Alpha kAlpha{};
set_alpha(float value)457   void set_alpha(float value) {
458     static constexpr uint32_t field_id = FieldMetadata_Alpha::kFieldId;
459     // Call the appropriate protozero::Message::Append(field_id, ...)
460     // method based on the type of the field.
461     ::protozero::internal::FieldWriter<
462       ::protozero::proto_utils::ProtoSchemaType::kFloat>
463         ::Append(*this, field_id, value);
464   }
465 
466   using FieldMetadata_WillNotDraw =
467     ::protozero::proto_utils::FieldMetadata<
468       17,
469       ::protozero::proto_utils::RepetitionType::kNotRepeated,
470       ::protozero::proto_utils::ProtoSchemaType::kBool,
471       bool,
472       ViewCapture_View>;
473 
474   static constexpr FieldMetadata_WillNotDraw kWillNotDraw{};
set_will_not_draw(bool value)475   void set_will_not_draw(bool value) {
476     static constexpr uint32_t field_id = FieldMetadata_WillNotDraw::kFieldId;
477     // Call the appropriate protozero::Message::Append(field_id, ...)
478     // method based on the type of the field.
479     ::protozero::internal::FieldWriter<
480       ::protozero::proto_utils::ProtoSchemaType::kBool>
481         ::Append(*this, field_id, value);
482   }
483 
484   using FieldMetadata_ClipChildren =
485     ::protozero::proto_utils::FieldMetadata<
486       18,
487       ::protozero::proto_utils::RepetitionType::kNotRepeated,
488       ::protozero::proto_utils::ProtoSchemaType::kBool,
489       bool,
490       ViewCapture_View>;
491 
492   static constexpr FieldMetadata_ClipChildren kClipChildren{};
set_clip_children(bool value)493   void set_clip_children(bool value) {
494     static constexpr uint32_t field_id = FieldMetadata_ClipChildren::kFieldId;
495     // Call the appropriate protozero::Message::Append(field_id, ...)
496     // method based on the type of the field.
497     ::protozero::internal::FieldWriter<
498       ::protozero::proto_utils::ProtoSchemaType::kBool>
499         ::Append(*this, field_id, value);
500   }
501 
502   using FieldMetadata_Visibility =
503     ::protozero::proto_utils::FieldMetadata<
504       19,
505       ::protozero::proto_utils::RepetitionType::kNotRepeated,
506       ::protozero::proto_utils::ProtoSchemaType::kInt32,
507       int32_t,
508       ViewCapture_View>;
509 
510   static constexpr FieldMetadata_Visibility kVisibility{};
set_visibility(int32_t value)511   void set_visibility(int32_t value) {
512     static constexpr uint32_t field_id = FieldMetadata_Visibility::kFieldId;
513     // Call the appropriate protozero::Message::Append(field_id, ...)
514     // method based on the type of the field.
515     ::protozero::internal::FieldWriter<
516       ::protozero::proto_utils::ProtoSchemaType::kInt32>
517         ::Append(*this, field_id, value);
518   }
519 
520   using FieldMetadata_Elevation =
521     ::protozero::proto_utils::FieldMetadata<
522       20,
523       ::protozero::proto_utils::RepetitionType::kNotRepeated,
524       ::protozero::proto_utils::ProtoSchemaType::kFloat,
525       float,
526       ViewCapture_View>;
527 
528   static constexpr FieldMetadata_Elevation kElevation{};
set_elevation(float value)529   void set_elevation(float value) {
530     static constexpr uint32_t field_id = FieldMetadata_Elevation::kFieldId;
531     // Call the appropriate protozero::Message::Append(field_id, ...)
532     // method based on the type of the field.
533     ::protozero::internal::FieldWriter<
534       ::protozero::proto_utils::ProtoSchemaType::kFloat>
535         ::Append(*this, field_id, value);
536   }
537 };
538 
539 } // Namespace.
540 } // Namespace.
541 } // Namespace.
542 #endif  // Include guard.
543