Package com.google.cloud.bigquery.dataexchange.v1beta1 (2.13.0)

A client to Analytics Hub API

The interfaces provided are listed below, along with usage samples.

AnalyticsHubServiceClient

Service Description: 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.

Sample for AnalyticsHubServiceClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
   DataExchangeName name = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
   DataExchange response = analyticsHubServiceClient.getDataExchange(name);
 }
 

Classes

AnalyticsHubServiceClient

Service Description: 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.

This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
   DataExchangeName name = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
   DataExchange response = analyticsHubServiceClient.getDataExchange(name);
 }
 

Note: close() needs to be called on the AnalyticsHubServiceClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.

This class can be customized by passing in a custom instance of AnalyticsHubServiceSettings to create(). For example:

To customize credentials:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 AnalyticsHubServiceSettings analyticsHubServiceSettings =
     AnalyticsHubServiceSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 AnalyticsHubServiceClient analyticsHubServiceClient =
     AnalyticsHubServiceClient.create(analyticsHubServiceSettings);
 

To customize the endpoint:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 AnalyticsHubServiceSettings analyticsHubServiceSettings =
     AnalyticsHubServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
 AnalyticsHubServiceClient analyticsHubServiceClient =
     AnalyticsHubServiceClient.create(analyticsHubServiceSettings);
 

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 AnalyticsHubServiceSettings analyticsHubServiceSettings =
     AnalyticsHubServiceSettings.newHttpJsonBuilder().build();
 AnalyticsHubServiceClient analyticsHubServiceClient =
     AnalyticsHubServiceClient.create(analyticsHubServiceSettings);
 

Please refer to the GitHub repository's samples for more quickstart code snippets.

AnalyticsHubServiceClient.ListDataExchangesFixedSizeCollection

AnalyticsHubServiceClient.ListDataExchangesPage

AnalyticsHubServiceClient.ListDataExchangesPagedResponse

AnalyticsHubServiceClient.ListListingsFixedSizeCollection

AnalyticsHubServiceClient.ListListingsPage

AnalyticsHubServiceClient.ListListingsPagedResponse

AnalyticsHubServiceClient.ListLocationsFixedSizeCollection

AnalyticsHubServiceClient.ListLocationsPage

AnalyticsHubServiceClient.ListLocationsPagedResponse

AnalyticsHubServiceClient.ListOrgDataExchangesFixedSizeCollection

AnalyticsHubServiceClient.ListOrgDataExchangesPage

AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse

AnalyticsHubServiceGrpc

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.

AnalyticsHubServiceGrpc.AnalyticsHubServiceBlockingStub

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.

AnalyticsHubServiceGrpc.AnalyticsHubServiceFutureStub

A stub to allow clients to do ListenableFuture-style 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.

AnalyticsHubServiceGrpc.AnalyticsHubServiceImplBase

Base class for the server implementation of the 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.

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.

AnalyticsHubServiceSettings

Settings class to configure an instance of AnalyticsHubServiceClient.

The default instance has everything set to sensible defaults:

  • The default service address (analyticshub.googleapis.com) and default port (443) are used.
  • Credentials are acquired automatically through Application Default Credentials.
  • Retries are configured for idempotent methods but not for non-idempotent methods.

The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.

For example, to set the total timeout of getDataExchange to 30 seconds:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 AnalyticsHubServiceSettings.Builder analyticsHubServiceSettingsBuilder =
     AnalyticsHubServiceSettings.newBuilder();
 analyticsHubServiceSettingsBuilder
     .getDataExchangeSettings()
     .setRetrySettings(
         analyticsHubServiceSettingsBuilder
             .getDataExchangeSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 AnalyticsHubServiceSettings analyticsHubServiceSettings =
     analyticsHubServiceSettingsBuilder.build();
 

AnalyticsHubServiceSettings.Builder

Builder for AnalyticsHubServiceSettings.

CreateDataExchangeRequest

Message for creating a data exchange.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest

CreateDataExchangeRequest.Builder

Message for creating a data exchange.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest

CreateListingRequest

Message for creating a listing.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest

CreateListingRequest.Builder

Message for creating a listing.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest

DataExchange

A data exchange is a container that lets you share data. Along with the descriptive information about the data exchange, it contains listings that reference shared datasets.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.DataExchange

DataExchange.Builder

A data exchange is a container that lets you share data. Along with the descriptive information about the data exchange, it contains listings that reference shared datasets.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.DataExchange

DataExchangeName

DataExchangeName.Builder

Builder for projects/{project}/locations/{location}/dataExchanges/{data_exchange}.

DataExchangeProto

DataProvider

Contains details of the data provider.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.DataProvider

DataProvider.Builder

Contains details of the data provider.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.DataProvider

DeleteDataExchangeRequest

Message for deleting a data exchange.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest

DeleteDataExchangeRequest.Builder

Message for deleting a data exchange.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest

DeleteListingRequest

Message for deleting a listing.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest

DeleteListingRequest.Builder

Message for deleting a listing.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest

DestinationDataset

Defines the destination bigquery dataset.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset

DestinationDataset.Builder

Defines the destination bigquery dataset.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset

DestinationDatasetReference

Contains the reference that identifies a destination bigquery dataset.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference

DestinationDatasetReference.Builder

Contains the reference that identifies a destination bigquery dataset.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference

GetDataExchangeRequest

Message for getting a data exchange.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest

GetDataExchangeRequest.Builder

Message for getting a data exchange.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest

GetListingRequest

Message for getting a listing.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest

GetListingRequest.Builder

Message for getting a listing.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest

ListDataExchangesRequest

Message for requesting the list of data exchanges.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest

ListDataExchangesRequest.Builder

Message for requesting the list of data exchanges.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest

ListDataExchangesResponse

Message for response to the list of data exchanges.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse

ListDataExchangesResponse.Builder

Message for response to the list of data exchanges.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse

ListListingsRequest

Message for requesting the list of listings.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest

ListListingsRequest.Builder

Message for requesting the list of listings.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest

ListListingsResponse

Message for response to the list of Listings.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse

ListListingsResponse.Builder

Message for response to the list of Listings.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse

ListOrgDataExchangesRequest

Message for requesting the list of data exchanges from projects in an organization and location.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest

ListOrgDataExchangesRequest.Builder

Message for requesting the list of data exchanges from projects in an organization and location.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest

ListOrgDataExchangesResponse

Message for response to listing data exchanges in an organization and location.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse

ListOrgDataExchangesResponse.Builder

Message for response to listing data exchanges in an organization and location.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse

Listing

A listing is what gets published into a data exchange that a subscriber can subscribe to. It contains a reference to the data source along with descriptive information that will help subscribers find and subscribe the data.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.Listing

Listing.BigQueryDatasetSource

A reference to a shared dataset. It is an existing BigQuery dataset with a collection of objects such as tables and views that you want to share with subscribers. When subscriber's subscribe to a listing, Analytics Hub creates a linked dataset in the subscriber's project. A Linked dataset is an opaque, read-only BigQuery dataset that serves as a symbolic link to a shared dataset.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource

Listing.BigQueryDatasetSource.Builder

A reference to a shared dataset. It is an existing BigQuery dataset with a collection of objects such as tables and views that you want to share with subscribers. When subscriber's subscribe to a listing, Analytics Hub creates a linked dataset in the subscriber's project. A Linked dataset is an opaque, read-only BigQuery dataset that serves as a symbolic link to a shared dataset.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource

Listing.Builder

A listing is what gets published into a data exchange that a subscriber can subscribe to. It contains a reference to the data source along with descriptive information that will help subscribers find and subscribe the data.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.Listing

ListingName

ListingName.Builder

Builder for projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}.

LocationName

LocationName.Builder

Builder for projects/{project}/locations/{location}.

Publisher

Contains details of the listing publisher.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.Publisher

Publisher.Builder

Contains details of the listing publisher.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.Publisher

SubscribeListingRequest

Message for subscribing to a listing.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest

SubscribeListingRequest.Builder

Message for subscribing to a listing.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest

SubscribeListingResponse

Message for response when you subscribe to a listing.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse

SubscribeListingResponse.Builder

Message for response when you subscribe to a listing.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse

UpdateDataExchangeRequest

Message for updating a data exchange.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest

UpdateDataExchangeRequest.Builder

Message for updating a data exchange.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest

UpdateListingRequest

Message for updating a Listing.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest

UpdateListingRequest.Builder

Message for updating a Listing.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest

Interfaces

AnalyticsHubServiceGrpc.AsyncService

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.

CreateDataExchangeRequestOrBuilder

CreateListingRequestOrBuilder

DataExchangeOrBuilder

DataProviderOrBuilder

DeleteDataExchangeRequestOrBuilder

DeleteListingRequestOrBuilder

DestinationDatasetOrBuilder

DestinationDatasetReferenceOrBuilder

GetDataExchangeRequestOrBuilder

GetListingRequestOrBuilder

ListDataExchangesRequestOrBuilder

ListDataExchangesResponseOrBuilder

ListListingsRequestOrBuilder

ListListingsResponseOrBuilder

ListOrgDataExchangesRequestOrBuilder

ListOrgDataExchangesResponseOrBuilder

Listing.BigQueryDatasetSourceOrBuilder

ListingOrBuilder

PublisherOrBuilder

SubscribeListingRequestOrBuilder

SubscribeListingResponseOrBuilder

UpdateDataExchangeRequestOrBuilder

UpdateListingRequestOrBuilder

Enums

Listing.Category

Listing categories.

Protobuf enum google.cloud.bigquery.dataexchange.v1beta1.Listing.Category

Listing.SourceCase

Listing.State

State of the listing.

Protobuf enum google.cloud.bigquery.dataexchange.v1beta1.Listing.State

SubscribeListingRequest.DestinationCase