google-shopping-css-v1 1.0.0

Google Cloud Client Libraries for Rust - CSS API
Documentation
// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by sidekick. DO NOT EDIT.

/// A dyn-compatible, crate-private version of [super::AccountsService].
#[async_trait::async_trait]
pub trait AccountsService: std::fmt::Debug + Send + Sync {
    async fn list_child_accounts(
        &self,
        req: crate::model::ListChildAccountsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::ListChildAccountsResponse>>;

    async fn get_account(
        &self,
        req: crate::model::GetAccountRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::Account>>;

    async fn update_labels(
        &self,
        req: crate::model::UpdateAccountLabelsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::Account>>;
}

/// All implementations of [super::AccountsService] also implement [AccountsService].
#[async_trait::async_trait]
impl<T: super::AccountsService> AccountsService for T {
    /// Forwards the call to the implementation provided by `T`.
    async fn list_child_accounts(
        &self,
        req: crate::model::ListChildAccountsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::ListChildAccountsResponse>> {
        T::list_child_accounts(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_account(
        &self,
        req: crate::model::GetAccountRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::Account>> {
        T::get_account(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn update_labels(
        &self,
        req: crate::model::UpdateAccountLabelsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::Account>> {
        T::update_labels(self, req, options).await
    }
}

/// A dyn-compatible, crate-private version of [super::AccountLabelsService].
#[async_trait::async_trait]
pub trait AccountLabelsService: std::fmt::Debug + Send + Sync {
    async fn list_account_labels(
        &self,
        req: crate::model::ListAccountLabelsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::ListAccountLabelsResponse>>;

    async fn create_account_label(
        &self,
        req: crate::model::CreateAccountLabelRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::AccountLabel>>;

    async fn update_account_label(
        &self,
        req: crate::model::UpdateAccountLabelRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::AccountLabel>>;

    async fn delete_account_label(
        &self,
        req: crate::model::DeleteAccountLabelRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<()>>;
}

/// All implementations of [super::AccountLabelsService] also implement [AccountLabelsService].
#[async_trait::async_trait]
impl<T: super::AccountLabelsService> AccountLabelsService for T {
    /// Forwards the call to the implementation provided by `T`.
    async fn list_account_labels(
        &self,
        req: crate::model::ListAccountLabelsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::ListAccountLabelsResponse>> {
        T::list_account_labels(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn create_account_label(
        &self,
        req: crate::model::CreateAccountLabelRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::AccountLabel>> {
        T::create_account_label(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn update_account_label(
        &self,
        req: crate::model::UpdateAccountLabelRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::AccountLabel>> {
        T::update_account_label(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn delete_account_label(
        &self,
        req: crate::model::DeleteAccountLabelRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<()>> {
        T::delete_account_label(self, req, options).await
    }
}

/// A dyn-compatible, crate-private version of [super::CssProductInputsService].
#[async_trait::async_trait]
pub trait CssProductInputsService: std::fmt::Debug + Send + Sync {
    async fn insert_css_product_input(
        &self,
        req: crate::model::InsertCssProductInputRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::CssProductInput>>;

    async fn update_css_product_input(
        &self,
        req: crate::model::UpdateCssProductInputRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::CssProductInput>>;

    async fn delete_css_product_input(
        &self,
        req: crate::model::DeleteCssProductInputRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<()>>;
}

/// All implementations of [super::CssProductInputsService] also implement [CssProductInputsService].
#[async_trait::async_trait]
impl<T: super::CssProductInputsService> CssProductInputsService for T {
    /// Forwards the call to the implementation provided by `T`.
    async fn insert_css_product_input(
        &self,
        req: crate::model::InsertCssProductInputRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::CssProductInput>> {
        T::insert_css_product_input(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn update_css_product_input(
        &self,
        req: crate::model::UpdateCssProductInputRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::CssProductInput>> {
        T::update_css_product_input(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn delete_css_product_input(
        &self,
        req: crate::model::DeleteCssProductInputRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<()>> {
        T::delete_css_product_input(self, req, options).await
    }
}

/// A dyn-compatible, crate-private version of [super::CssProductsService].
#[async_trait::async_trait]
pub trait CssProductsService: std::fmt::Debug + Send + Sync {
    async fn get_css_product(
        &self,
        req: crate::model::GetCssProductRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::CssProduct>>;

    async fn list_css_products(
        &self,
        req: crate::model::ListCssProductsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::ListCssProductsResponse>>;
}

/// All implementations of [super::CssProductsService] also implement [CssProductsService].
#[async_trait::async_trait]
impl<T: super::CssProductsService> CssProductsService for T {
    /// Forwards the call to the implementation provided by `T`.
    async fn get_css_product(
        &self,
        req: crate::model::GetCssProductRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::CssProduct>> {
        T::get_css_product(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn list_css_products(
        &self,
        req: crate::model::ListCssProductsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::ListCssProductsResponse>> {
        T::list_css_products(self, req, options).await
    }
}

/// A dyn-compatible, crate-private version of [super::QuotaService].
#[async_trait::async_trait]
pub trait QuotaService: std::fmt::Debug + Send + Sync {
    async fn list_quota_groups(
        &self,
        req: crate::model::ListQuotaGroupsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::ListQuotaGroupsResponse>>;
}

/// All implementations of [super::QuotaService] also implement [QuotaService].
#[async_trait::async_trait]
impl<T: super::QuotaService> QuotaService for T {
    /// Forwards the call to the implementation provided by `T`.
    async fn list_quota_groups(
        &self,
        req: crate::model::ListQuotaGroupsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::ListQuotaGroupsResponse>> {
        T::list_quota_groups(self, req, options).await
    }
}