- 3.57.0 (latest)
- 3.56.0
- 3.55.0
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.6
- 3.6.1
- 3.5.1
- 3.3.1
public class CloudChannelReportsServiceClient implements BackgroundResource
Service Description: CloudChannelReportsService lets Google Cloud resellers and distributors retrieve and combine a variety of data in Cloud Channel for multiple products (Google Cloud, Google Voice, and Google Workspace.)
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 (CloudChannelReportsServiceClient cloudChannelReportsServiceClient =
CloudChannelReportsServiceClient.create()) {
RunReportJobRequest request =
RunReportJobRequest.newBuilder()
.setName(ReportName.of("[ACCOUNT]", "[REPORT]").toString())
.setDateRange(DateRange.newBuilder().build())
.setFilter("filter-1274492040")
.setLanguageCode("languageCode-2092349083")
.build();
RunReportJobResponse response =
cloudChannelReportsServiceClient.runReportJobAsync(request).get();
}
Note: close() needs to be called on the CloudChannelReportsServiceClient 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 CloudChannelReportsServiceSettings 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
CloudChannelReportsServiceSettings cloudChannelReportsServiceSettings =
CloudChannelReportsServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
CloudChannelReportsServiceClient cloudChannelReportsServiceClient =
CloudChannelReportsServiceClient.create(cloudChannelReportsServiceSettings);
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
CloudChannelReportsServiceSettings cloudChannelReportsServiceSettings =
CloudChannelReportsServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
CloudChannelReportsServiceClient cloudChannelReportsServiceClient =
CloudChannelReportsServiceClient.create(cloudChannelReportsServiceSettings);
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
CloudChannelReportsServiceSettings cloudChannelReportsServiceSettings =
CloudChannelReportsServiceSettings.newHttpJsonBuilder().build();
CloudChannelReportsServiceClient cloudChannelReportsServiceClient =
CloudChannelReportsServiceClient.create(cloudChannelReportsServiceSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
Implements
BackgroundResourceStatic Methods
create()
public static final CloudChannelReportsServiceClient create()
Constructs an instance of CloudChannelReportsServiceClient with default settings.
Returns | |
---|---|
Type | Description |
CloudChannelReportsServiceClient |
Exceptions | |
---|---|
Type | Description |
IOException |
create(CloudChannelReportsServiceSettings settings)
public static final CloudChannelReportsServiceClient create(CloudChannelReportsServiceSettings settings)
Constructs an instance of CloudChannelReportsServiceClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.
Parameter | |
---|---|
Name | Description |
settings | CloudChannelReportsServiceSettings |
Returns | |
---|---|
Type | Description |
CloudChannelReportsServiceClient |
Exceptions | |
---|---|
Type | Description |
IOException |
create(CloudChannelReportsServiceStub stub)
public static final CloudChannelReportsServiceClient create(CloudChannelReportsServiceStub stub)
Constructs an instance of CloudChannelReportsServiceClient, using the given stub for making calls. This is for advanced usage - prefer using create(CloudChannelReportsServiceSettings).
Parameter | |
---|---|
Name | Description |
stub | CloudChannelReportsServiceStub |
Returns | |
---|---|
Type | Description |
CloudChannelReportsServiceClient |
Constructors
CloudChannelReportsServiceClient(CloudChannelReportsServiceSettings settings)
protected CloudChannelReportsServiceClient(CloudChannelReportsServiceSettings settings)
Constructs an instance of CloudChannelReportsServiceClient, 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.
Parameter | |
---|---|
Name | Description |
settings | CloudChannelReportsServiceSettings |
CloudChannelReportsServiceClient(CloudChannelReportsServiceStub stub)
protected CloudChannelReportsServiceClient(CloudChannelReportsServiceStub stub)
Parameter | |
---|---|
Name | Description |
stub | CloudChannelReportsServiceStub |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters | |
---|---|
Name | Description |
duration | long |
unit | TimeUnit |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
InterruptedException |
close()
public final void close()
fetchReportResults(FetchReportResultsRequest request)
public final CloudChannelReportsServiceClient.FetchReportResultsPagedResponse fetchReportResults(FetchReportResultsRequest request)
Retrieves data generated by CloudChannelReportsService.RunReportJob.
Sample code:
// 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 (CloudChannelReportsServiceClient cloudChannelReportsServiceClient =
CloudChannelReportsServiceClient.create()) {
FetchReportResultsRequest request =
FetchReportResultsRequest.newBuilder()
.setReportJob(ReportJobName.of("[ACCOUNT]", "[REPORT_JOB]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.addAllPartitionKeys(new ArrayList<String>())
.build();
for (Row element :
cloudChannelReportsServiceClient.fetchReportResults(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request | FetchReportResultsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
CloudChannelReportsServiceClient.FetchReportResultsPagedResponse |
fetchReportResults(ReportJobName reportJob)
public final CloudChannelReportsServiceClient.FetchReportResultsPagedResponse fetchReportResults(ReportJobName reportJob)
Retrieves data generated by CloudChannelReportsService.RunReportJob.
Sample code:
// 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 (CloudChannelReportsServiceClient cloudChannelReportsServiceClient =
CloudChannelReportsServiceClient.create()) {
ReportJobName reportJob = ReportJobName.of("[ACCOUNT]", "[REPORT_JOB]");
for (Row element :
cloudChannelReportsServiceClient.fetchReportResults(reportJob).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
reportJob | ReportJobName Required. The report job created by CloudChannelReportsService.RunReportJob. Report_job uses the format: accounts/{account_id}/reportJobs/{report_job_id} |
Returns | |
---|---|
Type | Description |
CloudChannelReportsServiceClient.FetchReportResultsPagedResponse |
fetchReportResults(String reportJob)
public final CloudChannelReportsServiceClient.FetchReportResultsPagedResponse fetchReportResults(String reportJob)
Retrieves data generated by CloudChannelReportsService.RunReportJob.
Sample code:
// 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 (CloudChannelReportsServiceClient cloudChannelReportsServiceClient =
CloudChannelReportsServiceClient.create()) {
String reportJob = ReportJobName.of("[ACCOUNT]", "[REPORT_JOB]").toString();
for (Row element :
cloudChannelReportsServiceClient.fetchReportResults(reportJob).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
reportJob | String Required. The report job created by CloudChannelReportsService.RunReportJob. Report_job uses the format: accounts/{account_id}/reportJobs/{report_job_id} |
Returns | |
---|---|
Type | Description |
CloudChannelReportsServiceClient.FetchReportResultsPagedResponse |
fetchReportResultsCallable()
public final UnaryCallable<FetchReportResultsRequest,FetchReportResultsResponse> fetchReportResultsCallable()
Retrieves data generated by CloudChannelReportsService.RunReportJob.
Sample code:
// 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 (CloudChannelReportsServiceClient cloudChannelReportsServiceClient =
CloudChannelReportsServiceClient.create()) {
FetchReportResultsRequest request =
FetchReportResultsRequest.newBuilder()
.setReportJob(ReportJobName.of("[ACCOUNT]", "[REPORT_JOB]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.addAllPartitionKeys(new ArrayList<String>())
.build();
while (true) {
FetchReportResultsResponse response =
cloudChannelReportsServiceClient.fetchReportResultsCallable().call(request);
for (Row element : response.getRowsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<FetchReportResultsRequest,FetchReportResultsResponse> |
fetchReportResultsPagedCallable()
public final UnaryCallable<FetchReportResultsRequest,CloudChannelReportsServiceClient.FetchReportResultsPagedResponse> fetchReportResultsPagedCallable()
Retrieves data generated by CloudChannelReportsService.RunReportJob.
Sample code:
// 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 (CloudChannelReportsServiceClient cloudChannelReportsServiceClient =
CloudChannelReportsServiceClient.create()) {
FetchReportResultsRequest request =
FetchReportResultsRequest.newBuilder()
.setReportJob(ReportJobName.of("[ACCOUNT]", "[REPORT_JOB]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.addAllPartitionKeys(new ArrayList<String>())
.build();
ApiFuture<Row> future =
cloudChannelReportsServiceClient.fetchReportResultsPagedCallable().futureCall(request);
// Do something.
for (Row element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<FetchReportResultsRequest,FetchReportResultsPagedResponse> |
getHttpJsonOperationsClient()
public final OperationsClient getHttpJsonOperationsClient()
Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.
Returns | |
---|---|
Type | Description |
OperationsClient |
getOperationsClient()
public final OperationsClient getOperationsClient()
Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.
Returns | |
---|---|
Type | Description |
OperationsClient |
getSettings()
public final CloudChannelReportsServiceSettings getSettings()
Returns | |
---|---|
Type | Description |
CloudChannelReportsServiceSettings |
getStub()
public CloudChannelReportsServiceStub getStub()
Returns | |
---|---|
Type | Description |
CloudChannelReportsServiceStub |
isShutdown()
public boolean isShutdown()
Returns | |
---|---|
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Returns | |
---|---|
Type | Description |
boolean |
listReports(ListReportsRequest request)
public final CloudChannelReportsServiceClient.ListReportsPagedResponse listReports(ListReportsRequest request)
Lists the reports that RunReportJob can run. These reports include an ID, a description, and the list of columns that will be in the result.
Sample code:
// 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 (CloudChannelReportsServiceClient cloudChannelReportsServiceClient =
CloudChannelReportsServiceClient.create()) {
ListReportsRequest request =
ListReportsRequest.newBuilder()
.setParent("parent-995424086")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setLanguageCode("languageCode-2092349083")
.build();
for (Report element : cloudChannelReportsServiceClient.listReports(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request | ListReportsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
CloudChannelReportsServiceClient.ListReportsPagedResponse |
listReports(String parent)
public final CloudChannelReportsServiceClient.ListReportsPagedResponse listReports(String parent)
Lists the reports that RunReportJob can run. These reports include an ID, a description, and the list of columns that will be in the result.
Sample code:
// 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 (CloudChannelReportsServiceClient cloudChannelReportsServiceClient =
CloudChannelReportsServiceClient.create()) {
String parent = "parent-995424086";
for (Report element : cloudChannelReportsServiceClient.listReports(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent | String Required. The resource name of the partner account to list available reports for. Parent uses the format: accounts/{account_id} |
Returns | |
---|---|
Type | Description |
CloudChannelReportsServiceClient.ListReportsPagedResponse |
listReportsCallable()
public final UnaryCallable<ListReportsRequest,ListReportsResponse> listReportsCallable()
Lists the reports that RunReportJob can run. These reports include an ID, a description, and the list of columns that will be in the result.
Sample code:
// 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 (CloudChannelReportsServiceClient cloudChannelReportsServiceClient =
CloudChannelReportsServiceClient.create()) {
ListReportsRequest request =
ListReportsRequest.newBuilder()
.setParent("parent-995424086")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setLanguageCode("languageCode-2092349083")
.build();
while (true) {
ListReportsResponse response =
cloudChannelReportsServiceClient.listReportsCallable().call(request);
for (Report element : response.getReportsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListReportsRequest,ListReportsResponse> |
listReportsPagedCallable()
public final UnaryCallable<ListReportsRequest,CloudChannelReportsServiceClient.ListReportsPagedResponse> listReportsPagedCallable()
Lists the reports that RunReportJob can run. These reports include an ID, a description, and the list of columns that will be in the result.
Sample code:
// 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 (CloudChannelReportsServiceClient cloudChannelReportsServiceClient =
CloudChannelReportsServiceClient.create()) {
ListReportsRequest request =
ListReportsRequest.newBuilder()
.setParent("parent-995424086")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setLanguageCode("languageCode-2092349083")
.build();
ApiFuture<Report> future =
cloudChannelReportsServiceClient.listReportsPagedCallable().futureCall(request);
// Do something.
for (Report element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListReportsRequest,ListReportsPagedResponse> |
runReportJobAsync(RunReportJobRequest request)
public final OperationFuture<RunReportJobResponse,OperationMetadata> runReportJobAsync(RunReportJobRequest request)
Begins generation of data for a given report. The report identifier is a UID (for example,
613bf59q
).
Possible error codes:
- PERMISSION_DENIED: The user doesn't have access to this report.
- INVALID_ARGUMENT: Required request parameters are missing or invalid.
- NOT_FOUND: The report identifier was not found.
- INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support.
- UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support.
Return value: The ID of a long-running operation.
To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata contains an instance of OperationMetadata.
To get the results of report generation, call CloudChannelReportsService.FetchReportResults with the RunReportJobResponse.report_job.
Sample code:
// 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 (CloudChannelReportsServiceClient cloudChannelReportsServiceClient =
CloudChannelReportsServiceClient.create()) {
RunReportJobRequest request =
RunReportJobRequest.newBuilder()
.setName(ReportName.of("[ACCOUNT]", "[REPORT]").toString())
.setDateRange(DateRange.newBuilder().build())
.setFilter("filter-1274492040")
.setLanguageCode("languageCode-2092349083")
.build();
RunReportJobResponse response =
cloudChannelReportsServiceClient.runReportJobAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request | RunReportJobRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<RunReportJobResponse,OperationMetadata> |
runReportJobCallable()
public final UnaryCallable<RunReportJobRequest,Operation> runReportJobCallable()
Begins generation of data for a given report. The report identifier is a UID (for example,
613bf59q
).
Possible error codes:
- PERMISSION_DENIED: The user doesn't have access to this report.
- INVALID_ARGUMENT: Required request parameters are missing or invalid.
- NOT_FOUND: The report identifier was not found.
- INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support.
- UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support.
Return value: The ID of a long-running operation.
To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata contains an instance of OperationMetadata.
To get the results of report generation, call CloudChannelReportsService.FetchReportResults with the RunReportJobResponse.report_job.
Sample code:
// 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 (CloudChannelReportsServiceClient cloudChannelReportsServiceClient =
CloudChannelReportsServiceClient.create()) {
RunReportJobRequest request =
RunReportJobRequest.newBuilder()
.setName(ReportName.of("[ACCOUNT]", "[REPORT]").toString())
.setDateRange(DateRange.newBuilder().build())
.setFilter("filter-1274492040")
.setLanguageCode("languageCode-2092349083")
.build();
ApiFuture<Operation> future =
cloudChannelReportsServiceClient.runReportJobCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<RunReportJobRequest,Operation> |
runReportJobOperationCallable()
public final OperationCallable<RunReportJobRequest,RunReportJobResponse,OperationMetadata> runReportJobOperationCallable()
Begins generation of data for a given report. The report identifier is a UID (for example,
613bf59q
).
Possible error codes:
- PERMISSION_DENIED: The user doesn't have access to this report.
- INVALID_ARGUMENT: Required request parameters are missing or invalid.
- NOT_FOUND: The report identifier was not found.
- INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support.
- UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support.
Return value: The ID of a long-running operation.
To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata contains an instance of OperationMetadata.
To get the results of report generation, call CloudChannelReportsService.FetchReportResults with the RunReportJobResponse.report_job.
Sample code:
// 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 (CloudChannelReportsServiceClient cloudChannelReportsServiceClient =
CloudChannelReportsServiceClient.create()) {
RunReportJobRequest request =
RunReportJobRequest.newBuilder()
.setName(ReportName.of("[ACCOUNT]", "[REPORT]").toString())
.setDateRange(DateRange.newBuilder().build())
.setFilter("filter-1274492040")
.setLanguageCode("languageCode-2092349083")
.build();
OperationFuture<RunReportJobResponse, OperationMetadata> future =
cloudChannelReportsServiceClient.runReportJobOperationCallable().futureCall(request);
// Do something.
RunReportJobResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<RunReportJobRequest,RunReportJobResponse,OperationMetadata> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()