- 2.50.0 (latest)
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.0
- 1.0.0
- 0.3.2
- 0.2.1
- 0.1.0
public class AnalyticsHubServiceClient implements BackgroundResource
Service Description: The AnalyticsHubService API facilitates data sharing within and across organizations. It allows data providers to publish Listings --- a discoverable and searchable SKU representing a dataset. Data consumers can subscribe to Listings. Upon subscription, AnalyticsHub provisions a "Linked Datasets" surfacing the data in the consumer's 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 for illustrative purposes only.
// It may require modifications to work in your environment.
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:
- 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.
- 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.
- 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 for illustrative purposes only.
// It may require modifications to work in your environment.
AnalyticsHubServiceSettings analyticsHubServiceSettings =
AnalyticsHubServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
AnalyticsHubServiceClient analyticsHubServiceClient =
AnalyticsHubServiceClient.create(analyticsHubServiceSettings);
To customize the endpoint:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
AnalyticsHubServiceSettings analyticsHubServiceSettings =
AnalyticsHubServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
AnalyticsHubServiceClient analyticsHubServiceClient =
AnalyticsHubServiceClient.create(analyticsHubServiceSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
Implements
BackgroundResourceStatic Methods
create()
public static final AnalyticsHubServiceClient create()
Constructs an instance of AnalyticsHubServiceClient with default settings.
Type | Description |
AnalyticsHubServiceClient |
Type | Description |
IOException |
create(AnalyticsHubServiceSettings settings)
public static final AnalyticsHubServiceClient create(AnalyticsHubServiceSettings settings)
Constructs an instance of AnalyticsHubServiceClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.
Name | Description |
settings | AnalyticsHubServiceSettings |
Type | Description |
AnalyticsHubServiceClient |
Type | Description |
IOException |
create(AnalyticsHubServiceStub stub)
public static final AnalyticsHubServiceClient create(AnalyticsHubServiceStub stub)
Constructs an instance of AnalyticsHubServiceClient, using the given stub for making calls. This is for advanced usage - prefer using create(AnalyticsHubServiceSettings).
Name | Description |
stub | AnalyticsHubServiceStub |
Type | Description |
AnalyticsHubServiceClient |
Constructors
AnalyticsHubServiceClient(AnalyticsHubServiceSettings settings)
protected AnalyticsHubServiceClient(AnalyticsHubServiceSettings settings)
Constructs an instance of AnalyticsHubServiceClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
Name | Description |
settings | AnalyticsHubServiceSettings |
AnalyticsHubServiceClient(AnalyticsHubServiceStub stub)
protected AnalyticsHubServiceClient(AnalyticsHubServiceStub stub)
Name | Description |
stub | AnalyticsHubServiceStub |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Name | Description |
duration | long |
unit | TimeUnit |
Type | Description |
boolean |
Type | Description |
InterruptedException |
close()
public final void close()
createDataExchange(CreateDataExchangeRequest request)
public final DataExchange createDataExchange(CreateDataExchangeRequest request)
Creates a new DataExchange in a given project and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
CreateDataExchangeRequest request =
CreateDataExchangeRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setDataExchangeId("dataExchangeId783243752")
.setDataExchange(DataExchange.newBuilder().build())
.build();
DataExchange response = analyticsHubServiceClient.createDataExchange(request);
}
Name | Description |
request | CreateDataExchangeRequest The request object containing all of the parameters for the API call. |
Type | Description |
DataExchange |
createDataExchange(LocationName parent, DataExchange dataExchange)
public final DataExchange createDataExchange(LocationName parent, DataExchange dataExchange)
Creates a new DataExchange in a given project and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
DataExchange dataExchange = DataExchange.newBuilder().build();
DataExchange response = analyticsHubServiceClient.createDataExchange(parent, dataExchange);
}
Name | Description |
parent | LocationName Required. The parent resource path of the DataExchange. e.g.
|
dataExchange | DataExchange Required. The DataExchange to create. |
Type | Description |
DataExchange |
createDataExchange(String parent, DataExchange dataExchange)
public final DataExchange createDataExchange(String parent, DataExchange dataExchange)
Creates a new DataExchange in a given project and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
DataExchange dataExchange = DataExchange.newBuilder().build();
DataExchange response = analyticsHubServiceClient.createDataExchange(parent, dataExchange);
}
Name | Description |
parent | String Required. The parent resource path of the DataExchange. e.g.
|
dataExchange | DataExchange Required. The DataExchange to create. |
Type | Description |
DataExchange |
createDataExchangeCallable()
public final UnaryCallable<CreateDataExchangeRequest,DataExchange> createDataExchangeCallable()
Creates a new DataExchange in a given project and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
CreateDataExchangeRequest request =
CreateDataExchangeRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setDataExchangeId("dataExchangeId783243752")
.setDataExchange(DataExchange.newBuilder().build())
.build();
ApiFuture<DataExchange> future =
analyticsHubServiceClient.createDataExchangeCallable().futureCall(request);
// Do something.
DataExchange response = future.get();
}
Type | Description |
UnaryCallable<CreateDataExchangeRequest,DataExchange> |
createListing(CreateListingRequest request)
public final Listing createListing(CreateListingRequest request)
Creates a new Listing in a given project and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
CreateListingRequest request =
CreateListingRequest.newBuilder()
.setParent(
DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
.setListingId("listingId-1215024449")
.setListing(Listing.newBuilder().build())
.build();
Listing response = analyticsHubServiceClient.createListing(request);
}
Name | Description |
request | CreateListingRequest The request object containing all of the parameters for the API call. |
Type | Description |
Listing |
createListing(DataExchangeName parent, Listing listing)
public final Listing createListing(DataExchangeName parent, Listing listing)
Creates a new Listing in a given project and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
DataExchangeName parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
Listing listing = Listing.newBuilder().build();
Listing response = analyticsHubServiceClient.createListing(parent, listing);
}
Name | Description |
parent | DataExchangeName Required. The parent resource path of the listing. e.g.
|
listing | Listing Required. The listing to create. |
Type | Description |
Listing |
createListing(String parent, Listing listing)
public final Listing createListing(String parent, Listing listing)
Creates a new Listing in a given project and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
String parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString();
Listing listing = Listing.newBuilder().build();
Listing response = analyticsHubServiceClient.createListing(parent, listing);
}
Name | Description |
parent | String Required. The parent resource path of the listing. e.g.
|
listing | Listing Required. The listing to create. |
Type | Description |
Listing |
createListingCallable()
public final UnaryCallable<CreateListingRequest,Listing> createListingCallable()
Creates a new Listing in a given project and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
CreateListingRequest request =
CreateListingRequest.newBuilder()
.setParent(
DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
.setListingId("listingId-1215024449")
.setListing(Listing.newBuilder().build())
.build();
ApiFuture<Listing> future =
analyticsHubServiceClient.createListingCallable().futureCall(request);
// Do something.
Listing response = future.get();
}
Type | Description |
UnaryCallable<CreateListingRequest,Listing> |
deleteDataExchange(DataExchangeName name)
public final void deleteDataExchange(DataExchangeName name)
Deletes a single DataExchange.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
DataExchangeName name = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
analyticsHubServiceClient.deleteDataExchange(name);
}
Name | Description |
name | DataExchangeName Required. Resource name of the DataExchange to delete. e.g.
|
deleteDataExchange(DeleteDataExchangeRequest request)
public final void deleteDataExchange(DeleteDataExchangeRequest request)
Deletes a single DataExchange.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
DeleteDataExchangeRequest request =
DeleteDataExchangeRequest.newBuilder()
.setName(DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
.build();
analyticsHubServiceClient.deleteDataExchange(request);
}
Name | Description |
request | DeleteDataExchangeRequest The request object containing all of the parameters for the API call. |
deleteDataExchange(String name)
public final void deleteDataExchange(String name)
Deletes a single DataExchange.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
String name = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString();
analyticsHubServiceClient.deleteDataExchange(name);
}
Name | Description |
name | String Required. Resource name of the DataExchange to delete. e.g.
|
deleteDataExchangeCallable()
public final UnaryCallable<DeleteDataExchangeRequest,Empty> deleteDataExchangeCallable()
Deletes a single DataExchange.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
DeleteDataExchangeRequest request =
DeleteDataExchangeRequest.newBuilder()
.setName(DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
.build();
ApiFuture<Empty> future =
analyticsHubServiceClient.deleteDataExchangeCallable().futureCall(request);
// Do something.
future.get();
}
Type | Description |
UnaryCallable<DeleteDataExchangeRequest,Empty> |
deleteListing(DeleteListingRequest request)
public final void deleteListing(DeleteListingRequest request)
Deletes a single Listing, as long as there are no subscriptions associated with the source of this Listing.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
DeleteListingRequest request =
DeleteListingRequest.newBuilder()
.setName(
ListingName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]")
.toString())
.build();
analyticsHubServiceClient.deleteListing(request);
}
Name | Description |
request | DeleteListingRequest The request object containing all of the parameters for the API call. |
deleteListing(ListingName name)
public final void deleteListing(ListingName name)
Deletes a single Listing, as long as there are no subscriptions associated with the source of this Listing.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
ListingName name = ListingName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
analyticsHubServiceClient.deleteListing(name);
}
Name | Description |
name | ListingName Required. Resource name of the listing to delete. e.g.
|
deleteListing(String name)
public final void deleteListing(String name)
Deletes a single Listing, as long as there are no subscriptions associated with the source of this Listing.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
String name =
ListingName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]").toString();
analyticsHubServiceClient.deleteListing(name);
}
Name | Description |
name | String Required. Resource name of the listing to delete. e.g.
|
deleteListingCallable()
public final UnaryCallable<DeleteListingRequest,Empty> deleteListingCallable()
Deletes a single Listing, as long as there are no subscriptions associated with the source of this Listing.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
DeleteListingRequest request =
DeleteListingRequest.newBuilder()
.setName(
ListingName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]")
.toString())
.build();
ApiFuture<Empty> future =
analyticsHubServiceClient.deleteListingCallable().futureCall(request);
// Do something.
future.get();
}
Type | Description |
UnaryCallable<DeleteListingRequest,Empty> |
getDataExchange(DataExchangeName name)
public final DataExchange getDataExchange(DataExchangeName name)
Gets details of a single DataExchange.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
DataExchangeName name = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
DataExchange response = analyticsHubServiceClient.getDataExchange(name);
}
Name | Description |
name | DataExchangeName Required. The resource name of the DataExchange. e.g.
|
Type | Description |
DataExchange |
getDataExchange(GetDataExchangeRequest request)
public final DataExchange getDataExchange(GetDataExchangeRequest request)
Gets details of a single DataExchange.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
GetDataExchangeRequest request =
GetDataExchangeRequest.newBuilder()
.setName(DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
.build();
DataExchange response = analyticsHubServiceClient.getDataExchange(request);
}
Name | Description |
request | GetDataExchangeRequest The request object containing all of the parameters for the API call. |
Type | Description |
DataExchange |
getDataExchange(String name)
public final DataExchange getDataExchange(String name)
Gets details of a single DataExchange.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
String name = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString();
DataExchange response = analyticsHubServiceClient.getDataExchange(name);
}
Name | Description |
name | String Required. The resource name of the DataExchange. e.g.
|
Type | Description |
DataExchange |
getDataExchangeCallable()
public final UnaryCallable<GetDataExchangeRequest,DataExchange> getDataExchangeCallable()
Gets details of a single DataExchange.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
GetDataExchangeRequest request =
GetDataExchangeRequest.newBuilder()
.setName(DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
.build();
ApiFuture<DataExchange> future =
analyticsHubServiceClient.getDataExchangeCallable().futureCall(request);
// Do something.
DataExchange response = future.get();
}
Type | Description |
UnaryCallable<GetDataExchangeRequest,DataExchange> |
getIamPolicy(GetIamPolicyRequest request)
public final Policy getIamPolicy(GetIamPolicyRequest request)
Gets the IAM policy for a dataExchange or a listing.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
.setResource(
DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
.setOptions(GetPolicyOptions.newBuilder().build())
.build();
Policy response = analyticsHubServiceClient.getIamPolicy(request);
}
Name | Description |
request | com.google.iam.v1.GetIamPolicyRequest The request object containing all of the parameters for the API call. |
Type | Description |
com.google.iam.v1.Policy |
getIamPolicyCallable()
public final UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Gets the IAM policy for a dataExchange or a listing.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
.setResource(
DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
.setOptions(GetPolicyOptions.newBuilder().build())
.build();
ApiFuture<Policy> future =
analyticsHubServiceClient.getIamPolicyCallable().futureCall(request);
// Do something.
Policy response = future.get();
}
Type | Description |
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getListing(GetListingRequest request)
public final Listing getListing(GetListingRequest request)
Gets details of a single Listing.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
GetListingRequest request =
GetListingRequest.newBuilder()
.setName(
ListingName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]")
.toString())
.build();
Listing response = analyticsHubServiceClient.getListing(request);
}
Name | Description |
request | GetListingRequest The request object containing all of the parameters for the API call. |
Type | Description |
Listing |
getListing(ListingName name)
public final Listing getListing(ListingName name)
Gets details of a single Listing.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
ListingName name = ListingName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
Listing response = analyticsHubServiceClient.getListing(name);
}
Name | Description |
name | ListingName Required. The resource name of the listing. e.g.
|
Type | Description |
Listing |
getListing(String name)
public final Listing getListing(String name)
Gets details of a single Listing.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
String name =
ListingName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]").toString();
Listing response = analyticsHubServiceClient.getListing(name);
}
Name | Description |
name | String Required. The resource name of the listing. e.g.
|
Type | Description |
Listing |
getListingCallable()
public final UnaryCallable<GetListingRequest,Listing> getListingCallable()
Gets details of a single Listing.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
GetListingRequest request =
GetListingRequest.newBuilder()
.setName(
ListingName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]")
.toString())
.build();
ApiFuture<Listing> future =
analyticsHubServiceClient.getListingCallable().futureCall(request);
// Do something.
Listing response = future.get();
}
Type | Description |
UnaryCallable<GetListingRequest,Listing> |
getSettings()
public final AnalyticsHubServiceSettings getSettings()
Type | Description |
AnalyticsHubServiceSettings |
getStub()
public AnalyticsHubServiceStub getStub()
Type | Description |
AnalyticsHubServiceStub |
isShutdown()
public boolean isShutdown()
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Type | Description |
boolean |
listDataExchanges(ListDataExchangesRequest request)
public final AnalyticsHubServiceClient.ListDataExchangesPagedResponse listDataExchanges(ListDataExchangesRequest request)
Lists DataExchanges in a given project and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
ListDataExchangesRequest request =
ListDataExchangesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (DataExchange element :
analyticsHubServiceClient.listDataExchanges(request).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
request | ListDataExchangesRequest The request object containing all of the parameters for the API call. |
Type | Description |
AnalyticsHubServiceClient.ListDataExchangesPagedResponse |
listDataExchanges(LocationName parent)
public final AnalyticsHubServiceClient.ListDataExchangesPagedResponse listDataExchanges(LocationName parent)
Lists DataExchanges in a given project and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (DataExchange element :
analyticsHubServiceClient.listDataExchanges(parent).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
parent | LocationName Required. The parent resource path of the DataExchanges. e.g.
|
Type | Description |
AnalyticsHubServiceClient.ListDataExchangesPagedResponse |
listDataExchanges(String parent)
public final AnalyticsHubServiceClient.ListDataExchangesPagedResponse listDataExchanges(String parent)
Lists DataExchanges in a given project and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (DataExchange element :
analyticsHubServiceClient.listDataExchanges(parent).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
parent | String Required. The parent resource path of the DataExchanges. e.g.
|
Type | Description |
AnalyticsHubServiceClient.ListDataExchangesPagedResponse |
listDataExchangesCallable()
public final UnaryCallable<ListDataExchangesRequest,ListDataExchangesResponse> listDataExchangesCallable()
Lists DataExchanges in a given project and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
ListDataExchangesRequest request =
ListDataExchangesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListDataExchangesResponse response =
analyticsHubServiceClient.listDataExchangesCallable().call(request);
for (DataExchange element : response.getResponsesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Type | Description |
UnaryCallable<ListDataExchangesRequest,ListDataExchangesResponse> |
listDataExchangesPagedCallable()
public final UnaryCallable<ListDataExchangesRequest,AnalyticsHubServiceClient.ListDataExchangesPagedResponse> listDataExchangesPagedCallable()
Lists DataExchanges in a given project and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
ListDataExchangesRequest request =
ListDataExchangesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<DataExchange> future =
analyticsHubServiceClient.listDataExchangesPagedCallable().futureCall(request);
// Do something.
for (DataExchange element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Type | Description |
UnaryCallable<ListDataExchangesRequest,ListDataExchangesPagedResponse> |
listListings(DataExchangeName parent)
public final AnalyticsHubServiceClient.ListListingsPagedResponse listListings(DataExchangeName parent)
Lists Listings in a given project and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
DataExchangeName parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
for (Listing element : analyticsHubServiceClient.listListings(parent).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
parent | DataExchangeName Required. The parent resource path of the listing. e.g.
|
Type | Description |
AnalyticsHubServiceClient.ListListingsPagedResponse |
listListings(ListListingsRequest request)
public final AnalyticsHubServiceClient.ListListingsPagedResponse listListings(ListListingsRequest request)
Lists Listings in a given project and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
ListListingsRequest request =
ListListingsRequest.newBuilder()
.setParent(
DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (Listing element : analyticsHubServiceClient.listListings(request).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
request | ListListingsRequest The request object containing all of the parameters for the API call. |
Type | Description |
AnalyticsHubServiceClient.ListListingsPagedResponse |
listListings(String parent)
public final AnalyticsHubServiceClient.ListListingsPagedResponse listListings(String parent)
Lists Listings in a given project and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
String parent = DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString();
for (Listing element : analyticsHubServiceClient.listListings(parent).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
parent | String Required. The parent resource path of the listing. e.g.
|
Type | Description |
AnalyticsHubServiceClient.ListListingsPagedResponse |
listListingsCallable()
public final UnaryCallable<ListListingsRequest,ListListingsResponse> listListingsCallable()
Lists Listings in a given project and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
ListListingsRequest request =
ListListingsRequest.newBuilder()
.setParent(
DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListListingsResponse response =
analyticsHubServiceClient.listListingsCallable().call(request);
for (Listing element : response.getResponsesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Type | Description |
UnaryCallable<ListListingsRequest,ListListingsResponse> |
listListingsPagedCallable()
public final UnaryCallable<ListListingsRequest,AnalyticsHubServiceClient.ListListingsPagedResponse> listListingsPagedCallable()
Lists Listings in a given project and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
ListListingsRequest request =
ListListingsRequest.newBuilder()
.setParent(
DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<Listing> future =
analyticsHubServiceClient.listListingsPagedCallable().futureCall(request);
// Do something.
for (Listing element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Type | Description |
UnaryCallable<ListListingsRequest,ListListingsPagedResponse> |
listOrgDataExchanges(ListOrgDataExchangesRequest request)
public final AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse listOrgDataExchanges(ListOrgDataExchangesRequest request)
Lists DataExchanges from projects in a given organization and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
ListOrgDataExchangesRequest request =
ListOrgDataExchangesRequest.newBuilder()
.setOrganization("organization1178922291")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (DataExchange element :
analyticsHubServiceClient.listOrgDataExchanges(request).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
request | ListOrgDataExchangesRequest The request object containing all of the parameters for the API call. |
Type | Description |
AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse |
listOrgDataExchanges(String organization)
public final AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse listOrgDataExchanges(String organization)
Lists DataExchanges from projects in a given organization and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
String organization = "organization1178922291";
for (DataExchange element :
analyticsHubServiceClient.listOrgDataExchanges(organization).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
organization | String Required. The organization resource path of the projects containing
DataExchanges. e.g. |
Type | Description |
AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse |
listOrgDataExchangesCallable()
public final UnaryCallable<ListOrgDataExchangesRequest,ListOrgDataExchangesResponse> listOrgDataExchangesCallable()
Lists DataExchanges from projects in a given organization and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
ListOrgDataExchangesRequest request =
ListOrgDataExchangesRequest.newBuilder()
.setOrganization("organization1178922291")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListOrgDataExchangesResponse response =
analyticsHubServiceClient.listOrgDataExchangesCallable().call(request);
for (DataExchange element : response.getResponsesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Type | Description |
UnaryCallable<ListOrgDataExchangesRequest,ListOrgDataExchangesResponse> |
listOrgDataExchangesPagedCallable()
public final UnaryCallable<ListOrgDataExchangesRequest,AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse> listOrgDataExchangesPagedCallable()
Lists DataExchanges from projects in a given organization and location.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
ListOrgDataExchangesRequest request =
ListOrgDataExchangesRequest.newBuilder()
.setOrganization("organization1178922291")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<DataExchange> future =
analyticsHubServiceClient.listOrgDataExchangesPagedCallable().futureCall(request);
// Do something.
for (DataExchange element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Type | Description |
UnaryCallable<ListOrgDataExchangesRequest,ListOrgDataExchangesPagedResponse> |
setIamPolicy(SetIamPolicyRequest request)
public final Policy setIamPolicy(SetIamPolicyRequest request)
Sets the IAM policy for a dataExchange or a listing.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder()
.setResource(
DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
.setPolicy(Policy.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Policy response = analyticsHubServiceClient.setIamPolicy(request);
}
Name | Description |
request | com.google.iam.v1.SetIamPolicyRequest The request object containing all of the parameters for the API call. |
Type | Description |
com.google.iam.v1.Policy |
setIamPolicyCallable()
public final UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Sets the IAM policy for a dataExchange or a listing.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder()
.setResource(
DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
.setPolicy(Policy.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Policy> future =
analyticsHubServiceClient.setIamPolicyCallable().futureCall(request);
// Do something.
Policy response = future.get();
}
Type | Description |
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
subscribeListing(ListingName name)
public final SubscribeListingResponse subscribeListing(ListingName name)
Subscribes to a single Listing.
Data Exchange currently supports one type of Listing: a BigQuery dataset. Upon subscription to a Listing for a BigQuery dataset, Data Exchange creates a linked dataset in the subscriber's project.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
ListingName name = ListingName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
SubscribeListingResponse response = analyticsHubServiceClient.subscribeListing(name);
}
Name | Description |
name | ListingName Required. Resource name of the listing to subscribe to. e.g.
|
Type | Description |
SubscribeListingResponse |
subscribeListing(SubscribeListingRequest request)
public final SubscribeListingResponse subscribeListing(SubscribeListingRequest request)
Subscribes to a single Listing.
Data Exchange currently supports one type of Listing: a BigQuery dataset. Upon subscription to a Listing for a BigQuery dataset, Data Exchange creates a linked dataset in the subscriber's project.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
SubscribeListingRequest request =
SubscribeListingRequest.newBuilder()
.setName(
ListingName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]")
.toString())
.build();
SubscribeListingResponse response = analyticsHubServiceClient.subscribeListing(request);
}
Name | Description |
request | SubscribeListingRequest The request object containing all of the parameters for the API call. |
Type | Description |
SubscribeListingResponse |
subscribeListing(String name)
public final SubscribeListingResponse subscribeListing(String name)
Subscribes to a single Listing.
Data Exchange currently supports one type of Listing: a BigQuery dataset. Upon subscription to a Listing for a BigQuery dataset, Data Exchange creates a linked dataset in the subscriber's project.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
String name =
ListingName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]").toString();
SubscribeListingResponse response = analyticsHubServiceClient.subscribeListing(name);
}
Name | Description |
name | String Required. Resource name of the listing to subscribe to. e.g.
|
Type | Description |
SubscribeListingResponse |
subscribeListingCallable()
public final UnaryCallable<SubscribeListingRequest,SubscribeListingResponse> subscribeListingCallable()
Subscribes to a single Listing.
Data Exchange currently supports one type of Listing: a BigQuery dataset. Upon subscription to a Listing for a BigQuery dataset, Data Exchange creates a linked dataset in the subscriber's project.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
SubscribeListingRequest request =
SubscribeListingRequest.newBuilder()
.setName(
ListingName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]")
.toString())
.build();
ApiFuture<SubscribeListingResponse> future =
analyticsHubServiceClient.subscribeListingCallable().futureCall(request);
// Do something.
SubscribeListingResponse response = future.get();
}
Type | Description |
UnaryCallable<SubscribeListingRequest,SubscribeListingResponse> |
testIamPermissions(TestIamPermissionsRequest request)
public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request)
Returns the permissions that a caller has on a specified dataExchange or listing.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
TestIamPermissionsRequest request =
TestIamPermissionsRequest.newBuilder()
.setResource(
DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
.addAllPermissions(new ArrayList<String>())
.build();
TestIamPermissionsResponse response = analyticsHubServiceClient.testIamPermissions(request);
}
Name | Description |
request | com.google.iam.v1.TestIamPermissionsRequest The request object containing all of the parameters for the API call. |
Type | Description |
com.google.iam.v1.TestIamPermissionsResponse |
testIamPermissionsCallable()
public final UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns the permissions that a caller has on a specified dataExchange or listing.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
TestIamPermissionsRequest request =
TestIamPermissionsRequest.newBuilder()
.setResource(
DataExchangeName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]").toString())
.addAllPermissions(new ArrayList<String>())
.build();
ApiFuture<TestIamPermissionsResponse> future =
analyticsHubServiceClient.testIamPermissionsCallable().futureCall(request);
// Do something.
TestIamPermissionsResponse response = future.get();
}
Type | Description |
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
updateDataExchange(DataExchange dataExchange, FieldMask updateMask)
public final DataExchange updateDataExchange(DataExchange dataExchange, FieldMask updateMask)
Updates the parameters of a single DataExchange.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
DataExchange dataExchange = DataExchange.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
DataExchange response =
analyticsHubServiceClient.updateDataExchange(dataExchange, updateMask);
}
Name | Description |
dataExchange | DataExchange Required. The DataExchange to update. |
updateMask | FieldMask Required. Field mask is used to specify the fields to be overwritten in the DataExchange resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. |
Type | Description |
DataExchange |
updateDataExchange(UpdateDataExchangeRequest request)
public final DataExchange updateDataExchange(UpdateDataExchangeRequest request)
Updates the parameters of a single DataExchange.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
UpdateDataExchangeRequest request =
UpdateDataExchangeRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setDataExchange(DataExchange.newBuilder().build())
.build();
DataExchange response = analyticsHubServiceClient.updateDataExchange(request);
}
Name | Description |
request | UpdateDataExchangeRequest The request object containing all of the parameters for the API call. |
Type | Description |
DataExchange |
updateDataExchangeCallable()
public final UnaryCallable<UpdateDataExchangeRequest,DataExchange> updateDataExchangeCallable()
Updates the parameters of a single DataExchange.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
UpdateDataExchangeRequest request =
UpdateDataExchangeRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setDataExchange(DataExchange.newBuilder().build())
.build();
ApiFuture<DataExchange> future =
analyticsHubServiceClient.updateDataExchangeCallable().futureCall(request);
// Do something.
DataExchange response = future.get();
}
Type | Description |
UnaryCallable<UpdateDataExchangeRequest,DataExchange> |
updateListing(Listing listing, FieldMask updateMask)
public final Listing updateListing(Listing listing, FieldMask updateMask)
Updates the parameters of a single Listing.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
Listing listing = Listing.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Listing response = analyticsHubServiceClient.updateListing(listing, updateMask);
}
Name | Description |
listing | Listing Required. The listing to update. |
updateMask | FieldMask Required. Field mask is used to specify the fields to be overwritten in the Listing resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. |
Type | Description |
Listing |
updateListing(UpdateListingRequest request)
public final Listing updateListing(UpdateListingRequest request)
Updates the parameters of a single Listing.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
UpdateListingRequest request =
UpdateListingRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setListing(Listing.newBuilder().build())
.build();
Listing response = analyticsHubServiceClient.updateListing(request);
}
Name | Description |
request | UpdateListingRequest The request object containing all of the parameters for the API call. |
Type | Description |
Listing |
updateListingCallable()
public final UnaryCallable<UpdateListingRequest,Listing> updateListingCallable()
Updates the parameters of a single Listing.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
UpdateListingRequest request =
UpdateListingRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setListing(Listing.newBuilder().build())
.build();
ApiFuture<Listing> future =
analyticsHubServiceClient.updateListingCallable().futureCall(request);
// Do something.
Listing response = future.get();
}
Type | Description |
UnaryCallable<UpdateListingRequest,Listing> |