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.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionApproves a query template.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) Creates a new data exchange.createListing(CreateListingRequest request) Creates a new listing.Creates a new QueryTemplatecom.google.protobuf.EmptyDeletes an existing data exchange.com.google.protobuf.EmptydeleteListing(DeleteListingRequest request) Deletes a listing.com.google.protobuf.EmptyDeletes a query template.Deletes a subscription.getDataExchange(GetDataExchangeRequest request) Gets the details of a data exchange.com.google.iam.v1.PolicygetIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) Gets the IAM policy.getListing(GetListingRequest request) Gets the details of a listing.getQueryTemplate(GetQueryTemplateRequest request) Gets a QueryTemplategetSubscription(GetSubscriptionRequest request) Gets the details of a Subscription.Lists all data exchanges in a given project and location.listListings(ListListingsRequest request) Lists all listings in a given project and location.Lists all data exchanges from projects in a given organization and location.Lists all QueryTemplates in a given project and location.Lists all subscriptions on a given Data Exchange or Listing.Lists all subscriptions in a given project and location.Refreshes a Subscription to a Data Exchange.Revokes a given subscription.com.google.iam.v1.PolicysetIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) Sets the IAM policy.Submits a query template for approval.Creates a Subscription to a Data Clean Room.subscribeListing(SubscribeListingRequest request) Subscribes to a listing.com.google.iam.v1.TestIamPermissionsResponsetestIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) Returns the permissions that a caller has.Updates an existing data exchange.updateListing(UpdateListingRequest request) Updates an existing listing.Updates an existing QueryTemplateMethods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected AnalyticsHubServiceGrpc.AnalyticsHubServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.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
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
Gets the details of a listing.
- Throws:
io.grpc.StatusException
-
createListing
Creates a new listing.
- Throws:
io.grpc.StatusException
-
updateListing
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
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
-
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
-