1 // Autogenerated by the ProtoZero compiler plugin. DO NOT EDIT.
2 
3 #ifndef PERFETTO_PROTOS_PROTOS_PERFETTO_TRACE_ANDROID_VIEW_REMOTE_ANIMATION_TARGET_PROTO_H_
4 #define PERFETTO_PROTOS_PROTOS_PERFETTO_TRACE_ANDROID_VIEW_REMOTE_ANIMATION_TARGET_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 PointProto;
19 class RectProto;
20 class SurfaceControlProto;
21 class WindowConfigurationProto;
22 } // Namespace pbzero.
23 } // Namespace protos.
24 } // Namespace perfetto.
25 
26 namespace perfetto {
27 namespace protos {
28 namespace pbzero {
29 
30 class RemoteAnimationTargetProto_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/14, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
31  public:
RemoteAnimationTargetProto_Decoder(const uint8_t * data,size_t len)32   RemoteAnimationTargetProto_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
RemoteAnimationTargetProto_Decoder(const std::string & raw)33   explicit RemoteAnimationTargetProto_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
RemoteAnimationTargetProto_Decoder(const::protozero::ConstBytes & raw)34   explicit RemoteAnimationTargetProto_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
has_task_id()35   bool has_task_id() const { return at<1>().valid(); }
task_id()36   int32_t task_id() const { return at<1>().as_int32(); }
has_mode()37   bool has_mode() const { return at<2>().valid(); }
mode()38   int32_t mode() const { return at<2>().as_int32(); }
has_leash()39   bool has_leash() const { return at<3>().valid(); }
leash()40   ::protozero::ConstBytes leash() const { return at<3>().as_bytes(); }
has_is_translucent()41   bool has_is_translucent() const { return at<4>().valid(); }
is_translucent()42   bool is_translucent() const { return at<4>().as_bool(); }
has_clip_rect()43   bool has_clip_rect() const { return at<5>().valid(); }
clip_rect()44   ::protozero::ConstBytes clip_rect() const { return at<5>().as_bytes(); }
has_content_insets()45   bool has_content_insets() const { return at<6>().valid(); }
content_insets()46   ::protozero::ConstBytes content_insets() const { return at<6>().as_bytes(); }
has_prefix_order_index()47   bool has_prefix_order_index() const { return at<7>().valid(); }
prefix_order_index()48   int32_t prefix_order_index() const { return at<7>().as_int32(); }
has_position()49   bool has_position() const { return at<8>().valid(); }
position()50   ::protozero::ConstBytes position() const { return at<8>().as_bytes(); }
has_source_container_bounds()51   bool has_source_container_bounds() const { return at<9>().valid(); }
source_container_bounds()52   ::protozero::ConstBytes source_container_bounds() const { return at<9>().as_bytes(); }
has_window_configuration()53   bool has_window_configuration() const { return at<10>().valid(); }
window_configuration()54   ::protozero::ConstBytes window_configuration() const { return at<10>().as_bytes(); }
has_start_leash()55   bool has_start_leash() const { return at<11>().valid(); }
start_leash()56   ::protozero::ConstBytes start_leash() const { return at<11>().as_bytes(); }
has_start_bounds()57   bool has_start_bounds() const { return at<12>().valid(); }
start_bounds()58   ::protozero::ConstBytes start_bounds() const { return at<12>().as_bytes(); }
has_local_bounds()59   bool has_local_bounds() const { return at<13>().valid(); }
local_bounds()60   ::protozero::ConstBytes local_bounds() const { return at<13>().as_bytes(); }
has_screen_space_bounds()61   bool has_screen_space_bounds() const { return at<14>().valid(); }
screen_space_bounds()62   ::protozero::ConstBytes screen_space_bounds() const { return at<14>().as_bytes(); }
63 };
64 
65 class RemoteAnimationTargetProto : public ::protozero::Message {
66  public:
67   using Decoder = RemoteAnimationTargetProto_Decoder;
68   enum : int32_t {
69     kTaskIdFieldNumber = 1,
70     kModeFieldNumber = 2,
71     kLeashFieldNumber = 3,
72     kIsTranslucentFieldNumber = 4,
73     kClipRectFieldNumber = 5,
74     kContentInsetsFieldNumber = 6,
75     kPrefixOrderIndexFieldNumber = 7,
76     kPositionFieldNumber = 8,
77     kSourceContainerBoundsFieldNumber = 9,
78     kWindowConfigurationFieldNumber = 10,
79     kStartLeashFieldNumber = 11,
80     kStartBoundsFieldNumber = 12,
81     kLocalBoundsFieldNumber = 13,
82     kScreenSpaceBoundsFieldNumber = 14,
83   };
GetName()84   static constexpr const char* GetName() { return ".perfetto.protos.RemoteAnimationTargetProto"; }
85 
86 
87   using FieldMetadata_TaskId =
88     ::protozero::proto_utils::FieldMetadata<
89       1,
90       ::protozero::proto_utils::RepetitionType::kNotRepeated,
91       ::protozero::proto_utils::ProtoSchemaType::kInt32,
92       int32_t,
93       RemoteAnimationTargetProto>;
94 
95   static constexpr FieldMetadata_TaskId kTaskId{};
set_task_id(int32_t value)96   void set_task_id(int32_t value) {
97     static constexpr uint32_t field_id = FieldMetadata_TaskId::kFieldId;
98     // Call the appropriate protozero::Message::Append(field_id, ...)
99     // method based on the type of the field.
100     ::protozero::internal::FieldWriter<
101       ::protozero::proto_utils::ProtoSchemaType::kInt32>
102         ::Append(*this, field_id, value);
103   }
104 
105   using FieldMetadata_Mode =
106     ::protozero::proto_utils::FieldMetadata<
107       2,
108       ::protozero::proto_utils::RepetitionType::kNotRepeated,
109       ::protozero::proto_utils::ProtoSchemaType::kInt32,
110       int32_t,
111       RemoteAnimationTargetProto>;
112 
113   static constexpr FieldMetadata_Mode kMode{};
set_mode(int32_t value)114   void set_mode(int32_t value) {
115     static constexpr uint32_t field_id = FieldMetadata_Mode::kFieldId;
116     // Call the appropriate protozero::Message::Append(field_id, ...)
117     // method based on the type of the field.
118     ::protozero::internal::FieldWriter<
119       ::protozero::proto_utils::ProtoSchemaType::kInt32>
120         ::Append(*this, field_id, value);
121   }
122 
123   using FieldMetadata_Leash =
124     ::protozero::proto_utils::FieldMetadata<
125       3,
126       ::protozero::proto_utils::RepetitionType::kNotRepeated,
127       ::protozero::proto_utils::ProtoSchemaType::kMessage,
128       SurfaceControlProto,
129       RemoteAnimationTargetProto>;
130 
131   static constexpr FieldMetadata_Leash kLeash{};
set_leash()132   template <typename T = SurfaceControlProto> T* set_leash() {
133     return BeginNestedMessage<T>(3);
134   }
135 
136 
137   using FieldMetadata_IsTranslucent =
138     ::protozero::proto_utils::FieldMetadata<
139       4,
140       ::protozero::proto_utils::RepetitionType::kNotRepeated,
141       ::protozero::proto_utils::ProtoSchemaType::kBool,
142       bool,
143       RemoteAnimationTargetProto>;
144 
145   static constexpr FieldMetadata_IsTranslucent kIsTranslucent{};
set_is_translucent(bool value)146   void set_is_translucent(bool value) {
147     static constexpr uint32_t field_id = FieldMetadata_IsTranslucent::kFieldId;
148     // Call the appropriate protozero::Message::Append(field_id, ...)
149     // method based on the type of the field.
150     ::protozero::internal::FieldWriter<
151       ::protozero::proto_utils::ProtoSchemaType::kBool>
152         ::Append(*this, field_id, value);
153   }
154 
155   using FieldMetadata_ClipRect =
156     ::protozero::proto_utils::FieldMetadata<
157       5,
158       ::protozero::proto_utils::RepetitionType::kNotRepeated,
159       ::protozero::proto_utils::ProtoSchemaType::kMessage,
160       RectProto,
161       RemoteAnimationTargetProto>;
162 
163   static constexpr FieldMetadata_ClipRect kClipRect{};
set_clip_rect()164   template <typename T = RectProto> T* set_clip_rect() {
165     return BeginNestedMessage<T>(5);
166   }
167 
168 
169   using FieldMetadata_ContentInsets =
170     ::protozero::proto_utils::FieldMetadata<
171       6,
172       ::protozero::proto_utils::RepetitionType::kNotRepeated,
173       ::protozero::proto_utils::ProtoSchemaType::kMessage,
174       RectProto,
175       RemoteAnimationTargetProto>;
176 
177   static constexpr FieldMetadata_ContentInsets kContentInsets{};
set_content_insets()178   template <typename T = RectProto> T* set_content_insets() {
179     return BeginNestedMessage<T>(6);
180   }
181 
182 
183   using FieldMetadata_PrefixOrderIndex =
184     ::protozero::proto_utils::FieldMetadata<
185       7,
186       ::protozero::proto_utils::RepetitionType::kNotRepeated,
187       ::protozero::proto_utils::ProtoSchemaType::kInt32,
188       int32_t,
189       RemoteAnimationTargetProto>;
190 
191   static constexpr FieldMetadata_PrefixOrderIndex kPrefixOrderIndex{};
set_prefix_order_index(int32_t value)192   void set_prefix_order_index(int32_t value) {
193     static constexpr uint32_t field_id = FieldMetadata_PrefixOrderIndex::kFieldId;
194     // Call the appropriate protozero::Message::Append(field_id, ...)
195     // method based on the type of the field.
196     ::protozero::internal::FieldWriter<
197       ::protozero::proto_utils::ProtoSchemaType::kInt32>
198         ::Append(*this, field_id, value);
199   }
200 
201   using FieldMetadata_Position =
202     ::protozero::proto_utils::FieldMetadata<
203       8,
204       ::protozero::proto_utils::RepetitionType::kNotRepeated,
205       ::protozero::proto_utils::ProtoSchemaType::kMessage,
206       PointProto,
207       RemoteAnimationTargetProto>;
208 
209   static constexpr FieldMetadata_Position kPosition{};
set_position()210   template <typename T = PointProto> T* set_position() {
211     return BeginNestedMessage<T>(8);
212   }
213 
214 
215   using FieldMetadata_SourceContainerBounds =
216     ::protozero::proto_utils::FieldMetadata<
217       9,
218       ::protozero::proto_utils::RepetitionType::kNotRepeated,
219       ::protozero::proto_utils::ProtoSchemaType::kMessage,
220       RectProto,
221       RemoteAnimationTargetProto>;
222 
223   static constexpr FieldMetadata_SourceContainerBounds kSourceContainerBounds{};
set_source_container_bounds()224   template <typename T = RectProto> T* set_source_container_bounds() {
225     return BeginNestedMessage<T>(9);
226   }
227 
228 
229   using FieldMetadata_WindowConfiguration =
230     ::protozero::proto_utils::FieldMetadata<
231       10,
232       ::protozero::proto_utils::RepetitionType::kNotRepeated,
233       ::protozero::proto_utils::ProtoSchemaType::kMessage,
234       WindowConfigurationProto,
235       RemoteAnimationTargetProto>;
236 
237   static constexpr FieldMetadata_WindowConfiguration kWindowConfiguration{};
set_window_configuration()238   template <typename T = WindowConfigurationProto> T* set_window_configuration() {
239     return BeginNestedMessage<T>(10);
240   }
241 
242 
243   using FieldMetadata_StartLeash =
244     ::protozero::proto_utils::FieldMetadata<
245       11,
246       ::protozero::proto_utils::RepetitionType::kNotRepeated,
247       ::protozero::proto_utils::ProtoSchemaType::kMessage,
248       SurfaceControlProto,
249       RemoteAnimationTargetProto>;
250 
251   static constexpr FieldMetadata_StartLeash kStartLeash{};
set_start_leash()252   template <typename T = SurfaceControlProto> T* set_start_leash() {
253     return BeginNestedMessage<T>(11);
254   }
255 
256 
257   using FieldMetadata_StartBounds =
258     ::protozero::proto_utils::FieldMetadata<
259       12,
260       ::protozero::proto_utils::RepetitionType::kNotRepeated,
261       ::protozero::proto_utils::ProtoSchemaType::kMessage,
262       RectProto,
263       RemoteAnimationTargetProto>;
264 
265   static constexpr FieldMetadata_StartBounds kStartBounds{};
set_start_bounds()266   template <typename T = RectProto> T* set_start_bounds() {
267     return BeginNestedMessage<T>(12);
268   }
269 
270 
271   using FieldMetadata_LocalBounds =
272     ::protozero::proto_utils::FieldMetadata<
273       13,
274       ::protozero::proto_utils::RepetitionType::kNotRepeated,
275       ::protozero::proto_utils::ProtoSchemaType::kMessage,
276       RectProto,
277       RemoteAnimationTargetProto>;
278 
279   static constexpr FieldMetadata_LocalBounds kLocalBounds{};
set_local_bounds()280   template <typename T = RectProto> T* set_local_bounds() {
281     return BeginNestedMessage<T>(13);
282   }
283 
284 
285   using FieldMetadata_ScreenSpaceBounds =
286     ::protozero::proto_utils::FieldMetadata<
287       14,
288       ::protozero::proto_utils::RepetitionType::kNotRepeated,
289       ::protozero::proto_utils::ProtoSchemaType::kMessage,
290       RectProto,
291       RemoteAnimationTargetProto>;
292 
293   static constexpr FieldMetadata_ScreenSpaceBounds kScreenSpaceBounds{};
set_screen_space_bounds()294   template <typename T = RectProto> T* set_screen_space_bounds() {
295     return BeginNestedMessage<T>(14);
296   }
297 
298 };
299 
300 } // Namespace.
301 } // Namespace.
302 } // Namespace.
303 #endif  // Include guard.
304