// Code generated by sidekick. DO NOT EDIT.
//
// 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.

#if FeatureOnlineStoreAdminService
  import Foundation
  #if canImport(FoundationNetworking)
    import FoundationNetworking
  #endif
  import GoogleCloudLocation
  import GoogleCloudWkt
  import GoogleIAMV1
  import GoogleLongRunning
  import GoogleRpc
  import GoogleCloudGax

  /// The service that handles CRUD and List for resources for
  /// FeatureOnlineStore.
  ///
  /// @Snippet(path: "FeatureOnlineStoreAdminServiceQuickstart")
  public class FeatureOnlineStoreAdminServiceClient: Clients.FeatureOnlineStoreAdminServiceProtocol
  {
    let inner: any Clients.FeatureOnlineStoreAdminServiceStub
    let pollingErrorPolicy: GoogleCloudGax.PollingErrorPolicy
    let pollingBackoffPolicy: GoogleCloudGax.BackoffPolicy

    /// Creates a new `FeatureOnlineStoreAdminServiceClient` instance.
    public init(_ options: GoogleCloudGax.ClientOptions = .init()) throws {
      var inner: any Clients.FeatureOnlineStoreAdminServiceStub =
        try Clients.FeatureOnlineStoreAdminServiceTransport(options)
      inner = Clients.FeatureOnlineStoreAdminServiceRetry(inner, options: options)
      if let logger = options.logger {
        inner = Clients.FeatureOnlineStoreAdminServiceLogging(inner, logger: logger)
      }
      self.inner = inner
      self.pollingErrorPolicy = options.pollingErrorPolicy
      self.pollingBackoffPolicy = options.pollingBackoffPolicy
    }

    /// Creates a new FeatureOnlineStore in a given project and location.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_CreateFeatureOnlineStore")
    public func createFeatureOnlineStore(
      request: CreateFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleLongRunning.Operation {
      try await self.inner.createFeatureOnlineStore(request: request, options: options)
    }

    /// Creates a new FeatureOnlineStore in a given project and location.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_CreateFeatureOnlineStore")
    public func createFeatureOnlineStore(
      withPolling: CreateFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> any GoogleCloudGax.PollableOperation<FeatureOnlineStore> {
      let extractStatus = {
        (op: GoogleLongRunning.Operation) throws
          -> GoogleCloudGax._PollableOperationImpl<FeatureOnlineStore>.State in
        guard op.done else {
          return .init(done: false, result: nil)
        }

        switch op.result {
        case .response(let anyValue):
          guard let anyValueUnwrapped = anyValue else {
            return .init(
              done: true,
              result: .failure(
                GoogleCloudGax.RequestError.binding(
                  "Operation completed but response value was missing")))
          }
          let response = try FeatureOnlineStore(fromAny: anyValueUnwrapped)
          return .init(done: true, result: .success(response))
        case .error(let status):
          guard let statusUnwrapped = status else {
            return .init(
              done: true,
              result: .failure(
                GoogleCloudGax.RequestError.binding(
                  "Operation completed but error value was missing")))
          }
          let error = GoogleCloudGax.RequestError.service(
            GoogleCloudGax.ServiceError(
              code: GoogleRpc.Code(intValue: Int(statusUnwrapped.code)),
              message: statusUnwrapped.message))
          return .init(done: true, result: .failure(error))
        case .none:
          return .init(
            done: true,
            result: .failure(
              GoogleCloudGax.RequestError.binding("Operation completed but result was missing")))
        }
      }
      let rawOp = try await self.createFeatureOnlineStore(request: withPolling, options: options)
      let initialState = try extractStatus(rawOp)
      let poll = {
        () async throws -> GoogleCloudGax._PollableOperationImpl<FeatureOnlineStore>.State in
        let op = try await self.getOperation(
          request: .init().with { $0.name = rawOp.name }, options: options)
        return try extractStatus(op)
      }
      return GoogleCloudGax._PollableOperationImpl(
        initialState: initialState,
        polling: options.pollingErrorPolicy ?? self.pollingErrorPolicy,
        backoff: options.pollingBackoffPolicy ?? self.pollingBackoffPolicy,
        poll: poll,
      )
    }

    /// Gets details of a single FeatureOnlineStore.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_GetFeatureOnlineStore")
    public func getFeatureOnlineStore(
      request: GetFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleCloudAIPlatformV1.FeatureOnlineStore {
      try await self.inner.getFeatureOnlineStore(request: request, options: options)
    }

    /// Lists FeatureOnlineStores in a given project and location.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_ListFeatureOnlineStores")
    public func listFeatureOnlineStores(
      request: ListFeatureOnlineStoresRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleCloudAIPlatformV1.ListFeatureOnlineStoresResponse {
      try await self.inner.listFeatureOnlineStores(request: request, options: options)
    }

    /// Lists FeatureOnlineStores in a given project and location.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_ListFeatureOnlineStores")
    public func listFeatureOnlineStores(
      byItem: ListFeatureOnlineStoresRequest, options: GoogleCloudGax.RequestOptions
    ) throws -> any AsyncSequence<FeatureOnlineStore, Swift.Error> {
      let listRpc = {
        (token: Swift.String) async throws
          -> GoogleCloudAIPlatformV1.ListFeatureOnlineStoresResponse in
        var request = byItem
        request.pageToken = token
        return try await self.listFeatureOnlineStores(request: request, options: options)
      }
      return GoogleCloudGax.PaginatedResponseSequence(listRpc: listRpc)
    }

    /// Updates the parameters of a single FeatureOnlineStore.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_UpdateFeatureOnlineStore")
    public func updateFeatureOnlineStore(
      request: UpdateFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleLongRunning.Operation {
      try await self.inner.updateFeatureOnlineStore(request: request, options: options)
    }

    /// Updates the parameters of a single FeatureOnlineStore.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_UpdateFeatureOnlineStore")
    public func updateFeatureOnlineStore(
      withPolling: UpdateFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> any GoogleCloudGax.PollableOperation<FeatureOnlineStore> {
      let extractStatus = {
        (op: GoogleLongRunning.Operation) throws
          -> GoogleCloudGax._PollableOperationImpl<FeatureOnlineStore>.State in
        guard op.done else {
          return .init(done: false, result: nil)
        }

        switch op.result {
        case .response(let anyValue):
          guard let anyValueUnwrapped = anyValue else {
            return .init(
              done: true,
              result: .failure(
                GoogleCloudGax.RequestError.binding(
                  "Operation completed but response value was missing")))
          }
          let response = try FeatureOnlineStore(fromAny: anyValueUnwrapped)
          return .init(done: true, result: .success(response))
        case .error(let status):
          guard let statusUnwrapped = status else {
            return .init(
              done: true,
              result: .failure(
                GoogleCloudGax.RequestError.binding(
                  "Operation completed but error value was missing")))
          }
          let error = GoogleCloudGax.RequestError.service(
            GoogleCloudGax.ServiceError(
              code: GoogleRpc.Code(intValue: Int(statusUnwrapped.code)),
              message: statusUnwrapped.message))
          return .init(done: true, result: .failure(error))
        case .none:
          return .init(
            done: true,
            result: .failure(
              GoogleCloudGax.RequestError.binding("Operation completed but result was missing")))
        }
      }
      let rawOp = try await self.updateFeatureOnlineStore(request: withPolling, options: options)
      let initialState = try extractStatus(rawOp)
      let poll = {
        () async throws -> GoogleCloudGax._PollableOperationImpl<FeatureOnlineStore>.State in
        let op = try await self.getOperation(
          request: .init().with { $0.name = rawOp.name }, options: options)
        return try extractStatus(op)
      }
      return GoogleCloudGax._PollableOperationImpl(
        initialState: initialState,
        polling: options.pollingErrorPolicy ?? self.pollingErrorPolicy,
        backoff: options.pollingBackoffPolicy ?? self.pollingBackoffPolicy,
        poll: poll,
      )
    }

    /// Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not
    /// contain any FeatureViews.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_DeleteFeatureOnlineStore")
    public func deleteFeatureOnlineStore(
      request: DeleteFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleLongRunning.Operation {
      try await self.inner.deleteFeatureOnlineStore(request: request, options: options)
    }

    /// Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not
    /// contain any FeatureViews.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_DeleteFeatureOnlineStore")
    public func deleteFeatureOnlineStore(
      withPolling: DeleteFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> any GoogleCloudGax.PollableOperation<Void> {
      let extractStatus = {
        (op: GoogleLongRunning.Operation) throws
          -> GoogleCloudGax._PollableOperationImpl<Void>.State in
        guard op.done else {
          return .init(done: false, result: nil)
        }

        switch op.result {
        case .response:
          return .init(done: true, result: .success(()))
        case .error(let status):
          guard let statusUnwrapped = status else {
            return .init(
              done: true,
              result: .failure(
                GoogleCloudGax.RequestError.binding(
                  "Operation completed but error value was missing")))
          }
          let error = GoogleCloudGax.RequestError.service(
            GoogleCloudGax.ServiceError(
              code: GoogleRpc.Code(intValue: Int(statusUnwrapped.code)),
              message: statusUnwrapped.message))
          return .init(done: true, result: .failure(error))
        case .none:
          return .init(
            done: true,
            result: .failure(
              GoogleCloudGax.RequestError.binding("Operation completed but result was missing")))
        }
      }
      let rawOp = try await self.deleteFeatureOnlineStore(request: withPolling, options: options)
      let initialState = try extractStatus(rawOp)
      let poll = { () async throws -> GoogleCloudGax._PollableOperationImpl<Void>.State in
        let op = try await self.getOperation(
          request: .init().with { $0.name = rawOp.name }, options: options)
        return try extractStatus(op)
      }
      return GoogleCloudGax._PollableOperationImpl(
        initialState: initialState,
        polling: options.pollingErrorPolicy ?? self.pollingErrorPolicy,
        backoff: options.pollingBackoffPolicy ?? self.pollingBackoffPolicy,
        poll: poll,
      )
    }

    /// Creates a new FeatureView in a given FeatureOnlineStore.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_CreateFeatureView")
    public func createFeatureView(
      request: CreateFeatureViewRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleLongRunning.Operation {
      try await self.inner.createFeatureView(request: request, options: options)
    }

    /// Creates a new FeatureView in a given FeatureOnlineStore.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_CreateFeatureView")
    public func createFeatureView(
      withPolling: CreateFeatureViewRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> any GoogleCloudGax.PollableOperation<FeatureView> {
      let extractStatus = {
        (op: GoogleLongRunning.Operation) throws
          -> GoogleCloudGax._PollableOperationImpl<FeatureView>.State in
        guard op.done else {
          return .init(done: false, result: nil)
        }

        switch op.result {
        case .response(let anyValue):
          guard let anyValueUnwrapped = anyValue else {
            return .init(
              done: true,
              result: .failure(
                GoogleCloudGax.RequestError.binding(
                  "Operation completed but response value was missing")))
          }
          let response = try FeatureView(fromAny: anyValueUnwrapped)
          return .init(done: true, result: .success(response))
        case .error(let status):
          guard let statusUnwrapped = status else {
            return .init(
              done: true,
              result: .failure(
                GoogleCloudGax.RequestError.binding(
                  "Operation completed but error value was missing")))
          }
          let error = GoogleCloudGax.RequestError.service(
            GoogleCloudGax.ServiceError(
              code: GoogleRpc.Code(intValue: Int(statusUnwrapped.code)),
              message: statusUnwrapped.message))
          return .init(done: true, result: .failure(error))
        case .none:
          return .init(
            done: true,
            result: .failure(
              GoogleCloudGax.RequestError.binding("Operation completed but result was missing")))
        }
      }
      let rawOp = try await self.createFeatureView(request: withPolling, options: options)
      let initialState = try extractStatus(rawOp)
      let poll = { () async throws -> GoogleCloudGax._PollableOperationImpl<FeatureView>.State in
        let op = try await self.getOperation(
          request: .init().with { $0.name = rawOp.name }, options: options)
        return try extractStatus(op)
      }
      return GoogleCloudGax._PollableOperationImpl(
        initialState: initialState,
        polling: options.pollingErrorPolicy ?? self.pollingErrorPolicy,
        backoff: options.pollingBackoffPolicy ?? self.pollingBackoffPolicy,
        poll: poll,
      )
    }

    /// Gets details of a single FeatureView.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_GetFeatureView")
    public func getFeatureView(
      request: GetFeatureViewRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleCloudAIPlatformV1.FeatureView {
      try await self.inner.getFeatureView(request: request, options: options)
    }

    /// Lists FeatureViews in a given FeatureOnlineStore.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_ListFeatureViews")
    public func listFeatureViews(
      request: ListFeatureViewsRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleCloudAIPlatformV1.ListFeatureViewsResponse {
      try await self.inner.listFeatureViews(request: request, options: options)
    }

    /// Lists FeatureViews in a given FeatureOnlineStore.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_ListFeatureViews")
    public func listFeatureViews(
      byItem: ListFeatureViewsRequest, options: GoogleCloudGax.RequestOptions
    ) throws -> any AsyncSequence<FeatureView, Swift.Error> {
      let listRpc = {
        (token: Swift.String) async throws -> GoogleCloudAIPlatformV1.ListFeatureViewsResponse in
        var request = byItem
        request.pageToken = token
        return try await self.listFeatureViews(request: request, options: options)
      }
      return GoogleCloudGax.PaginatedResponseSequence(listRpc: listRpc)
    }

    /// Updates the parameters of a single FeatureView.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_UpdateFeatureView")
    public func updateFeatureView(
      request: UpdateFeatureViewRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleLongRunning.Operation {
      try await self.inner.updateFeatureView(request: request, options: options)
    }

    /// Updates the parameters of a single FeatureView.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_UpdateFeatureView")
    public func updateFeatureView(
      withPolling: UpdateFeatureViewRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> any GoogleCloudGax.PollableOperation<FeatureView> {
      let extractStatus = {
        (op: GoogleLongRunning.Operation) throws
          -> GoogleCloudGax._PollableOperationImpl<FeatureView>.State in
        guard op.done else {
          return .init(done: false, result: nil)
        }

        switch op.result {
        case .response(let anyValue):
          guard let anyValueUnwrapped = anyValue else {
            return .init(
              done: true,
              result: .failure(
                GoogleCloudGax.RequestError.binding(
                  "Operation completed but response value was missing")))
          }
          let response = try FeatureView(fromAny: anyValueUnwrapped)
          return .init(done: true, result: .success(response))
        case .error(let status):
          guard let statusUnwrapped = status else {
            return .init(
              done: true,
              result: .failure(
                GoogleCloudGax.RequestError.binding(
                  "Operation completed but error value was missing")))
          }
          let error = GoogleCloudGax.RequestError.service(
            GoogleCloudGax.ServiceError(
              code: GoogleRpc.Code(intValue: Int(statusUnwrapped.code)),
              message: statusUnwrapped.message))
          return .init(done: true, result: .failure(error))
        case .none:
          return .init(
            done: true,
            result: .failure(
              GoogleCloudGax.RequestError.binding("Operation completed but result was missing")))
        }
      }
      let rawOp = try await self.updateFeatureView(request: withPolling, options: options)
      let initialState = try extractStatus(rawOp)
      let poll = { () async throws -> GoogleCloudGax._PollableOperationImpl<FeatureView>.State in
        let op = try await self.getOperation(
          request: .init().with { $0.name = rawOp.name }, options: options)
        return try extractStatus(op)
      }
      return GoogleCloudGax._PollableOperationImpl(
        initialState: initialState,
        polling: options.pollingErrorPolicy ?? self.pollingErrorPolicy,
        backoff: options.pollingBackoffPolicy ?? self.pollingBackoffPolicy,
        poll: poll,
      )
    }

    /// Deletes a single FeatureView.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_DeleteFeatureView")
    public func deleteFeatureView(
      request: DeleteFeatureViewRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleLongRunning.Operation {
      try await self.inner.deleteFeatureView(request: request, options: options)
    }

    /// Deletes a single FeatureView.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_DeleteFeatureView")
    public func deleteFeatureView(
      withPolling: DeleteFeatureViewRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> any GoogleCloudGax.PollableOperation<Void> {
      let extractStatus = {
        (op: GoogleLongRunning.Operation) throws
          -> GoogleCloudGax._PollableOperationImpl<Void>.State in
        guard op.done else {
          return .init(done: false, result: nil)
        }

        switch op.result {
        case .response:
          return .init(done: true, result: .success(()))
        case .error(let status):
          guard let statusUnwrapped = status else {
            return .init(
              done: true,
              result: .failure(
                GoogleCloudGax.RequestError.binding(
                  "Operation completed but error value was missing")))
          }
          let error = GoogleCloudGax.RequestError.service(
            GoogleCloudGax.ServiceError(
              code: GoogleRpc.Code(intValue: Int(statusUnwrapped.code)),
              message: statusUnwrapped.message))
          return .init(done: true, result: .failure(error))
        case .none:
          return .init(
            done: true,
            result: .failure(
              GoogleCloudGax.RequestError.binding("Operation completed but result was missing")))
        }
      }
      let rawOp = try await self.deleteFeatureView(request: withPolling, options: options)
      let initialState = try extractStatus(rawOp)
      let poll = { () async throws -> GoogleCloudGax._PollableOperationImpl<Void>.State in
        let op = try await self.getOperation(
          request: .init().with { $0.name = rawOp.name }, options: options)
        return try extractStatus(op)
      }
      return GoogleCloudGax._PollableOperationImpl(
        initialState: initialState,
        polling: options.pollingErrorPolicy ?? self.pollingErrorPolicy,
        backoff: options.pollingBackoffPolicy ?? self.pollingBackoffPolicy,
        poll: poll,
      )
    }

    /// Triggers on-demand sync for the FeatureView.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_SyncFeatureView")
    public func syncFeatureView(
      request: SyncFeatureViewRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleCloudAIPlatformV1.SyncFeatureViewResponse {
      try await self.inner.syncFeatureView(request: request, options: options)
    }

    /// Gets details of a single FeatureViewSync.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_GetFeatureViewSync")
    public func getFeatureViewSync(
      request: GetFeatureViewSyncRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleCloudAIPlatformV1.FeatureViewSync {
      try await self.inner.getFeatureViewSync(request: request, options: options)
    }

    /// Lists FeatureViewSyncs in a given FeatureView.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_ListFeatureViewSyncs")
    public func listFeatureViewSyncs(
      request: ListFeatureViewSyncsRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleCloudAIPlatformV1.ListFeatureViewSyncsResponse {
      try await self.inner.listFeatureViewSyncs(request: request, options: options)
    }

    /// Lists FeatureViewSyncs in a given FeatureView.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_ListFeatureViewSyncs")
    public func listFeatureViewSyncs(
      byItem: ListFeatureViewSyncsRequest, options: GoogleCloudGax.RequestOptions
    ) throws -> any AsyncSequence<FeatureViewSync, Swift.Error> {
      let listRpc = {
        (token: Swift.String) async throws -> GoogleCloudAIPlatformV1.ListFeatureViewSyncsResponse
        in
        var request = byItem
        request.pageToken = token
        return try await self.listFeatureViewSyncs(request: request, options: options)
      }
      return GoogleCloudGax.PaginatedResponseSequence(listRpc: listRpc)
    }

    /// Lists information about the supported locations for this service.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_ListLocations")
    public func listLocations(
      request: GoogleCloudLocation.ListLocationsRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleCloudLocation.ListLocationsResponse {
      try await self.inner.listLocations(request: request, options: options)
    }

    /// Lists information about the supported locations for this service.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_ListLocations")
    public func listLocations(
      byItem: GoogleCloudLocation.ListLocationsRequest, options: GoogleCloudGax.RequestOptions
    ) throws -> any AsyncSequence<GoogleCloudLocation.Location, Swift.Error> {
      let listRpc = {
        (token: Swift.String) async throws -> GoogleCloudLocation.ListLocationsResponse in
        var request = byItem
        request.pageToken = token
        return try await self.listLocations(request: request, options: options)
      }
      return GoogleCloudGax.PaginatedResponseSequence(listRpc: listRpc)
    }

    /// Gets information about a location.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_GetLocation")
    public func getLocation(
      request: GoogleCloudLocation.GetLocationRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleCloudLocation.Location {
      try await self.inner.getLocation(request: request, options: options)
    }

    /// Sets the access control policy on the specified resource. Replaces
    /// any existing policy.
    ///
    /// Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`
    /// errors.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_SetIamPolicy")
    public func setIamPolicy(
      request: GoogleIAMV1.SetIamPolicyRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleIAMV1.Policy {
      try await self.inner.setIamPolicy(request: request, options: options)
    }

    /// Gets the access control policy for a resource. Returns an empty policy
    /// if the resource exists and does not have a policy set.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_GetIamPolicy")
    public func getIamPolicy(
      request: GoogleIAMV1.GetIamPolicyRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleIAMV1.Policy {
      try await self.inner.getIamPolicy(request: request, options: options)
    }

    /// Returns permissions that a caller has on the specified resource. If the
    /// resource does not exist, this will return an empty set of
    /// permissions, not a `NOT_FOUND` error.
    ///
    /// Note: This operation is designed to be used for building
    /// permission-aware UIs and command-line tools, not for authorization
    /// checking. This operation may "fail open" without warning.
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_TestIamPermissions")
    public func testIamPermissions(
      request: GoogleIAMV1.TestIamPermissionsRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleIAMV1.TestIamPermissionsResponse {
      try await self.inner.testIamPermissions(request: request, options: options)
    }

    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
    ///
    /// [google.longrunning.Operations]: https://www.google.com/search?q=Swift+google.longrunning+Operations
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_ListOperations")
    public func listOperations(
      request: GoogleLongRunning.ListOperationsRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleLongRunning.ListOperationsResponse {
      try await self.inner.listOperations(request: request, options: options)
    }

    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
    ///
    /// [google.longrunning.Operations]: https://www.google.com/search?q=Swift+google.longrunning+Operations
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_ListOperations")
    public func listOperations(
      byItem: GoogleLongRunning.ListOperationsRequest, options: GoogleCloudGax.RequestOptions
    ) throws -> any AsyncSequence<GoogleLongRunning.Operation, Swift.Error> {
      let listRpc = {
        (token: Swift.String) async throws -> GoogleLongRunning.ListOperationsResponse in
        var request = byItem
        request.pageToken = token
        return try await self.listOperations(request: request, options: options)
      }
      return GoogleCloudGax.PaginatedResponseSequence(listRpc: listRpc)
    }

    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
    ///
    /// [google.longrunning.Operations]: https://www.google.com/search?q=Swift+google.longrunning+Operations
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_GetOperation")
    func getOperation(
      request: GoogleLongRunning.GetOperationRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleLongRunning.Operation {
      try await self.inner.getOperation(request: request, options: options)
    }

    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
    ///
    /// [google.longrunning.Operations]: https://www.google.com/search?q=Swift+google.longrunning+Operations
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_DeleteOperation")
    public func deleteOperation(
      request: GoogleLongRunning.DeleteOperationRequest, options: GoogleCloudGax.RequestOptions
    ) async throws {
      try await self.inner.deleteOperation(request: request, options: options)
    }

    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
    ///
    /// [google.longrunning.Operations]: https://www.google.com/search?q=Swift+google.longrunning+Operations
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_CancelOperation")
    public func cancelOperation(
      request: GoogleLongRunning.CancelOperationRequest, options: GoogleCloudGax.RequestOptions
    ) async throws {
      try await self.inner.cancelOperation(request: request, options: options)
    }

    /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
    ///
    /// [google.longrunning.Operations]: https://www.google.com/search?q=Swift+google.longrunning+Operations
    ///
    /// @Snippet(path: "FeatureOnlineStoreAdminService_WaitOperation")
    public func waitOperation(
      request: GoogleLongRunning.WaitOperationRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleLongRunning.Operation {
      try await self.inner.waitOperation(request: request, options: options)
    }
  }

  extension Clients {
    /// A Swift protocol to mock `FeatureOnlineStoreAdminServiceClient`.
    ///
    /// To mock `FeatureOnlineStoreAdminServiceClient` change your functions to receive
    /// `some FeatureOnlineStoreAdminServiceProtocol` or `any FeatureOnlineStoreAdminServiceProtocol`
    /// and pass a mock implementation in your tests.
    public protocol FeatureOnlineStoreAdminServiceProtocol {
      /// See `FeatureOnlineStoreAdminServiceClient.createFeatureOnlineStore`.
      func createFeatureOnlineStore(request: CreateFeatureOnlineStoreRequest) async throws
        -> GoogleLongRunning.Operation

      /// See `FeatureOnlineStoreAdminServiceClient.createFeatureOnlineStore`.
      func createFeatureOnlineStore(withPolling: CreateFeatureOnlineStoreRequest) async throws
        -> any GoogleCloudGax.PollableOperation<FeatureOnlineStore>

      /// See `FeatureOnlineStoreAdminServiceClient.createFeatureOnlineStore`.
      func createFeatureOnlineStore(
        parent: Swift.String,
        featureOnlineStore: FeatureOnlineStore?,
        featureOnlineStoreId: Swift.String,
      ) async throws -> any GoogleCloudGax.PollableOperation<FeatureOnlineStore>

      /// See `FeatureOnlineStoreAdminServiceClient.getFeatureOnlineStore`.
      func getFeatureOnlineStore(request: GetFeatureOnlineStoreRequest) async throws
        -> GoogleCloudAIPlatformV1.FeatureOnlineStore

      /// See `FeatureOnlineStoreAdminServiceClient.getFeatureOnlineStore`.
      func getFeatureOnlineStore(
        name: Swift.String,
      ) async throws -> GoogleCloudAIPlatformV1.FeatureOnlineStore

      /// See `FeatureOnlineStoreAdminServiceClient.listFeatureOnlineStores`.
      func listFeatureOnlineStores(request: ListFeatureOnlineStoresRequest) async throws
        -> GoogleCloudAIPlatformV1.ListFeatureOnlineStoresResponse

      /// See `FeatureOnlineStoreAdminServiceClient.listFeatureOnlineStores`.
      func listFeatureOnlineStores(
        byItem: ListFeatureOnlineStoresRequest
      ) throws -> any AsyncSequence<FeatureOnlineStore, Swift.Error>

      /// See `FeatureOnlineStoreAdminServiceClient.listFeatureOnlineStores`.
      func listFeatureOnlineStores(
        parent: Swift.String,
      ) throws -> any AsyncSequence<FeatureOnlineStore, Swift.Error>

      /// See `FeatureOnlineStoreAdminServiceClient.updateFeatureOnlineStore`.
      func updateFeatureOnlineStore(request: UpdateFeatureOnlineStoreRequest) async throws
        -> GoogleLongRunning.Operation

      /// See `FeatureOnlineStoreAdminServiceClient.updateFeatureOnlineStore`.
      func updateFeatureOnlineStore(withPolling: UpdateFeatureOnlineStoreRequest) async throws
        -> any GoogleCloudGax.PollableOperation<FeatureOnlineStore>

      /// See `FeatureOnlineStoreAdminServiceClient.updateFeatureOnlineStore`.
      func updateFeatureOnlineStore(
        featureOnlineStore: FeatureOnlineStore?,
        updateMask: GoogleCloudWkt.FieldMask?,
      ) async throws -> any GoogleCloudGax.PollableOperation<FeatureOnlineStore>

      /// See `FeatureOnlineStoreAdminServiceClient.deleteFeatureOnlineStore`.
      func deleteFeatureOnlineStore(request: DeleteFeatureOnlineStoreRequest) async throws
        -> GoogleLongRunning.Operation

      /// See `FeatureOnlineStoreAdminServiceClient.deleteFeatureOnlineStore`.
      func deleteFeatureOnlineStore(withPolling: DeleteFeatureOnlineStoreRequest) async throws
        -> any GoogleCloudGax.PollableOperation<Void>

      /// See `FeatureOnlineStoreAdminServiceClient.deleteFeatureOnlineStore`.
      func deleteFeatureOnlineStore(
        name: Swift.String,
        force: Swift.Bool,
      ) async throws -> any GoogleCloudGax.PollableOperation<Void>

      /// See `FeatureOnlineStoreAdminServiceClient.createFeatureView`.
      func createFeatureView(request: CreateFeatureViewRequest) async throws
        -> GoogleLongRunning.Operation

      /// See `FeatureOnlineStoreAdminServiceClient.createFeatureView`.
      func createFeatureView(withPolling: CreateFeatureViewRequest) async throws
        -> any GoogleCloudGax.PollableOperation<FeatureView>

      /// See `FeatureOnlineStoreAdminServiceClient.createFeatureView`.
      func createFeatureView(
        parent: Swift.String,
        featureView: FeatureView?,
        featureViewId: Swift.String,
      ) async throws -> any GoogleCloudGax.PollableOperation<FeatureView>

      /// See `FeatureOnlineStoreAdminServiceClient.getFeatureView`.
      func getFeatureView(request: GetFeatureViewRequest) async throws
        -> GoogleCloudAIPlatformV1.FeatureView

      /// See `FeatureOnlineStoreAdminServiceClient.getFeatureView`.
      func getFeatureView(
        name: Swift.String,
      ) async throws -> GoogleCloudAIPlatformV1.FeatureView

      /// See `FeatureOnlineStoreAdminServiceClient.listFeatureViews`.
      func listFeatureViews(request: ListFeatureViewsRequest) async throws
        -> GoogleCloudAIPlatformV1.ListFeatureViewsResponse

      /// See `FeatureOnlineStoreAdminServiceClient.listFeatureViews`.
      func listFeatureViews(
        byItem: ListFeatureViewsRequest
      ) throws -> any AsyncSequence<FeatureView, Swift.Error>

      /// See `FeatureOnlineStoreAdminServiceClient.listFeatureViews`.
      func listFeatureViews(
        parent: Swift.String,
      ) throws -> any AsyncSequence<FeatureView, Swift.Error>

      /// See `FeatureOnlineStoreAdminServiceClient.updateFeatureView`.
      func updateFeatureView(request: UpdateFeatureViewRequest) async throws
        -> GoogleLongRunning.Operation

      /// See `FeatureOnlineStoreAdminServiceClient.updateFeatureView`.
      func updateFeatureView(withPolling: UpdateFeatureViewRequest) async throws
        -> any GoogleCloudGax.PollableOperation<FeatureView>

      /// See `FeatureOnlineStoreAdminServiceClient.updateFeatureView`.
      func updateFeatureView(
        featureView: FeatureView?,
        updateMask: GoogleCloudWkt.FieldMask?,
      ) async throws -> any GoogleCloudGax.PollableOperation<FeatureView>

      /// See `FeatureOnlineStoreAdminServiceClient.deleteFeatureView`.
      func deleteFeatureView(request: DeleteFeatureViewRequest) async throws
        -> GoogleLongRunning.Operation

      /// See `FeatureOnlineStoreAdminServiceClient.deleteFeatureView`.
      func deleteFeatureView(withPolling: DeleteFeatureViewRequest) async throws
        -> any GoogleCloudGax.PollableOperation<Void>

      /// See `FeatureOnlineStoreAdminServiceClient.deleteFeatureView`.
      func deleteFeatureView(
        name: Swift.String,
      ) async throws -> any GoogleCloudGax.PollableOperation<Void>

      /// See `FeatureOnlineStoreAdminServiceClient.syncFeatureView`.
      func syncFeatureView(request: SyncFeatureViewRequest) async throws
        -> GoogleCloudAIPlatformV1.SyncFeatureViewResponse

      /// See `FeatureOnlineStoreAdminServiceClient.syncFeatureView`.
      func syncFeatureView(
        featureView: Swift.String,
      ) async throws -> GoogleCloudAIPlatformV1.SyncFeatureViewResponse

      /// See `FeatureOnlineStoreAdminServiceClient.getFeatureViewSync`.
      func getFeatureViewSync(request: GetFeatureViewSyncRequest) async throws
        -> GoogleCloudAIPlatformV1.FeatureViewSync

      /// See `FeatureOnlineStoreAdminServiceClient.getFeatureViewSync`.
      func getFeatureViewSync(
        name: Swift.String,
      ) async throws -> GoogleCloudAIPlatformV1.FeatureViewSync

      /// See `FeatureOnlineStoreAdminServiceClient.listFeatureViewSyncs`.
      func listFeatureViewSyncs(request: ListFeatureViewSyncsRequest) async throws
        -> GoogleCloudAIPlatformV1.ListFeatureViewSyncsResponse

      /// See `FeatureOnlineStoreAdminServiceClient.listFeatureViewSyncs`.
      func listFeatureViewSyncs(
        byItem: ListFeatureViewSyncsRequest
      ) throws -> any AsyncSequence<FeatureViewSync, Swift.Error>

      /// See `FeatureOnlineStoreAdminServiceClient.listFeatureViewSyncs`.
      func listFeatureViewSyncs(
        parent: Swift.String,
      ) throws -> any AsyncSequence<FeatureViewSync, Swift.Error>

      /// See `FeatureOnlineStoreAdminServiceClient.listLocations`.
      func listLocations(request: GoogleCloudLocation.ListLocationsRequest) async throws
        -> GoogleCloudLocation.ListLocationsResponse

      /// See `FeatureOnlineStoreAdminServiceClient.listLocations`.
      func listLocations(
        byItem: GoogleCloudLocation.ListLocationsRequest
      ) throws -> any AsyncSequence<GoogleCloudLocation.Location, Swift.Error>

      /// See `FeatureOnlineStoreAdminServiceClient.getLocation`.
      func getLocation(request: GoogleCloudLocation.GetLocationRequest) async throws
        -> GoogleCloudLocation.Location

      /// See `FeatureOnlineStoreAdminServiceClient.setIamPolicy`.
      func setIamPolicy(request: GoogleIAMV1.SetIamPolicyRequest) async throws -> GoogleIAMV1.Policy

      /// See `FeatureOnlineStoreAdminServiceClient.getIamPolicy`.
      func getIamPolicy(request: GoogleIAMV1.GetIamPolicyRequest) async throws -> GoogleIAMV1.Policy

      /// See `FeatureOnlineStoreAdminServiceClient.testIamPermissions`.
      func testIamPermissions(request: GoogleIAMV1.TestIamPermissionsRequest) async throws
        -> GoogleIAMV1.TestIamPermissionsResponse

      /// See `FeatureOnlineStoreAdminServiceClient.listOperations`.
      func listOperations(request: GoogleLongRunning.ListOperationsRequest) async throws
        -> GoogleLongRunning.ListOperationsResponse

      /// See `FeatureOnlineStoreAdminServiceClient.listOperations`.
      func listOperations(
        byItem: GoogleLongRunning.ListOperationsRequest
      ) throws -> any AsyncSequence<GoogleLongRunning.Operation, Swift.Error>

      /// See `FeatureOnlineStoreAdminServiceClient.listOperations`.
      func listOperations(
        name: Swift.String,
        filter: Swift.String,
      ) throws -> any AsyncSequence<GoogleLongRunning.Operation, Swift.Error>

      /// See `FeatureOnlineStoreAdminServiceClient.deleteOperation`.
      func deleteOperation(request: GoogleLongRunning.DeleteOperationRequest) async throws

      /// See `FeatureOnlineStoreAdminServiceClient.deleteOperation`.
      func deleteOperation(
        name: Swift.String,
      ) async throws

      /// See `FeatureOnlineStoreAdminServiceClient.cancelOperation`.
      func cancelOperation(request: GoogleLongRunning.CancelOperationRequest) async throws

      /// See `FeatureOnlineStoreAdminServiceClient.cancelOperation`.
      func cancelOperation(
        name: Swift.String,
      ) async throws

      /// See `FeatureOnlineStoreAdminServiceClient.waitOperation`.
      func waitOperation(request: GoogleLongRunning.WaitOperationRequest) async throws
        -> GoogleLongRunning.Operation

      /// See `FeatureOnlineStoreAdminServiceClient.createFeatureOnlineStore`.
      func createFeatureOnlineStore(
        request: CreateFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleLongRunning.Operation

      /// See `FeatureOnlineStoreAdminServiceClient.createFeatureOnlineStore`.
      func createFeatureOnlineStore(
        withPolling: CreateFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> any GoogleCloudGax.PollableOperation<FeatureOnlineStore>

      /// See `FeatureOnlineStoreAdminServiceClient.getFeatureOnlineStore`.
      func getFeatureOnlineStore(
        request: GetFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudAIPlatformV1.FeatureOnlineStore

      /// See `FeatureOnlineStoreAdminServiceClient.listFeatureOnlineStores`.
      func listFeatureOnlineStores(
        request: ListFeatureOnlineStoresRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudAIPlatformV1.ListFeatureOnlineStoresResponse

      /// See `FeatureOnlineStoreAdminServiceClient.listFeatureOnlineStores`.
      func listFeatureOnlineStores(
        byItem: ListFeatureOnlineStoresRequest, options: GoogleCloudGax.RequestOptions
      ) throws -> any AsyncSequence<FeatureOnlineStore, Swift.Error>

      /// See `FeatureOnlineStoreAdminServiceClient.updateFeatureOnlineStore`.
      func updateFeatureOnlineStore(
        request: UpdateFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleLongRunning.Operation

      /// See `FeatureOnlineStoreAdminServiceClient.updateFeatureOnlineStore`.
      func updateFeatureOnlineStore(
        withPolling: UpdateFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> any GoogleCloudGax.PollableOperation<FeatureOnlineStore>

      /// See `FeatureOnlineStoreAdminServiceClient.deleteFeatureOnlineStore`.
      func deleteFeatureOnlineStore(
        request: DeleteFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleLongRunning.Operation

      /// See `FeatureOnlineStoreAdminServiceClient.deleteFeatureOnlineStore`.
      func deleteFeatureOnlineStore(
        withPolling: DeleteFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> any GoogleCloudGax.PollableOperation<Void>

      /// See `FeatureOnlineStoreAdminServiceClient.createFeatureView`.
      func createFeatureView(
        request: CreateFeatureViewRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleLongRunning.Operation

      /// See `FeatureOnlineStoreAdminServiceClient.createFeatureView`.
      func createFeatureView(
        withPolling: CreateFeatureViewRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> any GoogleCloudGax.PollableOperation<FeatureView>

      /// See `FeatureOnlineStoreAdminServiceClient.getFeatureView`.
      func getFeatureView(
        request: GetFeatureViewRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudAIPlatformV1.FeatureView

      /// See `FeatureOnlineStoreAdminServiceClient.listFeatureViews`.
      func listFeatureViews(
        request: ListFeatureViewsRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudAIPlatformV1.ListFeatureViewsResponse

      /// See `FeatureOnlineStoreAdminServiceClient.listFeatureViews`.
      func listFeatureViews(
        byItem: ListFeatureViewsRequest, options: GoogleCloudGax.RequestOptions
      ) throws -> any AsyncSequence<FeatureView, Swift.Error>

      /// See `FeatureOnlineStoreAdminServiceClient.updateFeatureView`.
      func updateFeatureView(
        request: UpdateFeatureViewRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleLongRunning.Operation

      /// See `FeatureOnlineStoreAdminServiceClient.updateFeatureView`.
      func updateFeatureView(
        withPolling: UpdateFeatureViewRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> any GoogleCloudGax.PollableOperation<FeatureView>

      /// See `FeatureOnlineStoreAdminServiceClient.deleteFeatureView`.
      func deleteFeatureView(
        request: DeleteFeatureViewRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleLongRunning.Operation

      /// See `FeatureOnlineStoreAdminServiceClient.deleteFeatureView`.
      func deleteFeatureView(
        withPolling: DeleteFeatureViewRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> any GoogleCloudGax.PollableOperation<Void>

      /// See `FeatureOnlineStoreAdminServiceClient.syncFeatureView`.
      func syncFeatureView(
        request: SyncFeatureViewRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudAIPlatformV1.SyncFeatureViewResponse

      /// See `FeatureOnlineStoreAdminServiceClient.getFeatureViewSync`.
      func getFeatureViewSync(
        request: GetFeatureViewSyncRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudAIPlatformV1.FeatureViewSync

      /// See `FeatureOnlineStoreAdminServiceClient.listFeatureViewSyncs`.
      func listFeatureViewSyncs(
        request: ListFeatureViewSyncsRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudAIPlatformV1.ListFeatureViewSyncsResponse

      /// See `FeatureOnlineStoreAdminServiceClient.listFeatureViewSyncs`.
      func listFeatureViewSyncs(
        byItem: ListFeatureViewSyncsRequest, options: GoogleCloudGax.RequestOptions
      ) throws -> any AsyncSequence<FeatureViewSync, Swift.Error>

      /// See `FeatureOnlineStoreAdminServiceClient.listLocations`.
      func listLocations(
        request: GoogleCloudLocation.ListLocationsRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudLocation.ListLocationsResponse

      /// See `FeatureOnlineStoreAdminServiceClient.listLocations`.
      func listLocations(
        byItem: GoogleCloudLocation.ListLocationsRequest, options: GoogleCloudGax.RequestOptions
      ) throws -> any AsyncSequence<GoogleCloudLocation.Location, Swift.Error>

      /// See `FeatureOnlineStoreAdminServiceClient.getLocation`.
      func getLocation(
        request: GoogleCloudLocation.GetLocationRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudLocation.Location

      /// See `FeatureOnlineStoreAdminServiceClient.setIamPolicy`.
      func setIamPolicy(
        request: GoogleIAMV1.SetIamPolicyRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleIAMV1.Policy

      /// See `FeatureOnlineStoreAdminServiceClient.getIamPolicy`.
      func getIamPolicy(
        request: GoogleIAMV1.GetIamPolicyRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleIAMV1.Policy

      /// See `FeatureOnlineStoreAdminServiceClient.testIamPermissions`.
      func testIamPermissions(
        request: GoogleIAMV1.TestIamPermissionsRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleIAMV1.TestIamPermissionsResponse

      /// See `FeatureOnlineStoreAdminServiceClient.listOperations`.
      func listOperations(
        request: GoogleLongRunning.ListOperationsRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleLongRunning.ListOperationsResponse

      /// See `FeatureOnlineStoreAdminServiceClient.listOperations`.
      func listOperations(
        byItem: GoogleLongRunning.ListOperationsRequest, options: GoogleCloudGax.RequestOptions
      ) throws -> any AsyncSequence<GoogleLongRunning.Operation, Swift.Error>

      /// See `FeatureOnlineStoreAdminServiceClient.deleteOperation`.
      func deleteOperation(
        request: GoogleLongRunning.DeleteOperationRequest, options: GoogleCloudGax.RequestOptions
      ) async throws

      /// See `FeatureOnlineStoreAdminServiceClient.cancelOperation`.
      func cancelOperation(
        request: GoogleLongRunning.CancelOperationRequest, options: GoogleCloudGax.RequestOptions
      ) async throws

      /// See `FeatureOnlineStoreAdminServiceClient.waitOperation`.
      func waitOperation(
        request: GoogleLongRunning.WaitOperationRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleLongRunning.Operation
    }
  }

  // Default implementations
  extension Clients.FeatureOnlineStoreAdminServiceProtocol {
    public func createFeatureOnlineStore(request: CreateFeatureOnlineStoreRequest) async throws
      -> GoogleLongRunning.Operation
    {
      try await self.createFeatureOnlineStore(request: request, options: .init())
    }

    public func createFeatureOnlineStore(
      request: CreateFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleLongRunning.Operation {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func createFeatureOnlineStore(withPolling: CreateFeatureOnlineStoreRequest) async throws
      -> any GoogleCloudGax.PollableOperation<FeatureOnlineStore>
    {
      try await self.createFeatureOnlineStore(withPolling: withPolling, options: .init())
    }

    public func createFeatureOnlineStore(
      withPolling: CreateFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> any GoogleCloudGax.PollableOperation<FeatureOnlineStore> {
      let poll = {
        () async throws -> GoogleCloudGax._PollableOperationImpl<FeatureOnlineStore>.State in
        throw GoogleCloudGax.RequestError.unimplemented
      }
      return GoogleCloudGax._PollableOperationImpl(
        initialState: .init(done: false, result: nil), poll: poll)
    }

    public func createFeatureOnlineStore(
      parent: Swift.String,
      featureOnlineStore: FeatureOnlineStore?,
      featureOnlineStoreId: Swift.String,
    ) async throws -> any GoogleCloudGax.PollableOperation<FeatureOnlineStore> {
      let request = CreateFeatureOnlineStoreRequest().with {
        $0.parent = parent
        $0.featureOnlineStore = featureOnlineStore
        $0.featureOnlineStoreId = featureOnlineStoreId
      }
      return try await self.createFeatureOnlineStore(withPolling: request)
    }

    public func getFeatureOnlineStore(request: GetFeatureOnlineStoreRequest) async throws
      -> GoogleCloudAIPlatformV1.FeatureOnlineStore
    {
      try await self.getFeatureOnlineStore(request: request, options: .init())
    }

    public func getFeatureOnlineStore(
      request: GetFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleCloudAIPlatformV1.FeatureOnlineStore {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func getFeatureOnlineStore(
      name: Swift.String,
    ) async throws -> GoogleCloudAIPlatformV1.FeatureOnlineStore {
      let request = GetFeatureOnlineStoreRequest().with {
        $0.name = name
      }
      return try await self.getFeatureOnlineStore(request: request)
    }

    public func listFeatureOnlineStores(request: ListFeatureOnlineStoresRequest) async throws
      -> GoogleCloudAIPlatformV1.ListFeatureOnlineStoresResponse
    {
      try await self.listFeatureOnlineStores(request: request, options: .init())
    }

    public func listFeatureOnlineStores(
      request: ListFeatureOnlineStoresRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleCloudAIPlatformV1.ListFeatureOnlineStoresResponse {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func listFeatureOnlineStores(
      byItem: ListFeatureOnlineStoresRequest
    ) throws -> any AsyncSequence<FeatureOnlineStore, Swift.Error> {
      try self.listFeatureOnlineStores(byItem: byItem, options: .init())
    }

    public func listFeatureOnlineStores(
      byItem: ListFeatureOnlineStoresRequest, options: GoogleCloudGax.RequestOptions
    ) throws -> any AsyncSequence<FeatureOnlineStore, Swift.Error> {
      let listRpc = {
        (token: Swift.String) async throws
          -> GoogleCloudAIPlatformV1.ListFeatureOnlineStoresResponse in
        throw GoogleCloudGax.RequestError.unimplemented
      }
      return GoogleCloudGax.PaginatedResponseSequence(listRpc: listRpc)
    }

    public func listFeatureOnlineStores(
      parent: Swift.String,
    ) throws -> any AsyncSequence<FeatureOnlineStore, Swift.Error> {
      let request = ListFeatureOnlineStoresRequest().with {
        $0.parent = parent
      }
      return try self.listFeatureOnlineStores(byItem: request)
    }

    public func updateFeatureOnlineStore(request: UpdateFeatureOnlineStoreRequest) async throws
      -> GoogleLongRunning.Operation
    {
      try await self.updateFeatureOnlineStore(request: request, options: .init())
    }

    public func updateFeatureOnlineStore(
      request: UpdateFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleLongRunning.Operation {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func updateFeatureOnlineStore(withPolling: UpdateFeatureOnlineStoreRequest) async throws
      -> any GoogleCloudGax.PollableOperation<FeatureOnlineStore>
    {
      try await self.updateFeatureOnlineStore(withPolling: withPolling, options: .init())
    }

    public func updateFeatureOnlineStore(
      withPolling: UpdateFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> any GoogleCloudGax.PollableOperation<FeatureOnlineStore> {
      let poll = {
        () async throws -> GoogleCloudGax._PollableOperationImpl<FeatureOnlineStore>.State in
        throw GoogleCloudGax.RequestError.unimplemented
      }
      return GoogleCloudGax._PollableOperationImpl(
        initialState: .init(done: false, result: nil), poll: poll)
    }

    public func updateFeatureOnlineStore(
      featureOnlineStore: FeatureOnlineStore?,
      updateMask: GoogleCloudWkt.FieldMask?,
    ) async throws -> any GoogleCloudGax.PollableOperation<FeatureOnlineStore> {
      let request = UpdateFeatureOnlineStoreRequest().with {
        $0.featureOnlineStore = featureOnlineStore
        $0.updateMask = updateMask
      }
      return try await self.updateFeatureOnlineStore(withPolling: request)
    }

    public func deleteFeatureOnlineStore(request: DeleteFeatureOnlineStoreRequest) async throws
      -> GoogleLongRunning.Operation
    {
      try await self.deleteFeatureOnlineStore(request: request, options: .init())
    }

    public func deleteFeatureOnlineStore(
      request: DeleteFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleLongRunning.Operation {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func deleteFeatureOnlineStore(withPolling: DeleteFeatureOnlineStoreRequest) async throws
      -> any GoogleCloudGax.PollableOperation<Void>
    {
      try await self.deleteFeatureOnlineStore(withPolling: withPolling, options: .init())
    }

    public func deleteFeatureOnlineStore(
      withPolling: DeleteFeatureOnlineStoreRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> any GoogleCloudGax.PollableOperation<Void> {
      let poll = { () async throws -> GoogleCloudGax._PollableOperationImpl<Void>.State in
        throw GoogleCloudGax.RequestError.unimplemented
      }
      return GoogleCloudGax._PollableOperationImpl(
        initialState: .init(done: false, result: nil), poll: poll)
    }

    public func deleteFeatureOnlineStore(
      name: Swift.String,
      force: Swift.Bool,
    ) async throws -> any GoogleCloudGax.PollableOperation<Void> {
      let request = DeleteFeatureOnlineStoreRequest().with {
        $0.name = name
        $0.force = force
      }
      return try await self.deleteFeatureOnlineStore(withPolling: request)
    }

    public func createFeatureView(request: CreateFeatureViewRequest) async throws
      -> GoogleLongRunning.Operation
    {
      try await self.createFeatureView(request: request, options: .init())
    }

    public func createFeatureView(
      request: CreateFeatureViewRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleLongRunning.Operation {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func createFeatureView(withPolling: CreateFeatureViewRequest) async throws
      -> any GoogleCloudGax.PollableOperation<FeatureView>
    {
      try await self.createFeatureView(withPolling: withPolling, options: .init())
    }

    public func createFeatureView(
      withPolling: CreateFeatureViewRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> any GoogleCloudGax.PollableOperation<FeatureView> {
      let poll = { () async throws -> GoogleCloudGax._PollableOperationImpl<FeatureView>.State in
        throw GoogleCloudGax.RequestError.unimplemented
      }
      return GoogleCloudGax._PollableOperationImpl(
        initialState: .init(done: false, result: nil), poll: poll)
    }

    public func createFeatureView(
      parent: Swift.String,
      featureView: FeatureView?,
      featureViewId: Swift.String,
    ) async throws -> any GoogleCloudGax.PollableOperation<FeatureView> {
      let request = CreateFeatureViewRequest().with {
        $0.parent = parent
        $0.featureView = featureView
        $0.featureViewId = featureViewId
      }
      return try await self.createFeatureView(withPolling: request)
    }

    public func getFeatureView(request: GetFeatureViewRequest) async throws
      -> GoogleCloudAIPlatformV1.FeatureView
    {
      try await self.getFeatureView(request: request, options: .init())
    }

    public func getFeatureView(
      request: GetFeatureViewRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleCloudAIPlatformV1.FeatureView {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func getFeatureView(
      name: Swift.String,
    ) async throws -> GoogleCloudAIPlatformV1.FeatureView {
      let request = GetFeatureViewRequest().with {
        $0.name = name
      }
      return try await self.getFeatureView(request: request)
    }

    public func listFeatureViews(request: ListFeatureViewsRequest) async throws
      -> GoogleCloudAIPlatformV1.ListFeatureViewsResponse
    {
      try await self.listFeatureViews(request: request, options: .init())
    }

    public func listFeatureViews(
      request: ListFeatureViewsRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleCloudAIPlatformV1.ListFeatureViewsResponse {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func listFeatureViews(
      byItem: ListFeatureViewsRequest
    ) throws -> any AsyncSequence<FeatureView, Swift.Error> {
      try self.listFeatureViews(byItem: byItem, options: .init())
    }

    public func listFeatureViews(
      byItem: ListFeatureViewsRequest, options: GoogleCloudGax.RequestOptions
    ) throws -> any AsyncSequence<FeatureView, Swift.Error> {
      let listRpc = {
        (token: Swift.String) async throws -> GoogleCloudAIPlatformV1.ListFeatureViewsResponse in
        throw GoogleCloudGax.RequestError.unimplemented
      }
      return GoogleCloudGax.PaginatedResponseSequence(listRpc: listRpc)
    }

    public func listFeatureViews(
      parent: Swift.String,
    ) throws -> any AsyncSequence<FeatureView, Swift.Error> {
      let request = ListFeatureViewsRequest().with {
        $0.parent = parent
      }
      return try self.listFeatureViews(byItem: request)
    }

    public func updateFeatureView(request: UpdateFeatureViewRequest) async throws
      -> GoogleLongRunning.Operation
    {
      try await self.updateFeatureView(request: request, options: .init())
    }

    public func updateFeatureView(
      request: UpdateFeatureViewRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleLongRunning.Operation {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func updateFeatureView(withPolling: UpdateFeatureViewRequest) async throws
      -> any GoogleCloudGax.PollableOperation<FeatureView>
    {
      try await self.updateFeatureView(withPolling: withPolling, options: .init())
    }

    public func updateFeatureView(
      withPolling: UpdateFeatureViewRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> any GoogleCloudGax.PollableOperation<FeatureView> {
      let poll = { () async throws -> GoogleCloudGax._PollableOperationImpl<FeatureView>.State in
        throw GoogleCloudGax.RequestError.unimplemented
      }
      return GoogleCloudGax._PollableOperationImpl(
        initialState: .init(done: false, result: nil), poll: poll)
    }

    public func updateFeatureView(
      featureView: FeatureView?,
      updateMask: GoogleCloudWkt.FieldMask?,
    ) async throws -> any GoogleCloudGax.PollableOperation<FeatureView> {
      let request = UpdateFeatureViewRequest().with {
        $0.featureView = featureView
        $0.updateMask = updateMask
      }
      return try await self.updateFeatureView(withPolling: request)
    }

    public func deleteFeatureView(request: DeleteFeatureViewRequest) async throws
      -> GoogleLongRunning.Operation
    {
      try await self.deleteFeatureView(request: request, options: .init())
    }

    public func deleteFeatureView(
      request: DeleteFeatureViewRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleLongRunning.Operation {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func deleteFeatureView(withPolling: DeleteFeatureViewRequest) async throws
      -> any GoogleCloudGax.PollableOperation<Void>
    {
      try await self.deleteFeatureView(withPolling: withPolling, options: .init())
    }

    public func deleteFeatureView(
      withPolling: DeleteFeatureViewRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> any GoogleCloudGax.PollableOperation<Void> {
      let poll = { () async throws -> GoogleCloudGax._PollableOperationImpl<Void>.State in
        throw GoogleCloudGax.RequestError.unimplemented
      }
      return GoogleCloudGax._PollableOperationImpl(
        initialState: .init(done: false, result: nil), poll: poll)
    }

    public func deleteFeatureView(
      name: Swift.String,
    ) async throws -> any GoogleCloudGax.PollableOperation<Void> {
      let request = DeleteFeatureViewRequest().with {
        $0.name = name
      }
      return try await self.deleteFeatureView(withPolling: request)
    }

    public func syncFeatureView(request: SyncFeatureViewRequest) async throws
      -> GoogleCloudAIPlatformV1.SyncFeatureViewResponse
    {
      try await self.syncFeatureView(request: request, options: .init())
    }

    public func syncFeatureView(
      request: SyncFeatureViewRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleCloudAIPlatformV1.SyncFeatureViewResponse {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func syncFeatureView(
      featureView: Swift.String,
    ) async throws -> GoogleCloudAIPlatformV1.SyncFeatureViewResponse {
      let request = SyncFeatureViewRequest().with {
        $0.featureView = featureView
      }
      return try await self.syncFeatureView(request: request)
    }

    public func getFeatureViewSync(request: GetFeatureViewSyncRequest) async throws
      -> GoogleCloudAIPlatformV1.FeatureViewSync
    {
      try await self.getFeatureViewSync(request: request, options: .init())
    }

    public func getFeatureViewSync(
      request: GetFeatureViewSyncRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleCloudAIPlatformV1.FeatureViewSync {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func getFeatureViewSync(
      name: Swift.String,
    ) async throws -> GoogleCloudAIPlatformV1.FeatureViewSync {
      let request = GetFeatureViewSyncRequest().with {
        $0.name = name
      }
      return try await self.getFeatureViewSync(request: request)
    }

    public func listFeatureViewSyncs(request: ListFeatureViewSyncsRequest) async throws
      -> GoogleCloudAIPlatformV1.ListFeatureViewSyncsResponse
    {
      try await self.listFeatureViewSyncs(request: request, options: .init())
    }

    public func listFeatureViewSyncs(
      request: ListFeatureViewSyncsRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleCloudAIPlatformV1.ListFeatureViewSyncsResponse {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func listFeatureViewSyncs(
      byItem: ListFeatureViewSyncsRequest
    ) throws -> any AsyncSequence<FeatureViewSync, Swift.Error> {
      try self.listFeatureViewSyncs(byItem: byItem, options: .init())
    }

    public func listFeatureViewSyncs(
      byItem: ListFeatureViewSyncsRequest, options: GoogleCloudGax.RequestOptions
    ) throws -> any AsyncSequence<FeatureViewSync, Swift.Error> {
      let listRpc = {
        (token: Swift.String) async throws -> GoogleCloudAIPlatformV1.ListFeatureViewSyncsResponse
        in
        throw GoogleCloudGax.RequestError.unimplemented
      }
      return GoogleCloudGax.PaginatedResponseSequence(listRpc: listRpc)
    }

    public func listFeatureViewSyncs(
      parent: Swift.String,
    ) throws -> any AsyncSequence<FeatureViewSync, Swift.Error> {
      let request = ListFeatureViewSyncsRequest().with {
        $0.parent = parent
      }
      return try self.listFeatureViewSyncs(byItem: request)
    }

    public func listLocations(request: GoogleCloudLocation.ListLocationsRequest) async throws
      -> GoogleCloudLocation.ListLocationsResponse
    {
      try await self.listLocations(request: request, options: .init())
    }

    public func listLocations(
      request: GoogleCloudLocation.ListLocationsRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleCloudLocation.ListLocationsResponse {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func listLocations(
      byItem: GoogleCloudLocation.ListLocationsRequest
    ) throws -> any AsyncSequence<GoogleCloudLocation.Location, Swift.Error> {
      try self.listLocations(byItem: byItem, options: .init())
    }

    public func listLocations(
      byItem: GoogleCloudLocation.ListLocationsRequest, options: GoogleCloudGax.RequestOptions
    ) throws -> any AsyncSequence<GoogleCloudLocation.Location, Swift.Error> {
      let listRpc = {
        (token: Swift.String) async throws -> GoogleCloudLocation.ListLocationsResponse in
        throw GoogleCloudGax.RequestError.unimplemented
      }
      return GoogleCloudGax.PaginatedResponseSequence(listRpc: listRpc)
    }

    public func getLocation(request: GoogleCloudLocation.GetLocationRequest) async throws
      -> GoogleCloudLocation.Location
    {
      try await self.getLocation(request: request, options: .init())
    }

    public func getLocation(
      request: GoogleCloudLocation.GetLocationRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleCloudLocation.Location {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func setIamPolicy(request: GoogleIAMV1.SetIamPolicyRequest) async throws
      -> GoogleIAMV1.Policy
    {
      try await self.setIamPolicy(request: request, options: .init())
    }

    public func setIamPolicy(
      request: GoogleIAMV1.SetIamPolicyRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleIAMV1.Policy {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func getIamPolicy(request: GoogleIAMV1.GetIamPolicyRequest) async throws
      -> GoogleIAMV1.Policy
    {
      try await self.getIamPolicy(request: request, options: .init())
    }

    public func getIamPolicy(
      request: GoogleIAMV1.GetIamPolicyRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleIAMV1.Policy {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func testIamPermissions(request: GoogleIAMV1.TestIamPermissionsRequest) async throws
      -> GoogleIAMV1.TestIamPermissionsResponse
    {
      try await self.testIamPermissions(request: request, options: .init())
    }

    public func testIamPermissions(
      request: GoogleIAMV1.TestIamPermissionsRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleIAMV1.TestIamPermissionsResponse {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func listOperations(request: GoogleLongRunning.ListOperationsRequest) async throws
      -> GoogleLongRunning.ListOperationsResponse
    {
      try await self.listOperations(request: request, options: .init())
    }

    public func listOperations(
      request: GoogleLongRunning.ListOperationsRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleLongRunning.ListOperationsResponse {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func listOperations(
      byItem: GoogleLongRunning.ListOperationsRequest
    ) throws -> any AsyncSequence<GoogleLongRunning.Operation, Swift.Error> {
      try self.listOperations(byItem: byItem, options: .init())
    }

    public func listOperations(
      byItem: GoogleLongRunning.ListOperationsRequest, options: GoogleCloudGax.RequestOptions
    ) throws -> any AsyncSequence<GoogleLongRunning.Operation, Swift.Error> {
      let listRpc = {
        (token: Swift.String) async throws -> GoogleLongRunning.ListOperationsResponse in
        throw GoogleCloudGax.RequestError.unimplemented
      }
      return GoogleCloudGax.PaginatedResponseSequence(listRpc: listRpc)
    }

    public func listOperations(
      name: Swift.String,
      filter: Swift.String,
    ) throws -> any AsyncSequence<GoogleLongRunning.Operation, Swift.Error> {
      let request = GoogleLongRunning.ListOperationsRequest().with {
        $0.name = name
        $0.filter = filter
      }
      return try self.listOperations(byItem: request)
    }

    public func getOperation(request: GoogleLongRunning.GetOperationRequest) async throws
      -> GoogleLongRunning.Operation
    {
      try await self.getOperation(request: request, options: .init())
    }

    public func getOperation(
      request: GoogleLongRunning.GetOperationRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleLongRunning.Operation {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func getOperation(
      name: Swift.String,
    ) async throws -> GoogleLongRunning.Operation {
      let request = GoogleLongRunning.GetOperationRequest().with {
        $0.name = name
      }
      return try await self.getOperation(request: request)
    }

    public func deleteOperation(request: GoogleLongRunning.DeleteOperationRequest) async throws {
      try await self.deleteOperation(request: request, options: .init())
    }

    public func deleteOperation(
      request: GoogleLongRunning.DeleteOperationRequest, options: GoogleCloudGax.RequestOptions
    ) async throws {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func deleteOperation(
      name: Swift.String,
    ) async throws {
      let request = GoogleLongRunning.DeleteOperationRequest().with {
        $0.name = name
      }
      try await self.deleteOperation(request: request)
    }

    public func cancelOperation(request: GoogleLongRunning.CancelOperationRequest) async throws {
      try await self.cancelOperation(request: request, options: .init())
    }

    public func cancelOperation(
      request: GoogleLongRunning.CancelOperationRequest, options: GoogleCloudGax.RequestOptions
    ) async throws {
      throw GoogleCloudGax.RequestError.unimplemented
    }

    public func cancelOperation(
      name: Swift.String,
    ) async throws {
      let request = GoogleLongRunning.CancelOperationRequest().with {
        $0.name = name
      }
      try await self.cancelOperation(request: request)
    }

    public func waitOperation(request: GoogleLongRunning.WaitOperationRequest) async throws
      -> GoogleLongRunning.Operation
    {
      try await self.waitOperation(request: request, options: .init())
    }

    public func waitOperation(
      request: GoogleLongRunning.WaitOperationRequest, options: GoogleCloudGax.RequestOptions
    ) async throws -> GoogleLongRunning.Operation {
      throw GoogleCloudGax.RequestError.unimplemented
    }
  }
#endif
