#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SavedView {
#[prost(string, tag = "1")]
pub rid: ::prost::alloc::string::String,
#[prost(enumeration = "ResourceType", tag = "2")]
pub resource_type: i32,
#[prost(string, optional, tag = "3")]
pub title: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "4")]
pub symbol: ::core::option::Option<super::super::scout::elements::v1::Symbol>,
#[prost(message, optional, tag = "5")]
pub color: ::core::option::Option<super::super::scout::elements::v1::Color>,
#[prost(bool, tag = "6")]
pub is_archived: bool,
#[prost(message, optional, tag = "7")]
pub created_at: ::core::option::Option<
super::super::super::google::protobuf::Timestamp,
>,
#[prost(string, tag = "8")]
pub created_by: ::prost::alloc::string::String,
#[prost(message, optional, tag = "9")]
pub updated_at: ::core::option::Option<
super::super::super::google::protobuf::Timestamp,
>,
#[prost(string, optional, tag = "10")]
pub workspace_rid: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "11")]
pub search_state: ::core::option::Option<SearchState>,
#[prost(message, optional, tag = "12")]
pub display_state: ::core::option::Option<DisplayState>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchState {
#[prost(oneof = "search_state::State", tags = "1, 2, 3, 4, 5, 6, 7")]
pub state: ::core::option::Option<search_state::State>,
}
pub mod search_state {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum State {
#[prost(message, tag = "1")]
Asset(super::AssetSearchState),
#[prost(message, tag = "2")]
Run(super::RunSearchState),
#[prost(message, tag = "3")]
Checklist(super::ChecklistSearchState),
#[prost(message, tag = "4")]
Workbook(super::WorkbookSearchState),
#[prost(message, tag = "5")]
Template(super::TemplateSearchState),
#[prost(message, tag = "6")]
Procedure(super::ProcedureSearchState),
#[prost(message, tag = "7")]
ProcedureExecution(super::ProcedureExecutionSearchState),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssetSearchState {
#[prost(message, optional, tag = "1")]
pub sort: ::core::option::Option<super::super::asset::v2::AssetSortOptions>,
#[prost(string, repeated, tag = "2")]
pub group_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "3")]
pub query: ::core::option::Option<super::super::asset::v2::SearchAssetsQuery>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RunSearchState {
#[prost(message, optional, tag = "1")]
pub sort: ::core::option::Option<super::super::run::v1::SortOptions>,
#[prost(string, repeated, tag = "2")]
pub group_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "3")]
pub query: ::core::option::Option<super::super::run::v1::SearchQuery>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChecklistSearchState {
#[prost(message, optional, tag = "1")]
pub sort: ::core::option::Option<super::super::checklists::v1::ChecklistSortOptions>,
#[prost(message, optional, tag = "2")]
pub query: ::core::option::Option<
super::super::checklists::v1::ChecklistSearchQuery,
>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WorkbookSearchState {
#[prost(message, optional, tag = "1")]
pub sort: ::core::option::Option<super::super::workbooks::v1::WorkbookSortOptions>,
#[prost(message, optional, tag = "2")]
pub query: ::core::option::Option<super::super::workbooks::v1::WorkbookSearchQuery>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TemplateSearchState {
#[prost(message, optional, tag = "1")]
pub sort: ::core::option::Option<super::super::templates::v1::TemplateSortOptions>,
#[prost(message, optional, tag = "2")]
pub query: ::core::option::Option<super::super::templates::v1::TemplateSearchQuery>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProcedureSearchState {
#[prost(message, optional, tag = "1")]
pub sort: ::core::option::Option<
super::super::procedures::v1::SearchProceduresSortOptions,
>,
#[prost(message, optional, tag = "2")]
pub query: ::core::option::Option<
super::super::procedures::v1::ProcedureSearchQuery,
>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProcedureExecutionSearchState {
#[prost(message, optional, tag = "1")]
pub sort: ::core::option::Option<
super::super::procedures::executions::v1::ProcedureExecutionSortOptions,
>,
#[prost(message, optional, tag = "2")]
pub query: ::core::option::Option<
super::super::procedures::executions::v1::ProcedureExecutionSearchQuery,
>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DisplayState {
#[prost(oneof = "display_state::State", tags = "1")]
pub state: ::core::option::Option<display_state::State>,
}
pub mod display_state {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum State {
#[prost(message, tag = "1")]
Table(super::TableState),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TableState {
#[prost(map = "string, bool", tag = "1")]
pub column_visibility: ::std::collections::HashMap<
::prost::alloc::string::String,
bool,
>,
#[prost(map = "string, int32", tag = "2")]
pub column_sizing: ::std::collections::HashMap<::prost::alloc::string::String, i32>,
#[prost(string, repeated, tag = "3")]
pub column_order: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "4")]
pub column_pinning: ::core::option::Option<ColumnPinning>,
#[prost(message, optional, tag = "5")]
pub metric_columns: ::core::option::Option<MetricColumns>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ColumnPinning {
#[prost(string, repeated, tag = "1")]
pub left: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "2")]
pub right: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetricColumns {
#[prost(oneof = "metric_columns::Columns", tags = "1")]
pub columns: ::core::option::Option<metric_columns::Columns>,
}
pub mod metric_columns {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Columns {
#[prost(message, tag = "1")]
Asset(super::AssetMetricColumns),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssetMetricColumns {
#[prost(map = "string, message", tag = "1")]
pub columns: ::std::collections::HashMap<
::prost::alloc::string::String,
AssetMetricColumn,
>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssetMetricColumn {
#[prost(message, optional, tag = "1")]
pub metadata: ::core::option::Option<MetricColumnMetadata>,
#[prost(message, optional, tag = "2")]
pub time_range: ::core::option::Option<AssetMetricTimeRange>,
#[prost(enumeration = "MetricColumnAggregation", tag = "3")]
pub aggregation: i32,
#[prost(message, optional, tag = "4")]
pub source: ::core::option::Option<MetricColumnSource>,
#[prost(message, optional, tag = "5")]
pub style: ::core::option::Option<MetricColumnStyle>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetricColumnMetadata {
#[prost(string, tag = "1")]
pub title: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "3")]
pub symbol: ::core::option::Option<super::super::scout::elements::v1::Symbol>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AssetMetricTimeRange {
#[prost(oneof = "asset_metric_time_range::Range", tags = "1, 2, 3")]
pub range: ::core::option::Option<asset_metric_time_range::Range>,
}
pub mod asset_metric_time_range {
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Range {
#[prost(message, tag = "1")]
MostRecentRun(super::MostRecentRun),
#[prost(message, tag = "2")]
Custom(super::super::super::run::v1::CustomTimeframeFilter),
#[prost(message, tag = "3")]
Preset(super::super::super::run::v1::PresetTimeframeFilter),
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MostRecentRun {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetricColumnSource {
#[prost(oneof = "metric_column_source::Source", tags = "1")]
pub source: ::core::option::Option<metric_column_source::Source>,
}
pub mod metric_column_source {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Source {
#[prost(message, tag = "1")]
Events(super::super::super::event::v2::SearchQuery),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetricColumnStyle {
#[prost(enumeration = "MetricColumnDisplayMode", tag = "1")]
pub display_mode: i32,
#[prost(message, repeated, tag = "2")]
pub thresholds: ::prost::alloc::vec::Vec<MetricColumnThreshold>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetricColumnThreshold {
#[prost(double, tag = "1")]
pub value: f64,
#[prost(string, tag = "2")]
pub color: ::prost::alloc::string::String,
#[prost(string, optional, tag = "3")]
pub label: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateSavedViewRequest {
#[prost(message, optional, tag = "1")]
pub saved_view: ::core::option::Option<SavedView>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateSavedViewResponse {
#[prost(message, optional, tag = "1")]
pub saved_view: ::core::option::Option<SavedView>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSavedViewRequest {
#[prost(string, tag = "1")]
pub saved_view_rid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSavedViewResponse {
#[prost(message, optional, tag = "1")]
pub saved_view: ::core::option::Option<SavedView>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchGetSavedViewsRequest {
#[prost(string, repeated, tag = "1")]
pub saved_view_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchGetSavedViewsResponse {
#[prost(message, repeated, tag = "1")]
pub saved_views: ::prost::alloc::vec::Vec<SavedView>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchSavedViewsRequest {
#[prost(message, optional, tag = "1")]
pub sort: ::core::option::Option<SavedViewSortOptions>,
#[prost(int32, optional, tag = "2")]
pub page_size: ::core::option::Option<i32>,
#[prost(string, optional, tag = "3")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "4")]
pub query: ::core::option::Option<SavedViewSearchQuery>,
#[prost(message, optional, tag = "5")]
pub archived_statuses: ::core::option::Option<ArchivedStatusFilter>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchSavedViewsResponse {
#[prost(message, repeated, tag = "1")]
pub saved_views: ::prost::alloc::vec::Vec<SavedView>,
#[prost(string, optional, tag = "2")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ArchivedStatusFilter {
#[prost(
enumeration = "super::super::types::ArchivedStatus",
repeated,
packed = "false",
tag = "1"
)]
pub statuses: ::prost::alloc::vec::Vec<i32>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SavedViewSortOptions {
#[prost(bool, tag = "1")]
pub is_descending: bool,
#[prost(enumeration = "SavedViewSortField", tag = "2")]
pub field: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SavedViewSearchQuery {
#[prost(oneof = "saved_view_search_query::Query", tags = "1, 2, 3, 4, 5, 6")]
pub query: ::core::option::Option<saved_view_search_query::Query>,
}
pub mod saved_view_search_query {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryList {
#[prost(message, repeated, tag = "1")]
pub queries: ::prost::alloc::vec::Vec<super::SavedViewSearchQuery>,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Query {
#[prost(message, tag = "1")]
And(QueryList),
#[prost(message, tag = "2")]
Or(QueryList),
#[prost(message, tag = "3")]
Not(::prost::alloc::boxed::Box<super::SavedViewSearchQuery>),
#[prost(string, tag = "4")]
TitleSubstring(::prost::alloc::string::String),
#[prost(enumeration = "super::ResourceType", tag = "5")]
ResourceType(i32),
#[prost(string, tag = "6")]
WorkspaceRid(::prost::alloc::string::String),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateSavedViewRequest {
#[prost(message, optional, tag = "1")]
pub saved_view: ::core::option::Option<SavedView>,
#[prost(message, optional, tag = "2")]
pub update_mask: ::core::option::Option<
super::super::super::google::protobuf::FieldMask,
>,
#[prost(int32, optional, tag = "3")]
pub index: ::core::option::Option<i32>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateSavedViewResponse {
#[prost(message, optional, tag = "1")]
pub saved_view: ::core::option::Option<SavedView>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ArchiveSavedViewRequest {
#[prost(string, tag = "1")]
pub saved_view_rid: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ArchiveSavedViewResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnarchiveSavedViewRequest {
#[prost(string, tag = "1")]
pub saved_view_rid: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UnarchiveSavedViewResponse {}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ResourceType {
Unspecified = 0,
Asset = 1,
Run = 2,
Workbook = 3,
Checklist = 4,
Template = 5,
Procedure = 6,
ProcedureExecution = 7,
}
impl ResourceType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "RESOURCE_TYPE_UNSPECIFIED",
Self::Asset => "RESOURCE_TYPE_ASSET",
Self::Run => "RESOURCE_TYPE_RUN",
Self::Workbook => "RESOURCE_TYPE_WORKBOOK",
Self::Checklist => "RESOURCE_TYPE_CHECKLIST",
Self::Template => "RESOURCE_TYPE_TEMPLATE",
Self::Procedure => "RESOURCE_TYPE_PROCEDURE",
Self::ProcedureExecution => "RESOURCE_TYPE_PROCEDURE_EXECUTION",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"RESOURCE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"RESOURCE_TYPE_ASSET" => Some(Self::Asset),
"RESOURCE_TYPE_RUN" => Some(Self::Run),
"RESOURCE_TYPE_WORKBOOK" => Some(Self::Workbook),
"RESOURCE_TYPE_CHECKLIST" => Some(Self::Checklist),
"RESOURCE_TYPE_TEMPLATE" => Some(Self::Template),
"RESOURCE_TYPE_PROCEDURE" => Some(Self::Procedure),
"RESOURCE_TYPE_PROCEDURE_EXECUTION" => Some(Self::ProcedureExecution),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MetricColumnAggregation {
Unspecified = 0,
TotalCount = 1,
TotalDuration = 2,
}
impl MetricColumnAggregation {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "METRIC_COLUMN_AGGREGATION_UNSPECIFIED",
Self::TotalCount => "METRIC_COLUMN_AGGREGATION_TOTAL_COUNT",
Self::TotalDuration => "METRIC_COLUMN_AGGREGATION_TOTAL_DURATION",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"METRIC_COLUMN_AGGREGATION_UNSPECIFIED" => Some(Self::Unspecified),
"METRIC_COLUMN_AGGREGATION_TOTAL_COUNT" => Some(Self::TotalCount),
"METRIC_COLUMN_AGGREGATION_TOTAL_DURATION" => Some(Self::TotalDuration),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MetricColumnDisplayMode {
Unspecified = 0,
Raw = 1,
Bar = 2,
}
impl MetricColumnDisplayMode {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "METRIC_COLUMN_DISPLAY_MODE_UNSPECIFIED",
Self::Raw => "METRIC_COLUMN_DISPLAY_MODE_RAW",
Self::Bar => "METRIC_COLUMN_DISPLAY_MODE_BAR",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"METRIC_COLUMN_DISPLAY_MODE_UNSPECIFIED" => Some(Self::Unspecified),
"METRIC_COLUMN_DISPLAY_MODE_RAW" => Some(Self::Raw),
"METRIC_COLUMN_DISPLAY_MODE_BAR" => Some(Self::Bar),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SavedViewSortField {
Unspecified = 0,
Title = 1,
CreatedAt = 2,
UserDefined = 3,
}
impl SavedViewSortField {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "SAVED_VIEW_SORT_FIELD_UNSPECIFIED",
Self::Title => "SAVED_VIEW_SORT_FIELD_TITLE",
Self::CreatedAt => "SAVED_VIEW_SORT_FIELD_CREATED_AT",
Self::UserDefined => "SAVED_VIEW_SORT_FIELD_USER_DEFINED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SAVED_VIEW_SORT_FIELD_UNSPECIFIED" => Some(Self::Unspecified),
"SAVED_VIEW_SORT_FIELD_TITLE" => Some(Self::Title),
"SAVED_VIEW_SORT_FIELD_CREATED_AT" => Some(Self::CreatedAt),
"SAVED_VIEW_SORT_FIELD_USER_DEFINED" => Some(Self::UserDefined),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SavedViewError {
Unspecified = 0,
InvalidRequest = 1,
UnsupportedStoredConfiguration = 2,
}
impl SavedViewError {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "SAVED_VIEW_ERROR_UNSPECIFIED",
Self::InvalidRequest => "SAVED_VIEW_ERROR_INVALID_REQUEST",
Self::UnsupportedStoredConfiguration => {
"SAVED_VIEW_ERROR_UNSUPPORTED_STORED_CONFIGURATION"
}
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SAVED_VIEW_ERROR_UNSPECIFIED" => Some(Self::Unspecified),
"SAVED_VIEW_ERROR_INVALID_REQUEST" => Some(Self::InvalidRequest),
"SAVED_VIEW_ERROR_UNSUPPORTED_STORED_CONFIGURATION" => {
Some(Self::UnsupportedStoredConfiguration)
}
_ => None,
}
}
}
pub mod saved_view_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 SavedViewServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl SavedViewServiceClient<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> SavedViewServiceClient<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,
) -> SavedViewServiceClient<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,
{
SavedViewServiceClient::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 create_saved_view(
&mut self,
request: impl tonic::IntoRequest<super::CreateSavedViewRequest>,
) -> std::result::Result<
tonic::Response<super::CreateSavedViewResponse>,
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.savedviews.v1.SavedViewService/CreateSavedView",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.savedviews.v1.SavedViewService",
"CreateSavedView",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_saved_view(
&mut self,
request: impl tonic::IntoRequest<super::GetSavedViewRequest>,
) -> std::result::Result<
tonic::Response<super::GetSavedViewResponse>,
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.savedviews.v1.SavedViewService/GetSavedView",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.savedviews.v1.SavedViewService",
"GetSavedView",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn batch_get_saved_views(
&mut self,
request: impl tonic::IntoRequest<super::BatchGetSavedViewsRequest>,
) -> std::result::Result<
tonic::Response<super::BatchGetSavedViewsResponse>,
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.savedviews.v1.SavedViewService/BatchGetSavedViews",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.savedviews.v1.SavedViewService",
"BatchGetSavedViews",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn search_saved_views(
&mut self,
request: impl tonic::IntoRequest<super::SearchSavedViewsRequest>,
) -> std::result::Result<
tonic::Response<super::SearchSavedViewsResponse>,
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.savedviews.v1.SavedViewService/SearchSavedViews",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.savedviews.v1.SavedViewService",
"SearchSavedViews",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn update_saved_view(
&mut self,
request: impl tonic::IntoRequest<super::UpdateSavedViewRequest>,
) -> std::result::Result<
tonic::Response<super::UpdateSavedViewResponse>,
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.savedviews.v1.SavedViewService/UpdateSavedView",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.savedviews.v1.SavedViewService",
"UpdateSavedView",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn archive_saved_view(
&mut self,
request: impl tonic::IntoRequest<super::ArchiveSavedViewRequest>,
) -> std::result::Result<
tonic::Response<super::ArchiveSavedViewResponse>,
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.savedviews.v1.SavedViewService/ArchiveSavedView",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.savedviews.v1.SavedViewService",
"ArchiveSavedView",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn unarchive_saved_view(
&mut self,
request: impl tonic::IntoRequest<super::UnarchiveSavedViewRequest>,
) -> std::result::Result<
tonic::Response<super::UnarchiveSavedViewResponse>,
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.savedviews.v1.SavedViewService/UnarchiveSavedView",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.savedviews.v1.SavedViewService",
"UnarchiveSavedView",
),
);
self.inner.unary(req, path, codec).await
}
}
}