#[cfg(any(
feature = "agents",
feature = "answer-records",
feature = "contexts",
feature = "conversations",
feature = "conversation-datasets",
feature = "conversation-models",
feature = "conversation-profiles",
feature = "documents",
feature = "encryption-spec-service",
feature = "entity-types",
feature = "environments",
feature = "fulfillments",
feature = "generators",
feature = "generator-evaluations",
feature = "intents",
feature = "knowledge-bases",
feature = "participants",
feature = "sessions",
feature = "session-entity-types",
feature = "sip-trunks",
feature = "tools",
feature = "versions",
))]
use crate::Result;
#[cfg(feature = "agents")]
#[derive(Clone, Debug)]
pub struct Agents<T>
where
T: super::stub::Agents + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "agents")]
impl<T> Agents<T>
where
T: super::stub::Agents + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "agents")]
impl<T> super::stub::Agents for Agents<T>
where
T: super::stub::Agents + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn get_agent(
&self,
req: crate::model::GetAgentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Agent>> {
self.inner.get_agent(req, options).await
}
#[tracing::instrument(ret)]
async fn set_agent(
&self,
req: crate::model::SetAgentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Agent>> {
self.inner.set_agent(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_agent(
&self,
req: crate::model::DeleteAgentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_agent(req, options).await
}
#[tracing::instrument(ret)]
async fn search_agents(
&self,
req: crate::model::SearchAgentsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::SearchAgentsResponse>> {
self.inner.search_agents(req, options).await
}
#[tracing::instrument(ret)]
async fn train_agent(
&self,
req: crate::model::TrainAgentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.train_agent(req, options).await
}
#[tracing::instrument(ret)]
async fn export_agent(
&self,
req: crate::model::ExportAgentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.export_agent(req, options).await
}
#[tracing::instrument(ret)]
async fn import_agent(
&self,
req: crate::model::ImportAgentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.import_agent(req, options).await
}
#[tracing::instrument(ret)]
async fn restore_agent(
&self,
req: crate::model::RestoreAgentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.restore_agent(req, options).await
}
#[tracing::instrument(ret)]
async fn get_validation_result(
&self,
req: crate::model::GetValidationResultRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ValidationResult>> {
self.inner.get_validation_result(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
self.inner.get_polling_error_policy(options)
}
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
self.inner.get_polling_backoff_policy(options)
}
}
#[cfg(feature = "answer-records")]
#[derive(Clone, Debug)]
pub struct AnswerRecords<T>
where
T: super::stub::AnswerRecords + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "answer-records")]
impl<T> AnswerRecords<T>
where
T: super::stub::AnswerRecords + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "answer-records")]
impl<T> super::stub::AnswerRecords for AnswerRecords<T>
where
T: super::stub::AnswerRecords + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn list_answer_records(
&self,
req: crate::model::ListAnswerRecordsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListAnswerRecordsResponse>> {
self.inner.list_answer_records(req, options).await
}
#[tracing::instrument(ret)]
async fn update_answer_record(
&self,
req: crate::model::UpdateAnswerRecordRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::AnswerRecord>> {
self.inner.update_answer_record(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
}
#[cfg(feature = "contexts")]
#[derive(Clone, Debug)]
pub struct Contexts<T>
where
T: super::stub::Contexts + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "contexts")]
impl<T> Contexts<T>
where
T: super::stub::Contexts + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "contexts")]
impl<T> super::stub::Contexts for Contexts<T>
where
T: super::stub::Contexts + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn list_contexts(
&self,
req: crate::model::ListContextsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListContextsResponse>> {
self.inner.list_contexts(req, options).await
}
#[tracing::instrument(ret)]
async fn get_context(
&self,
req: crate::model::GetContextRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Context>> {
self.inner.get_context(req, options).await
}
#[tracing::instrument(ret)]
async fn create_context(
&self,
req: crate::model::CreateContextRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Context>> {
self.inner.create_context(req, options).await
}
#[tracing::instrument(ret)]
async fn update_context(
&self,
req: crate::model::UpdateContextRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Context>> {
self.inner.update_context(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_context(
&self,
req: crate::model::DeleteContextRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_context(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_all_contexts(
&self,
req: crate::model::DeleteAllContextsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_all_contexts(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
}
#[cfg(feature = "conversations")]
#[derive(Clone, Debug)]
pub struct Conversations<T>
where
T: super::stub::Conversations + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "conversations")]
impl<T> Conversations<T>
where
T: super::stub::Conversations + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "conversations")]
impl<T> super::stub::Conversations for Conversations<T>
where
T: super::stub::Conversations + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn create_conversation(
&self,
req: crate::model::CreateConversationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Conversation>> {
self.inner.create_conversation(req, options).await
}
#[tracing::instrument(ret)]
async fn list_conversations(
&self,
req: crate::model::ListConversationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListConversationsResponse>> {
self.inner.list_conversations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_conversation(
&self,
req: crate::model::GetConversationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Conversation>> {
self.inner.get_conversation(req, options).await
}
#[tracing::instrument(ret)]
async fn complete_conversation(
&self,
req: crate::model::CompleteConversationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Conversation>> {
self.inner.complete_conversation(req, options).await
}
#[tracing::instrument(ret)]
async fn ingest_context_references(
&self,
req: crate::model::IngestContextReferencesRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::IngestContextReferencesResponse>> {
self.inner.ingest_context_references(req, options).await
}
#[tracing::instrument(ret)]
async fn list_messages(
&self,
req: crate::model::ListMessagesRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListMessagesResponse>> {
self.inner.list_messages(req, options).await
}
#[tracing::instrument(ret)]
async fn suggest_conversation_summary(
&self,
req: crate::model::SuggestConversationSummaryRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::SuggestConversationSummaryResponse>> {
self.inner.suggest_conversation_summary(req, options).await
}
#[tracing::instrument(ret)]
async fn generate_stateless_summary(
&self,
req: crate::model::GenerateStatelessSummaryRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::GenerateStatelessSummaryResponse>> {
self.inner.generate_stateless_summary(req, options).await
}
#[tracing::instrument(ret)]
async fn generate_stateless_suggestion(
&self,
req: crate::model::GenerateStatelessSuggestionRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::GenerateStatelessSuggestionResponse>> {
self.inner.generate_stateless_suggestion(req, options).await
}
#[tracing::instrument(ret)]
async fn search_knowledge(
&self,
req: crate::model::SearchKnowledgeRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::SearchKnowledgeResponse>> {
self.inner.search_knowledge(req, options).await
}
#[tracing::instrument(ret)]
async fn generate_suggestions(
&self,
req: crate::model::GenerateSuggestionsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::GenerateSuggestionsResponse>> {
self.inner.generate_suggestions(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
}
#[cfg(feature = "conversation-datasets")]
#[derive(Clone, Debug)]
pub struct ConversationDatasets<T>
where
T: super::stub::ConversationDatasets + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "conversation-datasets")]
impl<T> ConversationDatasets<T>
where
T: super::stub::ConversationDatasets + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "conversation-datasets")]
impl<T> super::stub::ConversationDatasets for ConversationDatasets<T>
where
T: super::stub::ConversationDatasets + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn create_conversation_dataset(
&self,
req: crate::model::CreateConversationDatasetRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.create_conversation_dataset(req, options).await
}
#[tracing::instrument(ret)]
async fn get_conversation_dataset(
&self,
req: crate::model::GetConversationDatasetRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ConversationDataset>> {
self.inner.get_conversation_dataset(req, options).await
}
#[tracing::instrument(ret)]
async fn list_conversation_datasets(
&self,
req: crate::model::ListConversationDatasetsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListConversationDatasetsResponse>> {
self.inner.list_conversation_datasets(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_conversation_dataset(
&self,
req: crate::model::DeleteConversationDatasetRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.delete_conversation_dataset(req, options).await
}
#[tracing::instrument(ret)]
async fn import_conversation_data(
&self,
req: crate::model::ImportConversationDataRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.import_conversation_data(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
self.inner.get_polling_error_policy(options)
}
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
self.inner.get_polling_backoff_policy(options)
}
}
#[cfg(feature = "conversation-models")]
#[derive(Clone, Debug)]
pub struct ConversationModels<T>
where
T: super::stub::ConversationModels + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "conversation-models")]
impl<T> ConversationModels<T>
where
T: super::stub::ConversationModels + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "conversation-models")]
impl<T> super::stub::ConversationModels for ConversationModels<T>
where
T: super::stub::ConversationModels + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn create_conversation_model(
&self,
req: crate::model::CreateConversationModelRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.create_conversation_model(req, options).await
}
#[tracing::instrument(ret)]
async fn get_conversation_model(
&self,
req: crate::model::GetConversationModelRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ConversationModel>> {
self.inner.get_conversation_model(req, options).await
}
#[tracing::instrument(ret)]
async fn list_conversation_models(
&self,
req: crate::model::ListConversationModelsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListConversationModelsResponse>> {
self.inner.list_conversation_models(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_conversation_model(
&self,
req: crate::model::DeleteConversationModelRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.delete_conversation_model(req, options).await
}
#[tracing::instrument(ret)]
async fn deploy_conversation_model(
&self,
req: crate::model::DeployConversationModelRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.deploy_conversation_model(req, options).await
}
#[tracing::instrument(ret)]
async fn undeploy_conversation_model(
&self,
req: crate::model::UndeployConversationModelRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.undeploy_conversation_model(req, options).await
}
#[tracing::instrument(ret)]
async fn get_conversation_model_evaluation(
&self,
req: crate::model::GetConversationModelEvaluationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ConversationModelEvaluation>> {
self.inner
.get_conversation_model_evaluation(req, options)
.await
}
#[tracing::instrument(ret)]
async fn list_conversation_model_evaluations(
&self,
req: crate::model::ListConversationModelEvaluationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListConversationModelEvaluationsResponse>> {
self.inner
.list_conversation_model_evaluations(req, options)
.await
}
#[tracing::instrument(ret)]
async fn create_conversation_model_evaluation(
&self,
req: crate::model::CreateConversationModelEvaluationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner
.create_conversation_model_evaluation(req, options)
.await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
self.inner.get_polling_error_policy(options)
}
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
self.inner.get_polling_backoff_policy(options)
}
}
#[cfg(feature = "conversation-profiles")]
#[derive(Clone, Debug)]
pub struct ConversationProfiles<T>
where
T: super::stub::ConversationProfiles + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "conversation-profiles")]
impl<T> ConversationProfiles<T>
where
T: super::stub::ConversationProfiles + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "conversation-profiles")]
impl<T> super::stub::ConversationProfiles for ConversationProfiles<T>
where
T: super::stub::ConversationProfiles + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn list_conversation_profiles(
&self,
req: crate::model::ListConversationProfilesRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListConversationProfilesResponse>> {
self.inner.list_conversation_profiles(req, options).await
}
#[tracing::instrument(ret)]
async fn get_conversation_profile(
&self,
req: crate::model::GetConversationProfileRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ConversationProfile>> {
self.inner.get_conversation_profile(req, options).await
}
#[tracing::instrument(ret)]
async fn create_conversation_profile(
&self,
req: crate::model::CreateConversationProfileRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ConversationProfile>> {
self.inner.create_conversation_profile(req, options).await
}
#[tracing::instrument(ret)]
async fn update_conversation_profile(
&self,
req: crate::model::UpdateConversationProfileRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ConversationProfile>> {
self.inner.update_conversation_profile(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_conversation_profile(
&self,
req: crate::model::DeleteConversationProfileRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_conversation_profile(req, options).await
}
#[tracing::instrument(ret)]
async fn set_suggestion_feature_config(
&self,
req: crate::model::SetSuggestionFeatureConfigRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.set_suggestion_feature_config(req, options).await
}
#[tracing::instrument(ret)]
async fn clear_suggestion_feature_config(
&self,
req: crate::model::ClearSuggestionFeatureConfigRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner
.clear_suggestion_feature_config(req, options)
.await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
self.inner.get_polling_error_policy(options)
}
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
self.inner.get_polling_backoff_policy(options)
}
}
#[cfg(feature = "documents")]
#[derive(Clone, Debug)]
pub struct Documents<T>
where
T: super::stub::Documents + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "documents")]
impl<T> Documents<T>
where
T: super::stub::Documents + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "documents")]
impl<T> super::stub::Documents for Documents<T>
where
T: super::stub::Documents + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn list_documents(
&self,
req: crate::model::ListDocumentsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListDocumentsResponse>> {
self.inner.list_documents(req, options).await
}
#[tracing::instrument(ret)]
async fn get_document(
&self,
req: crate::model::GetDocumentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Document>> {
self.inner.get_document(req, options).await
}
#[tracing::instrument(ret)]
async fn create_document(
&self,
req: crate::model::CreateDocumentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.create_document(req, options).await
}
#[tracing::instrument(ret)]
async fn import_documents(
&self,
req: crate::model::ImportDocumentsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.import_documents(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_document(
&self,
req: crate::model::DeleteDocumentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.delete_document(req, options).await
}
#[tracing::instrument(ret)]
async fn update_document(
&self,
req: crate::model::UpdateDocumentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.update_document(req, options).await
}
#[tracing::instrument(ret)]
async fn reload_document(
&self,
req: crate::model::ReloadDocumentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.reload_document(req, options).await
}
#[tracing::instrument(ret)]
async fn export_document(
&self,
req: crate::model::ExportDocumentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.export_document(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
self.inner.get_polling_error_policy(options)
}
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
self.inner.get_polling_backoff_policy(options)
}
}
#[cfg(feature = "encryption-spec-service")]
#[derive(Clone, Debug)]
pub struct EncryptionSpecService<T>
where
T: super::stub::EncryptionSpecService + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "encryption-spec-service")]
impl<T> EncryptionSpecService<T>
where
T: super::stub::EncryptionSpecService + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "encryption-spec-service")]
impl<T> super::stub::EncryptionSpecService for EncryptionSpecService<T>
where
T: super::stub::EncryptionSpecService + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn get_encryption_spec(
&self,
req: crate::model::GetEncryptionSpecRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::EncryptionSpec>> {
self.inner.get_encryption_spec(req, options).await
}
#[tracing::instrument(ret)]
async fn initialize_encryption_spec(
&self,
req: crate::model::InitializeEncryptionSpecRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.initialize_encryption_spec(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
self.inner.get_polling_error_policy(options)
}
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
self.inner.get_polling_backoff_policy(options)
}
}
#[cfg(feature = "entity-types")]
#[derive(Clone, Debug)]
pub struct EntityTypes<T>
where
T: super::stub::EntityTypes + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "entity-types")]
impl<T> EntityTypes<T>
where
T: super::stub::EntityTypes + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "entity-types")]
impl<T> super::stub::EntityTypes for EntityTypes<T>
where
T: super::stub::EntityTypes + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn list_entity_types(
&self,
req: crate::model::ListEntityTypesRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListEntityTypesResponse>> {
self.inner.list_entity_types(req, options).await
}
#[tracing::instrument(ret)]
async fn get_entity_type(
&self,
req: crate::model::GetEntityTypeRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::EntityType>> {
self.inner.get_entity_type(req, options).await
}
#[tracing::instrument(ret)]
async fn create_entity_type(
&self,
req: crate::model::CreateEntityTypeRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::EntityType>> {
self.inner.create_entity_type(req, options).await
}
#[tracing::instrument(ret)]
async fn update_entity_type(
&self,
req: crate::model::UpdateEntityTypeRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::EntityType>> {
self.inner.update_entity_type(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_entity_type(
&self,
req: crate::model::DeleteEntityTypeRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_entity_type(req, options).await
}
#[tracing::instrument(ret)]
async fn batch_update_entity_types(
&self,
req: crate::model::BatchUpdateEntityTypesRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.batch_update_entity_types(req, options).await
}
#[tracing::instrument(ret)]
async fn batch_delete_entity_types(
&self,
req: crate::model::BatchDeleteEntityTypesRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.batch_delete_entity_types(req, options).await
}
#[tracing::instrument(ret)]
async fn batch_create_entities(
&self,
req: crate::model::BatchCreateEntitiesRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.batch_create_entities(req, options).await
}
#[tracing::instrument(ret)]
async fn batch_update_entities(
&self,
req: crate::model::BatchUpdateEntitiesRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.batch_update_entities(req, options).await
}
#[tracing::instrument(ret)]
async fn batch_delete_entities(
&self,
req: crate::model::BatchDeleteEntitiesRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.batch_delete_entities(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
self.inner.get_polling_error_policy(options)
}
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
self.inner.get_polling_backoff_policy(options)
}
}
#[cfg(feature = "environments")]
#[derive(Clone, Debug)]
pub struct Environments<T>
where
T: super::stub::Environments + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "environments")]
impl<T> Environments<T>
where
T: super::stub::Environments + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "environments")]
impl<T> super::stub::Environments for Environments<T>
where
T: super::stub::Environments + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn list_environments(
&self,
req: crate::model::ListEnvironmentsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListEnvironmentsResponse>> {
self.inner.list_environments(req, options).await
}
#[tracing::instrument(ret)]
async fn get_environment(
&self,
req: crate::model::GetEnvironmentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Environment>> {
self.inner.get_environment(req, options).await
}
#[tracing::instrument(ret)]
async fn create_environment(
&self,
req: crate::model::CreateEnvironmentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Environment>> {
self.inner.create_environment(req, options).await
}
#[tracing::instrument(ret)]
async fn update_environment(
&self,
req: crate::model::UpdateEnvironmentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Environment>> {
self.inner.update_environment(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_environment(
&self,
req: crate::model::DeleteEnvironmentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_environment(req, options).await
}
#[tracing::instrument(ret)]
async fn get_environment_history(
&self,
req: crate::model::GetEnvironmentHistoryRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::EnvironmentHistory>> {
self.inner.get_environment_history(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
}
#[cfg(feature = "fulfillments")]
#[derive(Clone, Debug)]
pub struct Fulfillments<T>
where
T: super::stub::Fulfillments + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "fulfillments")]
impl<T> Fulfillments<T>
where
T: super::stub::Fulfillments + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "fulfillments")]
impl<T> super::stub::Fulfillments for Fulfillments<T>
where
T: super::stub::Fulfillments + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn get_fulfillment(
&self,
req: crate::model::GetFulfillmentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Fulfillment>> {
self.inner.get_fulfillment(req, options).await
}
#[tracing::instrument(ret)]
async fn update_fulfillment(
&self,
req: crate::model::UpdateFulfillmentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Fulfillment>> {
self.inner.update_fulfillment(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
}
#[cfg(feature = "generators")]
#[derive(Clone, Debug)]
pub struct Generators<T>
where
T: super::stub::Generators + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "generators")]
impl<T> Generators<T>
where
T: super::stub::Generators + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "generators")]
impl<T> super::stub::Generators for Generators<T>
where
T: super::stub::Generators + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn create_generator(
&self,
req: crate::model::CreateGeneratorRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Generator>> {
self.inner.create_generator(req, options).await
}
#[tracing::instrument(ret)]
async fn get_generator(
&self,
req: crate::model::GetGeneratorRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Generator>> {
self.inner.get_generator(req, options).await
}
#[tracing::instrument(ret)]
async fn list_generators(
&self,
req: crate::model::ListGeneratorsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListGeneratorsResponse>> {
self.inner.list_generators(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_generator(
&self,
req: crate::model::DeleteGeneratorRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_generator(req, options).await
}
#[tracing::instrument(ret)]
async fn update_generator(
&self,
req: crate::model::UpdateGeneratorRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Generator>> {
self.inner.update_generator(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
}
#[cfg(feature = "generator-evaluations")]
#[derive(Clone, Debug)]
pub struct GeneratorEvaluations<T>
where
T: super::stub::GeneratorEvaluations + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "generator-evaluations")]
impl<T> GeneratorEvaluations<T>
where
T: super::stub::GeneratorEvaluations + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "generator-evaluations")]
impl<T> super::stub::GeneratorEvaluations for GeneratorEvaluations<T>
where
T: super::stub::GeneratorEvaluations + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn create_generator_evaluation(
&self,
req: crate::model::CreateGeneratorEvaluationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.create_generator_evaluation(req, options).await
}
#[tracing::instrument(ret)]
async fn get_generator_evaluation(
&self,
req: crate::model::GetGeneratorEvaluationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::GeneratorEvaluation>> {
self.inner.get_generator_evaluation(req, options).await
}
#[tracing::instrument(ret)]
async fn list_generator_evaluations(
&self,
req: crate::model::ListGeneratorEvaluationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListGeneratorEvaluationsResponse>> {
self.inner.list_generator_evaluations(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_generator_evaluation(
&self,
req: crate::model::DeleteGeneratorEvaluationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_generator_evaluation(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
self.inner.get_polling_error_policy(options)
}
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
self.inner.get_polling_backoff_policy(options)
}
}
#[cfg(feature = "intents")]
#[derive(Clone, Debug)]
pub struct Intents<T>
where
T: super::stub::Intents + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "intents")]
impl<T> Intents<T>
where
T: super::stub::Intents + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "intents")]
impl<T> super::stub::Intents for Intents<T>
where
T: super::stub::Intents + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn list_intents(
&self,
req: crate::model::ListIntentsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListIntentsResponse>> {
self.inner.list_intents(req, options).await
}
#[tracing::instrument(ret)]
async fn get_intent(
&self,
req: crate::model::GetIntentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Intent>> {
self.inner.get_intent(req, options).await
}
#[tracing::instrument(ret)]
async fn create_intent(
&self,
req: crate::model::CreateIntentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Intent>> {
self.inner.create_intent(req, options).await
}
#[tracing::instrument(ret)]
async fn update_intent(
&self,
req: crate::model::UpdateIntentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Intent>> {
self.inner.update_intent(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_intent(
&self,
req: crate::model::DeleteIntentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_intent(req, options).await
}
#[tracing::instrument(ret)]
async fn batch_update_intents(
&self,
req: crate::model::BatchUpdateIntentsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.batch_update_intents(req, options).await
}
#[tracing::instrument(ret)]
async fn batch_delete_intents(
&self,
req: crate::model::BatchDeleteIntentsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.batch_delete_intents(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
self.inner.get_polling_error_policy(options)
}
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
self.inner.get_polling_backoff_policy(options)
}
}
#[cfg(feature = "knowledge-bases")]
#[derive(Clone, Debug)]
pub struct KnowledgeBases<T>
where
T: super::stub::KnowledgeBases + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "knowledge-bases")]
impl<T> KnowledgeBases<T>
where
T: super::stub::KnowledgeBases + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "knowledge-bases")]
impl<T> super::stub::KnowledgeBases for KnowledgeBases<T>
where
T: super::stub::KnowledgeBases + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn list_knowledge_bases(
&self,
req: crate::model::ListKnowledgeBasesRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListKnowledgeBasesResponse>> {
self.inner.list_knowledge_bases(req, options).await
}
#[tracing::instrument(ret)]
async fn get_knowledge_base(
&self,
req: crate::model::GetKnowledgeBaseRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::KnowledgeBase>> {
self.inner.get_knowledge_base(req, options).await
}
#[tracing::instrument(ret)]
async fn create_knowledge_base(
&self,
req: crate::model::CreateKnowledgeBaseRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::KnowledgeBase>> {
self.inner.create_knowledge_base(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_knowledge_base(
&self,
req: crate::model::DeleteKnowledgeBaseRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_knowledge_base(req, options).await
}
#[tracing::instrument(ret)]
async fn update_knowledge_base(
&self,
req: crate::model::UpdateKnowledgeBaseRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::KnowledgeBase>> {
self.inner.update_knowledge_base(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
}
#[cfg(feature = "participants")]
#[derive(Clone, Debug)]
pub struct Participants<T>
where
T: super::stub::Participants + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "participants")]
impl<T> Participants<T>
where
T: super::stub::Participants + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "participants")]
impl<T> super::stub::Participants for Participants<T>
where
T: super::stub::Participants + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn create_participant(
&self,
req: crate::model::CreateParticipantRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Participant>> {
self.inner.create_participant(req, options).await
}
#[tracing::instrument(ret)]
async fn get_participant(
&self,
req: crate::model::GetParticipantRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Participant>> {
self.inner.get_participant(req, options).await
}
#[tracing::instrument(ret)]
async fn list_participants(
&self,
req: crate::model::ListParticipantsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListParticipantsResponse>> {
self.inner.list_participants(req, options).await
}
#[tracing::instrument(ret)]
async fn update_participant(
&self,
req: crate::model::UpdateParticipantRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Participant>> {
self.inner.update_participant(req, options).await
}
#[tracing::instrument(ret)]
async fn analyze_content(
&self,
req: crate::model::AnalyzeContentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::AnalyzeContentResponse>> {
self.inner.analyze_content(req, options).await
}
#[tracing::instrument(ret)]
async fn suggest_articles(
&self,
req: crate::model::SuggestArticlesRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::SuggestArticlesResponse>> {
self.inner.suggest_articles(req, options).await
}
#[tracing::instrument(ret)]
async fn suggest_faq_answers(
&self,
req: crate::model::SuggestFaqAnswersRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::SuggestFaqAnswersResponse>> {
self.inner.suggest_faq_answers(req, options).await
}
#[tracing::instrument(ret)]
async fn suggest_smart_replies(
&self,
req: crate::model::SuggestSmartRepliesRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::SuggestSmartRepliesResponse>> {
self.inner.suggest_smart_replies(req, options).await
}
#[tracing::instrument(ret)]
async fn suggest_knowledge_assist(
&self,
req: crate::model::SuggestKnowledgeAssistRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::SuggestKnowledgeAssistResponse>> {
self.inner.suggest_knowledge_assist(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
}
#[cfg(feature = "sessions")]
#[derive(Clone, Debug)]
pub struct Sessions<T>
where
T: super::stub::Sessions + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "sessions")]
impl<T> Sessions<T>
where
T: super::stub::Sessions + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "sessions")]
impl<T> super::stub::Sessions for Sessions<T>
where
T: super::stub::Sessions + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn detect_intent(
&self,
req: crate::model::DetectIntentRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::DetectIntentResponse>> {
self.inner.detect_intent(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
}
#[cfg(feature = "session-entity-types")]
#[derive(Clone, Debug)]
pub struct SessionEntityTypes<T>
where
T: super::stub::SessionEntityTypes + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "session-entity-types")]
impl<T> SessionEntityTypes<T>
where
T: super::stub::SessionEntityTypes + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "session-entity-types")]
impl<T> super::stub::SessionEntityTypes for SessionEntityTypes<T>
where
T: super::stub::SessionEntityTypes + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn list_session_entity_types(
&self,
req: crate::model::ListSessionEntityTypesRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListSessionEntityTypesResponse>> {
self.inner.list_session_entity_types(req, options).await
}
#[tracing::instrument(ret)]
async fn get_session_entity_type(
&self,
req: crate::model::GetSessionEntityTypeRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::SessionEntityType>> {
self.inner.get_session_entity_type(req, options).await
}
#[tracing::instrument(ret)]
async fn create_session_entity_type(
&self,
req: crate::model::CreateSessionEntityTypeRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::SessionEntityType>> {
self.inner.create_session_entity_type(req, options).await
}
#[tracing::instrument(ret)]
async fn update_session_entity_type(
&self,
req: crate::model::UpdateSessionEntityTypeRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::SessionEntityType>> {
self.inner.update_session_entity_type(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_session_entity_type(
&self,
req: crate::model::DeleteSessionEntityTypeRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_session_entity_type(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
}
#[cfg(feature = "sip-trunks")]
#[derive(Clone, Debug)]
pub struct SipTrunks<T>
where
T: super::stub::SipTrunks + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "sip-trunks")]
impl<T> SipTrunks<T>
where
T: super::stub::SipTrunks + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "sip-trunks")]
impl<T> super::stub::SipTrunks for SipTrunks<T>
where
T: super::stub::SipTrunks + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn create_sip_trunk(
&self,
req: crate::model::CreateSipTrunkRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::SipTrunk>> {
self.inner.create_sip_trunk(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_sip_trunk(
&self,
req: crate::model::DeleteSipTrunkRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_sip_trunk(req, options).await
}
#[tracing::instrument(ret)]
async fn list_sip_trunks(
&self,
req: crate::model::ListSipTrunksRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListSipTrunksResponse>> {
self.inner.list_sip_trunks(req, options).await
}
#[tracing::instrument(ret)]
async fn get_sip_trunk(
&self,
req: crate::model::GetSipTrunkRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::SipTrunk>> {
self.inner.get_sip_trunk(req, options).await
}
#[tracing::instrument(ret)]
async fn update_sip_trunk(
&self,
req: crate::model::UpdateSipTrunkRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::SipTrunk>> {
self.inner.update_sip_trunk(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
}
#[cfg(feature = "tools")]
#[derive(Clone, Debug)]
pub struct Tools<T>
where
T: super::stub::Tools + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "tools")]
impl<T> Tools<T>
where
T: super::stub::Tools + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "tools")]
impl<T> super::stub::Tools for Tools<T>
where
T: super::stub::Tools + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn create_tool(
&self,
req: crate::model::CreateToolRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Tool>> {
self.inner.create_tool(req, options).await
}
#[tracing::instrument(ret)]
async fn get_tool(
&self,
req: crate::model::GetToolRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Tool>> {
self.inner.get_tool(req, options).await
}
#[tracing::instrument(ret)]
async fn list_tools(
&self,
req: crate::model::ListToolsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListToolsResponse>> {
self.inner.list_tools(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_tool(
&self,
req: crate::model::DeleteToolRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_tool(req, options).await
}
#[tracing::instrument(ret)]
async fn update_tool(
&self,
req: crate::model::UpdateToolRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Tool>> {
self.inner.update_tool(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
}
#[cfg(feature = "versions")]
#[derive(Clone, Debug)]
pub struct Versions<T>
where
T: super::stub::Versions + std::fmt::Debug + Send + Sync,
{
inner: T,
}
#[cfg(feature = "versions")]
impl<T> Versions<T>
where
T: super::stub::Versions + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
#[cfg(feature = "versions")]
impl<T> super::stub::Versions for Versions<T>
where
T: super::stub::Versions + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn list_versions(
&self,
req: crate::model::ListVersionsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ListVersionsResponse>> {
self.inner.list_versions(req, options).await
}
#[tracing::instrument(ret)]
async fn get_version(
&self,
req: crate::model::GetVersionRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Version>> {
self.inner.get_version(req, options).await
}
#[tracing::instrument(ret)]
async fn create_version(
&self,
req: crate::model::CreateVersionRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Version>> {
self.inner.create_version(req, options).await
}
#[tracing::instrument(ret)]
async fn update_version(
&self,
req: crate::model::UpdateVersionRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Version>> {
self.inner.update_version(req, options).await
}
#[tracing::instrument(ret)]
async fn delete_version(
&self,
req: crate::model::DeleteVersionRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete_version(req, options).await
}
#[tracing::instrument(ret)]
async fn list_locations(
&self,
req: google_cloud_location::model::ListLocationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::ListLocationsResponse>> {
self.inner.list_locations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_location(
&self,
req: google_cloud_location::model::GetLocationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_location::model::Location>> {
self.inner.get_location(req, options).await
}
#[tracing::instrument(ret)]
async fn list_operations(
&self,
req: google_cloud_longrunning::model::ListOperationsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::ListOperationsResponse>> {
self.inner.list_operations(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: google_cloud_longrunning::model::GetOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<google_cloud_longrunning::model::Operation>> {
self.inner.get_operation(req, options).await
}
#[tracing::instrument(ret)]
async fn cancel_operation(
&self,
req: google_cloud_longrunning::model::CancelOperationRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.cancel_operation(req, options).await
}
}