#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BoolValue {
#[prost(bool, tag = "1")]
pub value: bool,
#[prost(int64, tag = "2")]
pub last_modified: i64,
#[prost(bool, tag = "3")]
pub default_value: bool,
#[prost(string, tag = "4")]
pub exp: ::prost::alloc::string::String,
}
impl ::prost::Name for BoolValue {
const NAME: &'static str = "BoolValue";
const PACKAGE: &'static str = "bilibili.app.distribution";
fn full_name() -> ::prost::alloc::string::String {
"bilibili.app.distribution.BoolValue".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/bilibili.app.distribution.BoolValue".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BytesValue {
#[prost(bytes = "bytes", tag = "1")]
pub value: ::prost::bytes::Bytes,
#[prost(int64, tag = "2")]
pub last_modified: i64,
#[prost(bytes = "bytes", tag = "3")]
pub default_value: ::prost::bytes::Bytes,
#[prost(string, tag = "4")]
pub exp: ::prost::alloc::string::String,
}
impl ::prost::Name for BytesValue {
const NAME: &'static str = "BytesValue";
const PACKAGE: &'static str = "bilibili.app.distribution";
fn full_name() -> ::prost::alloc::string::String {
"bilibili.app.distribution.BytesValue".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/bilibili.app.distribution.BytesValue".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DoubleValue {
#[prost(double, tag = "1")]
pub value: f64,
#[prost(int64, tag = "2")]
pub last_modified: i64,
#[prost(double, tag = "3")]
pub default_value: f64,
#[prost(string, tag = "4")]
pub exp: ::prost::alloc::string::String,
}
impl ::prost::Name for DoubleValue {
const NAME: &'static str = "DoubleValue";
const PACKAGE: &'static str = "bilibili.app.distribution";
fn full_name() -> ::prost::alloc::string::String {
"bilibili.app.distribution.DoubleValue".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/bilibili.app.distribution.DoubleValue".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FloatValue {
#[prost(float, tag = "1")]
pub value: f32,
#[prost(int64, tag = "2")]
pub last_modified: i64,
#[prost(float, tag = "3")]
pub default_value: f32,
#[prost(string, tag = "4")]
pub exp: ::prost::alloc::string::String,
}
impl ::prost::Name for FloatValue {
const NAME: &'static str = "FloatValue";
const PACKAGE: &'static str = "bilibili.app.distribution";
fn full_name() -> ::prost::alloc::string::String {
"bilibili.app.distribution.FloatValue".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/bilibili.app.distribution.FloatValue".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetUserPreferenceReply {
#[prost(message, repeated, tag = "1")]
pub value: ::prost::alloc::vec::Vec<::prost_types::Any>,
}
impl ::prost::Name for GetUserPreferenceReply {
const NAME: &'static str = "GetUserPreferenceReply";
const PACKAGE: &'static str = "bilibili.app.distribution";
fn full_name() -> ::prost::alloc::string::String {
"bilibili.app.distribution.GetUserPreferenceReply".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/bilibili.app.distribution.GetUserPreferenceReply".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetUserPreferenceReq {
#[prost(string, repeated, tag = "1")]
pub type_url: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(map = "string, string", tag = "2")]
pub extra_context: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
impl ::prost::Name for GetUserPreferenceReq {
const NAME: &'static str = "GetUserPreferenceReq";
const PACKAGE: &'static str = "bilibili.app.distribution";
fn full_name() -> ::prost::alloc::string::String {
"bilibili.app.distribution.GetUserPreferenceReq".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/bilibili.app.distribution.GetUserPreferenceReq".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Int32Value {
#[prost(int32, tag = "1")]
pub value: i32,
#[prost(int64, tag = "2")]
pub last_modified: i64,
#[prost(int32, tag = "3")]
pub default_value: i32,
#[prost(string, tag = "4")]
pub exp: ::prost::alloc::string::String,
}
impl ::prost::Name for Int32Value {
const NAME: &'static str = "Int32Value";
const PACKAGE: &'static str = "bilibili.app.distribution";
fn full_name() -> ::prost::alloc::string::String {
"bilibili.app.distribution.Int32Value".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/bilibili.app.distribution.Int32Value".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Int64Value {
#[prost(int64, tag = "1")]
pub value: i64,
#[prost(int64, tag = "2")]
pub last_modified: i64,
#[prost(int64, tag = "3")]
pub default_value: i64,
#[prost(string, tag = "4")]
pub exp: ::prost::alloc::string::String,
}
impl ::prost::Name for Int64Value {
const NAME: &'static str = "Int64Value";
const PACKAGE: &'static str = "bilibili.app.distribution";
fn full_name() -> ::prost::alloc::string::String {
"bilibili.app.distribution.Int64Value".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/bilibili.app.distribution.Int64Value".into()
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SetUserPreferenceReply {}
impl ::prost::Name for SetUserPreferenceReply {
const NAME: &'static str = "SetUserPreferenceReply";
const PACKAGE: &'static str = "bilibili.app.distribution";
fn full_name() -> ::prost::alloc::string::String {
"bilibili.app.distribution.SetUserPreferenceReply".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/bilibili.app.distribution.SetUserPreferenceReply".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetUserPreferenceReq {
#[prost(message, repeated, tag = "1")]
pub preference: ::prost::alloc::vec::Vec<::prost_types::Any>,
#[prost(map = "string, string", tag = "2")]
pub extra_context: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
impl ::prost::Name for SetUserPreferenceReq {
const NAME: &'static str = "SetUserPreferenceReq";
const PACKAGE: &'static str = "bilibili.app.distribution";
fn full_name() -> ::prost::alloc::string::String {
"bilibili.app.distribution.SetUserPreferenceReq".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/bilibili.app.distribution.SetUserPreferenceReq".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StringValue {
#[prost(string, tag = "1")]
pub value: ::prost::alloc::string::String,
#[prost(int64, tag = "2")]
pub last_modified: i64,
#[prost(string, tag = "3")]
pub default_value: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub exp: ::prost::alloc::string::String,
}
impl ::prost::Name for StringValue {
const NAME: &'static str = "StringValue";
const PACKAGE: &'static str = "bilibili.app.distribution";
fn full_name() -> ::prost::alloc::string::String {
"bilibili.app.distribution.StringValue".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/bilibili.app.distribution.StringValue".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UInt32Value {
#[prost(int32, tag = "1")]
pub value: i32,
#[prost(int64, tag = "2")]
pub last_modified: i64,
#[prost(int32, tag = "3")]
pub default_value: i32,
#[prost(string, tag = "4")]
pub exp: ::prost::alloc::string::String,
}
impl ::prost::Name for UInt32Value {
const NAME: &'static str = "UInt32Value";
const PACKAGE: &'static str = "bilibili.app.distribution";
fn full_name() -> ::prost::alloc::string::String {
"bilibili.app.distribution.UInt32Value".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/bilibili.app.distribution.UInt32Value".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UInt64Value {
#[prost(int64, tag = "1")]
pub value: i64,
#[prost(int64, tag = "2")]
pub last_modified: i64,
#[prost(int64, tag = "3")]
pub default_value: i64,
#[prost(string, tag = "4")]
pub exp: ::prost::alloc::string::String,
}
impl ::prost::Name for UInt64Value {
const NAME: &'static str = "UInt64Value";
const PACKAGE: &'static str = "bilibili.app.distribution";
fn full_name() -> ::prost::alloc::string::String {
"bilibili.app.distribution.UInt64Value".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/bilibili.app.distribution.UInt64Value".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserPreferenceReply {
#[prost(message, repeated, tag = "1")]
pub preference: ::prost::alloc::vec::Vec<::prost_types::Any>,
}
impl ::prost::Name for UserPreferenceReply {
const NAME: &'static str = "UserPreferenceReply";
const PACKAGE: &'static str = "bilibili.app.distribution";
fn full_name() -> ::prost::alloc::string::String {
"bilibili.app.distribution.UserPreferenceReply".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/bilibili.app.distribution.UserPreferenceReply".into()
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UserPreferenceReq {}
impl ::prost::Name for UserPreferenceReq {
const NAME: &'static str = "UserPreferenceReq";
const PACKAGE: &'static str = "bilibili.app.distribution";
fn full_name() -> ::prost::alloc::string::String {
"bilibili.app.distribution.UserPreferenceReq".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/bilibili.app.distribution.UserPreferenceReq".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DefaultValue {
#[prost(oneof = "default_value::Value", tags = "1, 2, 3, 4, 5, 6, 7, 8, 9")]
pub value: ::core::option::Option<default_value::Value>,
}
pub mod default_value {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(double, tag = "1")]
DoubleValue(f64),
#[prost(float, tag = "2")]
FloatValue(f32),
#[prost(int64, tag = "3")]
Int64Value(i64),
#[prost(int64, tag = "4")]
Uint64Value(i64),
#[prost(int32, tag = "5")]
Int32Value(i32),
#[prost(int32, tag = "6")]
Uint32Value(i32),
#[prost(bool, tag = "7")]
BoolValue(bool),
#[prost(string, tag = "8")]
StringValue(::prost::alloc::string::String),
#[prost(bytes, tag = "9")]
BytesValue(::prost::alloc::vec::Vec<u8>),
}
}
impl ::prost::Name for DefaultValue {
const NAME: &'static str = "defaultValue";
const PACKAGE: &'static str = "bilibili.app.distribution";
fn full_name() -> ::prost::alloc::string::String {
"bilibili.app.distribution.defaultValue".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/bilibili.app.distribution.defaultValue".into()
}
}
#[cfg(feature = "feat-enable-generated-client")]
pub mod distribution_client {
#![allow(
unused_variables,
dead_code,
missing_docs,
clippy::wildcard_imports,
clippy::let_unit_value,
)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
#[derive(Debug, Clone)]
pub struct DistributionClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> DistributionClient<T>
where
T: tonic::client::GrpcService<tonic::body::Body>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> DistributionClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::Body>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::Body>,
>>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
{
DistributionClient::new(InterceptedService::new(inner, interceptor))
}
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
pub async fn get_user_preference(
&mut self,
request: impl tonic::IntoRequest<super::GetUserPreferenceReq>,
) -> std::result::Result<
tonic::Response<super::GetUserPreferenceReply>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/bilibili.app.distribution.Distribution/GetUserPreference",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"bilibili.app.distribution.Distribution",
"GetUserPreference",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn set_user_preference(
&mut self,
request: impl tonic::IntoRequest<super::SetUserPreferenceReq>,
) -> std::result::Result<
tonic::Response<super::SetUserPreferenceReply>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/bilibili.app.distribution.Distribution/SetUserPreference",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"bilibili.app.distribution.Distribution",
"SetUserPreference",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn user_preference(
&mut self,
request: impl tonic::IntoRequest<super::UserPreferenceReq>,
) -> std::result::Result<
tonic::Response<super::UserPreferenceReply>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/bilibili.app.distribution.Distribution/UserPreference",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"bilibili.app.distribution.Distribution",
"UserPreference",
),
);
self.inner.unary(req, path, codec).await
}
}
}
#[cfg(feature = "feat-enable-generated-server")]
pub mod distribution_server {
#![allow(
unused_variables,
dead_code,
missing_docs,
clippy::wildcard_imports,
clippy::let_unit_value,
)]
use tonic::codegen::*;
#[async_trait]
pub trait Distribution: std::marker::Send + std::marker::Sync + 'static {
async fn get_user_preference(
&self,
request: tonic::Request<super::GetUserPreferenceReq>,
) -> std::result::Result<
tonic::Response<super::GetUserPreferenceReply>,
tonic::Status,
>;
async fn set_user_preference(
&self,
request: tonic::Request<super::SetUserPreferenceReq>,
) -> std::result::Result<
tonic::Response<super::SetUserPreferenceReply>,
tonic::Status,
>;
async fn user_preference(
&self,
request: tonic::Request<super::UserPreferenceReq>,
) -> std::result::Result<
tonic::Response<super::UserPreferenceReply>,
tonic::Status,
>;
}
#[derive(Debug)]
pub struct DistributionServer<T> {
inner: Arc<T>,
accept_compression_encodings: EnabledCompressionEncodings,
send_compression_encodings: EnabledCompressionEncodings,
max_decoding_message_size: Option<usize>,
max_encoding_message_size: Option<usize>,
}
impl<T> DistributionServer<T> {
pub fn new(inner: T) -> Self {
Self::from_arc(Arc::new(inner))
}
pub fn from_arc(inner: Arc<T>) -> Self {
Self {
inner,
accept_compression_encodings: Default::default(),
send_compression_encodings: Default::default(),
max_decoding_message_size: None,
max_encoding_message_size: None,
}
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> InterceptedService<Self, F>
where
F: tonic::service::Interceptor,
{
InterceptedService::new(Self::new(inner), interceptor)
}
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.accept_compression_encodings.enable(encoding);
self
}
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.send_compression_encodings.enable(encoding);
self
}
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.max_decoding_message_size = Some(limit);
self
}
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.max_encoding_message_size = Some(limit);
self
}
}
impl<T, B> tonic::codegen::Service<http::Request<B>> for DistributionServer<T>
where
T: Distribution,
B: Body + std::marker::Send + 'static,
B::Error: Into<StdError> + std::marker::Send + 'static,
{
type Response = http::Response<tonic::body::Body>;
type Error = std::convert::Infallible;
type Future = BoxFuture<Self::Response, Self::Error>;
fn poll_ready(
&mut self,
_cx: &mut Context<'_>,
) -> Poll<std::result::Result<(), Self::Error>> {
Poll::Ready(Ok(()))
}
fn call(&mut self, req: http::Request<B>) -> Self::Future {
match req.uri().path() {
"/bilibili.app.distribution.Distribution/GetUserPreference" => {
#[allow(non_camel_case_types)]
struct GetUserPreferenceSvc<T: Distribution>(pub Arc<T>);
impl<
T: Distribution,
> tonic::server::UnaryService<super::GetUserPreferenceReq>
for GetUserPreferenceSvc<T> {
type Response = super::GetUserPreferenceReply;
type Future = BoxFuture<
tonic::Response<Self::Response>,
tonic::Status,
>;
fn call(
&mut self,
request: tonic::Request<super::GetUserPreferenceReq>,
) -> Self::Future {
let inner = Arc::clone(&self.0);
let fut = async move {
<T as Distribution>::get_user_preference(&inner, request)
.await
};
Box::pin(fut)
}
}
let accept_compression_encodings = self.accept_compression_encodings;
let send_compression_encodings = self.send_compression_encodings;
let max_decoding_message_size = self.max_decoding_message_size;
let max_encoding_message_size = self.max_encoding_message_size;
let inner = self.inner.clone();
let fut = async move {
let method = GetUserPreferenceSvc(inner);
let codec = tonic::codec::ProstCodec::default();
let mut grpc = tonic::server::Grpc::new(codec)
.apply_compression_config(
accept_compression_encodings,
send_compression_encodings,
)
.apply_max_message_size_config(
max_decoding_message_size,
max_encoding_message_size,
);
let res = grpc.unary(method, req).await;
Ok(res)
};
Box::pin(fut)
}
"/bilibili.app.distribution.Distribution/SetUserPreference" => {
#[allow(non_camel_case_types)]
struct SetUserPreferenceSvc<T: Distribution>(pub Arc<T>);
impl<
T: Distribution,
> tonic::server::UnaryService<super::SetUserPreferenceReq>
for SetUserPreferenceSvc<T> {
type Response = super::SetUserPreferenceReply;
type Future = BoxFuture<
tonic::Response<Self::Response>,
tonic::Status,
>;
fn call(
&mut self,
request: tonic::Request<super::SetUserPreferenceReq>,
) -> Self::Future {
let inner = Arc::clone(&self.0);
let fut = async move {
<T as Distribution>::set_user_preference(&inner, request)
.await
};
Box::pin(fut)
}
}
let accept_compression_encodings = self.accept_compression_encodings;
let send_compression_encodings = self.send_compression_encodings;
let max_decoding_message_size = self.max_decoding_message_size;
let max_encoding_message_size = self.max_encoding_message_size;
let inner = self.inner.clone();
let fut = async move {
let method = SetUserPreferenceSvc(inner);
let codec = tonic::codec::ProstCodec::default();
let mut grpc = tonic::server::Grpc::new(codec)
.apply_compression_config(
accept_compression_encodings,
send_compression_encodings,
)
.apply_max_message_size_config(
max_decoding_message_size,
max_encoding_message_size,
);
let res = grpc.unary(method, req).await;
Ok(res)
};
Box::pin(fut)
}
"/bilibili.app.distribution.Distribution/UserPreference" => {
#[allow(non_camel_case_types)]
struct UserPreferenceSvc<T: Distribution>(pub Arc<T>);
impl<
T: Distribution,
> tonic::server::UnaryService<super::UserPreferenceReq>
for UserPreferenceSvc<T> {
type Response = super::UserPreferenceReply;
type Future = BoxFuture<
tonic::Response<Self::Response>,
tonic::Status,
>;
fn call(
&mut self,
request: tonic::Request<super::UserPreferenceReq>,
) -> Self::Future {
let inner = Arc::clone(&self.0);
let fut = async move {
<T as Distribution>::user_preference(&inner, request).await
};
Box::pin(fut)
}
}
let accept_compression_encodings = self.accept_compression_encodings;
let send_compression_encodings = self.send_compression_encodings;
let max_decoding_message_size = self.max_decoding_message_size;
let max_encoding_message_size = self.max_encoding_message_size;
let inner = self.inner.clone();
let fut = async move {
let method = UserPreferenceSvc(inner);
let codec = tonic::codec::ProstCodec::default();
let mut grpc = tonic::server::Grpc::new(codec)
.apply_compression_config(
accept_compression_encodings,
send_compression_encodings,
)
.apply_max_message_size_config(
max_decoding_message_size,
max_encoding_message_size,
);
let res = grpc.unary(method, req).await;
Ok(res)
};
Box::pin(fut)
}
_ => {
Box::pin(async move {
let mut response = http::Response::new(
tonic::body::Body::default(),
);
let headers = response.headers_mut();
headers
.insert(
tonic::Status::GRPC_STATUS,
(tonic::Code::Unimplemented as i32).into(),
);
headers
.insert(
http::header::CONTENT_TYPE,
tonic::metadata::GRPC_CONTENT_TYPE,
);
Ok(response)
})
}
}
}
}
impl<T> Clone for DistributionServer<T> {
fn clone(&self) -> Self {
let inner = self.inner.clone();
Self {
inner,
accept_compression_encodings: self.accept_compression_encodings,
send_compression_encodings: self.send_compression_encodings,
max_decoding_message_size: self.max_decoding_message_size,
max_encoding_message_size: self.max_encoding_message_size,
}
}
}
pub const SERVICE_NAME: &str = "bilibili.app.distribution.Distribution";
impl<T> tonic::server::NamedService for DistributionServer<T> {
const NAME: &'static str = SERVICE_NAME;
}
}