Class AnalyticsHubServiceGrpc.AnalyticsHubServiceBlockingV2Stub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<AnalyticsHubServiceGrpc.AnalyticsHubServiceBlockingV2Stub>
com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceGrpc.AnalyticsHubServiceBlockingV2Stub
Enclosing class:
AnalyticsHubServiceGrpc

public static final class AnalyticsHubServiceGrpc.AnalyticsHubServiceBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<AnalyticsHubServiceGrpc.AnalyticsHubServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service AnalyticsHubService.
 The `AnalyticsHubService` API facilitates data sharing within and across
 organizations. It allows data providers to publish listings that reference
 shared datasets. With Analytics Hub, users can discover and search for
 listings that they have access to. Subscribers can view and subscribe to
 listings. When you subscribe to a listing, Analytics Hub creates a linked
 dataset in your project.
 
  • Method Details

    • build

      protected AnalyticsHubServiceGrpc.AnalyticsHubServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<AnalyticsHubServiceGrpc.AnalyticsHubServiceBlockingV2Stub>
    • listDataExchanges

      public ListDataExchangesResponse listDataExchanges(ListDataExchangesRequest request) throws io.grpc.StatusException
       Lists all data exchanges in a given project and location.
       
      Throws:
      io.grpc.StatusException
    • listOrgDataExchanges

      public ListOrgDataExchangesResponse listOrgDataExchanges(ListOrgDataExchangesRequest request) throws io.grpc.StatusException
       Lists all data exchanges from projects in a given organization and
       location.
       
      Throws:
      io.grpc.StatusException
    • getDataExchange

      public DataExchange getDataExchange(GetDataExchangeRequest request) throws io.grpc.StatusException
       Gets the details of a data exchange.
       
      Throws:
      io.grpc.StatusException
    • createDataExchange

      public DataExchange createDataExchange(CreateDataExchangeRequest request) throws io.grpc.StatusException
       Creates a new data exchange.
       
      Throws:
      io.grpc.StatusException
    • updateDataExchange

      public DataExchange updateDataExchange(UpdateDataExchangeRequest request) throws io.grpc.StatusException
       Updates an existing data exchange.
       
      Throws:
      io.grpc.StatusException
    • deleteDataExchange

      public com.google.protobuf.Empty deleteDataExchange(DeleteDataExchangeRequest request) throws io.grpc.StatusException
       Deletes an existing data exchange.
       
      Throws:
      io.grpc.StatusException
    • listListings

      public ListListingsResponse listListings(ListListingsRequest request) throws io.grpc.StatusException
       Lists all listings in a given project and location.
       
      Throws:
      io.grpc.StatusException
    • getListing

      public Listing getListing(GetListingRequest request) throws io.grpc.StatusException
       Gets the details of a listing.
       
      Throws:
      io.grpc.StatusException
    • createListing

      public Listing createListing(CreateListingRequest request) throws io.grpc.StatusException
       Creates a new listing.
       
      Throws:
      io.grpc.StatusException
    • updateListing

      public Listing updateListing(UpdateListingRequest request) throws io.grpc.StatusException
       Updates an existing listing.
       
      Throws:
      io.grpc.StatusException
    • deleteListing

      public com.google.protobuf.Empty deleteListing(DeleteListingRequest request) throws io.grpc.StatusException
       Deletes a listing.
       
      Throws:
      io.grpc.StatusException
    • subscribeListing

      public SubscribeListingResponse subscribeListing(SubscribeListingRequest request) throws io.grpc.StatusException
       Subscribes to a listing.
       Currently, with Analytics Hub, you can create listings that
       reference only BigQuery datasets.
       Upon subscription to a listing for a BigQuery dataset, Analytics Hub
       creates a linked dataset in the subscriber's project.
       
      Throws:
      io.grpc.StatusException
    • subscribeDataExchange

      public Operation subscribeDataExchange(SubscribeDataExchangeRequest request) throws io.grpc.StatusException
       Creates a Subscription to a Data Clean Room. This is a
       long-running operation as it will create one or more linked datasets.
       Throws a Bad Request error if the Data Exchange does not contain any
       listings.
       
      Throws:
      io.grpc.StatusException
    • refreshSubscription

      public Operation refreshSubscription(RefreshSubscriptionRequest request) throws io.grpc.StatusException
       Refreshes a Subscription to a Data Exchange. A Data Exchange can become
       stale when a publisher adds or removes data. This is a long-running
       operation as it may create many linked datasets.
       
      Throws:
      io.grpc.StatusException
    • getSubscription

      public Subscription getSubscription(GetSubscriptionRequest request) throws io.grpc.StatusException
       Gets the details of a Subscription.
       
      Throws:
      io.grpc.StatusException
    • listSubscriptions

      public ListSubscriptionsResponse listSubscriptions(ListSubscriptionsRequest request) throws io.grpc.StatusException
       Lists all subscriptions in a given project and location.
       
      Throws:
      io.grpc.StatusException
    • listSharedResourceSubscriptions

      public ListSharedResourceSubscriptionsResponse listSharedResourceSubscriptions(ListSharedResourceSubscriptionsRequest request) throws io.grpc.StatusException
       Lists all subscriptions on a given Data Exchange or Listing.
       
      Throws:
      io.grpc.StatusException
    • revokeSubscription

      public RevokeSubscriptionResponse revokeSubscription(RevokeSubscriptionRequest request) throws io.grpc.StatusException
       Revokes a given subscription.
       
      Throws:
      io.grpc.StatusException
    • deleteSubscription

      public Operation deleteSubscription(DeleteSubscriptionRequest request) throws io.grpc.StatusException
       Deletes a subscription.
       
      Throws:
      io.grpc.StatusException
    • getIamPolicy

      public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) throws io.grpc.StatusException
       Gets the IAM policy.
       
      Throws:
      io.grpc.StatusException
    • setIamPolicy

      public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) throws io.grpc.StatusException
       Sets the IAM policy.
       
      Throws:
      io.grpc.StatusException
    • testIamPermissions

      public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException
       Returns the permissions that a caller has.
       
      Throws:
      io.grpc.StatusException
    • createQueryTemplate

      public QueryTemplate createQueryTemplate(CreateQueryTemplateRequest request) throws io.grpc.StatusException
       Creates a new QueryTemplate
       
      Throws:
      io.grpc.StatusException
    • getQueryTemplate

      public QueryTemplate getQueryTemplate(GetQueryTemplateRequest request) throws io.grpc.StatusException
       Gets a QueryTemplate
       
      Throws:
      io.grpc.StatusException
    • listQueryTemplates

      public ListQueryTemplatesResponse listQueryTemplates(ListQueryTemplatesRequest request) throws io.grpc.StatusException
       Lists all QueryTemplates in a given project and location.
       
      Throws:
      io.grpc.StatusException
    • updateQueryTemplate

      public QueryTemplate updateQueryTemplate(UpdateQueryTemplateRequest request) throws io.grpc.StatusException
       Updates an existing QueryTemplate
       
      Throws:
      io.grpc.StatusException
    • deleteQueryTemplate

      public com.google.protobuf.Empty deleteQueryTemplate(DeleteQueryTemplateRequest request) throws io.grpc.StatusException
       Deletes a query template.
       
      Throws:
      io.grpc.StatusException
    • submitQueryTemplate

      public QueryTemplate submitQueryTemplate(SubmitQueryTemplateRequest request) throws io.grpc.StatusException
       Submits a query template for approval.
       
      Throws:
      io.grpc.StatusException
    • approveQueryTemplate

      public QueryTemplate approveQueryTemplate(ApproveQueryTemplateRequest request) throws io.grpc.StatusException
       Approves a query template.
       
      Throws:
      io.grpc.StatusException