#![allow(rustdoc::bare_urls)]
#![allow(rustdoc::broken_intra_doc_links)]
#![allow(rustdoc::invalid_html_tags)]
#![allow(rustdoc::redundant_explicit_links)]
#[derive(Clone, Debug)]
pub struct DatasetService {
inner: std::sync::Arc<dyn super::stub::dynamic::DatasetService>,
}
impl DatasetService {
pub fn builder() -> super::builder::dataset_service::ClientBuilder {
crate::new_client_builder(super::builder::dataset_service::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::DatasetService + 'static,
{
Self { inner: stub.into() }
}
pub(crate) async fn new(
config: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<Self> {
let inner = Self::build_inner(config).await?;
Ok(Self { inner })
}
async fn build_inner(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<std::sync::Arc<dyn super::stub::dynamic::DatasetService>> {
if gaxi::options::tracing_enabled(&conf) {
return Ok(std::sync::Arc::new(Self::build_with_tracing(conf).await?));
}
Ok(std::sync::Arc::new(Self::build_transport(conf).await?))
}
async fn build_transport(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::DatasetService> {
super::transport::DatasetService::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::DatasetService> {
Self::build_transport(conf)
.await
.map(super::tracing::DatasetService::new)
}
pub fn get_dataset(&self) -> super::builder::dataset_service::GetDataset {
super::builder::dataset_service::GetDataset::new(self.inner.clone())
}
pub fn insert_dataset(&self) -> super::builder::dataset_service::InsertDataset {
super::builder::dataset_service::InsertDataset::new(self.inner.clone())
}
pub fn patch_dataset(&self) -> super::builder::dataset_service::PatchDataset {
super::builder::dataset_service::PatchDataset::new(self.inner.clone())
}
pub fn update_dataset(&self) -> super::builder::dataset_service::UpdateDataset {
super::builder::dataset_service::UpdateDataset::new(self.inner.clone())
}
pub fn delete_dataset(&self) -> super::builder::dataset_service::DeleteDataset {
super::builder::dataset_service::DeleteDataset::new(self.inner.clone())
}
pub fn list_datasets(&self) -> super::builder::dataset_service::ListDatasets {
super::builder::dataset_service::ListDatasets::new(self.inner.clone())
}
pub fn undelete_dataset(&self) -> super::builder::dataset_service::UndeleteDataset {
super::builder::dataset_service::UndeleteDataset::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct JobService {
inner: std::sync::Arc<dyn super::stub::dynamic::JobService>,
}
impl JobService {
pub fn builder() -> super::builder::job_service::ClientBuilder {
crate::new_client_builder(super::builder::job_service::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::JobService + 'static,
{
Self { inner: stub.into() }
}
pub(crate) async fn new(
config: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<Self> {
let inner = Self::build_inner(config).await?;
Ok(Self { inner })
}
async fn build_inner(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<std::sync::Arc<dyn super::stub::dynamic::JobService>> {
if gaxi::options::tracing_enabled(&conf) {
return Ok(std::sync::Arc::new(Self::build_with_tracing(conf).await?));
}
Ok(std::sync::Arc::new(Self::build_transport(conf).await?))
}
async fn build_transport(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::JobService> {
super::transport::JobService::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::JobService> {
Self::build_transport(conf)
.await
.map(super::tracing::JobService::new)
}
pub fn cancel_job(&self) -> super::builder::job_service::CancelJob {
super::builder::job_service::CancelJob::new(self.inner.clone())
}
pub fn get_job(&self) -> super::builder::job_service::GetJob {
super::builder::job_service::GetJob::new(self.inner.clone())
}
pub fn insert_job(&self) -> super::builder::job_service::InsertJob {
super::builder::job_service::InsertJob::new(self.inner.clone())
}
pub fn delete_job(&self) -> super::builder::job_service::DeleteJob {
super::builder::job_service::DeleteJob::new(self.inner.clone())
}
pub fn list_jobs(&self) -> super::builder::job_service::ListJobs {
super::builder::job_service::ListJobs::new(self.inner.clone())
}
pub fn get_query_results(&self) -> super::builder::job_service::GetQueryResults {
super::builder::job_service::GetQueryResults::new(self.inner.clone())
}
pub fn query(&self) -> super::builder::job_service::Query {
super::builder::job_service::Query::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct ModelService {
inner: std::sync::Arc<dyn super::stub::dynamic::ModelService>,
}
impl ModelService {
pub fn builder() -> super::builder::model_service::ClientBuilder {
crate::new_client_builder(super::builder::model_service::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::ModelService + 'static,
{
Self { inner: stub.into() }
}
pub(crate) async fn new(
config: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<Self> {
let inner = Self::build_inner(config).await?;
Ok(Self { inner })
}
async fn build_inner(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<std::sync::Arc<dyn super::stub::dynamic::ModelService>> {
if gaxi::options::tracing_enabled(&conf) {
return Ok(std::sync::Arc::new(Self::build_with_tracing(conf).await?));
}
Ok(std::sync::Arc::new(Self::build_transport(conf).await?))
}
async fn build_transport(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::ModelService> {
super::transport::ModelService::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::ModelService> {
Self::build_transport(conf)
.await
.map(super::tracing::ModelService::new)
}
pub fn get_model(&self) -> super::builder::model_service::GetModel {
super::builder::model_service::GetModel::new(self.inner.clone())
}
pub fn list_models(&self) -> super::builder::model_service::ListModels {
super::builder::model_service::ListModels::new(self.inner.clone())
}
pub fn patch_model(&self) -> super::builder::model_service::PatchModel {
super::builder::model_service::PatchModel::new(self.inner.clone())
}
pub fn delete_model(&self) -> super::builder::model_service::DeleteModel {
super::builder::model_service::DeleteModel::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct ProjectService {
inner: std::sync::Arc<dyn super::stub::dynamic::ProjectService>,
}
impl ProjectService {
pub fn builder() -> super::builder::project_service::ClientBuilder {
crate::new_client_builder(super::builder::project_service::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::ProjectService + 'static,
{
Self { inner: stub.into() }
}
pub(crate) async fn new(
config: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<Self> {
let inner = Self::build_inner(config).await?;
Ok(Self { inner })
}
async fn build_inner(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<std::sync::Arc<dyn super::stub::dynamic::ProjectService>> {
if gaxi::options::tracing_enabled(&conf) {
return Ok(std::sync::Arc::new(Self::build_with_tracing(conf).await?));
}
Ok(std::sync::Arc::new(Self::build_transport(conf).await?))
}
async fn build_transport(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::ProjectService> {
super::transport::ProjectService::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::ProjectService> {
Self::build_transport(conf)
.await
.map(super::tracing::ProjectService::new)
}
pub fn get_service_account(&self) -> super::builder::project_service::GetServiceAccount {
super::builder::project_service::GetServiceAccount::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct RoutineService {
inner: std::sync::Arc<dyn super::stub::dynamic::RoutineService>,
}
impl RoutineService {
pub fn builder() -> super::builder::routine_service::ClientBuilder {
crate::new_client_builder(super::builder::routine_service::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::RoutineService + 'static,
{
Self { inner: stub.into() }
}
pub(crate) async fn new(
config: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<Self> {
let inner = Self::build_inner(config).await?;
Ok(Self { inner })
}
async fn build_inner(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<std::sync::Arc<dyn super::stub::dynamic::RoutineService>> {
if gaxi::options::tracing_enabled(&conf) {
return Ok(std::sync::Arc::new(Self::build_with_tracing(conf).await?));
}
Ok(std::sync::Arc::new(Self::build_transport(conf).await?))
}
async fn build_transport(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::RoutineService> {
super::transport::RoutineService::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::RoutineService> {
Self::build_transport(conf)
.await
.map(super::tracing::RoutineService::new)
}
pub fn get_routine(&self) -> super::builder::routine_service::GetRoutine {
super::builder::routine_service::GetRoutine::new(self.inner.clone())
}
pub fn insert_routine(&self) -> super::builder::routine_service::InsertRoutine {
super::builder::routine_service::InsertRoutine::new(self.inner.clone())
}
pub fn update_routine(&self) -> super::builder::routine_service::UpdateRoutine {
super::builder::routine_service::UpdateRoutine::new(self.inner.clone())
}
pub fn delete_routine(&self) -> super::builder::routine_service::DeleteRoutine {
super::builder::routine_service::DeleteRoutine::new(self.inner.clone())
}
pub fn list_routines(&self) -> super::builder::routine_service::ListRoutines {
super::builder::routine_service::ListRoutines::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct RowAccessPolicyService {
inner: std::sync::Arc<dyn super::stub::dynamic::RowAccessPolicyService>,
}
impl RowAccessPolicyService {
pub fn builder() -> super::builder::row_access_policy_service::ClientBuilder {
crate::new_client_builder(super::builder::row_access_policy_service::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::RowAccessPolicyService + 'static,
{
Self { inner: stub.into() }
}
pub(crate) async fn new(
config: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<Self> {
let inner = Self::build_inner(config).await?;
Ok(Self { inner })
}
async fn build_inner(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<std::sync::Arc<dyn super::stub::dynamic::RowAccessPolicyService>>
{
if gaxi::options::tracing_enabled(&conf) {
return Ok(std::sync::Arc::new(Self::build_with_tracing(conf).await?));
}
Ok(std::sync::Arc::new(Self::build_transport(conf).await?))
}
async fn build_transport(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::RowAccessPolicyService> {
super::transport::RowAccessPolicyService::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::RowAccessPolicyService> {
Self::build_transport(conf)
.await
.map(super::tracing::RowAccessPolicyService::new)
}
pub fn list_row_access_policies(
&self,
) -> super::builder::row_access_policy_service::ListRowAccessPolicies {
super::builder::row_access_policy_service::ListRowAccessPolicies::new(self.inner.clone())
}
pub fn get_row_access_policy(
&self,
) -> super::builder::row_access_policy_service::GetRowAccessPolicy {
super::builder::row_access_policy_service::GetRowAccessPolicy::new(self.inner.clone())
}
pub fn create_row_access_policy(
&self,
) -> super::builder::row_access_policy_service::CreateRowAccessPolicy {
super::builder::row_access_policy_service::CreateRowAccessPolicy::new(self.inner.clone())
}
pub fn update_row_access_policy(
&self,
) -> super::builder::row_access_policy_service::UpdateRowAccessPolicy {
super::builder::row_access_policy_service::UpdateRowAccessPolicy::new(self.inner.clone())
}
pub fn delete_row_access_policy(
&self,
) -> super::builder::row_access_policy_service::DeleteRowAccessPolicy {
super::builder::row_access_policy_service::DeleteRowAccessPolicy::new(self.inner.clone())
}
pub fn batch_delete_row_access_policies(
&self,
) -> super::builder::row_access_policy_service::BatchDeleteRowAccessPolicies {
super::builder::row_access_policy_service::BatchDeleteRowAccessPolicies::new(
self.inner.clone(),
)
}
}
#[derive(Clone, Debug)]
pub struct TableService {
inner: std::sync::Arc<dyn super::stub::dynamic::TableService>,
}
impl TableService {
pub fn builder() -> super::builder::table_service::ClientBuilder {
crate::new_client_builder(super::builder::table_service::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::TableService + 'static,
{
Self { inner: stub.into() }
}
pub(crate) async fn new(
config: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<Self> {
let inner = Self::build_inner(config).await?;
Ok(Self { inner })
}
async fn build_inner(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<std::sync::Arc<dyn super::stub::dynamic::TableService>> {
if gaxi::options::tracing_enabled(&conf) {
return Ok(std::sync::Arc::new(Self::build_with_tracing(conf).await?));
}
Ok(std::sync::Arc::new(Self::build_transport(conf).await?))
}
async fn build_transport(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::TableService> {
super::transport::TableService::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::TableService> {
Self::build_transport(conf)
.await
.map(super::tracing::TableService::new)
}
pub fn get_table(&self) -> super::builder::table_service::GetTable {
super::builder::table_service::GetTable::new(self.inner.clone())
}
pub fn insert_table(&self) -> super::builder::table_service::InsertTable {
super::builder::table_service::InsertTable::new(self.inner.clone())
}
pub fn patch_table(&self) -> super::builder::table_service::PatchTable {
super::builder::table_service::PatchTable::new(self.inner.clone())
}
pub fn update_table(&self) -> super::builder::table_service::UpdateTable {
super::builder::table_service::UpdateTable::new(self.inner.clone())
}
pub fn delete_table(&self) -> super::builder::table_service::DeleteTable {
super::builder::table_service::DeleteTable::new(self.inner.clone())
}
pub fn list_tables(&self) -> super::builder::table_service::ListTables {
super::builder::table_service::ListTables::new(self.inner.clone())
}
}