• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2022 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 /**
18  * A client to Google Analytics Data API
19  *
20  * <p>The interfaces provided are listed below, along with usage samples.
21  *
22  * <p>======================= BetaAnalyticsDataClient =======================
23  *
24  * <p>Service Description: Google Analytics reporting data service.
25  *
26  * <p>Sample for BetaAnalyticsDataClient:
27  *
28  * <pre>{@code
29  * // This snippet has been automatically generated and should be regarded as a code template only.
30  * // It will require modifications to work:
31  * // - It may require correct/in-range values for request initialization.
32  * // - It may require specifying regional endpoints when creating the service client as shown in
33  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
34  * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
35  *   RunReportRequest request =
36  *       RunReportRequest.newBuilder()
37  *           .setProperty("property-993141291")
38  *           .addAllDimensions(new ArrayList<Dimension>())
39  *           .addAllMetrics(new ArrayList<Metric>())
40  *           .addAllDateRanges(new ArrayList<DateRange>())
41  *           .setDimensionFilter(FilterExpression.newBuilder().build())
42  *           .setMetricFilter(FilterExpression.newBuilder().build())
43  *           .setOffset(-1019779949)
44  *           .setLimit(102976443)
45  *           .addAllMetricAggregations(new ArrayList<MetricAggregation>())
46  *           .addAllOrderBys(new ArrayList<OrderBy>())
47  *           .setCurrencyCode("currencyCode1004773790")
48  *           .setCohortSpec(CohortSpec.newBuilder().build())
49  *           .setKeepEmptyRows(true)
50  *           .setReturnPropertyQuota(true)
51  *           .build();
52  *   RunReportResponse response = betaAnalyticsDataClient.runReport(request);
53  * }
54  * }</pre>
55  */
56 @Generated("by gapic-generator-java")
57 package com.google.analytics.data.v1beta;
58 
59 import javax.annotation.Generated;
60