1 // Autogenerated by the ProtoZero compiler plugin. DO NOT EDIT.
2 
3 #ifndef PERFETTO_PROTOS_PROTOS_PERFETTO_TRACE_ANDROID_VIEW_INPUTMETHOD_INPUTCONNECTION_PROTO_H_
4 #define PERFETTO_PROTOS_PROTOS_PERFETTO_TRACE_ANDROID_VIEW_INPUTMETHOD_INPUTCONNECTION_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 InputConnectionCallProto_GetCursorCapsMode;
19 class InputConnectionCallProto_GetExtractedText;
20 class InputConnectionCallProto_GetExtractedText_ExtractedTextRequest;
21 class InputConnectionCallProto_GetSelectedText;
22 class InputConnectionCallProto_GetSurroundingText;
23 class InputConnectionCallProto_GetSurroundingText_SurroundingText;
24 class InputConnectionCallProto_GetTextAfterCursor;
25 class InputConnectionCallProto_GetTextBeforeCursor;
26 } // Namespace pbzero.
27 } // Namespace protos.
28 } // Namespace perfetto.
29 
30 namespace perfetto {
31 namespace protos {
32 namespace pbzero {
33 
34 class InputConnectionCallProto_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/6, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
35  public:
InputConnectionCallProto_Decoder(const uint8_t * data,size_t len)36   InputConnectionCallProto_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
InputConnectionCallProto_Decoder(const std::string & raw)37   explicit InputConnectionCallProto_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
InputConnectionCallProto_Decoder(const::protozero::ConstBytes & raw)38   explicit InputConnectionCallProto_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
has_get_text_before_cursor()39   bool has_get_text_before_cursor() const { return at<1>().valid(); }
get_text_before_cursor()40   ::protozero::ConstBytes get_text_before_cursor() const { return at<1>().as_bytes(); }
has_get_text_after_cursor()41   bool has_get_text_after_cursor() const { return at<2>().valid(); }
get_text_after_cursor()42   ::protozero::ConstBytes get_text_after_cursor() const { return at<2>().as_bytes(); }
has_get_selected_text()43   bool has_get_selected_text() const { return at<3>().valid(); }
get_selected_text()44   ::protozero::ConstBytes get_selected_text() const { return at<3>().as_bytes(); }
has_get_surrounding_text()45   bool has_get_surrounding_text() const { return at<4>().valid(); }
get_surrounding_text()46   ::protozero::ConstBytes get_surrounding_text() const { return at<4>().as_bytes(); }
has_get_cursor_caps_mode()47   bool has_get_cursor_caps_mode() const { return at<5>().valid(); }
get_cursor_caps_mode()48   ::protozero::ConstBytes get_cursor_caps_mode() const { return at<5>().as_bytes(); }
has_get_extracted_text()49   bool has_get_extracted_text() const { return at<6>().valid(); }
get_extracted_text()50   ::protozero::ConstBytes get_extracted_text() const { return at<6>().as_bytes(); }
51 };
52 
53 class InputConnectionCallProto : public ::protozero::Message {
54  public:
55   using Decoder = InputConnectionCallProto_Decoder;
56   enum : int32_t {
57     kGetTextBeforeCursorFieldNumber = 1,
58     kGetTextAfterCursorFieldNumber = 2,
59     kGetSelectedTextFieldNumber = 3,
60     kGetSurroundingTextFieldNumber = 4,
61     kGetCursorCapsModeFieldNumber = 5,
62     kGetExtractedTextFieldNumber = 6,
63   };
GetName()64   static constexpr const char* GetName() { return ".perfetto.protos.InputConnectionCallProto"; }
65 
66   using GetTextBeforeCursor = ::perfetto::protos::pbzero::InputConnectionCallProto_GetTextBeforeCursor;
67   using GetTextAfterCursor = ::perfetto::protos::pbzero::InputConnectionCallProto_GetTextAfterCursor;
68   using GetSelectedText = ::perfetto::protos::pbzero::InputConnectionCallProto_GetSelectedText;
69   using GetSurroundingText = ::perfetto::protos::pbzero::InputConnectionCallProto_GetSurroundingText;
70   using GetCursorCapsMode = ::perfetto::protos::pbzero::InputConnectionCallProto_GetCursorCapsMode;
71   using GetExtractedText = ::perfetto::protos::pbzero::InputConnectionCallProto_GetExtractedText;
72 
73   using FieldMetadata_GetTextBeforeCursor =
74     ::protozero::proto_utils::FieldMetadata<
75       1,
76       ::protozero::proto_utils::RepetitionType::kNotRepeated,
77       ::protozero::proto_utils::ProtoSchemaType::kMessage,
78       InputConnectionCallProto_GetTextBeforeCursor,
79       InputConnectionCallProto>;
80 
81   static constexpr FieldMetadata_GetTextBeforeCursor kGetTextBeforeCursor{};
set_get_text_before_cursor()82   template <typename T = InputConnectionCallProto_GetTextBeforeCursor> T* set_get_text_before_cursor() {
83     return BeginNestedMessage<T>(1);
84   }
85 
86 
87   using FieldMetadata_GetTextAfterCursor =
88     ::protozero::proto_utils::FieldMetadata<
89       2,
90       ::protozero::proto_utils::RepetitionType::kNotRepeated,
91       ::protozero::proto_utils::ProtoSchemaType::kMessage,
92       InputConnectionCallProto_GetTextAfterCursor,
93       InputConnectionCallProto>;
94 
95   static constexpr FieldMetadata_GetTextAfterCursor kGetTextAfterCursor{};
set_get_text_after_cursor()96   template <typename T = InputConnectionCallProto_GetTextAfterCursor> T* set_get_text_after_cursor() {
97     return BeginNestedMessage<T>(2);
98   }
99 
100 
101   using FieldMetadata_GetSelectedText =
102     ::protozero::proto_utils::FieldMetadata<
103       3,
104       ::protozero::proto_utils::RepetitionType::kNotRepeated,
105       ::protozero::proto_utils::ProtoSchemaType::kMessage,
106       InputConnectionCallProto_GetSelectedText,
107       InputConnectionCallProto>;
108 
109   static constexpr FieldMetadata_GetSelectedText kGetSelectedText{};
set_get_selected_text()110   template <typename T = InputConnectionCallProto_GetSelectedText> T* set_get_selected_text() {
111     return BeginNestedMessage<T>(3);
112   }
113 
114 
115   using FieldMetadata_GetSurroundingText =
116     ::protozero::proto_utils::FieldMetadata<
117       4,
118       ::protozero::proto_utils::RepetitionType::kNotRepeated,
119       ::protozero::proto_utils::ProtoSchemaType::kMessage,
120       InputConnectionCallProto_GetSurroundingText,
121       InputConnectionCallProto>;
122 
123   static constexpr FieldMetadata_GetSurroundingText kGetSurroundingText{};
set_get_surrounding_text()124   template <typename T = InputConnectionCallProto_GetSurroundingText> T* set_get_surrounding_text() {
125     return BeginNestedMessage<T>(4);
126   }
127 
128 
129   using FieldMetadata_GetCursorCapsMode =
130     ::protozero::proto_utils::FieldMetadata<
131       5,
132       ::protozero::proto_utils::RepetitionType::kNotRepeated,
133       ::protozero::proto_utils::ProtoSchemaType::kMessage,
134       InputConnectionCallProto_GetCursorCapsMode,
135       InputConnectionCallProto>;
136 
137   static constexpr FieldMetadata_GetCursorCapsMode kGetCursorCapsMode{};
set_get_cursor_caps_mode()138   template <typename T = InputConnectionCallProto_GetCursorCapsMode> T* set_get_cursor_caps_mode() {
139     return BeginNestedMessage<T>(5);
140   }
141 
142 
143   using FieldMetadata_GetExtractedText =
144     ::protozero::proto_utils::FieldMetadata<
145       6,
146       ::protozero::proto_utils::RepetitionType::kNotRepeated,
147       ::protozero::proto_utils::ProtoSchemaType::kMessage,
148       InputConnectionCallProto_GetExtractedText,
149       InputConnectionCallProto>;
150 
151   static constexpr FieldMetadata_GetExtractedText kGetExtractedText{};
set_get_extracted_text()152   template <typename T = InputConnectionCallProto_GetExtractedText> T* set_get_extracted_text() {
153     return BeginNestedMessage<T>(6);
154   }
155 
156 };
157 
158 class InputConnectionCallProto_GetExtractedText_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/2, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
159  public:
InputConnectionCallProto_GetExtractedText_Decoder(const uint8_t * data,size_t len)160   InputConnectionCallProto_GetExtractedText_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
InputConnectionCallProto_GetExtractedText_Decoder(const std::string & raw)161   explicit InputConnectionCallProto_GetExtractedText_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
InputConnectionCallProto_GetExtractedText_Decoder(const::protozero::ConstBytes & raw)162   explicit InputConnectionCallProto_GetExtractedText_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
has_request()163   bool has_request() const { return at<1>().valid(); }
request()164   ::protozero::ConstBytes request() const { return at<1>().as_bytes(); }
has_flags()165   bool has_flags() const { return at<2>().valid(); }
flags()166   int32_t flags() const { return at<2>().as_int32(); }
167 };
168 
169 class InputConnectionCallProto_GetExtractedText : public ::protozero::Message {
170  public:
171   using Decoder = InputConnectionCallProto_GetExtractedText_Decoder;
172   enum : int32_t {
173     kRequestFieldNumber = 1,
174     kFlagsFieldNumber = 2,
175   };
GetName()176   static constexpr const char* GetName() { return ".perfetto.protos.InputConnectionCallProto.GetExtractedText"; }
177 
178   using ExtractedTextRequest = ::perfetto::protos::pbzero::InputConnectionCallProto_GetExtractedText_ExtractedTextRequest;
179 
180   using FieldMetadata_Request =
181     ::protozero::proto_utils::FieldMetadata<
182       1,
183       ::protozero::proto_utils::RepetitionType::kNotRepeated,
184       ::protozero::proto_utils::ProtoSchemaType::kMessage,
185       InputConnectionCallProto_GetExtractedText_ExtractedTextRequest,
186       InputConnectionCallProto_GetExtractedText>;
187 
188   static constexpr FieldMetadata_Request kRequest{};
set_request()189   template <typename T = InputConnectionCallProto_GetExtractedText_ExtractedTextRequest> T* set_request() {
190     return BeginNestedMessage<T>(1);
191   }
192 
193 
194   using FieldMetadata_Flags =
195     ::protozero::proto_utils::FieldMetadata<
196       2,
197       ::protozero::proto_utils::RepetitionType::kNotRepeated,
198       ::protozero::proto_utils::ProtoSchemaType::kInt32,
199       int32_t,
200       InputConnectionCallProto_GetExtractedText>;
201 
202   static constexpr FieldMetadata_Flags kFlags{};
set_flags(int32_t value)203   void set_flags(int32_t value) {
204     static constexpr uint32_t field_id = FieldMetadata_Flags::kFieldId;
205     // Call the appropriate protozero::Message::Append(field_id, ...)
206     // method based on the type of the field.
207     ::protozero::internal::FieldWriter<
208       ::protozero::proto_utils::ProtoSchemaType::kInt32>
209         ::Append(*this, field_id, value);
210   }
211 };
212 
213 class InputConnectionCallProto_GetExtractedText_ExtractedTextRequest_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/4, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
214  public:
InputConnectionCallProto_GetExtractedText_ExtractedTextRequest_Decoder(const uint8_t * data,size_t len)215   InputConnectionCallProto_GetExtractedText_ExtractedTextRequest_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
InputConnectionCallProto_GetExtractedText_ExtractedTextRequest_Decoder(const std::string & raw)216   explicit InputConnectionCallProto_GetExtractedText_ExtractedTextRequest_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
InputConnectionCallProto_GetExtractedText_ExtractedTextRequest_Decoder(const::protozero::ConstBytes & raw)217   explicit InputConnectionCallProto_GetExtractedText_ExtractedTextRequest_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
has_token()218   bool has_token() const { return at<1>().valid(); }
token()219   int32_t token() const { return at<1>().as_int32(); }
has_flags()220   bool has_flags() const { return at<2>().valid(); }
flags()221   int32_t flags() const { return at<2>().as_int32(); }
has_hint_max_lines()222   bool has_hint_max_lines() const { return at<3>().valid(); }
hint_max_lines()223   int32_t hint_max_lines() const { return at<3>().as_int32(); }
has_hint_max_chars()224   bool has_hint_max_chars() const { return at<4>().valid(); }
hint_max_chars()225   int32_t hint_max_chars() const { return at<4>().as_int32(); }
226 };
227 
228 class InputConnectionCallProto_GetExtractedText_ExtractedTextRequest : public ::protozero::Message {
229  public:
230   using Decoder = InputConnectionCallProto_GetExtractedText_ExtractedTextRequest_Decoder;
231   enum : int32_t {
232     kTokenFieldNumber = 1,
233     kFlagsFieldNumber = 2,
234     kHintMaxLinesFieldNumber = 3,
235     kHintMaxCharsFieldNumber = 4,
236   };
GetName()237   static constexpr const char* GetName() { return ".perfetto.protos.InputConnectionCallProto.GetExtractedText.ExtractedTextRequest"; }
238 
239 
240   using FieldMetadata_Token =
241     ::protozero::proto_utils::FieldMetadata<
242       1,
243       ::protozero::proto_utils::RepetitionType::kNotRepeated,
244       ::protozero::proto_utils::ProtoSchemaType::kInt32,
245       int32_t,
246       InputConnectionCallProto_GetExtractedText_ExtractedTextRequest>;
247 
248   static constexpr FieldMetadata_Token kToken{};
set_token(int32_t value)249   void set_token(int32_t value) {
250     static constexpr uint32_t field_id = FieldMetadata_Token::kFieldId;
251     // Call the appropriate protozero::Message::Append(field_id, ...)
252     // method based on the type of the field.
253     ::protozero::internal::FieldWriter<
254       ::protozero::proto_utils::ProtoSchemaType::kInt32>
255         ::Append(*this, field_id, value);
256   }
257 
258   using FieldMetadata_Flags =
259     ::protozero::proto_utils::FieldMetadata<
260       2,
261       ::protozero::proto_utils::RepetitionType::kNotRepeated,
262       ::protozero::proto_utils::ProtoSchemaType::kInt32,
263       int32_t,
264       InputConnectionCallProto_GetExtractedText_ExtractedTextRequest>;
265 
266   static constexpr FieldMetadata_Flags kFlags{};
set_flags(int32_t value)267   void set_flags(int32_t value) {
268     static constexpr uint32_t field_id = FieldMetadata_Flags::kFieldId;
269     // Call the appropriate protozero::Message::Append(field_id, ...)
270     // method based on the type of the field.
271     ::protozero::internal::FieldWriter<
272       ::protozero::proto_utils::ProtoSchemaType::kInt32>
273         ::Append(*this, field_id, value);
274   }
275 
276   using FieldMetadata_HintMaxLines =
277     ::protozero::proto_utils::FieldMetadata<
278       3,
279       ::protozero::proto_utils::RepetitionType::kNotRepeated,
280       ::protozero::proto_utils::ProtoSchemaType::kInt32,
281       int32_t,
282       InputConnectionCallProto_GetExtractedText_ExtractedTextRequest>;
283 
284   static constexpr FieldMetadata_HintMaxLines kHintMaxLines{};
set_hint_max_lines(int32_t value)285   void set_hint_max_lines(int32_t value) {
286     static constexpr uint32_t field_id = FieldMetadata_HintMaxLines::kFieldId;
287     // Call the appropriate protozero::Message::Append(field_id, ...)
288     // method based on the type of the field.
289     ::protozero::internal::FieldWriter<
290       ::protozero::proto_utils::ProtoSchemaType::kInt32>
291         ::Append(*this, field_id, value);
292   }
293 
294   using FieldMetadata_HintMaxChars =
295     ::protozero::proto_utils::FieldMetadata<
296       4,
297       ::protozero::proto_utils::RepetitionType::kNotRepeated,
298       ::protozero::proto_utils::ProtoSchemaType::kInt32,
299       int32_t,
300       InputConnectionCallProto_GetExtractedText_ExtractedTextRequest>;
301 
302   static constexpr FieldMetadata_HintMaxChars kHintMaxChars{};
set_hint_max_chars(int32_t value)303   void set_hint_max_chars(int32_t value) {
304     static constexpr uint32_t field_id = FieldMetadata_HintMaxChars::kFieldId;
305     // Call the appropriate protozero::Message::Append(field_id, ...)
306     // method based on the type of the field.
307     ::protozero::internal::FieldWriter<
308       ::protozero::proto_utils::ProtoSchemaType::kInt32>
309         ::Append(*this, field_id, value);
310   }
311 };
312 
313 class InputConnectionCallProto_GetCursorCapsMode_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/2, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
314  public:
InputConnectionCallProto_GetCursorCapsMode_Decoder(const uint8_t * data,size_t len)315   InputConnectionCallProto_GetCursorCapsMode_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
InputConnectionCallProto_GetCursorCapsMode_Decoder(const std::string & raw)316   explicit InputConnectionCallProto_GetCursorCapsMode_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
InputConnectionCallProto_GetCursorCapsMode_Decoder(const::protozero::ConstBytes & raw)317   explicit InputConnectionCallProto_GetCursorCapsMode_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
has_req_modes()318   bool has_req_modes() const { return at<1>().valid(); }
req_modes()319   int32_t req_modes() const { return at<1>().as_int32(); }
has_result()320   bool has_result() const { return at<2>().valid(); }
result()321   int32_t result() const { return at<2>().as_int32(); }
322 };
323 
324 class InputConnectionCallProto_GetCursorCapsMode : public ::protozero::Message {
325  public:
326   using Decoder = InputConnectionCallProto_GetCursorCapsMode_Decoder;
327   enum : int32_t {
328     kReqModesFieldNumber = 1,
329     kResultFieldNumber = 2,
330   };
GetName()331   static constexpr const char* GetName() { return ".perfetto.protos.InputConnectionCallProto.GetCursorCapsMode"; }
332 
333 
334   using FieldMetadata_ReqModes =
335     ::protozero::proto_utils::FieldMetadata<
336       1,
337       ::protozero::proto_utils::RepetitionType::kNotRepeated,
338       ::protozero::proto_utils::ProtoSchemaType::kInt32,
339       int32_t,
340       InputConnectionCallProto_GetCursorCapsMode>;
341 
342   static constexpr FieldMetadata_ReqModes kReqModes{};
set_req_modes(int32_t value)343   void set_req_modes(int32_t value) {
344     static constexpr uint32_t field_id = FieldMetadata_ReqModes::kFieldId;
345     // Call the appropriate protozero::Message::Append(field_id, ...)
346     // method based on the type of the field.
347     ::protozero::internal::FieldWriter<
348       ::protozero::proto_utils::ProtoSchemaType::kInt32>
349         ::Append(*this, field_id, value);
350   }
351 
352   using FieldMetadata_Result =
353     ::protozero::proto_utils::FieldMetadata<
354       2,
355       ::protozero::proto_utils::RepetitionType::kNotRepeated,
356       ::protozero::proto_utils::ProtoSchemaType::kInt32,
357       int32_t,
358       InputConnectionCallProto_GetCursorCapsMode>;
359 
360   static constexpr FieldMetadata_Result kResult{};
set_result(int32_t value)361   void set_result(int32_t value) {
362     static constexpr uint32_t field_id = FieldMetadata_Result::kFieldId;
363     // Call the appropriate protozero::Message::Append(field_id, ...)
364     // method based on the type of the field.
365     ::protozero::internal::FieldWriter<
366       ::protozero::proto_utils::ProtoSchemaType::kInt32>
367         ::Append(*this, field_id, value);
368   }
369 };
370 
371 class InputConnectionCallProto_GetSurroundingText_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/4, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
372  public:
InputConnectionCallProto_GetSurroundingText_Decoder(const uint8_t * data,size_t len)373   InputConnectionCallProto_GetSurroundingText_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
InputConnectionCallProto_GetSurroundingText_Decoder(const std::string & raw)374   explicit InputConnectionCallProto_GetSurroundingText_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
InputConnectionCallProto_GetSurroundingText_Decoder(const::protozero::ConstBytes & raw)375   explicit InputConnectionCallProto_GetSurroundingText_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
has_before_length()376   bool has_before_length() const { return at<1>().valid(); }
before_length()377   int32_t before_length() const { return at<1>().as_int32(); }
has_after_length()378   bool has_after_length() const { return at<2>().valid(); }
after_length()379   int32_t after_length() const { return at<2>().as_int32(); }
has_flags()380   bool has_flags() const { return at<3>().valid(); }
flags()381   int32_t flags() const { return at<3>().as_int32(); }
has_result()382   bool has_result() const { return at<4>().valid(); }
result()383   ::protozero::ConstBytes result() const { return at<4>().as_bytes(); }
384 };
385 
386 class InputConnectionCallProto_GetSurroundingText : public ::protozero::Message {
387  public:
388   using Decoder = InputConnectionCallProto_GetSurroundingText_Decoder;
389   enum : int32_t {
390     kBeforeLengthFieldNumber = 1,
391     kAfterLengthFieldNumber = 2,
392     kFlagsFieldNumber = 3,
393     kResultFieldNumber = 4,
394   };
GetName()395   static constexpr const char* GetName() { return ".perfetto.protos.InputConnectionCallProto.GetSurroundingText"; }
396 
397   using SurroundingText = ::perfetto::protos::pbzero::InputConnectionCallProto_GetSurroundingText_SurroundingText;
398 
399   using FieldMetadata_BeforeLength =
400     ::protozero::proto_utils::FieldMetadata<
401       1,
402       ::protozero::proto_utils::RepetitionType::kNotRepeated,
403       ::protozero::proto_utils::ProtoSchemaType::kInt32,
404       int32_t,
405       InputConnectionCallProto_GetSurroundingText>;
406 
407   static constexpr FieldMetadata_BeforeLength kBeforeLength{};
set_before_length(int32_t value)408   void set_before_length(int32_t value) {
409     static constexpr uint32_t field_id = FieldMetadata_BeforeLength::kFieldId;
410     // Call the appropriate protozero::Message::Append(field_id, ...)
411     // method based on the type of the field.
412     ::protozero::internal::FieldWriter<
413       ::protozero::proto_utils::ProtoSchemaType::kInt32>
414         ::Append(*this, field_id, value);
415   }
416 
417   using FieldMetadata_AfterLength =
418     ::protozero::proto_utils::FieldMetadata<
419       2,
420       ::protozero::proto_utils::RepetitionType::kNotRepeated,
421       ::protozero::proto_utils::ProtoSchemaType::kInt32,
422       int32_t,
423       InputConnectionCallProto_GetSurroundingText>;
424 
425   static constexpr FieldMetadata_AfterLength kAfterLength{};
set_after_length(int32_t value)426   void set_after_length(int32_t value) {
427     static constexpr uint32_t field_id = FieldMetadata_AfterLength::kFieldId;
428     // Call the appropriate protozero::Message::Append(field_id, ...)
429     // method based on the type of the field.
430     ::protozero::internal::FieldWriter<
431       ::protozero::proto_utils::ProtoSchemaType::kInt32>
432         ::Append(*this, field_id, value);
433   }
434 
435   using FieldMetadata_Flags =
436     ::protozero::proto_utils::FieldMetadata<
437       3,
438       ::protozero::proto_utils::RepetitionType::kNotRepeated,
439       ::protozero::proto_utils::ProtoSchemaType::kInt32,
440       int32_t,
441       InputConnectionCallProto_GetSurroundingText>;
442 
443   static constexpr FieldMetadata_Flags kFlags{};
set_flags(int32_t value)444   void set_flags(int32_t value) {
445     static constexpr uint32_t field_id = FieldMetadata_Flags::kFieldId;
446     // Call the appropriate protozero::Message::Append(field_id, ...)
447     // method based on the type of the field.
448     ::protozero::internal::FieldWriter<
449       ::protozero::proto_utils::ProtoSchemaType::kInt32>
450         ::Append(*this, field_id, value);
451   }
452 
453   using FieldMetadata_Result =
454     ::protozero::proto_utils::FieldMetadata<
455       4,
456       ::protozero::proto_utils::RepetitionType::kNotRepeated,
457       ::protozero::proto_utils::ProtoSchemaType::kMessage,
458       InputConnectionCallProto_GetSurroundingText_SurroundingText,
459       InputConnectionCallProto_GetSurroundingText>;
460 
461   static constexpr FieldMetadata_Result kResult{};
set_result()462   template <typename T = InputConnectionCallProto_GetSurroundingText_SurroundingText> T* set_result() {
463     return BeginNestedMessage<T>(4);
464   }
465 
466 };
467 
468 class InputConnectionCallProto_GetSurroundingText_SurroundingText_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/4, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
469  public:
InputConnectionCallProto_GetSurroundingText_SurroundingText_Decoder(const uint8_t * data,size_t len)470   InputConnectionCallProto_GetSurroundingText_SurroundingText_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
InputConnectionCallProto_GetSurroundingText_SurroundingText_Decoder(const std::string & raw)471   explicit InputConnectionCallProto_GetSurroundingText_SurroundingText_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
InputConnectionCallProto_GetSurroundingText_SurroundingText_Decoder(const::protozero::ConstBytes & raw)472   explicit InputConnectionCallProto_GetSurroundingText_SurroundingText_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
has_selection_start()473   bool has_selection_start() const { return at<2>().valid(); }
selection_start()474   int32_t selection_start() const { return at<2>().as_int32(); }
has_selection_end()475   bool has_selection_end() const { return at<3>().valid(); }
selection_end()476   int32_t selection_end() const { return at<3>().as_int32(); }
has_offset()477   bool has_offset() const { return at<4>().valid(); }
offset()478   int32_t offset() const { return at<4>().as_int32(); }
479 };
480 
481 class InputConnectionCallProto_GetSurroundingText_SurroundingText : public ::protozero::Message {
482  public:
483   using Decoder = InputConnectionCallProto_GetSurroundingText_SurroundingText_Decoder;
484   enum : int32_t {
485     kSelectionStartFieldNumber = 2,
486     kSelectionEndFieldNumber = 3,
487     kOffsetFieldNumber = 4,
488   };
GetName()489   static constexpr const char* GetName() { return ".perfetto.protos.InputConnectionCallProto.GetSurroundingText.SurroundingText"; }
490 
491 
492   using FieldMetadata_SelectionStart =
493     ::protozero::proto_utils::FieldMetadata<
494       2,
495       ::protozero::proto_utils::RepetitionType::kNotRepeated,
496       ::protozero::proto_utils::ProtoSchemaType::kInt32,
497       int32_t,
498       InputConnectionCallProto_GetSurroundingText_SurroundingText>;
499 
500   static constexpr FieldMetadata_SelectionStart kSelectionStart{};
set_selection_start(int32_t value)501   void set_selection_start(int32_t value) {
502     static constexpr uint32_t field_id = FieldMetadata_SelectionStart::kFieldId;
503     // Call the appropriate protozero::Message::Append(field_id, ...)
504     // method based on the type of the field.
505     ::protozero::internal::FieldWriter<
506       ::protozero::proto_utils::ProtoSchemaType::kInt32>
507         ::Append(*this, field_id, value);
508   }
509 
510   using FieldMetadata_SelectionEnd =
511     ::protozero::proto_utils::FieldMetadata<
512       3,
513       ::protozero::proto_utils::RepetitionType::kNotRepeated,
514       ::protozero::proto_utils::ProtoSchemaType::kInt32,
515       int32_t,
516       InputConnectionCallProto_GetSurroundingText_SurroundingText>;
517 
518   static constexpr FieldMetadata_SelectionEnd kSelectionEnd{};
set_selection_end(int32_t value)519   void set_selection_end(int32_t value) {
520     static constexpr uint32_t field_id = FieldMetadata_SelectionEnd::kFieldId;
521     // Call the appropriate protozero::Message::Append(field_id, ...)
522     // method based on the type of the field.
523     ::protozero::internal::FieldWriter<
524       ::protozero::proto_utils::ProtoSchemaType::kInt32>
525         ::Append(*this, field_id, value);
526   }
527 
528   using FieldMetadata_Offset =
529     ::protozero::proto_utils::FieldMetadata<
530       4,
531       ::protozero::proto_utils::RepetitionType::kNotRepeated,
532       ::protozero::proto_utils::ProtoSchemaType::kInt32,
533       int32_t,
534       InputConnectionCallProto_GetSurroundingText_SurroundingText>;
535 
536   static constexpr FieldMetadata_Offset kOffset{};
set_offset(int32_t value)537   void set_offset(int32_t value) {
538     static constexpr uint32_t field_id = FieldMetadata_Offset::kFieldId;
539     // Call the appropriate protozero::Message::Append(field_id, ...)
540     // method based on the type of the field.
541     ::protozero::internal::FieldWriter<
542       ::protozero::proto_utils::ProtoSchemaType::kInt32>
543         ::Append(*this, field_id, value);
544   }
545 };
546 
547 class InputConnectionCallProto_GetSelectedText_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/1, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
548  public:
InputConnectionCallProto_GetSelectedText_Decoder(const uint8_t * data,size_t len)549   InputConnectionCallProto_GetSelectedText_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
InputConnectionCallProto_GetSelectedText_Decoder(const std::string & raw)550   explicit InputConnectionCallProto_GetSelectedText_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
InputConnectionCallProto_GetSelectedText_Decoder(const::protozero::ConstBytes & raw)551   explicit InputConnectionCallProto_GetSelectedText_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
has_flags()552   bool has_flags() const { return at<1>().valid(); }
flags()553   int32_t flags() const { return at<1>().as_int32(); }
554 };
555 
556 class InputConnectionCallProto_GetSelectedText : public ::protozero::Message {
557  public:
558   using Decoder = InputConnectionCallProto_GetSelectedText_Decoder;
559   enum : int32_t {
560     kFlagsFieldNumber = 1,
561   };
GetName()562   static constexpr const char* GetName() { return ".perfetto.protos.InputConnectionCallProto.GetSelectedText"; }
563 
564 
565   using FieldMetadata_Flags =
566     ::protozero::proto_utils::FieldMetadata<
567       1,
568       ::protozero::proto_utils::RepetitionType::kNotRepeated,
569       ::protozero::proto_utils::ProtoSchemaType::kInt32,
570       int32_t,
571       InputConnectionCallProto_GetSelectedText>;
572 
573   static constexpr FieldMetadata_Flags kFlags{};
set_flags(int32_t value)574   void set_flags(int32_t value) {
575     static constexpr uint32_t field_id = FieldMetadata_Flags::kFieldId;
576     // Call the appropriate protozero::Message::Append(field_id, ...)
577     // method based on the type of the field.
578     ::protozero::internal::FieldWriter<
579       ::protozero::proto_utils::ProtoSchemaType::kInt32>
580         ::Append(*this, field_id, value);
581   }
582 };
583 
584 class InputConnectionCallProto_GetTextAfterCursor_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/2, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
585  public:
InputConnectionCallProto_GetTextAfterCursor_Decoder(const uint8_t * data,size_t len)586   InputConnectionCallProto_GetTextAfterCursor_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
InputConnectionCallProto_GetTextAfterCursor_Decoder(const std::string & raw)587   explicit InputConnectionCallProto_GetTextAfterCursor_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
InputConnectionCallProto_GetTextAfterCursor_Decoder(const::protozero::ConstBytes & raw)588   explicit InputConnectionCallProto_GetTextAfterCursor_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
has_length()589   bool has_length() const { return at<1>().valid(); }
length()590   int32_t length() const { return at<1>().as_int32(); }
has_flags()591   bool has_flags() const { return at<2>().valid(); }
flags()592   int32_t flags() const { return at<2>().as_int32(); }
593 };
594 
595 class InputConnectionCallProto_GetTextAfterCursor : public ::protozero::Message {
596  public:
597   using Decoder = InputConnectionCallProto_GetTextAfterCursor_Decoder;
598   enum : int32_t {
599     kLengthFieldNumber = 1,
600     kFlagsFieldNumber = 2,
601   };
GetName()602   static constexpr const char* GetName() { return ".perfetto.protos.InputConnectionCallProto.GetTextAfterCursor"; }
603 
604 
605   using FieldMetadata_Length =
606     ::protozero::proto_utils::FieldMetadata<
607       1,
608       ::protozero::proto_utils::RepetitionType::kNotRepeated,
609       ::protozero::proto_utils::ProtoSchemaType::kInt32,
610       int32_t,
611       InputConnectionCallProto_GetTextAfterCursor>;
612 
613   static constexpr FieldMetadata_Length kLength{};
set_length(int32_t value)614   void set_length(int32_t value) {
615     static constexpr uint32_t field_id = FieldMetadata_Length::kFieldId;
616     // Call the appropriate protozero::Message::Append(field_id, ...)
617     // method based on the type of the field.
618     ::protozero::internal::FieldWriter<
619       ::protozero::proto_utils::ProtoSchemaType::kInt32>
620         ::Append(*this, field_id, value);
621   }
622 
623   using FieldMetadata_Flags =
624     ::protozero::proto_utils::FieldMetadata<
625       2,
626       ::protozero::proto_utils::RepetitionType::kNotRepeated,
627       ::protozero::proto_utils::ProtoSchemaType::kInt32,
628       int32_t,
629       InputConnectionCallProto_GetTextAfterCursor>;
630 
631   static constexpr FieldMetadata_Flags kFlags{};
set_flags(int32_t value)632   void set_flags(int32_t value) {
633     static constexpr uint32_t field_id = FieldMetadata_Flags::kFieldId;
634     // Call the appropriate protozero::Message::Append(field_id, ...)
635     // method based on the type of the field.
636     ::protozero::internal::FieldWriter<
637       ::protozero::proto_utils::ProtoSchemaType::kInt32>
638         ::Append(*this, field_id, value);
639   }
640 };
641 
642 class InputConnectionCallProto_GetTextBeforeCursor_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/2, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
643  public:
InputConnectionCallProto_GetTextBeforeCursor_Decoder(const uint8_t * data,size_t len)644   InputConnectionCallProto_GetTextBeforeCursor_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
InputConnectionCallProto_GetTextBeforeCursor_Decoder(const std::string & raw)645   explicit InputConnectionCallProto_GetTextBeforeCursor_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
InputConnectionCallProto_GetTextBeforeCursor_Decoder(const::protozero::ConstBytes & raw)646   explicit InputConnectionCallProto_GetTextBeforeCursor_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
has_length()647   bool has_length() const { return at<1>().valid(); }
length()648   int32_t length() const { return at<1>().as_int32(); }
has_flags()649   bool has_flags() const { return at<2>().valid(); }
flags()650   int32_t flags() const { return at<2>().as_int32(); }
651 };
652 
653 class InputConnectionCallProto_GetTextBeforeCursor : public ::protozero::Message {
654  public:
655   using Decoder = InputConnectionCallProto_GetTextBeforeCursor_Decoder;
656   enum : int32_t {
657     kLengthFieldNumber = 1,
658     kFlagsFieldNumber = 2,
659   };
GetName()660   static constexpr const char* GetName() { return ".perfetto.protos.InputConnectionCallProto.GetTextBeforeCursor"; }
661 
662 
663   using FieldMetadata_Length =
664     ::protozero::proto_utils::FieldMetadata<
665       1,
666       ::protozero::proto_utils::RepetitionType::kNotRepeated,
667       ::protozero::proto_utils::ProtoSchemaType::kInt32,
668       int32_t,
669       InputConnectionCallProto_GetTextBeforeCursor>;
670 
671   static constexpr FieldMetadata_Length kLength{};
set_length(int32_t value)672   void set_length(int32_t value) {
673     static constexpr uint32_t field_id = FieldMetadata_Length::kFieldId;
674     // Call the appropriate protozero::Message::Append(field_id, ...)
675     // method based on the type of the field.
676     ::protozero::internal::FieldWriter<
677       ::protozero::proto_utils::ProtoSchemaType::kInt32>
678         ::Append(*this, field_id, value);
679   }
680 
681   using FieldMetadata_Flags =
682     ::protozero::proto_utils::FieldMetadata<
683       2,
684       ::protozero::proto_utils::RepetitionType::kNotRepeated,
685       ::protozero::proto_utils::ProtoSchemaType::kInt32,
686       int32_t,
687       InputConnectionCallProto_GetTextBeforeCursor>;
688 
689   static constexpr FieldMetadata_Flags kFlags{};
set_flags(int32_t value)690   void set_flags(int32_t value) {
691     static constexpr uint32_t field_id = FieldMetadata_Flags::kFieldId;
692     // Call the appropriate protozero::Message::Append(field_id, ...)
693     // method based on the type of the field.
694     ::protozero::internal::FieldWriter<
695       ::protozero::proto_utils::ProtoSchemaType::kInt32>
696         ::Append(*this, field_id, value);
697   }
698 };
699 
700 class InputConnectionProto_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/5, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
701  public:
InputConnectionProto_Decoder(const uint8_t * data,size_t len)702   InputConnectionProto_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
InputConnectionProto_Decoder(const std::string & raw)703   explicit InputConnectionProto_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
InputConnectionProto_Decoder(const::protozero::ConstBytes & raw)704   explicit InputConnectionProto_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
has_selected_text_start()705   bool has_selected_text_start() const { return at<3>().valid(); }
selected_text_start()706   int32_t selected_text_start() const { return at<3>().as_int32(); }
has_selected_text_end()707   bool has_selected_text_end() const { return at<4>().valid(); }
selected_text_end()708   int32_t selected_text_end() const { return at<4>().as_int32(); }
has_cursor_caps_mode()709   bool has_cursor_caps_mode() const { return at<5>().valid(); }
cursor_caps_mode()710   int32_t cursor_caps_mode() const { return at<5>().as_int32(); }
711 };
712 
713 class InputConnectionProto : public ::protozero::Message {
714  public:
715   using Decoder = InputConnectionProto_Decoder;
716   enum : int32_t {
717     kSelectedTextStartFieldNumber = 3,
718     kSelectedTextEndFieldNumber = 4,
719     kCursorCapsModeFieldNumber = 5,
720   };
GetName()721   static constexpr const char* GetName() { return ".perfetto.protos.InputConnectionProto"; }
722 
723 
724   using FieldMetadata_SelectedTextStart =
725     ::protozero::proto_utils::FieldMetadata<
726       3,
727       ::protozero::proto_utils::RepetitionType::kNotRepeated,
728       ::protozero::proto_utils::ProtoSchemaType::kInt32,
729       int32_t,
730       InputConnectionProto>;
731 
732   static constexpr FieldMetadata_SelectedTextStart kSelectedTextStart{};
set_selected_text_start(int32_t value)733   void set_selected_text_start(int32_t value) {
734     static constexpr uint32_t field_id = FieldMetadata_SelectedTextStart::kFieldId;
735     // Call the appropriate protozero::Message::Append(field_id, ...)
736     // method based on the type of the field.
737     ::protozero::internal::FieldWriter<
738       ::protozero::proto_utils::ProtoSchemaType::kInt32>
739         ::Append(*this, field_id, value);
740   }
741 
742   using FieldMetadata_SelectedTextEnd =
743     ::protozero::proto_utils::FieldMetadata<
744       4,
745       ::protozero::proto_utils::RepetitionType::kNotRepeated,
746       ::protozero::proto_utils::ProtoSchemaType::kInt32,
747       int32_t,
748       InputConnectionProto>;
749 
750   static constexpr FieldMetadata_SelectedTextEnd kSelectedTextEnd{};
set_selected_text_end(int32_t value)751   void set_selected_text_end(int32_t value) {
752     static constexpr uint32_t field_id = FieldMetadata_SelectedTextEnd::kFieldId;
753     // Call the appropriate protozero::Message::Append(field_id, ...)
754     // method based on the type of the field.
755     ::protozero::internal::FieldWriter<
756       ::protozero::proto_utils::ProtoSchemaType::kInt32>
757         ::Append(*this, field_id, value);
758   }
759 
760   using FieldMetadata_CursorCapsMode =
761     ::protozero::proto_utils::FieldMetadata<
762       5,
763       ::protozero::proto_utils::RepetitionType::kNotRepeated,
764       ::protozero::proto_utils::ProtoSchemaType::kInt32,
765       int32_t,
766       InputConnectionProto>;
767 
768   static constexpr FieldMetadata_CursorCapsMode kCursorCapsMode{};
set_cursor_caps_mode(int32_t value)769   void set_cursor_caps_mode(int32_t value) {
770     static constexpr uint32_t field_id = FieldMetadata_CursorCapsMode::kFieldId;
771     // Call the appropriate protozero::Message::Append(field_id, ...)
772     // method based on the type of the field.
773     ::protozero::internal::FieldWriter<
774       ::protozero::proto_utils::ProtoSchemaType::kInt32>
775         ::Append(*this, field_id, value);
776   }
777 };
778 
779 } // Namespace.
780 } // Namespace.
781 } // Namespace.
782 #endif  // Include guard.
783