Class AnalyticsHubServiceGrpc.AnalyticsHubServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<AnalyticsHubServiceGrpc.AnalyticsHubServiceStub>
com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceGrpc.AnalyticsHubServiceStub
- Enclosing class:
- AnalyticsHubServiceGrpc
public static final class AnalyticsHubServiceGrpc.AnalyticsHubServiceStub
extends io.grpc.stub.AbstractAsyncStub<AnalyticsHubServiceGrpc.AnalyticsHubServiceStub>
A stub to allow clients to do asynchronous 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 TypeMethodDescriptionvoidapproveQueryTemplate(ApproveQueryTemplateRequest request, io.grpc.stub.StreamObserver<QueryTemplate> responseObserver) Approves a query template.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidcreateDataExchange(CreateDataExchangeRequest request, io.grpc.stub.StreamObserver<DataExchange> responseObserver) Creates a new data exchange.voidcreateListing(CreateListingRequest request, io.grpc.stub.StreamObserver<Listing> responseObserver) Creates a new listing.voidcreateQueryTemplate(CreateQueryTemplateRequest request, io.grpc.stub.StreamObserver<QueryTemplate> responseObserver) Creates a new QueryTemplatevoiddeleteDataExchange(DeleteDataExchangeRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes an existing data exchange.voiddeleteListing(DeleteListingRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes a listing.voiddeleteQueryTemplate(DeleteQueryTemplateRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes a query template.voiddeleteSubscription(DeleteSubscriptionRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Deletes a subscription.voidgetDataExchange(GetDataExchangeRequest request, io.grpc.stub.StreamObserver<DataExchange> responseObserver) Gets the details of a data exchange.voidgetIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) Gets the IAM policy.voidgetListing(GetListingRequest request, io.grpc.stub.StreamObserver<Listing> responseObserver) Gets the details of a listing.voidgetQueryTemplate(GetQueryTemplateRequest request, io.grpc.stub.StreamObserver<QueryTemplate> responseObserver) Gets a QueryTemplatevoidgetSubscription(GetSubscriptionRequest request, io.grpc.stub.StreamObserver<Subscription> responseObserver) Gets the details of a Subscription.voidlistDataExchanges(ListDataExchangesRequest request, io.grpc.stub.StreamObserver<ListDataExchangesResponse> responseObserver) Lists all data exchanges in a given project and location.voidlistListings(ListListingsRequest request, io.grpc.stub.StreamObserver<ListListingsResponse> responseObserver) Lists all listings in a given project and location.voidlistOrgDataExchanges(ListOrgDataExchangesRequest request, io.grpc.stub.StreamObserver<ListOrgDataExchangesResponse> responseObserver) Lists all data exchanges from projects in a given organization and location.voidlistQueryTemplates(ListQueryTemplatesRequest request, io.grpc.stub.StreamObserver<ListQueryTemplatesResponse> responseObserver) Lists all QueryTemplates in a given project and location.voidlistSharedResourceSubscriptions(ListSharedResourceSubscriptionsRequest request, io.grpc.stub.StreamObserver<ListSharedResourceSubscriptionsResponse> responseObserver) Lists all subscriptions on a given Data Exchange or Listing.voidlistSubscriptions(ListSubscriptionsRequest request, io.grpc.stub.StreamObserver<ListSubscriptionsResponse> responseObserver) Lists all subscriptions in a given project and location.voidrefreshSubscription(RefreshSubscriptionRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Refreshes a Subscription to a Data Exchange.voidrevokeSubscription(RevokeSubscriptionRequest request, io.grpc.stub.StreamObserver<RevokeSubscriptionResponse> responseObserver) Revokes a given subscription.voidsetIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) Sets the IAM policy.voidsubmitQueryTemplate(SubmitQueryTemplateRequest request, io.grpc.stub.StreamObserver<QueryTemplate> responseObserver) Submits a query template for approval.voidsubscribeDataExchange(SubscribeDataExchangeRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Creates a Subscription to a Data Clean Room.voidsubscribeListing(SubscribeListingRequest request, io.grpc.stub.StreamObserver<SubscribeListingResponse> responseObserver) Subscribes to a listing.voidtestIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> responseObserver) Returns the permissions that a caller has.voidupdateDataExchange(UpdateDataExchangeRequest request, io.grpc.stub.StreamObserver<DataExchange> responseObserver) Updates an existing data exchange.voidupdateListing(UpdateListingRequest request, io.grpc.stub.StreamObserver<Listing> responseObserver) Updates an existing listing.voidupdateQueryTemplate(UpdateQueryTemplateRequest request, io.grpc.stub.StreamObserver<QueryTemplate> responseObserver) Updates an existing QueryTemplateMethods inherited from class io.grpc.stub.AbstractAsyncStub
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.AnalyticsHubServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<AnalyticsHubServiceGrpc.AnalyticsHubServiceStub>
-
listDataExchanges
public void listDataExchanges(ListDataExchangesRequest request, io.grpc.stub.StreamObserver<ListDataExchangesResponse> responseObserver) Lists all data exchanges in a given project and location.
-
listOrgDataExchanges
public void listOrgDataExchanges(ListOrgDataExchangesRequest request, io.grpc.stub.StreamObserver<ListOrgDataExchangesResponse> responseObserver) Lists all data exchanges from projects in a given organization and location.
-
getDataExchange
public void getDataExchange(GetDataExchangeRequest request, io.grpc.stub.StreamObserver<DataExchange> responseObserver) Gets the details of a data exchange.
-
createDataExchange
public void createDataExchange(CreateDataExchangeRequest request, io.grpc.stub.StreamObserver<DataExchange> responseObserver) Creates a new data exchange.
-
updateDataExchange
public void updateDataExchange(UpdateDataExchangeRequest request, io.grpc.stub.StreamObserver<DataExchange> responseObserver) Updates an existing data exchange.
-
deleteDataExchange
public void deleteDataExchange(DeleteDataExchangeRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes an existing data exchange.
-
listListings
public void listListings(ListListingsRequest request, io.grpc.stub.StreamObserver<ListListingsResponse> responseObserver) Lists all listings in a given project and location.
-
getListing
public void getListing(GetListingRequest request, io.grpc.stub.StreamObserver<Listing> responseObserver) Gets the details of a listing.
-
createListing
public void createListing(CreateListingRequest request, io.grpc.stub.StreamObserver<Listing> responseObserver) Creates a new listing.
-
updateListing
public void updateListing(UpdateListingRequest request, io.grpc.stub.StreamObserver<Listing> responseObserver) Updates an existing listing.
-
deleteListing
public void deleteListing(DeleteListingRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes a listing.
-
subscribeListing
public void subscribeListing(SubscribeListingRequest request, io.grpc.stub.StreamObserver<SubscribeListingResponse> responseObserver) 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.
-
subscribeDataExchange
public void subscribeDataExchange(SubscribeDataExchangeRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) 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.
-
refreshSubscription
public void refreshSubscription(RefreshSubscriptionRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) 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.
-
getSubscription
public void getSubscription(GetSubscriptionRequest request, io.grpc.stub.StreamObserver<Subscription> responseObserver) Gets the details of a Subscription.
-
listSubscriptions
public void listSubscriptions(ListSubscriptionsRequest request, io.grpc.stub.StreamObserver<ListSubscriptionsResponse> responseObserver) Lists all subscriptions in a given project and location.
-
revokeSubscription
public void revokeSubscription(RevokeSubscriptionRequest request, io.grpc.stub.StreamObserver<RevokeSubscriptionResponse> responseObserver) Revokes a given subscription.
-
deleteSubscription
public void deleteSubscription(DeleteSubscriptionRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Deletes a subscription.
-
getIamPolicy
public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) Gets the IAM policy.
-
setIamPolicy
public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) Sets the IAM policy.
-
testIamPermissions
public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> responseObserver) Returns the permissions that a caller has.
-
createQueryTemplate
public void createQueryTemplate(CreateQueryTemplateRequest request, io.grpc.stub.StreamObserver<QueryTemplate> responseObserver) Creates a new QueryTemplate
-
getQueryTemplate
public void getQueryTemplate(GetQueryTemplateRequest request, io.grpc.stub.StreamObserver<QueryTemplate> responseObserver) Gets a QueryTemplate
-
listQueryTemplates
public void listQueryTemplates(ListQueryTemplatesRequest request, io.grpc.stub.StreamObserver<ListQueryTemplatesResponse> responseObserver) Lists all QueryTemplates in a given project and location.
-
updateQueryTemplate
public void updateQueryTemplate(UpdateQueryTemplateRequest request, io.grpc.stub.StreamObserver<QueryTemplate> responseObserver) Updates an existing QueryTemplate
-
deleteQueryTemplate
public void deleteQueryTemplate(DeleteQueryTemplateRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes a query template.
-
submitQueryTemplate
public void submitQueryTemplate(SubmitQueryTemplateRequest request, io.grpc.stub.StreamObserver<QueryTemplate> responseObserver) Submits a query template for approval.
-
approveQueryTemplate
public void approveQueryTemplate(ApproveQueryTemplateRequest request, io.grpc.stub.StreamObserver<QueryTemplate> responseObserver) Approves a query template.
-