#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SeriesMetadata {
#[prost(string, tag = "1")]
pub rid: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub channel: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub data_source_rid: ::prost::alloc::string::String,
#[prost(message, optional, tag = "4")]
pub locator_template: ::core::option::Option<LocatorTemplate>,
#[prost(string, optional, tag = "5")]
pub unit: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "6")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
#[prost(
enumeration = "super::super::types::series::SeriesDataType",
optional,
tag = "8"
)]
pub series_data_type: ::core::option::Option<i32>,
#[prost(
enumeration = "super::super::types::series::ChannelKind",
optional,
tag = "9"
)]
pub channel_kind: ::core::option::Option<i32>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocatorTemplate {
#[prost(
oneof = "locator_template::LocatorTemplate",
tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10"
)]
pub locator_template: ::core::option::Option<locator_template::LocatorTemplate>,
}
pub mod locator_template {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum LocatorTemplate {
#[prost(message, tag = "1")]
TimescaleDb(super::TimescaleDbLocatorTemplate),
#[prost(message, tag = "2")]
Influx2(super::Influx2LocatorTemplate),
#[prost(message, tag = "3")]
Influx1(super::Influx1LocatorTemplate),
#[prost(message, tag = "4")]
Nominal(super::NominalLocatorTemplate),
#[prost(message, tag = "5")]
Timestream(super::TimestreamLocatorTemplate),
#[prost(message, tag = "6")]
VisualCrossing(super::VisualCrossingLocatorTemplate),
#[prost(message, tag = "7")]
BigQuery(super::BigQueryLocatorTemplate),
#[prost(message, tag = "8")]
Api(super::ApiLocatorTemplate),
#[prost(message, tag = "9")]
Video(super::VideoLocatorTemplate),
#[prost(message, tag = "10")]
Spatial(super::SpatialLocatorTemplate),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NominalLocatorTemplate {
#[prost(string, tag = "1")]
pub channel: ::prost::alloc::string::String,
#[prost(enumeration = "NominalDataType", tag = "2")]
pub data_type: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimescaleDbLocatorTemplate {
#[prost(string, tag = "1")]
pub table: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub schema: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub value_column: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub time_column: ::prost::alloc::string::String,
#[prost(enumeration = "timescale_db_locator_template::DataType", tag = "5")]
pub data_type: i32,
}
pub mod timescale_db_locator_template {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum DataType {
Unspecified = 0,
Boolean = 1,
Double = 2,
String = 3,
}
impl DataType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "DATA_TYPE_UNSPECIFIED",
Self::Boolean => "DATA_TYPE_BOOLEAN",
Self::Double => "DATA_TYPE_DOUBLE",
Self::String => "DATA_TYPE_STRING",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DATA_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"DATA_TYPE_BOOLEAN" => Some(Self::Boolean),
"DATA_TYPE_DOUBLE" => Some(Self::Double),
"DATA_TYPE_STRING" => Some(Self::String),
_ => None,
}
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Influx2LocatorTemplate {
#[prost(string, tag = "1")]
pub bucket: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub measurement: ::prost::alloc::string::String,
#[prost(string, optional, tag = "3")]
pub value_column: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "4")]
pub field: ::prost::alloc::string::String,
#[prost(enumeration = "InfluxDataType", tag = "5")]
pub data_type: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Influx1LocatorTemplate {
#[prost(string, tag = "1")]
pub database: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub measurement: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub field: ::prost::alloc::string::String,
#[prost(enumeration = "InfluxDataType", tag = "4")]
pub data_type: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimestreamLocatorTemplate {
#[prost(string, tag = "1")]
pub table: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub measure: ::prost::alloc::string::String,
#[prost(string, optional, tag = "3")]
pub attribute: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration = "timestream_locator_template::DataType", tag = "4")]
pub data_type: i32,
}
pub mod timestream_locator_template {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum DataType {
Unspecified = 0,
Double = 1,
String = 2,
}
impl DataType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "DATA_TYPE_UNSPECIFIED",
Self::Double => "DATA_TYPE_DOUBLE",
Self::String => "DATA_TYPE_STRING",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DATA_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"DATA_TYPE_DOUBLE" => Some(Self::Double),
"DATA_TYPE_STRING" => Some(Self::String),
_ => None,
}
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VisualCrossingLocatorTemplate {
#[prost(string, tag = "1")]
pub field: ::prost::alloc::string::String,
#[prost(
enumeration = "visual_crossing_locator_template::Endpoint",
optional,
tag = "2"
)]
pub endpoint: ::core::option::Option<i32>,
#[prost(enumeration = "visual_crossing_locator_template::DataType", tag = "3")]
pub data_type: i32,
}
pub mod visual_crossing_locator_template {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Endpoint {
Unspecified = 0,
History = 1,
Timeline = 2,
}
impl Endpoint {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "ENDPOINT_UNSPECIFIED",
Self::History => "ENDPOINT_HISTORY",
Self::Timeline => "ENDPOINT_TIMELINE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"ENDPOINT_UNSPECIFIED" => Some(Self::Unspecified),
"ENDPOINT_HISTORY" => Some(Self::History),
"ENDPOINT_TIMELINE" => Some(Self::Timeline),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum DataType {
Unspecified = 0,
Double = 1,
String = 2,
}
impl DataType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "DATA_TYPE_UNSPECIFIED",
Self::Double => "DATA_TYPE_DOUBLE",
Self::String => "DATA_TYPE_STRING",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DATA_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"DATA_TYPE_DOUBLE" => Some(Self::Double),
"DATA_TYPE_STRING" => Some(Self::String),
_ => None,
}
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BigQueryLocatorTemplate {
#[prost(string, tag = "1")]
pub value_column: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub time_column: ::prost::alloc::string::String,
#[prost(enumeration = "big_query_locator_template::DataType", tag = "3")]
pub data_type: i32,
}
pub mod big_query_locator_template {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum DataType {
Unspecified = 0,
Double = 1,
String = 2,
}
impl DataType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "DATA_TYPE_UNSPECIFIED",
Self::Double => "DATA_TYPE_DOUBLE",
Self::String => "DATA_TYPE_STRING",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DATA_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"DATA_TYPE_DOUBLE" => Some(Self::Double),
"DATA_TYPE_STRING" => Some(Self::String),
_ => None,
}
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApiLocatorTemplate {
#[prost(string, tag = "1")]
pub channel: ::prost::alloc::string::String,
#[prost(enumeration = "api_locator_template::DataType", tag = "2")]
pub data_type: i32,
}
pub mod api_locator_template {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum DataType {
Unspecified = 0,
Double = 1,
String = 2,
Int64 = 3,
}
impl DataType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "DATA_TYPE_UNSPECIFIED",
Self::Double => "DATA_TYPE_DOUBLE",
Self::String => "DATA_TYPE_STRING",
Self::Int64 => "DATA_TYPE_INT64",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DATA_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"DATA_TYPE_DOUBLE" => Some(Self::Double),
"DATA_TYPE_STRING" => Some(Self::String),
"DATA_TYPE_INT64" => Some(Self::Int64),
_ => None,
}
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoLocatorTemplate {
#[prost(string, tag = "1")]
pub channel: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SpatialLocatorTemplate {
#[prost(string, tag = "1")]
pub channel: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateSeriesMetadataRequest {
#[prost(string, tag = "1")]
pub channel: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub data_source_rid: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub locator_template: ::core::option::Option<LocatorTemplate>,
#[prost(string, optional, tag = "4")]
pub unit: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "5")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
#[prost(
enumeration = "super::super::types::series::ChannelKind",
optional,
tag = "6"
)]
pub channel_kind: ::core::option::Option<i32>,
#[prost(enumeration = "IfSeriesMetadataExists", tag = "7")]
pub if_exists: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateSeriesMetadataResponse {
#[prost(message, optional, tag = "1")]
pub series_metadata: ::core::option::Option<SeriesMetadata>,
#[prost(bool, tag = "2")]
pub created: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchCreateSeriesMetadataRequest {
#[prost(message, repeated, tag = "1")]
pub requests: ::prost::alloc::vec::Vec<CreateSeriesMetadataRequest>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchCreateSeriesMetadataResponse {
#[prost(message, repeated, tag = "1")]
pub responses: ::prost::alloc::vec::Vec<CreateSeriesMetadataResponse>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchSeriesMetadataRequest {
#[prost(string, repeated, tag = "1")]
pub data_source_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(int32, optional, tag = "2")]
pub page_size: ::core::option::Option<i32>,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchSeriesMetadataResponse {
#[prost(message, repeated, tag = "1")]
pub series_metadata: ::prost::alloc::vec::Vec<SeriesMetadata>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSeriesMetadataRequest {
#[prost(string, tag = "1")]
pub series_metadata_rid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSeriesMetadataResponse {
#[prost(message, optional, tag = "1")]
pub series_metadata: ::core::option::Option<SeriesMetadata>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateSeriesMetadataRequest {
#[prost(message, optional, tag = "1")]
pub series_metadata: ::core::option::Option<SeriesMetadata>,
#[prost(message, optional, tag = "2")]
pub update_mask: ::core::option::Option<
super::super::super::google::protobuf::FieldMask,
>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateSeriesMetadataResponse {
#[prost(message, optional, tag = "1")]
pub series_metadata: ::core::option::Option<SeriesMetadata>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChangeDataTypeRequest {
#[prost(string, tag = "1")]
pub data_source_rid: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub channel: ::prost::alloc::string::String,
#[prost(enumeration = "NominalDataType", tag = "3")]
pub expected_current_type: i32,
#[prost(enumeration = "NominalDataType", tag = "4")]
pub new_type: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChangeDataTypeResponse {
#[prost(string, tag = "1")]
pub series_metadata_rid: ::prost::alloc::string::String,
#[prost(enumeration = "NominalDataType", tag = "2")]
pub old_type: i32,
#[prost(enumeration = "NominalDataType", tag = "3")]
pub new_type: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateVideoSeriesRequest {
#[prost(string, tag = "1")]
pub dataset_rid: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub channel: ::prost::alloc::string::String,
#[prost(map = "string, string", tag = "3")]
pub tags: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(message, optional, tag = "4")]
pub time_bounds: ::core::option::Option<TimeBounds>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TimeBounds {
#[prost(message, optional, tag = "1")]
pub start: ::core::option::Option<super::super::super::google::protobuf::Timestamp>,
#[prost(message, optional, tag = "2")]
pub end: ::core::option::Option<super::super::super::google::protobuf::Timestamp>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateVideoSeriesResponse {
#[prost(string, tag = "1")]
pub series_metadata_rid: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub series_uuid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchCreateVideoSeriesRequest {
#[prost(message, repeated, tag = "1")]
pub requests: ::prost::alloc::vec::Vec<CreateVideoSeriesRequest>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchCreateVideoSeriesResponse {
#[prost(message, repeated, tag = "1")]
pub responses: ::prost::alloc::vec::Vec<CreateVideoSeriesResponse>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum NominalDataType {
Unspecified = 0,
Double = 1,
String = 2,
Log = 3,
Int64 = 4,
Uint64 = 5,
DoubleArray = 6,
StringArray = 7,
Struct = 8,
Video = 9,
Spatial = 10,
}
impl NominalDataType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "NOMINAL_DATA_TYPE_UNSPECIFIED",
Self::Double => "NOMINAL_DATA_TYPE_DOUBLE",
Self::String => "NOMINAL_DATA_TYPE_STRING",
Self::Log => "NOMINAL_DATA_TYPE_LOG",
Self::Int64 => "NOMINAL_DATA_TYPE_INT64",
Self::Uint64 => "NOMINAL_DATA_TYPE_UINT64",
Self::DoubleArray => "NOMINAL_DATA_TYPE_DOUBLE_ARRAY",
Self::StringArray => "NOMINAL_DATA_TYPE_STRING_ARRAY",
Self::Struct => "NOMINAL_DATA_TYPE_STRUCT",
Self::Video => "NOMINAL_DATA_TYPE_VIDEO",
Self::Spatial => "NOMINAL_DATA_TYPE_SPATIAL",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"NOMINAL_DATA_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"NOMINAL_DATA_TYPE_DOUBLE" => Some(Self::Double),
"NOMINAL_DATA_TYPE_STRING" => Some(Self::String),
"NOMINAL_DATA_TYPE_LOG" => Some(Self::Log),
"NOMINAL_DATA_TYPE_INT64" => Some(Self::Int64),
"NOMINAL_DATA_TYPE_UINT64" => Some(Self::Uint64),
"NOMINAL_DATA_TYPE_DOUBLE_ARRAY" => Some(Self::DoubleArray),
"NOMINAL_DATA_TYPE_STRING_ARRAY" => Some(Self::StringArray),
"NOMINAL_DATA_TYPE_STRUCT" => Some(Self::Struct),
"NOMINAL_DATA_TYPE_VIDEO" => Some(Self::Video),
"NOMINAL_DATA_TYPE_SPATIAL" => Some(Self::Spatial),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum InfluxDataType {
Unspecified = 0,
Boolean = 1,
Numeric = 2,
String = 3,
}
impl InfluxDataType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "INFLUX_DATA_TYPE_UNSPECIFIED",
Self::Boolean => "INFLUX_DATA_TYPE_BOOLEAN",
Self::Numeric => "INFLUX_DATA_TYPE_NUMERIC",
Self::String => "INFLUX_DATA_TYPE_STRING",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"INFLUX_DATA_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"INFLUX_DATA_TYPE_BOOLEAN" => Some(Self::Boolean),
"INFLUX_DATA_TYPE_NUMERIC" => Some(Self::Numeric),
"INFLUX_DATA_TYPE_STRING" => Some(Self::String),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum IfSeriesMetadataExists {
Unspecified = 0,
ReturnExisting = 1,
UpdateExisting = 2,
}
impl IfSeriesMetadataExists {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "IF_SERIES_METADATA_EXISTS_UNSPECIFIED",
Self::ReturnExisting => "RETURN_EXISTING",
Self::UpdateExisting => "UPDATE_EXISTING",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"IF_SERIES_METADATA_EXISTS_UNSPECIFIED" => Some(Self::Unspecified),
"RETURN_EXISTING" => Some(Self::ReturnExisting),
"UPDATE_EXISTING" => Some(Self::UpdateExisting),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SeriesMetadataError {
InvalidRequest = 0,
}
impl SeriesMetadataError {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::InvalidRequest => "SERIES_METADATA_ERROR_INVALID_REQUEST",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SERIES_METADATA_ERROR_INVALID_REQUEST" => Some(Self::InvalidRequest),
_ => None,
}
}
}
pub mod series_metadata_service_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 SeriesMetadataServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl SeriesMetadataServiceClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> SeriesMetadataServiceClient<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,
) -> SeriesMetadataServiceClient<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,
{
SeriesMetadataServiceClient::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 search_series_metadata(
&mut self,
request: impl tonic::IntoRequest<super::SearchSeriesMetadataRequest>,
) -> std::result::Result<
tonic::Response<super::SearchSeriesMetadataResponse>,
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(
"/nominal.seriesmetadata.v1.SeriesMetadataService/SearchSeriesMetadata",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.seriesmetadata.v1.SeriesMetadataService",
"SearchSeriesMetadata",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn create_series_metadata(
&mut self,
request: impl tonic::IntoRequest<super::CreateSeriesMetadataRequest>,
) -> std::result::Result<
tonic::Response<super::CreateSeriesMetadataResponse>,
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(
"/nominal.seriesmetadata.v1.SeriesMetadataService/CreateSeriesMetadata",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.seriesmetadata.v1.SeriesMetadataService",
"CreateSeriesMetadata",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn batch_create_series_metadata(
&mut self,
request: impl tonic::IntoRequest<super::BatchCreateSeriesMetadataRequest>,
) -> std::result::Result<
tonic::Response<super::BatchCreateSeriesMetadataResponse>,
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(
"/nominal.seriesmetadata.v1.SeriesMetadataService/BatchCreateSeriesMetadata",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.seriesmetadata.v1.SeriesMetadataService",
"BatchCreateSeriesMetadata",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_series_metadata(
&mut self,
request: impl tonic::IntoRequest<super::GetSeriesMetadataRequest>,
) -> std::result::Result<
tonic::Response<super::GetSeriesMetadataResponse>,
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(
"/nominal.seriesmetadata.v1.SeriesMetadataService/GetSeriesMetadata",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.seriesmetadata.v1.SeriesMetadataService",
"GetSeriesMetadata",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn update_series_metadata(
&mut self,
request: impl tonic::IntoRequest<super::UpdateSeriesMetadataRequest>,
) -> std::result::Result<
tonic::Response<super::UpdateSeriesMetadataResponse>,
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(
"/nominal.seriesmetadata.v1.SeriesMetadataService/UpdateSeriesMetadata",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.seriesmetadata.v1.SeriesMetadataService",
"UpdateSeriesMetadata",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn change_data_type(
&mut self,
request: impl tonic::IntoRequest<super::ChangeDataTypeRequest>,
) -> std::result::Result<
tonic::Response<super::ChangeDataTypeResponse>,
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(
"/nominal.seriesmetadata.v1.SeriesMetadataService/ChangeDataType",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.seriesmetadata.v1.SeriesMetadataService",
"ChangeDataType",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn batch_create_video_series(
&mut self,
request: impl tonic::IntoRequest<super::BatchCreateVideoSeriesRequest>,
) -> std::result::Result<
tonic::Response<super::BatchCreateVideoSeriesResponse>,
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(
"/nominal.seriesmetadata.v1.SeriesMetadataService/BatchCreateVideoSeries",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.seriesmetadata.v1.SeriesMetadataService",
"BatchCreateVideoSeries",
),
);
self.inner.unary(req, path, codec).await
}
}
}