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