Class AnalyticsHubServiceGrpc.AnalyticsHubServiceStub (0.39.0)

public static final class AnalyticsHubServiceGrpc.AnalyticsHubServiceStub extends 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.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > AnalyticsHubServiceGrpc.AnalyticsHubServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected AnalyticsHubServiceGrpc.AnalyticsHubServiceStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
AnalyticsHubServiceGrpc.AnalyticsHubServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createDataExchange(CreateDataExchangeRequest request, StreamObserver<DataExchange> responseObserver)

public void createDataExchange(CreateDataExchangeRequest request, StreamObserver<DataExchange> responseObserver)

Creates a new data exchange.

Parameters
Name Description
request CreateDataExchangeRequest
responseObserver io.grpc.stub.StreamObserver<DataExchange>

createListing(CreateListingRequest request, StreamObserver<Listing> responseObserver)

public void createListing(CreateListingRequest request, StreamObserver<Listing> responseObserver)

Creates a new listing.

Parameters
Name Description
request CreateListingRequest
responseObserver io.grpc.stub.StreamObserver<Listing>

deleteDataExchange(DeleteDataExchangeRequest request, StreamObserver<Empty> responseObserver)

public void deleteDataExchange(DeleteDataExchangeRequest request, StreamObserver<Empty> responseObserver)

Deletes an existing data exchange.

Parameters
Name Description
request DeleteDataExchangeRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

deleteListing(DeleteListingRequest request, StreamObserver<Empty> responseObserver)

public void deleteListing(DeleteListingRequest request, StreamObserver<Empty> responseObserver)

Deletes a listing.

Parameters
Name Description
request DeleteListingRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

deleteSubscription(DeleteSubscriptionRequest request, StreamObserver<Operation> responseObserver)

public void deleteSubscription(DeleteSubscriptionRequest request, StreamObserver<Operation> responseObserver)

Deletes a subscription.

Parameters
Name Description
request DeleteSubscriptionRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

getDataExchange(GetDataExchangeRequest request, StreamObserver<DataExchange> responseObserver)

public void getDataExchange(GetDataExchangeRequest request, StreamObserver<DataExchange> responseObserver)

Gets the details of a data exchange.

Parameters
Name Description
request GetDataExchangeRequest
responseObserver io.grpc.stub.StreamObserver<DataExchange>

getIamPolicy(GetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

public void getIamPolicy(GetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

Gets the IAM policy.

Parameters
Name Description
request com.google.iam.v1.GetIamPolicyRequest
responseObserver io.grpc.stub.StreamObserver<com.google.iam.v1.Policy>

getListing(GetListingRequest request, StreamObserver<Listing> responseObserver)

public void getListing(GetListingRequest request, StreamObserver<Listing> responseObserver)

Gets the details of a listing.

Parameters
Name Description
request GetListingRequest
responseObserver io.grpc.stub.StreamObserver<Listing>

getSubscription(GetSubscriptionRequest request, StreamObserver<Subscription> responseObserver)

public void getSubscription(GetSubscriptionRequest request, StreamObserver<Subscription> responseObserver)

Gets the details of a Subscription.

Parameters
Name Description
request GetSubscriptionRequest
responseObserver io.grpc.stub.StreamObserver<Subscription>

listDataExchanges(ListDataExchangesRequest request, StreamObserver<ListDataExchangesResponse> responseObserver)

public void listDataExchanges(ListDataExchangesRequest request, StreamObserver<ListDataExchangesResponse> responseObserver)

Lists all data exchanges in a given project and location.

Parameters
Name Description
request ListDataExchangesRequest
responseObserver io.grpc.stub.StreamObserver<ListDataExchangesResponse>

listListings(ListListingsRequest request, StreamObserver<ListListingsResponse> responseObserver)

public void listListings(ListListingsRequest request, StreamObserver<ListListingsResponse> responseObserver)

Lists all listings in a given project and location.

Parameters
Name Description
request ListListingsRequest
responseObserver io.grpc.stub.StreamObserver<ListListingsResponse>

listOrgDataExchanges(ListOrgDataExchangesRequest request, StreamObserver<ListOrgDataExchangesResponse> responseObserver)

public void listOrgDataExchanges(ListOrgDataExchangesRequest request, StreamObserver<ListOrgDataExchangesResponse> responseObserver)

Lists all data exchanges from projects in a given organization and location.

Parameters
Name Description
request ListOrgDataExchangesRequest
responseObserver io.grpc.stub.StreamObserver<ListOrgDataExchangesResponse>

listSharedResourceSubscriptions(ListSharedResourceSubscriptionsRequest request, StreamObserver<ListSharedResourceSubscriptionsResponse> responseObserver)

public void listSharedResourceSubscriptions(ListSharedResourceSubscriptionsRequest request, StreamObserver<ListSharedResourceSubscriptionsResponse> responseObserver)

Lists all subscriptions on a given Data Exchange or Listing.

Parameters
Name Description
request ListSharedResourceSubscriptionsRequest
responseObserver io.grpc.stub.StreamObserver<ListSharedResourceSubscriptionsResponse>

listSubscriptions(ListSubscriptionsRequest request, StreamObserver<ListSubscriptionsResponse> responseObserver)

public void listSubscriptions(ListSubscriptionsRequest request, StreamObserver<ListSubscriptionsResponse> responseObserver)

Lists all subscriptions in a given project and location.

Parameters
Name Description
request ListSubscriptionsRequest
responseObserver io.grpc.stub.StreamObserver<ListSubscriptionsResponse>

refreshSubscription(RefreshSubscriptionRequest request, StreamObserver<Operation> responseObserver)

public void refreshSubscription(RefreshSubscriptionRequest request, 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.

Parameters
Name Description
request RefreshSubscriptionRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

revokeSubscription(RevokeSubscriptionRequest request, StreamObserver<RevokeSubscriptionResponse> responseObserver)

public void revokeSubscription(RevokeSubscriptionRequest request, StreamObserver<RevokeSubscriptionResponse> responseObserver)

Revokes a given subscription.

Parameters
Name Description
request RevokeSubscriptionRequest
responseObserver io.grpc.stub.StreamObserver<RevokeSubscriptionResponse>

setIamPolicy(SetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

public void setIamPolicy(SetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

Sets the IAM policy.

Parameters
Name Description
request com.google.iam.v1.SetIamPolicyRequest
responseObserver io.grpc.stub.StreamObserver<com.google.iam.v1.Policy>

subscribeDataExchange(SubscribeDataExchangeRequest request, StreamObserver<Operation> responseObserver)

public void subscribeDataExchange(SubscribeDataExchangeRequest request, StreamObserver<Operation> responseObserver)

Creates a Subscription to a Data Exchange. This is a long-running operation as it will create one or more linked datasets.

Parameters
Name Description
request SubscribeDataExchangeRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

subscribeListing(SubscribeListingRequest request, StreamObserver<SubscribeListingResponse> responseObserver)

public void subscribeListing(SubscribeListingRequest request, 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.

Parameters
Name Description
request SubscribeListingRequest
responseObserver io.grpc.stub.StreamObserver<SubscribeListingResponse>

testIamPermissions(TestIamPermissionsRequest request, StreamObserver<TestIamPermissionsResponse> responseObserver)

public void testIamPermissions(TestIamPermissionsRequest request, StreamObserver<TestIamPermissionsResponse> responseObserver)

Returns the permissions that a caller has.

Parameters
Name Description
request com.google.iam.v1.TestIamPermissionsRequest
responseObserver io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>

updateDataExchange(UpdateDataExchangeRequest request, StreamObserver<DataExchange> responseObserver)

public void updateDataExchange(UpdateDataExchangeRequest request, StreamObserver<DataExchange> responseObserver)

Updates an existing data exchange.

Parameters
Name Description
request UpdateDataExchangeRequest
responseObserver io.grpc.stub.StreamObserver<DataExchange>

updateListing(UpdateListingRequest request, StreamObserver<Listing> responseObserver)

public void updateListing(UpdateListingRequest request, StreamObserver<Listing> responseObserver)

Updates an existing listing.

Parameters
Name Description
request UpdateListingRequest
responseObserver io.grpc.stub.StreamObserver<Listing>