// @generated by buffa-codegen. DO NOT EDIT.
include!("google.protobuf.any.rs");
include!("google.protobuf.api.rs");
include!("google.protobuf.duration.rs");
include!("google.protobuf.empty.rs");
include!("google.protobuf.field_mask.rs");
include!("google.protobuf.source_context.rs");
include!("google.protobuf.struct.rs");
include!("google.protobuf.timestamp.rs");
include!("google.protobuf.type.rs");
include!("google.protobuf.wrappers.rs");
#[allow(
non_camel_case_types,
dead_code,
unused_imports,
unused_qualifications,
clippy::derivable_impls,
clippy::match_single_binding,
clippy::uninlined_format_args,
clippy::doc_lazy_continuation,
clippy::module_inception
)]
pub mod __buffa {
#[allow(unused_imports)]
use super::*;
pub mod view {
#[allow(unused_imports)]
use super::*;
include!("google.protobuf.any.__view.rs");
include!("google.protobuf.api.__view.rs");
include!("google.protobuf.duration.__view.rs");
include!("google.protobuf.empty.__view.rs");
include!("google.protobuf.field_mask.__view.rs");
include!("google.protobuf.source_context.__view.rs");
include!("google.protobuf.struct.__view.rs");
include!("google.protobuf.timestamp.__view.rs");
include!("google.protobuf.type.__view.rs");
include!("google.protobuf.wrappers.__view.rs");
pub mod oneof {
#[allow(unused_imports)]
use super::*;
include!("google.protobuf.struct.__view_oneof.rs");
}
}
pub mod oneof {
#[allow(unused_imports)]
use super::*;
include!("google.protobuf.struct.__oneof.rs");
}
#[cfg(feature = "reflect")]
/// Reflection support: embedded descriptor pool shared by this
/// package's [`Reflectable`](::buffa_descriptor::reflect::Reflectable)
/// and `ReflectMessage` impls (bridge and vtable mode alike).
pub mod reflect {
/// The serialized `FileDescriptorSet` for this codegen run,
/// including transitive dependencies, with `source_code_info`
/// stripped. Used to build the runtime
/// [`DescriptorPool`](::buffa_descriptor::DescriptorPool);
/// also suitable for shipping the schema over the wire.
/// Re-exported at the package root — prefer that path over
/// going through `__buffa`.
pub const FILE_DESCRIPTOR_SET_BYTES: &[u8] = b"\n\xE4\x01\n\x19google/protobuf/any.proto\x12\x0Fgoogle.protobuf\"6\n\x03Any\x12\x19\n\x08type_url\x18\x01 \x01(\tR\x07typeUrl\x12\x14\n\x05value\x18\x02 \x01(\x0CR\x05valueBv\n\x13com.google.protobufB\x08AnyProtoP\x01Z,google.golang.org/protobuf/types/known/anypb\xA2\x02\x03GPB\xAA\x02\x1EGoogle.Protobuf.WellKnownTypesb\x06proto3\n\xFA\x01\n$google/protobuf/source_context.proto\x12\x0Fgoogle.protobuf\",\n\rSourceContext\x12\x1B\n\tfile_name\x18\x01 \x01(\tR\x08fileNameB\x8A\x01\n\x13com.google.protobufB\x12SourceContextProtoP\x01Z6google.golang.org/protobuf/types/known/sourcecontextpb\xA2\x02\x03GPB\xAA\x02\x1EGoogle.Protobuf.WellKnownTypesb\x06proto3\n\xEB\x0E\n\x1Agoogle/protobuf/type.proto\x12\x0Fgoogle.protobuf\x1A\x19google/protobuf/any.proto\x1A$google/protobuf/source_context.proto\"\xA7\x02\n\x04Type\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12.\n\x06fields\x18\x02 \x03(\x0B2\x16.google.protobuf.FieldR\x06fields\x12\x16\n\x06oneofs\x18\x03 \x03(\tR\x06oneofs\x121\n\x07options\x18\x04 \x03(\x0B2\x17.google.protobuf.OptionR\x07options\x12E\n\x0Esource_context\x18\x05 \x01(\x0B2\x1E.google.protobuf.SourceContextR\rsourceContext\x12/\n\x06syntax\x18\x06 \x01(\x0E2\x17.google.protobuf.SyntaxR\x06syntax\x12\x18\n\x07edition\x18\x07 \x01(\tR\x07edition\"\xB4\x06\n\x05Field\x12/\n\x04kind\x18\x01 \x01(\x0E2\x1B.google.protobuf.Field.KindR\x04kind\x12D\n\x0Bcardinality\x18\x02 \x01(\x0E2\".google.protobuf.Field.CardinalityR\x0Bcardinality\x12\x16\n\x06number\x18\x03 \x01(\x05R\x06number\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name\x12\x19\n\x08type_url\x18\x06 \x01(\tR\x07typeUrl\x12\x1F\n\x0Boneof_index\x18\x07 \x01(\x05R\noneofIndex\x12\x16\n\x06packed\x18\x08 \x01(\x08R\x06packed\x121\n\x07options\x18\t \x03(\x0B2\x17.google.protobuf.OptionR\x07options\x12\x1B\n\tjson_name\x18\n \x01(\tR\x08jsonName\x12#\n\rdefault_value\x18\x0B \x01(\tR\x0CdefaultValue\"\xC8\x02\n\x04Kind\x12\x10\n\x0CTYPE_UNKNOWN\x10\0\x12\x0F\n\x0BTYPE_DOUBLE\x10\x01\x12\x0E\n\nTYPE_FLOAT\x10\x02\x12\x0E\n\nTYPE_INT64\x10\x03\x12\x0F\n\x0BTYPE_UINT64\x10\x04\x12\x0E\n\nTYPE_INT32\x10\x05\x12\x10\n\x0CTYPE_FIXED64\x10\x06\x12\x10\n\x0CTYPE_FIXED32\x10\x07\x12\r\n\tTYPE_BOOL\x10\x08\x12\x0F\n\x0BTYPE_STRING\x10\t\x12\x0E\n\nTYPE_GROUP\x10\n\x12\x10\n\x0CTYPE_MESSAGE\x10\x0B\x12\x0E\n\nTYPE_BYTES\x10\x0C\x12\x0F\n\x0BTYPE_UINT32\x10\r\x12\r\n\tTYPE_ENUM\x10\x0E\x12\x11\n\rTYPE_SFIXED32\x10\x0F\x12\x11\n\rTYPE_SFIXED64\x10\x10\x12\x0F\n\x0BTYPE_SINT32\x10\x11\x12\x0F\n\x0BTYPE_SINT64\x10\x12\"t\n\x0BCardinality\x12\x17\n\x13CARDINALITY_UNKNOWN\x10\0\x12\x18\n\x14CARDINALITY_OPTIONAL\x10\x01\x12\x18\n\x14CARDINALITY_REQUIRED\x10\x02\x12\x18\n\x14CARDINALITY_REPEATED\x10\x03\"\x99\x02\n\x04Enum\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x128\n\tenumvalue\x18\x02 \x03(\x0B2\x1A.google.protobuf.EnumValueR\tenumvalue\x121\n\x07options\x18\x03 \x03(\x0B2\x17.google.protobuf.OptionR\x07options\x12E\n\x0Esource_context\x18\x04 \x01(\x0B2\x1E.google.protobuf.SourceContextR\rsourceContext\x12/\n\x06syntax\x18\x05 \x01(\x0E2\x17.google.protobuf.SyntaxR\x06syntax\x12\x18\n\x07edition\x18\x06 \x01(\tR\x07edition\"j\n\tEnumValue\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n\x06number\x18\x02 \x01(\x05R\x06number\x121\n\x07options\x18\x03 \x03(\x0B2\x17.google.protobuf.OptionR\x07options\"H\n\x06Option\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12*\n\x05value\x18\x02 \x01(\x0B2\x14.google.protobuf.AnyR\x05value*C\n\x06Syntax\x12\x11\n\rSYNTAX_PROTO2\x10\0\x12\x11\n\rSYNTAX_PROTO3\x10\x01\x12\x13\n\x0FSYNTAX_EDITIONS\x10\x02B{\n\x13com.google.protobufB\tTypeProtoP\x01Z-google.golang.org/protobuf/types/known/typepb\xF8\x01\x01\xA2\x02\x03GPB\xAA\x02\x1EGoogle.Protobuf.WellKnownTypesb\x06proto3\n\xD4\x07\n\x19google/protobuf/api.proto\x12\x0Fgoogle.protobuf\x1A$google/protobuf/source_context.proto\x1A\x1Agoogle/protobuf/type.proto\"\xDB\x02\n\x03Api\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x121\n\x07methods\x18\x02 \x03(\x0B2\x17.google.protobuf.MethodR\x07methods\x121\n\x07options\x18\x03 \x03(\x0B2\x17.google.protobuf.OptionR\x07options\x12\x18\n\x07version\x18\x04 \x01(\tR\x07version\x12E\n\x0Esource_context\x18\x05 \x01(\x0B2\x1E.google.protobuf.SourceContextR\rsourceContext\x12.\n\x06mixins\x18\x06 \x03(\x0B2\x16.google.protobuf.MixinR\x06mixins\x12/\n\x06syntax\x18\x07 \x01(\x0E2\x17.google.protobuf.SyntaxR\x06syntax\x12\x18\n\x07edition\x18\x08 \x01(\tR\x07edition\"\xD4\x02\n\x06Method\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12(\n\x10request_type_url\x18\x02 \x01(\tR\x0ErequestTypeUrl\x12+\n\x11request_streaming\x18\x03 \x01(\x08R\x10requestStreaming\x12*\n\x11response_type_url\x18\x04 \x01(\tR\x0FresponseTypeUrl\x12-\n\x12response_streaming\x18\x05 \x01(\x08R\x11responseStreaming\x121\n\x07options\x18\x06 \x03(\x0B2\x17.google.protobuf.OptionR\x07options\x123\n\x06syntax\x18\x07 \x01(\x0E2\x17.google.protobuf.SyntaxB\x02\x18\x01R\x06syntax\x12\x1C\n\x07edition\x18\x08 \x01(\tB\x02\x18\x01R\x07edition\"/\n\x05Mixin\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n\x04root\x18\x02 \x01(\tR\x04rootBv\n\x13com.google.protobufB\x08ApiProtoP\x01Z,google.golang.org/protobuf/types/known/apipb\xA2\x02\x03GPB\xAA\x02\x1EGoogle.Protobuf.WellKnownTypesb\x06proto3\n\xFB\x01\n\x1Egoogle/protobuf/duration.proto\x12\x0Fgoogle.protobuf\":\n\x08Duration\x12\x18\n\x07seconds\x18\x01 \x01(\x03R\x07seconds\x12\x14\n\x05nanos\x18\x02 \x01(\x05R\x05nanosB\x83\x01\n\x13com.google.protobufB\rDurationProtoP\x01Z1google.golang.org/protobuf/types/known/durationpb\xF8\x01\x01\xA2\x02\x03GPB\xAA\x02\x1EGoogle.Protobuf.WellKnownTypesb\x06proto3\n\xBB\x01\n\x1Bgoogle/protobuf/empty.proto\x12\x0Fgoogle.protobuf\"\x07\n\x05EmptyBz\n\x13com.google.protobufB\nEmptyProtoP\x01Z.google.golang.org/protobuf/types/known/emptypb\xA2\x02\x03GPB\xAA\x02\x1EGoogle.Protobuf.WellKnownTypesb\x06proto3\n\xE6\x01\n google/protobuf/field_mask.proto\x12\x0Fgoogle.protobuf\"!\n\tFieldMask\x12\x14\n\x05paths\x18\x01 \x03(\tR\x05pathsB\x85\x01\n\x13com.google.protobufB\x0EFieldMaskProtoP\x01Z2google.golang.org/protobuf/types/known/fieldmaskpb\xF8\x01\x01\xA2\x02\x03GPB\xAA\x02\x1EGoogle.Protobuf.WellKnownTypesb\x06proto3\n\xE2\x05\n\x1Cgoogle/protobuf/struct.proto\x12\x0Fgoogle.protobuf\"\x98\x01\n\x06Struct\x12;\n\x06fields\x18\x01 \x03(\x0B2#.google.protobuf.Struct.FieldsEntryR\x06fields\x1AQ\n\x0BFieldsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12,\n\x05value\x18\x02 \x01(\x0B2\x16.google.protobuf.ValueR\x05value:\x028\x01\"\xB2\x02\n\x05Value\x12;\n\nnull_value\x18\x01 \x01(\x0E2\x1A.google.protobuf.NullValueH\0R\tnullValue\x12#\n\x0Cnumber_value\x18\x02 \x01(\x01H\0R\x0BnumberValue\x12#\n\x0Cstring_value\x18\x03 \x01(\tH\0R\x0BstringValue\x12\x1F\n\nbool_value\x18\x04 \x01(\x08H\0R\tboolValue\x12<\n\x0Cstruct_value\x18\x05 \x01(\x0B2\x17.google.protobuf.StructH\0R\x0BstructValue\x12;\n\nlist_value\x18\x06 \x01(\x0B2\x1A.google.protobuf.ListValueH\0R\tlistValueB\x06\n\x04kind\";\n\tListValue\x12.\n\x06values\x18\x01 \x03(\x0B2\x16.google.protobuf.ValueR\x06values*\x1B\n\tNullValue\x12\x0E\n\nNULL_VALUE\x10\0B\x7F\n\x13com.google.protobufB\x0BStructProtoP\x01Z/google.golang.org/protobuf/types/known/structpb\xF8\x01\x01\xA2\x02\x03GPB\xAA\x02\x1EGoogle.Protobuf.WellKnownTypesb\x06proto3\n\xFF\x01\n\x1Fgoogle/protobuf/timestamp.proto\x12\x0Fgoogle.protobuf\";\n\tTimestamp\x12\x18\n\x07seconds\x18\x01 \x01(\x03R\x07seconds\x12\x14\n\x05nanos\x18\x02 \x01(\x05R\x05nanosB\x85\x01\n\x13com.google.protobufB\x0ETimestampProtoP\x01Z2google.golang.org/protobuf/types/known/timestamppb\xF8\x01\x01\xA2\x02\x03GPB\xAA\x02\x1EGoogle.Protobuf.WellKnownTypesb\x06proto3\n\x86\x04\n\x1Egoogle/protobuf/wrappers.proto\x12\x0Fgoogle.protobuf\"#\n\x0BDoubleValue\x12\x14\n\x05value\x18\x01 \x01(\x01R\x05value\"\"\n\nFloatValue\x12\x14\n\x05value\x18\x01 \x01(\x02R\x05value\"\"\n\nInt64Value\x12\x14\n\x05value\x18\x01 \x01(\x03R\x05value\"#\n\x0BUInt64Value\x12\x14\n\x05value\x18\x01 \x01(\x04R\x05value\"\"\n\nInt32Value\x12\x14\n\x05value\x18\x01 \x01(\x05R\x05value\"#\n\x0BUInt32Value\x12\x14\n\x05value\x18\x01 \x01(\rR\x05value\"!\n\tBoolValue\x12\x14\n\x05value\x18\x01 \x01(\x08R\x05value\"#\n\x0BStringValue\x12\x14\n\x05value\x18\x01 \x01(\tR\x05value\"\"\n\nBytesValue\x12\x14\n\x05value\x18\x01 \x01(\x0CR\x05valueB\x83\x01\n\x13com.google.protobufB\rWrappersProtoP\x01Z1google.golang.org/protobuf/types/known/wrapperspb\xF8\x01\x01\xA2\x02\x03GPB\xAA\x02\x1EGoogle.Protobuf.WellKnownTypesb\x06proto3";
/// The lazily-built descriptor pool for this package's
/// `Reflectable` impls. Built from
/// [`FILE_DESCRIPTOR_SET_BYTES`] on first access.
///
/// The element-memory bound is derived from the embedded length
/// rather than the untrusted-input default, which is sized for
/// wire input and which a schema of a few hundred `.proto` files
/// exceeds — descriptor types being wide structs. Scaling with the
/// input keeps the bound correct at any schema size while staying
/// finite, so corrupt embedded bytes still fail rather than
/// exhausting memory.
///
/// The scaled bound is floored at
/// [`DEFAULT_ELEMENT_MEMORY_LIMIT`](::buffa::DEFAULT_ELEMENT_MEMORY_LIMIT),
/// so it is never tighter than the untrusted-input default.
///
/// # Panics
///
/// Panics on first access if the embedded bytes are malformed —
/// they're emitted by `buffa-codegen` from the same descriptors
/// it generated this code from, so a panic indicates a codegen
/// bug, not consumer input.
pub fn descriptor_pool() -> &'static ::buffa::alloc::sync::Arc<
::buffa_descriptor::DescriptorPool,
> {
static POOL: ::std::sync::OnceLock<
::buffa::alloc::sync::Arc<::buffa_descriptor::DescriptorPool>,
> = ::std::sync::OnceLock::new();
POOL.get_or_init(|| {
let options = ::buffa::DecodeOptions::new()
.with_element_memory_limit(
FILE_DESCRIPTOR_SET_BYTES
.len()
.saturating_mul(64)
.max(::buffa::DEFAULT_ELEMENT_MEMORY_LIMIT),
);
::buffa::alloc::sync::Arc::new(
::buffa_descriptor::DescriptorPool::decode_with_options(
FILE_DESCRIPTOR_SET_BYTES,
&options,
)
.expect("buffa-codegen emitted a decodable FileDescriptorSet"),
)
})
}
}
}
#[cfg(feature = "reflect")]
///The lazily-built descriptor pool for this package's
///`Reflectable` impls. Re-exported from `__buffa::reflect`.
#[doc(inline)]
pub use self::__buffa::reflect::descriptor_pool;
#[cfg(feature = "reflect")]
///The serialized `FileDescriptorSet` this package's descriptor
///pool is built from (`source_code_info` stripped).
///Re-exported from `__buffa::reflect`.
#[doc(inline)]
pub use self::__buffa::reflect::FILE_DESCRIPTOR_SET_BYTES;
#[doc(inline)]
pub use self::__buffa::view::AnyView;
#[doc(inline)]
pub use self::__buffa::view::AnyOwnedView;
#[doc(inline)]
pub use self::__buffa::view::ApiView;
#[doc(inline)]
pub use self::__buffa::view::ApiOwnedView;
#[doc(inline)]
pub use self::__buffa::view::MethodView;
#[doc(inline)]
pub use self::__buffa::view::MethodOwnedView;
#[doc(inline)]
pub use self::__buffa::view::MixinView;
#[doc(inline)]
pub use self::__buffa::view::MixinOwnedView;
#[doc(inline)]
pub use self::__buffa::view::DurationView;
#[doc(inline)]
pub use self::__buffa::view::DurationOwnedView;
#[doc(inline)]
pub use self::__buffa::view::EmptyView;
#[doc(inline)]
pub use self::__buffa::view::EmptyOwnedView;
#[doc(inline)]
pub use self::__buffa::view::FieldMaskView;
#[doc(inline)]
pub use self::__buffa::view::FieldMaskOwnedView;
#[doc(inline)]
pub use self::__buffa::view::SourceContextView;
#[doc(inline)]
pub use self::__buffa::view::SourceContextOwnedView;
#[doc(inline)]
pub use self::__buffa::view::StructView;
#[doc(inline)]
pub use self::__buffa::view::StructOwnedView;
#[doc(inline)]
pub use self::__buffa::view::ValueView;
#[doc(inline)]
pub use self::__buffa::view::ValueOwnedView;
#[doc(inline)]
pub use self::__buffa::view::ListValueView;
#[doc(inline)]
pub use self::__buffa::view::ListValueOwnedView;
#[doc(inline)]
pub use self::__buffa::view::TimestampView;
#[doc(inline)]
pub use self::__buffa::view::TimestampOwnedView;
#[doc(inline)]
pub use self::__buffa::view::TypeView;
#[doc(inline)]
pub use self::__buffa::view::TypeOwnedView;
#[doc(inline)]
pub use self::__buffa::view::FieldView;
#[doc(inline)]
pub use self::__buffa::view::FieldOwnedView;
#[doc(inline)]
pub use self::__buffa::view::EnumView;
#[doc(inline)]
pub use self::__buffa::view::EnumOwnedView;
#[doc(inline)]
pub use self::__buffa::view::EnumValueView;
#[doc(inline)]
pub use self::__buffa::view::EnumValueOwnedView;
#[doc(inline)]
pub use self::__buffa::view::OptionView;
#[doc(inline)]
pub use self::__buffa::view::OptionOwnedView;
#[doc(inline)]
pub use self::__buffa::view::DoubleValueView;
#[doc(inline)]
pub use self::__buffa::view::DoubleValueOwnedView;
#[doc(inline)]
pub use self::__buffa::view::FloatValueView;
#[doc(inline)]
pub use self::__buffa::view::FloatValueOwnedView;
#[doc(inline)]
pub use self::__buffa::view::Int64ValueView;
#[doc(inline)]
pub use self::__buffa::view::Int64ValueOwnedView;
#[doc(inline)]
pub use self::__buffa::view::UInt64ValueView;
#[doc(inline)]
pub use self::__buffa::view::UInt64ValueOwnedView;
#[doc(inline)]
pub use self::__buffa::view::Int32ValueView;
#[doc(inline)]
pub use self::__buffa::view::Int32ValueOwnedView;
#[doc(inline)]
pub use self::__buffa::view::UInt32ValueView;
#[doc(inline)]
pub use self::__buffa::view::UInt32ValueOwnedView;
#[doc(inline)]
pub use self::__buffa::view::BoolValueView;
#[doc(inline)]
pub use self::__buffa::view::BoolValueOwnedView;
#[doc(inline)]
pub use self::__buffa::view::StringValueView;
#[doc(inline)]
pub use self::__buffa::view::StringValueOwnedView;
#[doc(inline)]
pub use self::__buffa::view::BytesValueView;
#[doc(inline)]
pub use self::__buffa::view::BytesValueOwnedView;