Skip to main content

buffa_types/generated/
google.protobuf.wrappers.rs

1// @generated by buffa-codegen. DO NOT EDIT.
2// source: google/protobuf/wrappers.proto
3
4/// Wrapper message for `double`.
5///
6/// The JSON representation for `DoubleValue` is JSON number.
7#[derive(Clone, PartialEq, Default)]
8#[cfg_attr(feature = "arbitrary", derive(::arbitrary::Arbitrary))]
9pub struct DoubleValue {
10    /// The double value.
11    ///
12    /// Field 1: `value`
13    pub value: f64,
14    #[doc(hidden)]
15    pub __buffa_unknown_fields: ::buffa::UnknownFields,
16}
17impl ::core::fmt::Debug for DoubleValue {
18    fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
19        f.debug_struct("DoubleValue").field("value", &self.value).finish()
20    }
21}
22impl DoubleValue {
23    /// Protobuf type URL for this message, for use with `Any::pack` and
24    /// `Any::unpack_if`.
25    ///
26    /// Format: `type.googleapis.com/<fully.qualified.TypeName>`
27    pub const TYPE_URL: &'static str = "type.googleapis.com/google.protobuf.DoubleValue";
28}
29::buffa::impl_default_instance!(DoubleValue);
30#[cfg(feature = "reflect")]
31const _: () = {
32    impl ::buffa_descriptor::reflect::ReflectMessage for DoubleValue {
33        fn message_descriptor(&self) -> &::buffa_descriptor::MessageDescriptor {
34            __buffa::reflect::descriptor_pool()
35                .message(Self::__buffa_reflect_message_index())
36        }
37        fn pool(
38            &self,
39        ) -> &::buffa::alloc::sync::Arc<::buffa_descriptor::DescriptorPool> {
40            __buffa::reflect::descriptor_pool()
41        }
42        fn unknown_fields(&self) -> &::buffa::UnknownFields {
43            &self.__buffa_unknown_fields
44        }
45        fn get(
46            &self,
47            field: &::buffa_descriptor::FieldDescriptor,
48        ) -> ::buffa_descriptor::reflect::ValueRef<'_> {
49            #[allow(unused_imports)]
50            use ::buffa::Enumeration as _;
51            match field.number() {
52                1u32 => ::buffa_descriptor::reflect::ValueRef::F64(self.value),
53                _ => {
54                    ::core::debug_assert!(
55                        false,
56                        "field number {} is not a member of this message's reflect get()",
57                        field.number(),
58                    );
59                    ::buffa_descriptor::reflect::ValueRef::Bool(false)
60                }
61            }
62        }
63        fn has(&self, field: &::buffa_descriptor::FieldDescriptor) -> bool {
64            match field.number() {
65                1u32 => self.value != 0.0,
66                _ => false,
67            }
68        }
69        fn for_each_set(
70            &self,
71            f: &mut dyn ::core::ops::FnMut(
72                &::buffa_descriptor::FieldDescriptor,
73                ::buffa_descriptor::reflect::ValueRef<'_>,
74            ),
75        ) {
76            let md = ::buffa_descriptor::reflect::ReflectMessage::message_descriptor(
77                self,
78            );
79            for fd in md.fields() {
80                if ::buffa_descriptor::reflect::ReflectMessage::has(self, fd) {
81                    f(fd, ::buffa_descriptor::reflect::ReflectMessage::get(self, fd));
82                }
83            }
84        }
85        fn to_dynamic(&self) -> ::buffa_descriptor::reflect::DynamicMessage {
86            ::buffa_descriptor::reflect::DynamicMessage::from_message(
87                self,
88                ::buffa::alloc::sync::Arc::clone(__buffa::reflect::descriptor_pool()),
89                Self::__buffa_reflect_message_index(),
90            )
91        }
92    }
93    impl ::buffa_descriptor::reflect::ReflectElement for DoubleValue {
94        #[inline]
95        fn as_value_ref(&self) -> ::buffa_descriptor::reflect::ValueRef<'_> {
96            ::buffa_descriptor::reflect::ValueRef::Message(
97                ::buffa_descriptor::reflect::ReflectCow::Borrowed(self),
98            )
99        }
100    }
101    impl DoubleValue {
102        /// Memoized `MessageIndex` for this message type, resolved once
103        /// against the package's embedded descriptor pool.
104        #[doc(hidden)]
105        fn __buffa_reflect_message_index() -> ::buffa_descriptor::MessageIndex {
106            static IDX: ::std::sync::OnceLock<::buffa_descriptor::MessageIndex> = ::std::sync::OnceLock::new();
107            *IDX
108                .get_or_init(|| {
109                    __buffa::reflect::descriptor_pool()
110                        .message_index(<Self as ::buffa::MessageName>::FULL_NAME)
111                        .expect(
112                            "generated message is registered in the embedded descriptor pool",
113                        )
114                })
115        }
116    }
117    impl ::buffa_descriptor::reflect::Reflectable for DoubleValue {
118        /// Vtable-mode reflective handle: borrows `self` directly. No
119        /// encode/decode round-trip and no allocation — the reflective
120        /// accessors read this message's fields in place.
121        #[inline]
122        fn reflect(&self) -> ::buffa_descriptor::reflect::ReflectCow<'_> {
123            ::buffa_descriptor::reflect::ReflectCow::Borrowed(self)
124        }
125    }
126};
127impl ::buffa::MessageName for DoubleValue {
128    const PACKAGE: &'static str = "google.protobuf";
129    const NAME: &'static str = "DoubleValue";
130    const FULL_NAME: &'static str = "google.protobuf.DoubleValue";
131    const TYPE_URL: &'static str = "type.googleapis.com/google.protobuf.DoubleValue";
132}
133impl ::buffa::Message for DoubleValue {
134    /// Returns the total encoded size in bytes.
135    ///
136    /// The result is a `u32`; the protobuf specification requires all
137    /// messages to fit within 2 GiB (2,147,483,647 bytes), so a
138    /// compliant message will never overflow this type.
139    #[allow(clippy::let_and_return)]
140    fn compute_size(&self, _cache: &mut ::buffa::SizeCache) -> u32 {
141        #[allow(unused_imports)]
142        use ::buffa::Enumeration as _;
143        let mut size = 0u32;
144        if self.value.to_bits() != 0u64 {
145            size += 1u32 + ::buffa::types::FIXED64_ENCODED_LEN as u32;
146        }
147        size += self.__buffa_unknown_fields.encoded_len() as u32;
148        size
149    }
150    fn write_to(
151        &self,
152        _cache: &mut ::buffa::SizeCache,
153        buf: &mut impl ::buffa::bytes::BufMut,
154    ) {
155        #[allow(unused_imports)]
156        use ::buffa::Enumeration as _;
157        if self.value.to_bits() != 0u64 {
158            ::buffa::types::put_double_field(1u32, self.value, buf);
159        }
160        self.__buffa_unknown_fields.write_to(buf);
161    }
162    fn merge_field(
163        &mut self,
164        tag: ::buffa::encoding::Tag,
165        buf: &mut impl ::buffa::bytes::Buf,
166        ctx: ::buffa::DecodeContext<'_>,
167    ) -> ::core::result::Result<(), ::buffa::DecodeError> {
168        #[allow(unused_imports)]
169        use ::buffa::bytes::Buf as _;
170        #[allow(unused_imports)]
171        use ::buffa::Enumeration as _;
172        match tag.field_number() {
173            1u32 => {
174                ::buffa::encoding::check_wire_type(
175                    tag,
176                    ::buffa::encoding::WireType::Fixed64,
177                )?;
178                self.value = ::buffa::types::decode_double(buf)?;
179            }
180            _ => {
181                self.__buffa_unknown_fields
182                    .push(::buffa::encoding::decode_unknown_field(tag, buf, ctx)?);
183            }
184        }
185        ::core::result::Result::Ok(())
186    }
187    fn clear(&mut self) {
188        self.value = 0f64;
189        self.__buffa_unknown_fields.clear();
190    }
191}
192impl ::buffa::ExtensionSet for DoubleValue {
193    const PROTO_FQN: &'static str = "google.protobuf.DoubleValue";
194    fn unknown_fields(&self) -> &::buffa::UnknownFields {
195        &self.__buffa_unknown_fields
196    }
197    fn unknown_fields_mut(&mut self) -> &mut ::buffa::UnknownFields {
198        &mut self.__buffa_unknown_fields
199    }
200}
201impl ::buffa::text::TextFormat for DoubleValue {
202    fn encode_text(
203        &self,
204        enc: &mut ::buffa::text::TextEncoder<'_>,
205    ) -> ::core::fmt::Result {
206        #[allow(unused_imports)]
207        use ::buffa::Enumeration as _;
208        if self.value.to_bits() != 0u64 {
209            enc.write_field_name("value")?;
210            enc.write_f64(self.value)?;
211        }
212        enc.write_unknown_fields(&self.__buffa_unknown_fields)?;
213        ::core::result::Result::Ok(())
214    }
215    fn merge_text(
216        &mut self,
217        dec: &mut ::buffa::text::TextDecoder<'_>,
218    ) -> ::core::result::Result<(), ::buffa::text::ParseError> {
219        #[allow(unused_imports)]
220        use ::buffa::Enumeration as _;
221        while let ::core::option::Option::Some(__name) = dec.read_field_name()? {
222            match __name {
223                "value" => self.value = dec.read_f64()?,
224                _ => dec.skip_value()?,
225            }
226        }
227        ::core::result::Result::Ok(())
228    }
229}
230#[doc(hidden)]
231pub const __DOUBLE_VALUE_TEXT_ANY: ::buffa::type_registry::TextAnyEntry = ::buffa::type_registry::TextAnyEntry {
232    type_url: "type.googleapis.com/google.protobuf.DoubleValue",
233    text_encode: ::buffa::type_registry::any_encode_text::<DoubleValue>,
234    text_merge: ::buffa::type_registry::any_merge_text::<DoubleValue>,
235};
236/// Wrapper message for `float`.
237///
238/// The JSON representation for `FloatValue` is JSON number.
239#[derive(Clone, PartialEq, Default)]
240#[cfg_attr(feature = "arbitrary", derive(::arbitrary::Arbitrary))]
241pub struct FloatValue {
242    /// The float value.
243    ///
244    /// Field 1: `value`
245    pub value: f32,
246    #[doc(hidden)]
247    pub __buffa_unknown_fields: ::buffa::UnknownFields,
248}
249impl ::core::fmt::Debug for FloatValue {
250    fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
251        f.debug_struct("FloatValue").field("value", &self.value).finish()
252    }
253}
254impl FloatValue {
255    /// Protobuf type URL for this message, for use with `Any::pack` and
256    /// `Any::unpack_if`.
257    ///
258    /// Format: `type.googleapis.com/<fully.qualified.TypeName>`
259    pub const TYPE_URL: &'static str = "type.googleapis.com/google.protobuf.FloatValue";
260}
261::buffa::impl_default_instance!(FloatValue);
262#[cfg(feature = "reflect")]
263const _: () = {
264    impl ::buffa_descriptor::reflect::ReflectMessage for FloatValue {
265        fn message_descriptor(&self) -> &::buffa_descriptor::MessageDescriptor {
266            __buffa::reflect::descriptor_pool()
267                .message(Self::__buffa_reflect_message_index())
268        }
269        fn pool(
270            &self,
271        ) -> &::buffa::alloc::sync::Arc<::buffa_descriptor::DescriptorPool> {
272            __buffa::reflect::descriptor_pool()
273        }
274        fn unknown_fields(&self) -> &::buffa::UnknownFields {
275            &self.__buffa_unknown_fields
276        }
277        fn get(
278            &self,
279            field: &::buffa_descriptor::FieldDescriptor,
280        ) -> ::buffa_descriptor::reflect::ValueRef<'_> {
281            #[allow(unused_imports)]
282            use ::buffa::Enumeration as _;
283            match field.number() {
284                1u32 => ::buffa_descriptor::reflect::ValueRef::F32(self.value),
285                _ => {
286                    ::core::debug_assert!(
287                        false,
288                        "field number {} is not a member of this message's reflect get()",
289                        field.number(),
290                    );
291                    ::buffa_descriptor::reflect::ValueRef::Bool(false)
292                }
293            }
294        }
295        fn has(&self, field: &::buffa_descriptor::FieldDescriptor) -> bool {
296            match field.number() {
297                1u32 => self.value != 0.0,
298                _ => false,
299            }
300        }
301        fn for_each_set(
302            &self,
303            f: &mut dyn ::core::ops::FnMut(
304                &::buffa_descriptor::FieldDescriptor,
305                ::buffa_descriptor::reflect::ValueRef<'_>,
306            ),
307        ) {
308            let md = ::buffa_descriptor::reflect::ReflectMessage::message_descriptor(
309                self,
310            );
311            for fd in md.fields() {
312                if ::buffa_descriptor::reflect::ReflectMessage::has(self, fd) {
313                    f(fd, ::buffa_descriptor::reflect::ReflectMessage::get(self, fd));
314                }
315            }
316        }
317        fn to_dynamic(&self) -> ::buffa_descriptor::reflect::DynamicMessage {
318            ::buffa_descriptor::reflect::DynamicMessage::from_message(
319                self,
320                ::buffa::alloc::sync::Arc::clone(__buffa::reflect::descriptor_pool()),
321                Self::__buffa_reflect_message_index(),
322            )
323        }
324    }
325    impl ::buffa_descriptor::reflect::ReflectElement for FloatValue {
326        #[inline]
327        fn as_value_ref(&self) -> ::buffa_descriptor::reflect::ValueRef<'_> {
328            ::buffa_descriptor::reflect::ValueRef::Message(
329                ::buffa_descriptor::reflect::ReflectCow::Borrowed(self),
330            )
331        }
332    }
333    impl FloatValue {
334        /// Memoized `MessageIndex` for this message type, resolved once
335        /// against the package's embedded descriptor pool.
336        #[doc(hidden)]
337        fn __buffa_reflect_message_index() -> ::buffa_descriptor::MessageIndex {
338            static IDX: ::std::sync::OnceLock<::buffa_descriptor::MessageIndex> = ::std::sync::OnceLock::new();
339            *IDX
340                .get_or_init(|| {
341                    __buffa::reflect::descriptor_pool()
342                        .message_index(<Self as ::buffa::MessageName>::FULL_NAME)
343                        .expect(
344                            "generated message is registered in the embedded descriptor pool",
345                        )
346                })
347        }
348    }
349    impl ::buffa_descriptor::reflect::Reflectable for FloatValue {
350        /// Vtable-mode reflective handle: borrows `self` directly. No
351        /// encode/decode round-trip and no allocation — the reflective
352        /// accessors read this message's fields in place.
353        #[inline]
354        fn reflect(&self) -> ::buffa_descriptor::reflect::ReflectCow<'_> {
355            ::buffa_descriptor::reflect::ReflectCow::Borrowed(self)
356        }
357    }
358};
359impl ::buffa::MessageName for FloatValue {
360    const PACKAGE: &'static str = "google.protobuf";
361    const NAME: &'static str = "FloatValue";
362    const FULL_NAME: &'static str = "google.protobuf.FloatValue";
363    const TYPE_URL: &'static str = "type.googleapis.com/google.protobuf.FloatValue";
364}
365impl ::buffa::Message for FloatValue {
366    /// Returns the total encoded size in bytes.
367    ///
368    /// The result is a `u32`; the protobuf specification requires all
369    /// messages to fit within 2 GiB (2,147,483,647 bytes), so a
370    /// compliant message will never overflow this type.
371    #[allow(clippy::let_and_return)]
372    fn compute_size(&self, _cache: &mut ::buffa::SizeCache) -> u32 {
373        #[allow(unused_imports)]
374        use ::buffa::Enumeration as _;
375        let mut size = 0u32;
376        if self.value.to_bits() != 0u32 {
377            size += 1u32 + ::buffa::types::FIXED32_ENCODED_LEN as u32;
378        }
379        size += self.__buffa_unknown_fields.encoded_len() as u32;
380        size
381    }
382    fn write_to(
383        &self,
384        _cache: &mut ::buffa::SizeCache,
385        buf: &mut impl ::buffa::bytes::BufMut,
386    ) {
387        #[allow(unused_imports)]
388        use ::buffa::Enumeration as _;
389        if self.value.to_bits() != 0u32 {
390            ::buffa::types::put_float_field(1u32, self.value, buf);
391        }
392        self.__buffa_unknown_fields.write_to(buf);
393    }
394    fn merge_field(
395        &mut self,
396        tag: ::buffa::encoding::Tag,
397        buf: &mut impl ::buffa::bytes::Buf,
398        ctx: ::buffa::DecodeContext<'_>,
399    ) -> ::core::result::Result<(), ::buffa::DecodeError> {
400        #[allow(unused_imports)]
401        use ::buffa::bytes::Buf as _;
402        #[allow(unused_imports)]
403        use ::buffa::Enumeration as _;
404        match tag.field_number() {
405            1u32 => {
406                ::buffa::encoding::check_wire_type(
407                    tag,
408                    ::buffa::encoding::WireType::Fixed32,
409                )?;
410                self.value = ::buffa::types::decode_float(buf)?;
411            }
412            _ => {
413                self.__buffa_unknown_fields
414                    .push(::buffa::encoding::decode_unknown_field(tag, buf, ctx)?);
415            }
416        }
417        ::core::result::Result::Ok(())
418    }
419    fn clear(&mut self) {
420        self.value = 0f32;
421        self.__buffa_unknown_fields.clear();
422    }
423}
424impl ::buffa::ExtensionSet for FloatValue {
425    const PROTO_FQN: &'static str = "google.protobuf.FloatValue";
426    fn unknown_fields(&self) -> &::buffa::UnknownFields {
427        &self.__buffa_unknown_fields
428    }
429    fn unknown_fields_mut(&mut self) -> &mut ::buffa::UnknownFields {
430        &mut self.__buffa_unknown_fields
431    }
432}
433impl ::buffa::text::TextFormat for FloatValue {
434    fn encode_text(
435        &self,
436        enc: &mut ::buffa::text::TextEncoder<'_>,
437    ) -> ::core::fmt::Result {
438        #[allow(unused_imports)]
439        use ::buffa::Enumeration as _;
440        if self.value.to_bits() != 0u32 {
441            enc.write_field_name("value")?;
442            enc.write_f32(self.value)?;
443        }
444        enc.write_unknown_fields(&self.__buffa_unknown_fields)?;
445        ::core::result::Result::Ok(())
446    }
447    fn merge_text(
448        &mut self,
449        dec: &mut ::buffa::text::TextDecoder<'_>,
450    ) -> ::core::result::Result<(), ::buffa::text::ParseError> {
451        #[allow(unused_imports)]
452        use ::buffa::Enumeration as _;
453        while let ::core::option::Option::Some(__name) = dec.read_field_name()? {
454            match __name {
455                "value" => self.value = dec.read_f32()?,
456                _ => dec.skip_value()?,
457            }
458        }
459        ::core::result::Result::Ok(())
460    }
461}
462#[doc(hidden)]
463pub const __FLOAT_VALUE_TEXT_ANY: ::buffa::type_registry::TextAnyEntry = ::buffa::type_registry::TextAnyEntry {
464    type_url: "type.googleapis.com/google.protobuf.FloatValue",
465    text_encode: ::buffa::type_registry::any_encode_text::<FloatValue>,
466    text_merge: ::buffa::type_registry::any_merge_text::<FloatValue>,
467};
468/// Wrapper message for `int64`.
469///
470/// The JSON representation for `Int64Value` is JSON string.
471#[derive(Clone, PartialEq, Default)]
472#[cfg_attr(feature = "arbitrary", derive(::arbitrary::Arbitrary))]
473pub struct Int64Value {
474    /// The int64 value.
475    ///
476    /// Field 1: `value`
477    pub value: i64,
478    #[doc(hidden)]
479    pub __buffa_unknown_fields: ::buffa::UnknownFields,
480}
481impl ::core::fmt::Debug for Int64Value {
482    fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
483        f.debug_struct("Int64Value").field("value", &self.value).finish()
484    }
485}
486impl Int64Value {
487    /// Protobuf type URL for this message, for use with `Any::pack` and
488    /// `Any::unpack_if`.
489    ///
490    /// Format: `type.googleapis.com/<fully.qualified.TypeName>`
491    pub const TYPE_URL: &'static str = "type.googleapis.com/google.protobuf.Int64Value";
492}
493::buffa::impl_default_instance!(Int64Value);
494#[cfg(feature = "reflect")]
495const _: () = {
496    impl ::buffa_descriptor::reflect::ReflectMessage for Int64Value {
497        fn message_descriptor(&self) -> &::buffa_descriptor::MessageDescriptor {
498            __buffa::reflect::descriptor_pool()
499                .message(Self::__buffa_reflect_message_index())
500        }
501        fn pool(
502            &self,
503        ) -> &::buffa::alloc::sync::Arc<::buffa_descriptor::DescriptorPool> {
504            __buffa::reflect::descriptor_pool()
505        }
506        fn unknown_fields(&self) -> &::buffa::UnknownFields {
507            &self.__buffa_unknown_fields
508        }
509        fn get(
510            &self,
511            field: &::buffa_descriptor::FieldDescriptor,
512        ) -> ::buffa_descriptor::reflect::ValueRef<'_> {
513            #[allow(unused_imports)]
514            use ::buffa::Enumeration as _;
515            match field.number() {
516                1u32 => ::buffa_descriptor::reflect::ValueRef::I64(self.value),
517                _ => {
518                    ::core::debug_assert!(
519                        false,
520                        "field number {} is not a member of this message's reflect get()",
521                        field.number(),
522                    );
523                    ::buffa_descriptor::reflect::ValueRef::Bool(false)
524                }
525            }
526        }
527        fn has(&self, field: &::buffa_descriptor::FieldDescriptor) -> bool {
528            match field.number() {
529                1u32 => self.value != 0,
530                _ => false,
531            }
532        }
533        fn for_each_set(
534            &self,
535            f: &mut dyn ::core::ops::FnMut(
536                &::buffa_descriptor::FieldDescriptor,
537                ::buffa_descriptor::reflect::ValueRef<'_>,
538            ),
539        ) {
540            let md = ::buffa_descriptor::reflect::ReflectMessage::message_descriptor(
541                self,
542            );
543            for fd in md.fields() {
544                if ::buffa_descriptor::reflect::ReflectMessage::has(self, fd) {
545                    f(fd, ::buffa_descriptor::reflect::ReflectMessage::get(self, fd));
546                }
547            }
548        }
549        fn to_dynamic(&self) -> ::buffa_descriptor::reflect::DynamicMessage {
550            ::buffa_descriptor::reflect::DynamicMessage::from_message(
551                self,
552                ::buffa::alloc::sync::Arc::clone(__buffa::reflect::descriptor_pool()),
553                Self::__buffa_reflect_message_index(),
554            )
555        }
556    }
557    impl ::buffa_descriptor::reflect::ReflectElement for Int64Value {
558        #[inline]
559        fn as_value_ref(&self) -> ::buffa_descriptor::reflect::ValueRef<'_> {
560            ::buffa_descriptor::reflect::ValueRef::Message(
561                ::buffa_descriptor::reflect::ReflectCow::Borrowed(self),
562            )
563        }
564    }
565    impl Int64Value {
566        /// Memoized `MessageIndex` for this message type, resolved once
567        /// against the package's embedded descriptor pool.
568        #[doc(hidden)]
569        fn __buffa_reflect_message_index() -> ::buffa_descriptor::MessageIndex {
570            static IDX: ::std::sync::OnceLock<::buffa_descriptor::MessageIndex> = ::std::sync::OnceLock::new();
571            *IDX
572                .get_or_init(|| {
573                    __buffa::reflect::descriptor_pool()
574                        .message_index(<Self as ::buffa::MessageName>::FULL_NAME)
575                        .expect(
576                            "generated message is registered in the embedded descriptor pool",
577                        )
578                })
579        }
580    }
581    impl ::buffa_descriptor::reflect::Reflectable for Int64Value {
582        /// Vtable-mode reflective handle: borrows `self` directly. No
583        /// encode/decode round-trip and no allocation — the reflective
584        /// accessors read this message's fields in place.
585        #[inline]
586        fn reflect(&self) -> ::buffa_descriptor::reflect::ReflectCow<'_> {
587            ::buffa_descriptor::reflect::ReflectCow::Borrowed(self)
588        }
589    }
590};
591impl ::buffa::MessageName for Int64Value {
592    const PACKAGE: &'static str = "google.protobuf";
593    const NAME: &'static str = "Int64Value";
594    const FULL_NAME: &'static str = "google.protobuf.Int64Value";
595    const TYPE_URL: &'static str = "type.googleapis.com/google.protobuf.Int64Value";
596}
597impl ::buffa::Message for Int64Value {
598    /// Returns the total encoded size in bytes.
599    ///
600    /// The result is a `u32`; the protobuf specification requires all
601    /// messages to fit within 2 GiB (2,147,483,647 bytes), so a
602    /// compliant message will never overflow this type.
603    #[allow(clippy::let_and_return)]
604    fn compute_size(&self, _cache: &mut ::buffa::SizeCache) -> u32 {
605        #[allow(unused_imports)]
606        use ::buffa::Enumeration as _;
607        let mut size = 0u32;
608        if self.value != 0i64 {
609            size += 1u32 + ::buffa::types::int64_encoded_len(self.value) as u32;
610        }
611        size += self.__buffa_unknown_fields.encoded_len() as u32;
612        size
613    }
614    fn write_to(
615        &self,
616        _cache: &mut ::buffa::SizeCache,
617        buf: &mut impl ::buffa::bytes::BufMut,
618    ) {
619        #[allow(unused_imports)]
620        use ::buffa::Enumeration as _;
621        if self.value != 0i64 {
622            ::buffa::types::put_int64_field(1u32, self.value, buf);
623        }
624        self.__buffa_unknown_fields.write_to(buf);
625    }
626    fn merge_field(
627        &mut self,
628        tag: ::buffa::encoding::Tag,
629        buf: &mut impl ::buffa::bytes::Buf,
630        ctx: ::buffa::DecodeContext<'_>,
631    ) -> ::core::result::Result<(), ::buffa::DecodeError> {
632        #[allow(unused_imports)]
633        use ::buffa::bytes::Buf as _;
634        #[allow(unused_imports)]
635        use ::buffa::Enumeration as _;
636        match tag.field_number() {
637            1u32 => {
638                ::buffa::encoding::check_wire_type(
639                    tag,
640                    ::buffa::encoding::WireType::Varint,
641                )?;
642                self.value = ::buffa::types::decode_int64(buf)?;
643            }
644            _ => {
645                self.__buffa_unknown_fields
646                    .push(::buffa::encoding::decode_unknown_field(tag, buf, ctx)?);
647            }
648        }
649        ::core::result::Result::Ok(())
650    }
651    fn clear(&mut self) {
652        self.value = 0i64;
653        self.__buffa_unknown_fields.clear();
654    }
655}
656impl ::buffa::ExtensionSet for Int64Value {
657    const PROTO_FQN: &'static str = "google.protobuf.Int64Value";
658    fn unknown_fields(&self) -> &::buffa::UnknownFields {
659        &self.__buffa_unknown_fields
660    }
661    fn unknown_fields_mut(&mut self) -> &mut ::buffa::UnknownFields {
662        &mut self.__buffa_unknown_fields
663    }
664}
665impl ::buffa::text::TextFormat for Int64Value {
666    fn encode_text(
667        &self,
668        enc: &mut ::buffa::text::TextEncoder<'_>,
669    ) -> ::core::fmt::Result {
670        #[allow(unused_imports)]
671        use ::buffa::Enumeration as _;
672        if self.value != 0i64 {
673            enc.write_field_name("value")?;
674            enc.write_i64(self.value)?;
675        }
676        enc.write_unknown_fields(&self.__buffa_unknown_fields)?;
677        ::core::result::Result::Ok(())
678    }
679    fn merge_text(
680        &mut self,
681        dec: &mut ::buffa::text::TextDecoder<'_>,
682    ) -> ::core::result::Result<(), ::buffa::text::ParseError> {
683        #[allow(unused_imports)]
684        use ::buffa::Enumeration as _;
685        while let ::core::option::Option::Some(__name) = dec.read_field_name()? {
686            match __name {
687                "value" => self.value = dec.read_i64()?,
688                _ => dec.skip_value()?,
689            }
690        }
691        ::core::result::Result::Ok(())
692    }
693}
694#[doc(hidden)]
695pub const __INT64VALUE_TEXT_ANY: ::buffa::type_registry::TextAnyEntry = ::buffa::type_registry::TextAnyEntry {
696    type_url: "type.googleapis.com/google.protobuf.Int64Value",
697    text_encode: ::buffa::type_registry::any_encode_text::<Int64Value>,
698    text_merge: ::buffa::type_registry::any_merge_text::<Int64Value>,
699};
700/// Wrapper message for `uint64`.
701///
702/// The JSON representation for `UInt64Value` is JSON string.
703#[derive(Clone, PartialEq, Default)]
704#[cfg_attr(feature = "arbitrary", derive(::arbitrary::Arbitrary))]
705pub struct UInt64Value {
706    /// The uint64 value.
707    ///
708    /// Field 1: `value`
709    pub value: u64,
710    #[doc(hidden)]
711    pub __buffa_unknown_fields: ::buffa::UnknownFields,
712}
713impl ::core::fmt::Debug for UInt64Value {
714    fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
715        f.debug_struct("UInt64Value").field("value", &self.value).finish()
716    }
717}
718impl UInt64Value {
719    /// Protobuf type URL for this message, for use with `Any::pack` and
720    /// `Any::unpack_if`.
721    ///
722    /// Format: `type.googleapis.com/<fully.qualified.TypeName>`
723    pub const TYPE_URL: &'static str = "type.googleapis.com/google.protobuf.UInt64Value";
724}
725::buffa::impl_default_instance!(UInt64Value);
726#[cfg(feature = "reflect")]
727const _: () = {
728    impl ::buffa_descriptor::reflect::ReflectMessage for UInt64Value {
729        fn message_descriptor(&self) -> &::buffa_descriptor::MessageDescriptor {
730            __buffa::reflect::descriptor_pool()
731                .message(Self::__buffa_reflect_message_index())
732        }
733        fn pool(
734            &self,
735        ) -> &::buffa::alloc::sync::Arc<::buffa_descriptor::DescriptorPool> {
736            __buffa::reflect::descriptor_pool()
737        }
738        fn unknown_fields(&self) -> &::buffa::UnknownFields {
739            &self.__buffa_unknown_fields
740        }
741        fn get(
742            &self,
743            field: &::buffa_descriptor::FieldDescriptor,
744        ) -> ::buffa_descriptor::reflect::ValueRef<'_> {
745            #[allow(unused_imports)]
746            use ::buffa::Enumeration as _;
747            match field.number() {
748                1u32 => ::buffa_descriptor::reflect::ValueRef::U64(self.value),
749                _ => {
750                    ::core::debug_assert!(
751                        false,
752                        "field number {} is not a member of this message's reflect get()",
753                        field.number(),
754                    );
755                    ::buffa_descriptor::reflect::ValueRef::Bool(false)
756                }
757            }
758        }
759        fn has(&self, field: &::buffa_descriptor::FieldDescriptor) -> bool {
760            match field.number() {
761                1u32 => self.value != 0,
762                _ => false,
763            }
764        }
765        fn for_each_set(
766            &self,
767            f: &mut dyn ::core::ops::FnMut(
768                &::buffa_descriptor::FieldDescriptor,
769                ::buffa_descriptor::reflect::ValueRef<'_>,
770            ),
771        ) {
772            let md = ::buffa_descriptor::reflect::ReflectMessage::message_descriptor(
773                self,
774            );
775            for fd in md.fields() {
776                if ::buffa_descriptor::reflect::ReflectMessage::has(self, fd) {
777                    f(fd, ::buffa_descriptor::reflect::ReflectMessage::get(self, fd));
778                }
779            }
780        }
781        fn to_dynamic(&self) -> ::buffa_descriptor::reflect::DynamicMessage {
782            ::buffa_descriptor::reflect::DynamicMessage::from_message(
783                self,
784                ::buffa::alloc::sync::Arc::clone(__buffa::reflect::descriptor_pool()),
785                Self::__buffa_reflect_message_index(),
786            )
787        }
788    }
789    impl ::buffa_descriptor::reflect::ReflectElement for UInt64Value {
790        #[inline]
791        fn as_value_ref(&self) -> ::buffa_descriptor::reflect::ValueRef<'_> {
792            ::buffa_descriptor::reflect::ValueRef::Message(
793                ::buffa_descriptor::reflect::ReflectCow::Borrowed(self),
794            )
795        }
796    }
797    impl UInt64Value {
798        /// Memoized `MessageIndex` for this message type, resolved once
799        /// against the package's embedded descriptor pool.
800        #[doc(hidden)]
801        fn __buffa_reflect_message_index() -> ::buffa_descriptor::MessageIndex {
802            static IDX: ::std::sync::OnceLock<::buffa_descriptor::MessageIndex> = ::std::sync::OnceLock::new();
803            *IDX
804                .get_or_init(|| {
805                    __buffa::reflect::descriptor_pool()
806                        .message_index(<Self as ::buffa::MessageName>::FULL_NAME)
807                        .expect(
808                            "generated message is registered in the embedded descriptor pool",
809                        )
810                })
811        }
812    }
813    impl ::buffa_descriptor::reflect::Reflectable for UInt64Value {
814        /// Vtable-mode reflective handle: borrows `self` directly. No
815        /// encode/decode round-trip and no allocation — the reflective
816        /// accessors read this message's fields in place.
817        #[inline]
818        fn reflect(&self) -> ::buffa_descriptor::reflect::ReflectCow<'_> {
819            ::buffa_descriptor::reflect::ReflectCow::Borrowed(self)
820        }
821    }
822};
823impl ::buffa::MessageName for UInt64Value {
824    const PACKAGE: &'static str = "google.protobuf";
825    const NAME: &'static str = "UInt64Value";
826    const FULL_NAME: &'static str = "google.protobuf.UInt64Value";
827    const TYPE_URL: &'static str = "type.googleapis.com/google.protobuf.UInt64Value";
828}
829impl ::buffa::Message for UInt64Value {
830    /// Returns the total encoded size in bytes.
831    ///
832    /// The result is a `u32`; the protobuf specification requires all
833    /// messages to fit within 2 GiB (2,147,483,647 bytes), so a
834    /// compliant message will never overflow this type.
835    #[allow(clippy::let_and_return)]
836    fn compute_size(&self, _cache: &mut ::buffa::SizeCache) -> u32 {
837        #[allow(unused_imports)]
838        use ::buffa::Enumeration as _;
839        let mut size = 0u32;
840        if self.value != 0u64 {
841            size += 1u32 + ::buffa::types::uint64_encoded_len(self.value) as u32;
842        }
843        size += self.__buffa_unknown_fields.encoded_len() as u32;
844        size
845    }
846    fn write_to(
847        &self,
848        _cache: &mut ::buffa::SizeCache,
849        buf: &mut impl ::buffa::bytes::BufMut,
850    ) {
851        #[allow(unused_imports)]
852        use ::buffa::Enumeration as _;
853        if self.value != 0u64 {
854            ::buffa::types::put_uint64_field(1u32, self.value, buf);
855        }
856        self.__buffa_unknown_fields.write_to(buf);
857    }
858    fn merge_field(
859        &mut self,
860        tag: ::buffa::encoding::Tag,
861        buf: &mut impl ::buffa::bytes::Buf,
862        ctx: ::buffa::DecodeContext<'_>,
863    ) -> ::core::result::Result<(), ::buffa::DecodeError> {
864        #[allow(unused_imports)]
865        use ::buffa::bytes::Buf as _;
866        #[allow(unused_imports)]
867        use ::buffa::Enumeration as _;
868        match tag.field_number() {
869            1u32 => {
870                ::buffa::encoding::check_wire_type(
871                    tag,
872                    ::buffa::encoding::WireType::Varint,
873                )?;
874                self.value = ::buffa::types::decode_uint64(buf)?;
875            }
876            _ => {
877                self.__buffa_unknown_fields
878                    .push(::buffa::encoding::decode_unknown_field(tag, buf, ctx)?);
879            }
880        }
881        ::core::result::Result::Ok(())
882    }
883    fn clear(&mut self) {
884        self.value = 0u64;
885        self.__buffa_unknown_fields.clear();
886    }
887}
888impl ::buffa::ExtensionSet for UInt64Value {
889    const PROTO_FQN: &'static str = "google.protobuf.UInt64Value";
890    fn unknown_fields(&self) -> &::buffa::UnknownFields {
891        &self.__buffa_unknown_fields
892    }
893    fn unknown_fields_mut(&mut self) -> &mut ::buffa::UnknownFields {
894        &mut self.__buffa_unknown_fields
895    }
896}
897impl ::buffa::text::TextFormat for UInt64Value {
898    fn encode_text(
899        &self,
900        enc: &mut ::buffa::text::TextEncoder<'_>,
901    ) -> ::core::fmt::Result {
902        #[allow(unused_imports)]
903        use ::buffa::Enumeration as _;
904        if self.value != 0u64 {
905            enc.write_field_name("value")?;
906            enc.write_u64(self.value)?;
907        }
908        enc.write_unknown_fields(&self.__buffa_unknown_fields)?;
909        ::core::result::Result::Ok(())
910    }
911    fn merge_text(
912        &mut self,
913        dec: &mut ::buffa::text::TextDecoder<'_>,
914    ) -> ::core::result::Result<(), ::buffa::text::ParseError> {
915        #[allow(unused_imports)]
916        use ::buffa::Enumeration as _;
917        while let ::core::option::Option::Some(__name) = dec.read_field_name()? {
918            match __name {
919                "value" => self.value = dec.read_u64()?,
920                _ => dec.skip_value()?,
921            }
922        }
923        ::core::result::Result::Ok(())
924    }
925}
926#[doc(hidden)]
927pub const __U_INT64VALUE_TEXT_ANY: ::buffa::type_registry::TextAnyEntry = ::buffa::type_registry::TextAnyEntry {
928    type_url: "type.googleapis.com/google.protobuf.UInt64Value",
929    text_encode: ::buffa::type_registry::any_encode_text::<UInt64Value>,
930    text_merge: ::buffa::type_registry::any_merge_text::<UInt64Value>,
931};
932/// Wrapper message for `int32`.
933///
934/// The JSON representation for `Int32Value` is JSON number.
935#[derive(Clone, PartialEq, Default)]
936#[cfg_attr(feature = "arbitrary", derive(::arbitrary::Arbitrary))]
937pub struct Int32Value {
938    /// The int32 value.
939    ///
940    /// Field 1: `value`
941    pub value: i32,
942    #[doc(hidden)]
943    pub __buffa_unknown_fields: ::buffa::UnknownFields,
944}
945impl ::core::fmt::Debug for Int32Value {
946    fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
947        f.debug_struct("Int32Value").field("value", &self.value).finish()
948    }
949}
950impl Int32Value {
951    /// Protobuf type URL for this message, for use with `Any::pack` and
952    /// `Any::unpack_if`.
953    ///
954    /// Format: `type.googleapis.com/<fully.qualified.TypeName>`
955    pub const TYPE_URL: &'static str = "type.googleapis.com/google.protobuf.Int32Value";
956}
957::buffa::impl_default_instance!(Int32Value);
958#[cfg(feature = "reflect")]
959const _: () = {
960    impl ::buffa_descriptor::reflect::ReflectMessage for Int32Value {
961        fn message_descriptor(&self) -> &::buffa_descriptor::MessageDescriptor {
962            __buffa::reflect::descriptor_pool()
963                .message(Self::__buffa_reflect_message_index())
964        }
965        fn pool(
966            &self,
967        ) -> &::buffa::alloc::sync::Arc<::buffa_descriptor::DescriptorPool> {
968            __buffa::reflect::descriptor_pool()
969        }
970        fn unknown_fields(&self) -> &::buffa::UnknownFields {
971            &self.__buffa_unknown_fields
972        }
973        fn get(
974            &self,
975            field: &::buffa_descriptor::FieldDescriptor,
976        ) -> ::buffa_descriptor::reflect::ValueRef<'_> {
977            #[allow(unused_imports)]
978            use ::buffa::Enumeration as _;
979            match field.number() {
980                1u32 => ::buffa_descriptor::reflect::ValueRef::I32(self.value),
981                _ => {
982                    ::core::debug_assert!(
983                        false,
984                        "field number {} is not a member of this message's reflect get()",
985                        field.number(),
986                    );
987                    ::buffa_descriptor::reflect::ValueRef::Bool(false)
988                }
989            }
990        }
991        fn has(&self, field: &::buffa_descriptor::FieldDescriptor) -> bool {
992            match field.number() {
993                1u32 => self.value != 0,
994                _ => false,
995            }
996        }
997        fn for_each_set(
998            &self,
999            f: &mut dyn ::core::ops::FnMut(
1000                &::buffa_descriptor::FieldDescriptor,
1001                ::buffa_descriptor::reflect::ValueRef<'_>,
1002            ),
1003        ) {
1004            let md = ::buffa_descriptor::reflect::ReflectMessage::message_descriptor(
1005                self,
1006            );
1007            for fd in md.fields() {
1008                if ::buffa_descriptor::reflect::ReflectMessage::has(self, fd) {
1009                    f(fd, ::buffa_descriptor::reflect::ReflectMessage::get(self, fd));
1010                }
1011            }
1012        }
1013        fn to_dynamic(&self) -> ::buffa_descriptor::reflect::DynamicMessage {
1014            ::buffa_descriptor::reflect::DynamicMessage::from_message(
1015                self,
1016                ::buffa::alloc::sync::Arc::clone(__buffa::reflect::descriptor_pool()),
1017                Self::__buffa_reflect_message_index(),
1018            )
1019        }
1020    }
1021    impl ::buffa_descriptor::reflect::ReflectElement for Int32Value {
1022        #[inline]
1023        fn as_value_ref(&self) -> ::buffa_descriptor::reflect::ValueRef<'_> {
1024            ::buffa_descriptor::reflect::ValueRef::Message(
1025                ::buffa_descriptor::reflect::ReflectCow::Borrowed(self),
1026            )
1027        }
1028    }
1029    impl Int32Value {
1030        /// Memoized `MessageIndex` for this message type, resolved once
1031        /// against the package's embedded descriptor pool.
1032        #[doc(hidden)]
1033        fn __buffa_reflect_message_index() -> ::buffa_descriptor::MessageIndex {
1034            static IDX: ::std::sync::OnceLock<::buffa_descriptor::MessageIndex> = ::std::sync::OnceLock::new();
1035            *IDX
1036                .get_or_init(|| {
1037                    __buffa::reflect::descriptor_pool()
1038                        .message_index(<Self as ::buffa::MessageName>::FULL_NAME)
1039                        .expect(
1040                            "generated message is registered in the embedded descriptor pool",
1041                        )
1042                })
1043        }
1044    }
1045    impl ::buffa_descriptor::reflect::Reflectable for Int32Value {
1046        /// Vtable-mode reflective handle: borrows `self` directly. No
1047        /// encode/decode round-trip and no allocation — the reflective
1048        /// accessors read this message's fields in place.
1049        #[inline]
1050        fn reflect(&self) -> ::buffa_descriptor::reflect::ReflectCow<'_> {
1051            ::buffa_descriptor::reflect::ReflectCow::Borrowed(self)
1052        }
1053    }
1054};
1055impl ::buffa::MessageName for Int32Value {
1056    const PACKAGE: &'static str = "google.protobuf";
1057    const NAME: &'static str = "Int32Value";
1058    const FULL_NAME: &'static str = "google.protobuf.Int32Value";
1059    const TYPE_URL: &'static str = "type.googleapis.com/google.protobuf.Int32Value";
1060}
1061impl ::buffa::Message for Int32Value {
1062    /// Returns the total encoded size in bytes.
1063    ///
1064    /// The result is a `u32`; the protobuf specification requires all
1065    /// messages to fit within 2 GiB (2,147,483,647 bytes), so a
1066    /// compliant message will never overflow this type.
1067    #[allow(clippy::let_and_return)]
1068    fn compute_size(&self, _cache: &mut ::buffa::SizeCache) -> u32 {
1069        #[allow(unused_imports)]
1070        use ::buffa::Enumeration as _;
1071        let mut size = 0u32;
1072        if self.value != 0i32 {
1073            size += 1u32 + ::buffa::types::int32_encoded_len(self.value) as u32;
1074        }
1075        size += self.__buffa_unknown_fields.encoded_len() as u32;
1076        size
1077    }
1078    fn write_to(
1079        &self,
1080        _cache: &mut ::buffa::SizeCache,
1081        buf: &mut impl ::buffa::bytes::BufMut,
1082    ) {
1083        #[allow(unused_imports)]
1084        use ::buffa::Enumeration as _;
1085        if self.value != 0i32 {
1086            ::buffa::types::put_int32_field(1u32, self.value, buf);
1087        }
1088        self.__buffa_unknown_fields.write_to(buf);
1089    }
1090    fn merge_field(
1091        &mut self,
1092        tag: ::buffa::encoding::Tag,
1093        buf: &mut impl ::buffa::bytes::Buf,
1094        ctx: ::buffa::DecodeContext<'_>,
1095    ) -> ::core::result::Result<(), ::buffa::DecodeError> {
1096        #[allow(unused_imports)]
1097        use ::buffa::bytes::Buf as _;
1098        #[allow(unused_imports)]
1099        use ::buffa::Enumeration as _;
1100        match tag.field_number() {
1101            1u32 => {
1102                ::buffa::encoding::check_wire_type(
1103                    tag,
1104                    ::buffa::encoding::WireType::Varint,
1105                )?;
1106                self.value = ::buffa::types::decode_int32(buf)?;
1107            }
1108            _ => {
1109                self.__buffa_unknown_fields
1110                    .push(::buffa::encoding::decode_unknown_field(tag, buf, ctx)?);
1111            }
1112        }
1113        ::core::result::Result::Ok(())
1114    }
1115    fn clear(&mut self) {
1116        self.value = 0i32;
1117        self.__buffa_unknown_fields.clear();
1118    }
1119}
1120impl ::buffa::ExtensionSet for Int32Value {
1121    const PROTO_FQN: &'static str = "google.protobuf.Int32Value";
1122    fn unknown_fields(&self) -> &::buffa::UnknownFields {
1123        &self.__buffa_unknown_fields
1124    }
1125    fn unknown_fields_mut(&mut self) -> &mut ::buffa::UnknownFields {
1126        &mut self.__buffa_unknown_fields
1127    }
1128}
1129impl ::buffa::text::TextFormat for Int32Value {
1130    fn encode_text(
1131        &self,
1132        enc: &mut ::buffa::text::TextEncoder<'_>,
1133    ) -> ::core::fmt::Result {
1134        #[allow(unused_imports)]
1135        use ::buffa::Enumeration as _;
1136        if self.value != 0i32 {
1137            enc.write_field_name("value")?;
1138            enc.write_i32(self.value)?;
1139        }
1140        enc.write_unknown_fields(&self.__buffa_unknown_fields)?;
1141        ::core::result::Result::Ok(())
1142    }
1143    fn merge_text(
1144        &mut self,
1145        dec: &mut ::buffa::text::TextDecoder<'_>,
1146    ) -> ::core::result::Result<(), ::buffa::text::ParseError> {
1147        #[allow(unused_imports)]
1148        use ::buffa::Enumeration as _;
1149        while let ::core::option::Option::Some(__name) = dec.read_field_name()? {
1150            match __name {
1151                "value" => self.value = dec.read_i32()?,
1152                _ => dec.skip_value()?,
1153            }
1154        }
1155        ::core::result::Result::Ok(())
1156    }
1157}
1158#[doc(hidden)]
1159pub const __INT32VALUE_TEXT_ANY: ::buffa::type_registry::TextAnyEntry = ::buffa::type_registry::TextAnyEntry {
1160    type_url: "type.googleapis.com/google.protobuf.Int32Value",
1161    text_encode: ::buffa::type_registry::any_encode_text::<Int32Value>,
1162    text_merge: ::buffa::type_registry::any_merge_text::<Int32Value>,
1163};
1164/// Wrapper message for `uint32`.
1165///
1166/// The JSON representation for `UInt32Value` is JSON number.
1167#[derive(Clone, PartialEq, Default)]
1168#[cfg_attr(feature = "arbitrary", derive(::arbitrary::Arbitrary))]
1169pub struct UInt32Value {
1170    /// The uint32 value.
1171    ///
1172    /// Field 1: `value`
1173    pub value: u32,
1174    #[doc(hidden)]
1175    pub __buffa_unknown_fields: ::buffa::UnknownFields,
1176}
1177impl ::core::fmt::Debug for UInt32Value {
1178    fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1179        f.debug_struct("UInt32Value").field("value", &self.value).finish()
1180    }
1181}
1182impl UInt32Value {
1183    /// Protobuf type URL for this message, for use with `Any::pack` and
1184    /// `Any::unpack_if`.
1185    ///
1186    /// Format: `type.googleapis.com/<fully.qualified.TypeName>`
1187    pub const TYPE_URL: &'static str = "type.googleapis.com/google.protobuf.UInt32Value";
1188}
1189::buffa::impl_default_instance!(UInt32Value);
1190#[cfg(feature = "reflect")]
1191const _: () = {
1192    impl ::buffa_descriptor::reflect::ReflectMessage for UInt32Value {
1193        fn message_descriptor(&self) -> &::buffa_descriptor::MessageDescriptor {
1194            __buffa::reflect::descriptor_pool()
1195                .message(Self::__buffa_reflect_message_index())
1196        }
1197        fn pool(
1198            &self,
1199        ) -> &::buffa::alloc::sync::Arc<::buffa_descriptor::DescriptorPool> {
1200            __buffa::reflect::descriptor_pool()
1201        }
1202        fn unknown_fields(&self) -> &::buffa::UnknownFields {
1203            &self.__buffa_unknown_fields
1204        }
1205        fn get(
1206            &self,
1207            field: &::buffa_descriptor::FieldDescriptor,
1208        ) -> ::buffa_descriptor::reflect::ValueRef<'_> {
1209            #[allow(unused_imports)]
1210            use ::buffa::Enumeration as _;
1211            match field.number() {
1212                1u32 => ::buffa_descriptor::reflect::ValueRef::U32(self.value),
1213                _ => {
1214                    ::core::debug_assert!(
1215                        false,
1216                        "field number {} is not a member of this message's reflect get()",
1217                        field.number(),
1218                    );
1219                    ::buffa_descriptor::reflect::ValueRef::Bool(false)
1220                }
1221            }
1222        }
1223        fn has(&self, field: &::buffa_descriptor::FieldDescriptor) -> bool {
1224            match field.number() {
1225                1u32 => self.value != 0,
1226                _ => false,
1227            }
1228        }
1229        fn for_each_set(
1230            &self,
1231            f: &mut dyn ::core::ops::FnMut(
1232                &::buffa_descriptor::FieldDescriptor,
1233                ::buffa_descriptor::reflect::ValueRef<'_>,
1234            ),
1235        ) {
1236            let md = ::buffa_descriptor::reflect::ReflectMessage::message_descriptor(
1237                self,
1238            );
1239            for fd in md.fields() {
1240                if ::buffa_descriptor::reflect::ReflectMessage::has(self, fd) {
1241                    f(fd, ::buffa_descriptor::reflect::ReflectMessage::get(self, fd));
1242                }
1243            }
1244        }
1245        fn to_dynamic(&self) -> ::buffa_descriptor::reflect::DynamicMessage {
1246            ::buffa_descriptor::reflect::DynamicMessage::from_message(
1247                self,
1248                ::buffa::alloc::sync::Arc::clone(__buffa::reflect::descriptor_pool()),
1249                Self::__buffa_reflect_message_index(),
1250            )
1251        }
1252    }
1253    impl ::buffa_descriptor::reflect::ReflectElement for UInt32Value {
1254        #[inline]
1255        fn as_value_ref(&self) -> ::buffa_descriptor::reflect::ValueRef<'_> {
1256            ::buffa_descriptor::reflect::ValueRef::Message(
1257                ::buffa_descriptor::reflect::ReflectCow::Borrowed(self),
1258            )
1259        }
1260    }
1261    impl UInt32Value {
1262        /// Memoized `MessageIndex` for this message type, resolved once
1263        /// against the package's embedded descriptor pool.
1264        #[doc(hidden)]
1265        fn __buffa_reflect_message_index() -> ::buffa_descriptor::MessageIndex {
1266            static IDX: ::std::sync::OnceLock<::buffa_descriptor::MessageIndex> = ::std::sync::OnceLock::new();
1267            *IDX
1268                .get_or_init(|| {
1269                    __buffa::reflect::descriptor_pool()
1270                        .message_index(<Self as ::buffa::MessageName>::FULL_NAME)
1271                        .expect(
1272                            "generated message is registered in the embedded descriptor pool",
1273                        )
1274                })
1275        }
1276    }
1277    impl ::buffa_descriptor::reflect::Reflectable for UInt32Value {
1278        /// Vtable-mode reflective handle: borrows `self` directly. No
1279        /// encode/decode round-trip and no allocation — the reflective
1280        /// accessors read this message's fields in place.
1281        #[inline]
1282        fn reflect(&self) -> ::buffa_descriptor::reflect::ReflectCow<'_> {
1283            ::buffa_descriptor::reflect::ReflectCow::Borrowed(self)
1284        }
1285    }
1286};
1287impl ::buffa::MessageName for UInt32Value {
1288    const PACKAGE: &'static str = "google.protobuf";
1289    const NAME: &'static str = "UInt32Value";
1290    const FULL_NAME: &'static str = "google.protobuf.UInt32Value";
1291    const TYPE_URL: &'static str = "type.googleapis.com/google.protobuf.UInt32Value";
1292}
1293impl ::buffa::Message for UInt32Value {
1294    /// Returns the total encoded size in bytes.
1295    ///
1296    /// The result is a `u32`; the protobuf specification requires all
1297    /// messages to fit within 2 GiB (2,147,483,647 bytes), so a
1298    /// compliant message will never overflow this type.
1299    #[allow(clippy::let_and_return)]
1300    fn compute_size(&self, _cache: &mut ::buffa::SizeCache) -> u32 {
1301        #[allow(unused_imports)]
1302        use ::buffa::Enumeration as _;
1303        let mut size = 0u32;
1304        if self.value != 0u32 {
1305            size += 1u32 + ::buffa::types::uint32_encoded_len(self.value) as u32;
1306        }
1307        size += self.__buffa_unknown_fields.encoded_len() as u32;
1308        size
1309    }
1310    fn write_to(
1311        &self,
1312        _cache: &mut ::buffa::SizeCache,
1313        buf: &mut impl ::buffa::bytes::BufMut,
1314    ) {
1315        #[allow(unused_imports)]
1316        use ::buffa::Enumeration as _;
1317        if self.value != 0u32 {
1318            ::buffa::types::put_uint32_field(1u32, self.value, buf);
1319        }
1320        self.__buffa_unknown_fields.write_to(buf);
1321    }
1322    fn merge_field(
1323        &mut self,
1324        tag: ::buffa::encoding::Tag,
1325        buf: &mut impl ::buffa::bytes::Buf,
1326        ctx: ::buffa::DecodeContext<'_>,
1327    ) -> ::core::result::Result<(), ::buffa::DecodeError> {
1328        #[allow(unused_imports)]
1329        use ::buffa::bytes::Buf as _;
1330        #[allow(unused_imports)]
1331        use ::buffa::Enumeration as _;
1332        match tag.field_number() {
1333            1u32 => {
1334                ::buffa::encoding::check_wire_type(
1335                    tag,
1336                    ::buffa::encoding::WireType::Varint,
1337                )?;
1338                self.value = ::buffa::types::decode_uint32(buf)?;
1339            }
1340            _ => {
1341                self.__buffa_unknown_fields
1342                    .push(::buffa::encoding::decode_unknown_field(tag, buf, ctx)?);
1343            }
1344        }
1345        ::core::result::Result::Ok(())
1346    }
1347    fn clear(&mut self) {
1348        self.value = 0u32;
1349        self.__buffa_unknown_fields.clear();
1350    }
1351}
1352impl ::buffa::ExtensionSet for UInt32Value {
1353    const PROTO_FQN: &'static str = "google.protobuf.UInt32Value";
1354    fn unknown_fields(&self) -> &::buffa::UnknownFields {
1355        &self.__buffa_unknown_fields
1356    }
1357    fn unknown_fields_mut(&mut self) -> &mut ::buffa::UnknownFields {
1358        &mut self.__buffa_unknown_fields
1359    }
1360}
1361impl ::buffa::text::TextFormat for UInt32Value {
1362    fn encode_text(
1363        &self,
1364        enc: &mut ::buffa::text::TextEncoder<'_>,
1365    ) -> ::core::fmt::Result {
1366        #[allow(unused_imports)]
1367        use ::buffa::Enumeration as _;
1368        if self.value != 0u32 {
1369            enc.write_field_name("value")?;
1370            enc.write_u32(self.value)?;
1371        }
1372        enc.write_unknown_fields(&self.__buffa_unknown_fields)?;
1373        ::core::result::Result::Ok(())
1374    }
1375    fn merge_text(
1376        &mut self,
1377        dec: &mut ::buffa::text::TextDecoder<'_>,
1378    ) -> ::core::result::Result<(), ::buffa::text::ParseError> {
1379        #[allow(unused_imports)]
1380        use ::buffa::Enumeration as _;
1381        while let ::core::option::Option::Some(__name) = dec.read_field_name()? {
1382            match __name {
1383                "value" => self.value = dec.read_u32()?,
1384                _ => dec.skip_value()?,
1385            }
1386        }
1387        ::core::result::Result::Ok(())
1388    }
1389}
1390#[doc(hidden)]
1391pub const __U_INT32VALUE_TEXT_ANY: ::buffa::type_registry::TextAnyEntry = ::buffa::type_registry::TextAnyEntry {
1392    type_url: "type.googleapis.com/google.protobuf.UInt32Value",
1393    text_encode: ::buffa::type_registry::any_encode_text::<UInt32Value>,
1394    text_merge: ::buffa::type_registry::any_merge_text::<UInt32Value>,
1395};
1396/// Wrapper message for `bool`.
1397///
1398/// The JSON representation for `BoolValue` is JSON `true` and `false`.
1399#[derive(Clone, PartialEq, Default)]
1400#[cfg_attr(feature = "arbitrary", derive(::arbitrary::Arbitrary))]
1401pub struct BoolValue {
1402    /// The bool value.
1403    ///
1404    /// Field 1: `value`
1405    pub value: bool,
1406    #[doc(hidden)]
1407    pub __buffa_unknown_fields: ::buffa::UnknownFields,
1408}
1409impl ::core::fmt::Debug for BoolValue {
1410    fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1411        f.debug_struct("BoolValue").field("value", &self.value).finish()
1412    }
1413}
1414impl BoolValue {
1415    /// Protobuf type URL for this message, for use with `Any::pack` and
1416    /// `Any::unpack_if`.
1417    ///
1418    /// Format: `type.googleapis.com/<fully.qualified.TypeName>`
1419    pub const TYPE_URL: &'static str = "type.googleapis.com/google.protobuf.BoolValue";
1420}
1421::buffa::impl_default_instance!(BoolValue);
1422#[cfg(feature = "reflect")]
1423const _: () = {
1424    impl ::buffa_descriptor::reflect::ReflectMessage for BoolValue {
1425        fn message_descriptor(&self) -> &::buffa_descriptor::MessageDescriptor {
1426            __buffa::reflect::descriptor_pool()
1427                .message(Self::__buffa_reflect_message_index())
1428        }
1429        fn pool(
1430            &self,
1431        ) -> &::buffa::alloc::sync::Arc<::buffa_descriptor::DescriptorPool> {
1432            __buffa::reflect::descriptor_pool()
1433        }
1434        fn unknown_fields(&self) -> &::buffa::UnknownFields {
1435            &self.__buffa_unknown_fields
1436        }
1437        fn get(
1438            &self,
1439            field: &::buffa_descriptor::FieldDescriptor,
1440        ) -> ::buffa_descriptor::reflect::ValueRef<'_> {
1441            #[allow(unused_imports)]
1442            use ::buffa::Enumeration as _;
1443            match field.number() {
1444                1u32 => ::buffa_descriptor::reflect::ValueRef::Bool(self.value),
1445                _ => {
1446                    ::core::debug_assert!(
1447                        false,
1448                        "field number {} is not a member of this message's reflect get()",
1449                        field.number(),
1450                    );
1451                    ::buffa_descriptor::reflect::ValueRef::Bool(false)
1452                }
1453            }
1454        }
1455        fn has(&self, field: &::buffa_descriptor::FieldDescriptor) -> bool {
1456            match field.number() {
1457                1u32 => self.value,
1458                _ => false,
1459            }
1460        }
1461        fn for_each_set(
1462            &self,
1463            f: &mut dyn ::core::ops::FnMut(
1464                &::buffa_descriptor::FieldDescriptor,
1465                ::buffa_descriptor::reflect::ValueRef<'_>,
1466            ),
1467        ) {
1468            let md = ::buffa_descriptor::reflect::ReflectMessage::message_descriptor(
1469                self,
1470            );
1471            for fd in md.fields() {
1472                if ::buffa_descriptor::reflect::ReflectMessage::has(self, fd) {
1473                    f(fd, ::buffa_descriptor::reflect::ReflectMessage::get(self, fd));
1474                }
1475            }
1476        }
1477        fn to_dynamic(&self) -> ::buffa_descriptor::reflect::DynamicMessage {
1478            ::buffa_descriptor::reflect::DynamicMessage::from_message(
1479                self,
1480                ::buffa::alloc::sync::Arc::clone(__buffa::reflect::descriptor_pool()),
1481                Self::__buffa_reflect_message_index(),
1482            )
1483        }
1484    }
1485    impl ::buffa_descriptor::reflect::ReflectElement for BoolValue {
1486        #[inline]
1487        fn as_value_ref(&self) -> ::buffa_descriptor::reflect::ValueRef<'_> {
1488            ::buffa_descriptor::reflect::ValueRef::Message(
1489                ::buffa_descriptor::reflect::ReflectCow::Borrowed(self),
1490            )
1491        }
1492    }
1493    impl BoolValue {
1494        /// Memoized `MessageIndex` for this message type, resolved once
1495        /// against the package's embedded descriptor pool.
1496        #[doc(hidden)]
1497        fn __buffa_reflect_message_index() -> ::buffa_descriptor::MessageIndex {
1498            static IDX: ::std::sync::OnceLock<::buffa_descriptor::MessageIndex> = ::std::sync::OnceLock::new();
1499            *IDX
1500                .get_or_init(|| {
1501                    __buffa::reflect::descriptor_pool()
1502                        .message_index(<Self as ::buffa::MessageName>::FULL_NAME)
1503                        .expect(
1504                            "generated message is registered in the embedded descriptor pool",
1505                        )
1506                })
1507        }
1508    }
1509    impl ::buffa_descriptor::reflect::Reflectable for BoolValue {
1510        /// Vtable-mode reflective handle: borrows `self` directly. No
1511        /// encode/decode round-trip and no allocation — the reflective
1512        /// accessors read this message's fields in place.
1513        #[inline]
1514        fn reflect(&self) -> ::buffa_descriptor::reflect::ReflectCow<'_> {
1515            ::buffa_descriptor::reflect::ReflectCow::Borrowed(self)
1516        }
1517    }
1518};
1519impl ::buffa::MessageName for BoolValue {
1520    const PACKAGE: &'static str = "google.protobuf";
1521    const NAME: &'static str = "BoolValue";
1522    const FULL_NAME: &'static str = "google.protobuf.BoolValue";
1523    const TYPE_URL: &'static str = "type.googleapis.com/google.protobuf.BoolValue";
1524}
1525impl ::buffa::Message for BoolValue {
1526    /// Returns the total encoded size in bytes.
1527    ///
1528    /// The result is a `u32`; the protobuf specification requires all
1529    /// messages to fit within 2 GiB (2,147,483,647 bytes), so a
1530    /// compliant message will never overflow this type.
1531    #[allow(clippy::let_and_return)]
1532    fn compute_size(&self, _cache: &mut ::buffa::SizeCache) -> u32 {
1533        #[allow(unused_imports)]
1534        use ::buffa::Enumeration as _;
1535        let mut size = 0u32;
1536        if self.value {
1537            size += 1u32 + ::buffa::types::BOOL_ENCODED_LEN as u32;
1538        }
1539        size += self.__buffa_unknown_fields.encoded_len() as u32;
1540        size
1541    }
1542    fn write_to(
1543        &self,
1544        _cache: &mut ::buffa::SizeCache,
1545        buf: &mut impl ::buffa::bytes::BufMut,
1546    ) {
1547        #[allow(unused_imports)]
1548        use ::buffa::Enumeration as _;
1549        if self.value {
1550            ::buffa::types::put_bool_field(1u32, self.value, buf);
1551        }
1552        self.__buffa_unknown_fields.write_to(buf);
1553    }
1554    fn merge_field(
1555        &mut self,
1556        tag: ::buffa::encoding::Tag,
1557        buf: &mut impl ::buffa::bytes::Buf,
1558        ctx: ::buffa::DecodeContext<'_>,
1559    ) -> ::core::result::Result<(), ::buffa::DecodeError> {
1560        #[allow(unused_imports)]
1561        use ::buffa::bytes::Buf as _;
1562        #[allow(unused_imports)]
1563        use ::buffa::Enumeration as _;
1564        match tag.field_number() {
1565            1u32 => {
1566                ::buffa::encoding::check_wire_type(
1567                    tag,
1568                    ::buffa::encoding::WireType::Varint,
1569                )?;
1570                self.value = ::buffa::types::decode_bool(buf)?;
1571            }
1572            _ => {
1573                self.__buffa_unknown_fields
1574                    .push(::buffa::encoding::decode_unknown_field(tag, buf, ctx)?);
1575            }
1576        }
1577        ::core::result::Result::Ok(())
1578    }
1579    fn clear(&mut self) {
1580        self.value = false;
1581        self.__buffa_unknown_fields.clear();
1582    }
1583}
1584impl ::buffa::ExtensionSet for BoolValue {
1585    const PROTO_FQN: &'static str = "google.protobuf.BoolValue";
1586    fn unknown_fields(&self) -> &::buffa::UnknownFields {
1587        &self.__buffa_unknown_fields
1588    }
1589    fn unknown_fields_mut(&mut self) -> &mut ::buffa::UnknownFields {
1590        &mut self.__buffa_unknown_fields
1591    }
1592}
1593impl ::buffa::text::TextFormat for BoolValue {
1594    fn encode_text(
1595        &self,
1596        enc: &mut ::buffa::text::TextEncoder<'_>,
1597    ) -> ::core::fmt::Result {
1598        #[allow(unused_imports)]
1599        use ::buffa::Enumeration as _;
1600        if self.value {
1601            enc.write_field_name("value")?;
1602            enc.write_bool(self.value)?;
1603        }
1604        enc.write_unknown_fields(&self.__buffa_unknown_fields)?;
1605        ::core::result::Result::Ok(())
1606    }
1607    fn merge_text(
1608        &mut self,
1609        dec: &mut ::buffa::text::TextDecoder<'_>,
1610    ) -> ::core::result::Result<(), ::buffa::text::ParseError> {
1611        #[allow(unused_imports)]
1612        use ::buffa::Enumeration as _;
1613        while let ::core::option::Option::Some(__name) = dec.read_field_name()? {
1614            match __name {
1615                "value" => self.value = dec.read_bool()?,
1616                _ => dec.skip_value()?,
1617            }
1618        }
1619        ::core::result::Result::Ok(())
1620    }
1621}
1622#[doc(hidden)]
1623pub const __BOOL_VALUE_TEXT_ANY: ::buffa::type_registry::TextAnyEntry = ::buffa::type_registry::TextAnyEntry {
1624    type_url: "type.googleapis.com/google.protobuf.BoolValue",
1625    text_encode: ::buffa::type_registry::any_encode_text::<BoolValue>,
1626    text_merge: ::buffa::type_registry::any_merge_text::<BoolValue>,
1627};
1628/// Wrapper message for `string`.
1629///
1630/// The JSON representation for `StringValue` is JSON string.
1631#[derive(Clone, PartialEq, Default)]
1632#[cfg_attr(feature = "arbitrary", derive(::arbitrary::Arbitrary))]
1633pub struct StringValue {
1634    /// The string value.
1635    ///
1636    /// Field 1: `value`
1637    pub value: ::buffa::alloc::string::String,
1638    #[doc(hidden)]
1639    pub __buffa_unknown_fields: ::buffa::UnknownFields,
1640}
1641impl ::core::fmt::Debug for StringValue {
1642    fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1643        f.debug_struct("StringValue").field("value", &self.value).finish()
1644    }
1645}
1646impl StringValue {
1647    /// Protobuf type URL for this message, for use with `Any::pack` and
1648    /// `Any::unpack_if`.
1649    ///
1650    /// Format: `type.googleapis.com/<fully.qualified.TypeName>`
1651    pub const TYPE_URL: &'static str = "type.googleapis.com/google.protobuf.StringValue";
1652}
1653::buffa::impl_default_instance!(StringValue);
1654#[cfg(feature = "reflect")]
1655const _: () = {
1656    impl ::buffa_descriptor::reflect::ReflectMessage for StringValue {
1657        fn message_descriptor(&self) -> &::buffa_descriptor::MessageDescriptor {
1658            __buffa::reflect::descriptor_pool()
1659                .message(Self::__buffa_reflect_message_index())
1660        }
1661        fn pool(
1662            &self,
1663        ) -> &::buffa::alloc::sync::Arc<::buffa_descriptor::DescriptorPool> {
1664            __buffa::reflect::descriptor_pool()
1665        }
1666        fn unknown_fields(&self) -> &::buffa::UnknownFields {
1667            &self.__buffa_unknown_fields
1668        }
1669        fn get(
1670            &self,
1671            field: &::buffa_descriptor::FieldDescriptor,
1672        ) -> ::buffa_descriptor::reflect::ValueRef<'_> {
1673            #[allow(unused_imports)]
1674            use ::buffa::Enumeration as _;
1675            match field.number() {
1676                1u32 => ::buffa_descriptor::reflect::ValueRef::String(&self.value),
1677                _ => {
1678                    ::core::debug_assert!(
1679                        false,
1680                        "field number {} is not a member of this message's reflect get()",
1681                        field.number(),
1682                    );
1683                    ::buffa_descriptor::reflect::ValueRef::Bool(false)
1684                }
1685            }
1686        }
1687        fn has(&self, field: &::buffa_descriptor::FieldDescriptor) -> bool {
1688            match field.number() {
1689                1u32 => !self.value.is_empty(),
1690                _ => false,
1691            }
1692        }
1693        fn for_each_set(
1694            &self,
1695            f: &mut dyn ::core::ops::FnMut(
1696                &::buffa_descriptor::FieldDescriptor,
1697                ::buffa_descriptor::reflect::ValueRef<'_>,
1698            ),
1699        ) {
1700            let md = ::buffa_descriptor::reflect::ReflectMessage::message_descriptor(
1701                self,
1702            );
1703            for fd in md.fields() {
1704                if ::buffa_descriptor::reflect::ReflectMessage::has(self, fd) {
1705                    f(fd, ::buffa_descriptor::reflect::ReflectMessage::get(self, fd));
1706                }
1707            }
1708        }
1709        fn to_dynamic(&self) -> ::buffa_descriptor::reflect::DynamicMessage {
1710            ::buffa_descriptor::reflect::DynamicMessage::from_message(
1711                self,
1712                ::buffa::alloc::sync::Arc::clone(__buffa::reflect::descriptor_pool()),
1713                Self::__buffa_reflect_message_index(),
1714            )
1715        }
1716    }
1717    impl ::buffa_descriptor::reflect::ReflectElement for StringValue {
1718        #[inline]
1719        fn as_value_ref(&self) -> ::buffa_descriptor::reflect::ValueRef<'_> {
1720            ::buffa_descriptor::reflect::ValueRef::Message(
1721                ::buffa_descriptor::reflect::ReflectCow::Borrowed(self),
1722            )
1723        }
1724    }
1725    impl StringValue {
1726        /// Memoized `MessageIndex` for this message type, resolved once
1727        /// against the package's embedded descriptor pool.
1728        #[doc(hidden)]
1729        fn __buffa_reflect_message_index() -> ::buffa_descriptor::MessageIndex {
1730            static IDX: ::std::sync::OnceLock<::buffa_descriptor::MessageIndex> = ::std::sync::OnceLock::new();
1731            *IDX
1732                .get_or_init(|| {
1733                    __buffa::reflect::descriptor_pool()
1734                        .message_index(<Self as ::buffa::MessageName>::FULL_NAME)
1735                        .expect(
1736                            "generated message is registered in the embedded descriptor pool",
1737                        )
1738                })
1739        }
1740    }
1741    impl ::buffa_descriptor::reflect::Reflectable for StringValue {
1742        /// Vtable-mode reflective handle: borrows `self` directly. No
1743        /// encode/decode round-trip and no allocation — the reflective
1744        /// accessors read this message's fields in place.
1745        #[inline]
1746        fn reflect(&self) -> ::buffa_descriptor::reflect::ReflectCow<'_> {
1747            ::buffa_descriptor::reflect::ReflectCow::Borrowed(self)
1748        }
1749    }
1750};
1751impl ::buffa::MessageName for StringValue {
1752    const PACKAGE: &'static str = "google.protobuf";
1753    const NAME: &'static str = "StringValue";
1754    const FULL_NAME: &'static str = "google.protobuf.StringValue";
1755    const TYPE_URL: &'static str = "type.googleapis.com/google.protobuf.StringValue";
1756}
1757impl ::buffa::Message for StringValue {
1758    /// Returns the total encoded size in bytes.
1759    ///
1760    /// The result is a `u32`; the protobuf specification requires all
1761    /// messages to fit within 2 GiB (2,147,483,647 bytes), so a
1762    /// compliant message will never overflow this type.
1763    #[allow(clippy::let_and_return)]
1764    fn compute_size(&self, _cache: &mut ::buffa::SizeCache) -> u32 {
1765        #[allow(unused_imports)]
1766        use ::buffa::Enumeration as _;
1767        let mut size = 0u32;
1768        if !self.value.is_empty() {
1769            size += 1u32 + ::buffa::types::string_encoded_len(&self.value) as u32;
1770        }
1771        size += self.__buffa_unknown_fields.encoded_len() as u32;
1772        size
1773    }
1774    fn write_to(
1775        &self,
1776        _cache: &mut ::buffa::SizeCache,
1777        buf: &mut impl ::buffa::bytes::BufMut,
1778    ) {
1779        #[allow(unused_imports)]
1780        use ::buffa::Enumeration as _;
1781        if !self.value.is_empty() {
1782            ::buffa::types::put_string_field(1u32, &self.value, buf);
1783        }
1784        self.__buffa_unknown_fields.write_to(buf);
1785    }
1786    fn merge_field(
1787        &mut self,
1788        tag: ::buffa::encoding::Tag,
1789        buf: &mut impl ::buffa::bytes::Buf,
1790        ctx: ::buffa::DecodeContext<'_>,
1791    ) -> ::core::result::Result<(), ::buffa::DecodeError> {
1792        #[allow(unused_imports)]
1793        use ::buffa::bytes::Buf as _;
1794        #[allow(unused_imports)]
1795        use ::buffa::Enumeration as _;
1796        match tag.field_number() {
1797            1u32 => {
1798                ::buffa::encoding::check_wire_type(
1799                    tag,
1800                    ::buffa::encoding::WireType::LengthDelimited,
1801                )?;
1802                ::buffa::types::merge_string(&mut self.value, buf)?;
1803            }
1804            _ => {
1805                self.__buffa_unknown_fields
1806                    .push(::buffa::encoding::decode_unknown_field(tag, buf, ctx)?);
1807            }
1808        }
1809        ::core::result::Result::Ok(())
1810    }
1811    fn clear(&mut self) {
1812        self.value.clear();
1813        self.__buffa_unknown_fields.clear();
1814    }
1815}
1816impl ::buffa::ExtensionSet for StringValue {
1817    const PROTO_FQN: &'static str = "google.protobuf.StringValue";
1818    fn unknown_fields(&self) -> &::buffa::UnknownFields {
1819        &self.__buffa_unknown_fields
1820    }
1821    fn unknown_fields_mut(&mut self) -> &mut ::buffa::UnknownFields {
1822        &mut self.__buffa_unknown_fields
1823    }
1824}
1825impl ::buffa::text::TextFormat for StringValue {
1826    fn encode_text(
1827        &self,
1828        enc: &mut ::buffa::text::TextEncoder<'_>,
1829    ) -> ::core::fmt::Result {
1830        #[allow(unused_imports)]
1831        use ::buffa::Enumeration as _;
1832        if !self.value.is_empty() {
1833            enc.write_field_name("value")?;
1834            enc.write_string(&self.value)?;
1835        }
1836        enc.write_unknown_fields(&self.__buffa_unknown_fields)?;
1837        ::core::result::Result::Ok(())
1838    }
1839    fn merge_text(
1840        &mut self,
1841        dec: &mut ::buffa::text::TextDecoder<'_>,
1842    ) -> ::core::result::Result<(), ::buffa::text::ParseError> {
1843        #[allow(unused_imports)]
1844        use ::buffa::Enumeration as _;
1845        while let ::core::option::Option::Some(__name) = dec.read_field_name()? {
1846            match __name {
1847                "value" => self.value = dec.read_string()?.into_owned(),
1848                _ => dec.skip_value()?,
1849            }
1850        }
1851        ::core::result::Result::Ok(())
1852    }
1853}
1854#[doc(hidden)]
1855pub const __STRING_VALUE_TEXT_ANY: ::buffa::type_registry::TextAnyEntry = ::buffa::type_registry::TextAnyEntry {
1856    type_url: "type.googleapis.com/google.protobuf.StringValue",
1857    text_encode: ::buffa::type_registry::any_encode_text::<StringValue>,
1858    text_merge: ::buffa::type_registry::any_merge_text::<StringValue>,
1859};
1860/// Wrapper message for `bytes`.
1861///
1862/// The JSON representation for `BytesValue` is JSON string.
1863#[derive(Clone, PartialEq, Default)]
1864#[cfg_attr(feature = "arbitrary", derive(::arbitrary::Arbitrary))]
1865pub struct BytesValue {
1866    /// The bytes value.
1867    ///
1868    /// Field 1: `value`
1869    pub value: ::buffa::alloc::vec::Vec<u8>,
1870    #[doc(hidden)]
1871    pub __buffa_unknown_fields: ::buffa::UnknownFields,
1872}
1873impl ::core::fmt::Debug for BytesValue {
1874    fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1875        f.debug_struct("BytesValue").field("value", &self.value).finish()
1876    }
1877}
1878impl BytesValue {
1879    /// Protobuf type URL for this message, for use with `Any::pack` and
1880    /// `Any::unpack_if`.
1881    ///
1882    /// Format: `type.googleapis.com/<fully.qualified.TypeName>`
1883    pub const TYPE_URL: &'static str = "type.googleapis.com/google.protobuf.BytesValue";
1884}
1885::buffa::impl_default_instance!(BytesValue);
1886#[cfg(feature = "reflect")]
1887const _: () = {
1888    impl ::buffa_descriptor::reflect::ReflectMessage for BytesValue {
1889        fn message_descriptor(&self) -> &::buffa_descriptor::MessageDescriptor {
1890            __buffa::reflect::descriptor_pool()
1891                .message(Self::__buffa_reflect_message_index())
1892        }
1893        fn pool(
1894            &self,
1895        ) -> &::buffa::alloc::sync::Arc<::buffa_descriptor::DescriptorPool> {
1896            __buffa::reflect::descriptor_pool()
1897        }
1898        fn unknown_fields(&self) -> &::buffa::UnknownFields {
1899            &self.__buffa_unknown_fields
1900        }
1901        fn get(
1902            &self,
1903            field: &::buffa_descriptor::FieldDescriptor,
1904        ) -> ::buffa_descriptor::reflect::ValueRef<'_> {
1905            #[allow(unused_imports)]
1906            use ::buffa::Enumeration as _;
1907            match field.number() {
1908                1u32 => ::buffa_descriptor::reflect::ValueRef::Bytes(&self.value[..]),
1909                _ => {
1910                    ::core::debug_assert!(
1911                        false,
1912                        "field number {} is not a member of this message's reflect get()",
1913                        field.number(),
1914                    );
1915                    ::buffa_descriptor::reflect::ValueRef::Bool(false)
1916                }
1917            }
1918        }
1919        fn has(&self, field: &::buffa_descriptor::FieldDescriptor) -> bool {
1920            match field.number() {
1921                1u32 => !self.value.is_empty(),
1922                _ => false,
1923            }
1924        }
1925        fn for_each_set(
1926            &self,
1927            f: &mut dyn ::core::ops::FnMut(
1928                &::buffa_descriptor::FieldDescriptor,
1929                ::buffa_descriptor::reflect::ValueRef<'_>,
1930            ),
1931        ) {
1932            let md = ::buffa_descriptor::reflect::ReflectMessage::message_descriptor(
1933                self,
1934            );
1935            for fd in md.fields() {
1936                if ::buffa_descriptor::reflect::ReflectMessage::has(self, fd) {
1937                    f(fd, ::buffa_descriptor::reflect::ReflectMessage::get(self, fd));
1938                }
1939            }
1940        }
1941        fn to_dynamic(&self) -> ::buffa_descriptor::reflect::DynamicMessage {
1942            ::buffa_descriptor::reflect::DynamicMessage::from_message(
1943                self,
1944                ::buffa::alloc::sync::Arc::clone(__buffa::reflect::descriptor_pool()),
1945                Self::__buffa_reflect_message_index(),
1946            )
1947        }
1948    }
1949    impl ::buffa_descriptor::reflect::ReflectElement for BytesValue {
1950        #[inline]
1951        fn as_value_ref(&self) -> ::buffa_descriptor::reflect::ValueRef<'_> {
1952            ::buffa_descriptor::reflect::ValueRef::Message(
1953                ::buffa_descriptor::reflect::ReflectCow::Borrowed(self),
1954            )
1955        }
1956    }
1957    impl BytesValue {
1958        /// Memoized `MessageIndex` for this message type, resolved once
1959        /// against the package's embedded descriptor pool.
1960        #[doc(hidden)]
1961        fn __buffa_reflect_message_index() -> ::buffa_descriptor::MessageIndex {
1962            static IDX: ::std::sync::OnceLock<::buffa_descriptor::MessageIndex> = ::std::sync::OnceLock::new();
1963            *IDX
1964                .get_or_init(|| {
1965                    __buffa::reflect::descriptor_pool()
1966                        .message_index(<Self as ::buffa::MessageName>::FULL_NAME)
1967                        .expect(
1968                            "generated message is registered in the embedded descriptor pool",
1969                        )
1970                })
1971        }
1972    }
1973    impl ::buffa_descriptor::reflect::Reflectable for BytesValue {
1974        /// Vtable-mode reflective handle: borrows `self` directly. No
1975        /// encode/decode round-trip and no allocation — the reflective
1976        /// accessors read this message's fields in place.
1977        #[inline]
1978        fn reflect(&self) -> ::buffa_descriptor::reflect::ReflectCow<'_> {
1979            ::buffa_descriptor::reflect::ReflectCow::Borrowed(self)
1980        }
1981    }
1982};
1983impl ::buffa::MessageName for BytesValue {
1984    const PACKAGE: &'static str = "google.protobuf";
1985    const NAME: &'static str = "BytesValue";
1986    const FULL_NAME: &'static str = "google.protobuf.BytesValue";
1987    const TYPE_URL: &'static str = "type.googleapis.com/google.protobuf.BytesValue";
1988}
1989impl ::buffa::Message for BytesValue {
1990    /// Returns the total encoded size in bytes.
1991    ///
1992    /// The result is a `u32`; the protobuf specification requires all
1993    /// messages to fit within 2 GiB (2,147,483,647 bytes), so a
1994    /// compliant message will never overflow this type.
1995    #[allow(clippy::let_and_return)]
1996    fn compute_size(&self, _cache: &mut ::buffa::SizeCache) -> u32 {
1997        #[allow(unused_imports)]
1998        use ::buffa::Enumeration as _;
1999        let mut size = 0u32;
2000        if !self.value.is_empty() {
2001            size += 1u32 + ::buffa::types::bytes_encoded_len(&self.value) as u32;
2002        }
2003        size += self.__buffa_unknown_fields.encoded_len() as u32;
2004        size
2005    }
2006    fn write_to(
2007        &self,
2008        _cache: &mut ::buffa::SizeCache,
2009        buf: &mut impl ::buffa::bytes::BufMut,
2010    ) {
2011        #[allow(unused_imports)]
2012        use ::buffa::Enumeration as _;
2013        if !self.value.is_empty() {
2014            ::buffa::types::put_bytes_field(1u32, &self.value, buf);
2015        }
2016        self.__buffa_unknown_fields.write_to(buf);
2017    }
2018    fn merge_field(
2019        &mut self,
2020        tag: ::buffa::encoding::Tag,
2021        buf: &mut impl ::buffa::bytes::Buf,
2022        ctx: ::buffa::DecodeContext<'_>,
2023    ) -> ::core::result::Result<(), ::buffa::DecodeError> {
2024        #[allow(unused_imports)]
2025        use ::buffa::bytes::Buf as _;
2026        #[allow(unused_imports)]
2027        use ::buffa::Enumeration as _;
2028        match tag.field_number() {
2029            1u32 => {
2030                ::buffa::encoding::check_wire_type(
2031                    tag,
2032                    ::buffa::encoding::WireType::LengthDelimited,
2033                )?;
2034                ::buffa::types::merge_bytes(&mut self.value, buf)?;
2035            }
2036            _ => {
2037                self.__buffa_unknown_fields
2038                    .push(::buffa::encoding::decode_unknown_field(tag, buf, ctx)?);
2039            }
2040        }
2041        ::core::result::Result::Ok(())
2042    }
2043    fn clear(&mut self) {
2044        self.value.clear();
2045        self.__buffa_unknown_fields.clear();
2046    }
2047}
2048impl ::buffa::ExtensionSet for BytesValue {
2049    const PROTO_FQN: &'static str = "google.protobuf.BytesValue";
2050    fn unknown_fields(&self) -> &::buffa::UnknownFields {
2051        &self.__buffa_unknown_fields
2052    }
2053    fn unknown_fields_mut(&mut self) -> &mut ::buffa::UnknownFields {
2054        &mut self.__buffa_unknown_fields
2055    }
2056}
2057impl ::buffa::text::TextFormat for BytesValue {
2058    fn encode_text(
2059        &self,
2060        enc: &mut ::buffa::text::TextEncoder<'_>,
2061    ) -> ::core::fmt::Result {
2062        #[allow(unused_imports)]
2063        use ::buffa::Enumeration as _;
2064        if !self.value.is_empty() {
2065            enc.write_field_name("value")?;
2066            enc.write_bytes(&self.value)?;
2067        }
2068        enc.write_unknown_fields(&self.__buffa_unknown_fields)?;
2069        ::core::result::Result::Ok(())
2070    }
2071    fn merge_text(
2072        &mut self,
2073        dec: &mut ::buffa::text::TextDecoder<'_>,
2074    ) -> ::core::result::Result<(), ::buffa::text::ParseError> {
2075        #[allow(unused_imports)]
2076        use ::buffa::Enumeration as _;
2077        while let ::core::option::Option::Some(__name) = dec.read_field_name()? {
2078            match __name {
2079                "value" => self.value = dec.read_bytes()?,
2080                _ => dec.skip_value()?,
2081            }
2082        }
2083        ::core::result::Result::Ok(())
2084    }
2085}
2086#[doc(hidden)]
2087pub const __BYTES_VALUE_TEXT_ANY: ::buffa::type_registry::TextAnyEntry = ::buffa::type_registry::TextAnyEntry {
2088    type_url: "type.googleapis.com/google.protobuf.BytesValue",
2089    text_encode: ::buffa::type_registry::any_encode_text::<BytesValue>,
2090    text_merge: ::buffa::type_registry::any_merge_text::<BytesValue>,
2091};