Skip to content

Commit 3ef3b0a

Browse files
feat: [analyticsdata] add CreateAudienceExport, QueryAudienceExport, GetAudienceExport, ListAudienceExports methods to the Data API v1 beta (#10133)
* feat: add `CreateAudienceExport`, `QueryAudienceExport`, `GetAudienceExport`, `ListAudienceExports` methods to the Data API v1 beta feat: add `sampling_metadatas` field to `ResponseMetaData` feat: add `SamplingMetadata`, `AudienceExport`, `AudienceExportMetadata`, `AudienceDimensionValue` types fix!: add `optional` label to `consumed`, `remaining` fields of the `QuotaStatus` type docs: updated comments PiperOrigin-RevId: 589214160 Source-Link: googleapis/googleapis@c3ee218 Source-Link: https://github.com/googleapis/googleapis-gen/commit/2ae3038701f796a5c83ff4f12d41c6ab828bb9a7 Copy-Tag: eyJwIjoiamF2YS1hbmFseXRpY3MtZGF0YS8uT3dsQm90LnlhbWwiLCJoIjoiMmFlMzAzODcwMWY3OTZhNWM4M2ZmNGYxMmQ0MWM2YWI4MjhiYjlhNyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Tomo Suzuki <suztomo@google.com>
1 parent 66f99c3 commit 3ef3b0a

File tree

69 files changed

+20672
-331
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+20672
-331
lines changed

java-analytics-data/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
201201
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
202202
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
203203
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-data.svg
204-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.41.0
204+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.42.0
205205
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
206206
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
207207
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java

Lines changed: 908 additions & 0 deletions
Large diffs are not rendered by default.

java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataSettings.java

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package com.google.analytics.data.v1beta;
1818

19+
import static com.google.analytics.data.v1beta.BetaAnalyticsDataClient.ListAudienceExportsPagedResponse;
20+
1921
import com.google.analytics.data.v1beta.stub.BetaAnalyticsDataStubSettings;
2022
import com.google.api.core.ApiFunction;
2123
import com.google.api.core.BetaApi;
@@ -26,8 +28,11 @@
2628
import com.google.api.gax.rpc.ApiClientHeaderProvider;
2729
import com.google.api.gax.rpc.ClientContext;
2830
import com.google.api.gax.rpc.ClientSettings;
31+
import com.google.api.gax.rpc.OperationCallSettings;
32+
import com.google.api.gax.rpc.PagedCallSettings;
2933
import com.google.api.gax.rpc.TransportChannelProvider;
3034
import com.google.api.gax.rpc.UnaryCallSettings;
35+
import com.google.longrunning.Operation;
3136
import java.io.IOException;
3237
import java.util.List;
3338
import javax.annotation.Generated;
@@ -112,6 +117,36 @@ public UnaryCallSettings<GetMetadataRequest, Metadata> getMetadataSettings() {
112117
return ((BetaAnalyticsDataStubSettings) getStubSettings()).checkCompatibilitySettings();
113118
}
114119

120+
/** Returns the object with the settings used for calls to createAudienceExport. */
121+
public UnaryCallSettings<CreateAudienceExportRequest, Operation> createAudienceExportSettings() {
122+
return ((BetaAnalyticsDataStubSettings) getStubSettings()).createAudienceExportSettings();
123+
}
124+
125+
/** Returns the object with the settings used for calls to createAudienceExport. */
126+
public OperationCallSettings<CreateAudienceExportRequest, AudienceExport, AudienceExportMetadata>
127+
createAudienceExportOperationSettings() {
128+
return ((BetaAnalyticsDataStubSettings) getStubSettings())
129+
.createAudienceExportOperationSettings();
130+
}
131+
132+
/** Returns the object with the settings used for calls to queryAudienceExport. */
133+
public UnaryCallSettings<QueryAudienceExportRequest, QueryAudienceExportResponse>
134+
queryAudienceExportSettings() {
135+
return ((BetaAnalyticsDataStubSettings) getStubSettings()).queryAudienceExportSettings();
136+
}
137+
138+
/** Returns the object with the settings used for calls to getAudienceExport. */
139+
public UnaryCallSettings<GetAudienceExportRequest, AudienceExport> getAudienceExportSettings() {
140+
return ((BetaAnalyticsDataStubSettings) getStubSettings()).getAudienceExportSettings();
141+
}
142+
143+
/** Returns the object with the settings used for calls to listAudienceExports. */
144+
public PagedCallSettings<
145+
ListAudienceExportsRequest, ListAudienceExportsResponse, ListAudienceExportsPagedResponse>
146+
listAudienceExportsSettings() {
147+
return ((BetaAnalyticsDataStubSettings) getStubSettings()).listAudienceExportsSettings();
148+
}
149+
115150
public static final BetaAnalyticsDataSettings create(BetaAnalyticsDataStubSettings stub)
116151
throws IOException {
117152
return new BetaAnalyticsDataSettings.Builder(stub.toBuilder()).build();
@@ -267,6 +302,40 @@ public UnaryCallSettings.Builder<GetMetadataRequest, Metadata> getMetadataSettin
267302
return getStubSettingsBuilder().checkCompatibilitySettings();
268303
}
269304

305+
/** Returns the builder for the settings used for calls to createAudienceExport. */
306+
public UnaryCallSettings.Builder<CreateAudienceExportRequest, Operation>
307+
createAudienceExportSettings() {
308+
return getStubSettingsBuilder().createAudienceExportSettings();
309+
}
310+
311+
/** Returns the builder for the settings used for calls to createAudienceExport. */
312+
public OperationCallSettings.Builder<
313+
CreateAudienceExportRequest, AudienceExport, AudienceExportMetadata>
314+
createAudienceExportOperationSettings() {
315+
return getStubSettingsBuilder().createAudienceExportOperationSettings();
316+
}
317+
318+
/** Returns the builder for the settings used for calls to queryAudienceExport. */
319+
public UnaryCallSettings.Builder<QueryAudienceExportRequest, QueryAudienceExportResponse>
320+
queryAudienceExportSettings() {
321+
return getStubSettingsBuilder().queryAudienceExportSettings();
322+
}
323+
324+
/** Returns the builder for the settings used for calls to getAudienceExport. */
325+
public UnaryCallSettings.Builder<GetAudienceExportRequest, AudienceExport>
326+
getAudienceExportSettings() {
327+
return getStubSettingsBuilder().getAudienceExportSettings();
328+
}
329+
330+
/** Returns the builder for the settings used for calls to listAudienceExports. */
331+
public PagedCallSettings.Builder<
332+
ListAudienceExportsRequest,
333+
ListAudienceExportsResponse,
334+
ListAudienceExportsPagedResponse>
335+
listAudienceExportsSettings() {
336+
return getStubSettingsBuilder().listAudienceExportsSettings();
337+
}
338+
270339
@Override
271340
public BetaAnalyticsDataSettings build() throws IOException {
272341
return new BetaAnalyticsDataSettings(this);

java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/gapic_metadata.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,21 @@
1919
"CheckCompatibility": {
2020
"methods": ["checkCompatibility", "checkCompatibilityCallable"]
2121
},
22+
"CreateAudienceExport": {
23+
"methods": ["createAudienceExportAsync", "createAudienceExportAsync", "createAudienceExportAsync", "createAudienceExportOperationCallable", "createAudienceExportCallable"]
24+
},
25+
"GetAudienceExport": {
26+
"methods": ["getAudienceExport", "getAudienceExport", "getAudienceExport", "getAudienceExportCallable"]
27+
},
2228
"GetMetadata": {
2329
"methods": ["getMetadata", "getMetadata", "getMetadata", "getMetadataCallable"]
2430
},
31+
"ListAudienceExports": {
32+
"methods": ["listAudienceExports", "listAudienceExports", "listAudienceExports", "listAudienceExportsPagedCallable", "listAudienceExportsCallable"]
33+
},
34+
"QueryAudienceExport": {
35+
"methods": ["queryAudienceExport", "queryAudienceExport", "queryAudienceExportCallable"]
36+
},
2537
"RunPivotReport": {
2638
"methods": ["runPivotReport", "runPivotReportCallable"]
2739
},

java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStub.java

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,24 @@
1616

1717
package com.google.analytics.data.v1beta.stub;
1818

19+
import static com.google.analytics.data.v1beta.BetaAnalyticsDataClient.ListAudienceExportsPagedResponse;
20+
21+
import com.google.analytics.data.v1beta.AudienceExport;
22+
import com.google.analytics.data.v1beta.AudienceExportMetadata;
1923
import com.google.analytics.data.v1beta.BatchRunPivotReportsRequest;
2024
import com.google.analytics.data.v1beta.BatchRunPivotReportsResponse;
2125
import com.google.analytics.data.v1beta.BatchRunReportsRequest;
2226
import com.google.analytics.data.v1beta.BatchRunReportsResponse;
2327
import com.google.analytics.data.v1beta.CheckCompatibilityRequest;
2428
import com.google.analytics.data.v1beta.CheckCompatibilityResponse;
29+
import com.google.analytics.data.v1beta.CreateAudienceExportRequest;
30+
import com.google.analytics.data.v1beta.GetAudienceExportRequest;
2531
import com.google.analytics.data.v1beta.GetMetadataRequest;
32+
import com.google.analytics.data.v1beta.ListAudienceExportsRequest;
33+
import com.google.analytics.data.v1beta.ListAudienceExportsResponse;
2634
import com.google.analytics.data.v1beta.Metadata;
35+
import com.google.analytics.data.v1beta.QueryAudienceExportRequest;
36+
import com.google.analytics.data.v1beta.QueryAudienceExportResponse;
2737
import com.google.analytics.data.v1beta.RunPivotReportRequest;
2838
import com.google.analytics.data.v1beta.RunPivotReportResponse;
2939
import com.google.analytics.data.v1beta.RunRealtimeReportRequest;
@@ -32,7 +42,10 @@
3242
import com.google.analytics.data.v1beta.RunReportResponse;
3343
import com.google.api.core.BetaApi;
3444
import com.google.api.gax.core.BackgroundResource;
45+
import com.google.api.gax.rpc.OperationCallable;
3546
import com.google.api.gax.rpc.UnaryCallable;
47+
import com.google.longrunning.Operation;
48+
import com.google.longrunning.stub.OperationsStub;
3649
import javax.annotation.Generated;
3750

3851
// AUTO-GENERATED DOCUMENTATION AND CLASS.
@@ -45,6 +58,14 @@
4558
@Generated("by gapic-generator-java")
4659
public abstract class BetaAnalyticsDataStub implements BackgroundResource {
4760

61+
public OperationsStub getOperationsStub() {
62+
return null;
63+
}
64+
65+
public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() {
66+
return null;
67+
}
68+
4869
public UnaryCallable<RunReportRequest, RunReportResponse> runReportCallable() {
4970
throw new UnsupportedOperationException("Not implemented: runReportCallable()");
5071
}
@@ -76,6 +97,35 @@ public UnaryCallable<GetMetadataRequest, Metadata> getMetadataCallable() {
7697
throw new UnsupportedOperationException("Not implemented: checkCompatibilityCallable()");
7798
}
7899

100+
public OperationCallable<CreateAudienceExportRequest, AudienceExport, AudienceExportMetadata>
101+
createAudienceExportOperationCallable() {
102+
throw new UnsupportedOperationException(
103+
"Not implemented: createAudienceExportOperationCallable()");
104+
}
105+
106+
public UnaryCallable<CreateAudienceExportRequest, Operation> createAudienceExportCallable() {
107+
throw new UnsupportedOperationException("Not implemented: createAudienceExportCallable()");
108+
}
109+
110+
public UnaryCallable<QueryAudienceExportRequest, QueryAudienceExportResponse>
111+
queryAudienceExportCallable() {
112+
throw new UnsupportedOperationException("Not implemented: queryAudienceExportCallable()");
113+
}
114+
115+
public UnaryCallable<GetAudienceExportRequest, AudienceExport> getAudienceExportCallable() {
116+
throw new UnsupportedOperationException("Not implemented: getAudienceExportCallable()");
117+
}
118+
119+
public UnaryCallable<ListAudienceExportsRequest, ListAudienceExportsPagedResponse>
120+
listAudienceExportsPagedCallable() {
121+
throw new UnsupportedOperationException("Not implemented: listAudienceExportsPagedCallable()");
122+
}
123+
124+
public UnaryCallable<ListAudienceExportsRequest, ListAudienceExportsResponse>
125+
listAudienceExportsCallable() {
126+
throw new UnsupportedOperationException("Not implemented: listAudienceExportsCallable()");
127+
}
128+
79129
@Override
80130
public abstract void close();
81131
}

0 commit comments

Comments
 (0)