pub async fn mark_recommendation_failed(
            &mut self,
            request: impl tonic::IntoRequest<super::MarkRecommendationFailedRequest>,
        ) -> Result<tonic::Response<super::Recommendation>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.recommender.v1.Recommender/MarkRecommendationFailed",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
/// Marks the Recommendation State as Failed. Users can use this method to
/// indicate to the Recommender API that they have applied the recommendation
/// themselves, and the operation failed. This stops the recommendation content
/// from being updated. Associated insights are frozen and placed in the
/// ACCEPTED state.
///
/// MarkRecommendationFailed can be applied to recommendations in ACTIVE,
/// CLAIMED, SUCCEEDED, or FAILED state.
///
/// Requires the recommender.*.update IAM permission for the specified
/// recommender.
Marks the Recommendation State as Failed. Users can use this method to
indicate to the Recommender API that they have applied the recommendation
themselves, and the operation failed. This stops the recommendation content
from being updated. Associated insights are frozen and placed in the
ACCEPTED state.



Requires the recommender.*.update IAM permission for the specified
recommender.
Marks the Recommendation State as Failed . Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves and the operation failed . This stops the recommendation content from being updated . Associated insights are frozen and placed in the ACCEPTED state . Requires the recommender . * . update IAM permission for the specified recommender .
pub async fn mark_recommendation_failed(
            &mut self,
            request: impl tonic::IntoRequest<super::MarkRecommendationFailedRequest>,
        ) -> Result<tonic::Response<super::Recommendation>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.recommender.v1.Recommender/MarkRecommendationFailed",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
pub async fn mark_recommendation_failed ( & mut self , request : impl tonic :: IntoRequest < super :: MarkRecommendationFailedRequest > , ) -> Result < tonic :: Response < super :: Recommendation > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( " " e into ( ) ) , ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( " " , ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await }
Marks the Recommendation State as Failed.
Marks the Recommendation State as Failed .
&mut self
request
impl tonic::IntoRequest<super::MarkRecommendationFailedRequest>
&mut self
request
impl tonic::IntoRequest<super::MarkRecommendationFailedRequest>