pub async fn search_all_assignments(
            &mut self,
            request: impl tonic::IntoRequest<super::SearchAllAssignmentsRequest>,
        ) -> Result<
            tonic::Response<super::SearchAllAssignmentsResponse>,
            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.bigquery.reservation.v1.ReservationService/SearchAllAssignments",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
/// Looks up assignments for a specified resource for a particular region.
/// If the request is about a project:
///
/// 1. Assignments created on the project will be returned if they exist.
/// 2. Otherwise assignments created on the closest ancestor will be
///    returned.
/// 3. Assignments for different JobTypes will all be returned.
///
/// The same logic applies if the request is about a folder.
///
/// If the request is about an organization, then assignments created on the
/// organization will be returned (organization doesn't have ancestors).
///
/// Comparing to ListAssignments, there are some behavior
/// differences:
///
/// 1. permission on the assignee will be verified in this API.
/// 2. Hierarchy lookup (project->folder->organization) happens in this API.
/// 3. Parent here is `projects/*/locations/*`, instead of
///    `projects/*/locations/*reservations/*`.
Looks up assignments for a specified resource for a particular region.
If the request is about a project.

1. Assignments created on the project will be returned if they exist.
2. Otherwise assignments created on the closest ancestor will be
returned.
3. Assignments for different JobTypes will all be returned.

The same logic applies if the request is about a folder.

If the request is about an organization, then assignments created on the
organization will be returned (organization doesn't have ancestors).

Comparing to ListAssignments, there are some behavior
differences.

1. permission on the assignee will be verified in this API.
2. Hierarchy lookup (project->folder->organization) happens in this API.
3. Parent here is `projects/locations`, instead of
`projects/locationsreservations`.
Looks up assignments for a specified resource for a particular region . If the request is about a project . 1 . Assignments created on the project will be returned if they exist . 2 . Otherwise assignments created on the closest ancestor will be returned . 3 . Assignments for different JobTypes will all be returned . The same logic applies if the request is about a folder . If the request is about an organization then assignments created on the organization will be returned ( organization doesn ' t have ancestors ) . Comparing to ListAssignments there are some behavior differences . 1 . permission on the assignee will be verified in this API . 2 . Hierarchy lookup ( project - > folder - > organization ) happens in this API . 3 . Parent here is ` projects / locations ` instead of ` projects / locationsreservations ` .
pub async fn search_all_assignments(
            &mut self,
            request: impl tonic::IntoRequest<super::SearchAllAssignmentsRequest>,
        ) -> Result<
            tonic::Response<super::SearchAllAssignmentsResponse>,
            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.bigquery.reservation.v1.ReservationService/SearchAllAssignments",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
pub async fn search_all_assignments ( & mut self , request : impl tonic :: IntoRequest < super :: SearchAllAssignmentsRequest > , ) -> Result < tonic :: Response < super :: SearchAllAssignmentsResponse > , 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 }
Looks up assignments for a specified resource for a particular region.
Looks up assignments for a specified resource for a particular region .
&mut self
request
impl tonic::IntoRequest<super::SearchAllAssignmentsRequest>
&mut self
request
impl tonic::IntoRequest<super::SearchAllAssignmentsRequest>