Skip to content

Commit 0fe9bf2

Browse files
1 parent 9858c62 commit 0fe9bf2

File tree

10 files changed

+572
-12
lines changed

10 files changed

+572
-12
lines changed

clients/google-api-services-retail/v2alpha/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-retail</artifactId>
25-
<version>v2alpha-rev20240702-2.0.0</version>
25+
<version>v2alpha-rev20240711-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-retail:v2alpha-rev20240702-2.0.0'
38+
implementation 'com.google.apis:google-api-services-retail:v2alpha-rev20240711-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-retail/v2alpha/2.0.0/com/google/api/services/retail/v2alpha/CloudRetail.java

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11766,6 +11766,147 @@ public Collect set(String parameterName, Object value) {
1176611766
return (Collect) super.set(parameterName, value);
1176711767
}
1176811768
}
11769+
/**
11770+
* Exports user events. `Operation.response` is of type `ExportResponse`. `Operation.metadata` is of
11771+
* type `ExportMetadata`.
11772+
*
11773+
* Create a request for the method "userEvents.export".
11774+
*
11775+
* This request holds the parameters needed by the retail server. After setting any optional
11776+
* parameters, call the {@link Export#execute()} method to invoke the remote operation.
11777+
*
11778+
* @param parent Required. Resource name of a Catalog. For example
11779+
* `projects/1234/locations/global/catalogs/default_catalog`
11780+
* @param content the {@link com.google.api.services.retail.v2alpha.model.GoogleCloudRetailV2alphaExportUserEventsRequest}
11781+
* @return the request
11782+
*/
11783+
public Export export(java.lang.String parent, com.google.api.services.retail.v2alpha.model.GoogleCloudRetailV2alphaExportUserEventsRequest content) throws java.io.IOException {
11784+
Export result = new Export(parent, content);
11785+
initialize(result);
11786+
return result;
11787+
}
11788+
11789+
public class Export extends CloudRetailRequest<com.google.api.services.retail.v2alpha.model.GoogleLongrunningOperation> {
11790+
11791+
private static final String REST_PATH = "v2alpha/{+parent}/userEvents:export";
11792+
11793+
private final java.util.regex.Pattern PARENT_PATTERN =
11794+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$");
11795+
11796+
/**
11797+
* Exports user events. `Operation.response` is of type `ExportResponse`. `Operation.metadata` is
11798+
* of type `ExportMetadata`.
11799+
*
11800+
* Create a request for the method "userEvents.export".
11801+
*
11802+
* This request holds the parameters needed by the the retail server. After setting any optional
11803+
* parameters, call the {@link Export#execute()} method to invoke the remote operation. <p> {@link
11804+
* Export#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
11805+
* be called to initialize this instance immediately after invoking the constructor. </p>
11806+
*
11807+
* @param parent Required. Resource name of a Catalog. For example
11808+
* `projects/1234/locations/global/catalogs/default_catalog`
11809+
* @param content the {@link com.google.api.services.retail.v2alpha.model.GoogleCloudRetailV2alphaExportUserEventsRequest}
11810+
* @since 1.13
11811+
*/
11812+
protected Export(java.lang.String parent, com.google.api.services.retail.v2alpha.model.GoogleCloudRetailV2alphaExportUserEventsRequest content) {
11813+
super(CloudRetail.this, "POST", REST_PATH, content, com.google.api.services.retail.v2alpha.model.GoogleLongrunningOperation.class);
11814+
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
11815+
if (!getSuppressPatternChecks()) {
11816+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
11817+
"Parameter parent must conform to the pattern " +
11818+
"^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$");
11819+
}
11820+
}
11821+
11822+
@Override
11823+
public Export set$Xgafv(java.lang.String $Xgafv) {
11824+
return (Export) super.set$Xgafv($Xgafv);
11825+
}
11826+
11827+
@Override
11828+
public Export setAccessToken(java.lang.String accessToken) {
11829+
return (Export) super.setAccessToken(accessToken);
11830+
}
11831+
11832+
@Override
11833+
public Export setAlt(java.lang.String alt) {
11834+
return (Export) super.setAlt(alt);
11835+
}
11836+
11837+
@Override
11838+
public Export setCallback(java.lang.String callback) {
11839+
return (Export) super.setCallback(callback);
11840+
}
11841+
11842+
@Override
11843+
public Export setFields(java.lang.String fields) {
11844+
return (Export) super.setFields(fields);
11845+
}
11846+
11847+
@Override
11848+
public Export setKey(java.lang.String key) {
11849+
return (Export) super.setKey(key);
11850+
}
11851+
11852+
@Override
11853+
public Export setOauthToken(java.lang.String oauthToken) {
11854+
return (Export) super.setOauthToken(oauthToken);
11855+
}
11856+
11857+
@Override
11858+
public Export setPrettyPrint(java.lang.Boolean prettyPrint) {
11859+
return (Export) super.setPrettyPrint(prettyPrint);
11860+
}
11861+
11862+
@Override
11863+
public Export setQuotaUser(java.lang.String quotaUser) {
11864+
return (Export) super.setQuotaUser(quotaUser);
11865+
}
11866+
11867+
@Override
11868+
public Export setUploadType(java.lang.String uploadType) {
11869+
return (Export) super.setUploadType(uploadType);
11870+
}
11871+
11872+
@Override
11873+
public Export setUploadProtocol(java.lang.String uploadProtocol) {
11874+
return (Export) super.setUploadProtocol(uploadProtocol);
11875+
}
11876+
11877+
/**
11878+
* Required. Resource name of a Catalog. For example
11879+
* `projects/1234/locations/global/catalogs/default_catalog`
11880+
*/
11881+
@com.google.api.client.util.Key
11882+
private java.lang.String parent;
11883+
11884+
/** Required. Resource name of a Catalog. For example
11885+
`projects/1234/locations/global/catalogs/default_catalog`
11886+
*/
11887+
public java.lang.String getParent() {
11888+
return parent;
11889+
}
11890+
11891+
/**
11892+
* Required. Resource name of a Catalog. For example
11893+
* `projects/1234/locations/global/catalogs/default_catalog`
11894+
*/
11895+
public Export setParent(java.lang.String parent) {
11896+
if (!getSuppressPatternChecks()) {
11897+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
11898+
"Parameter parent must conform to the pattern " +
11899+
"^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$");
11900+
}
11901+
this.parent = parent;
11902+
return this;
11903+
}
11904+
11905+
@Override
11906+
public Export set(String parameterName, Object value) {
11907+
return (Export) super.set(parameterName, value);
11908+
}
11909+
}
1176911910
/**
1177011911
* Bulk import of User events. Request processing might be synchronous. Events that already exist
1177111912
* are skipped. Use this method for backfilling historical user events. `Operation.response` is of
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.retail.v2alpha.model;
18+
19+
/**
20+
* Request message for the `ExportUserEvents` method.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Vertex AI Search for Retail API. For a detailed
24+
* explanation see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class GoogleCloudRetailV2alphaExportUserEventsRequest extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* A filtering expression to specify restrictions on returned events. The expression is a sequence
35+
* of terms. Each term applies a restriction to the returned user events. Use this expression to
36+
* restrict results to a specific time range or to filter events by eventType. For example,
37+
* `eventTime > "2012-04-23T18:25:43.511Z" eventsMissingCatalogItems
38+
* eventTime<"2012-04-23T18:25:43.511Z" eventType=search` We expect only three types of fields: *
39+
* `eventTime`: This can be specified twice, once with a less than operator and once with a
40+
* greater than operator. The `eventTime` restriction should result in one, contiguous, valid,
41+
* `eventTime` range. * `eventType`: Boolean operators `OR` and `NOT` are supported if the
42+
* expression is enclosed in parentheses and the operators are separated from the tag values by a
43+
* space. * `eventsMissingCatalogItems`: This restricts results to events for which catalog items
44+
* were not found in the catalog. The default behavior is to return only those events for which
45+
* catalog items were found. Some examples of valid filters expressions: * Example 1: `eventTime >
46+
* "2012-04-23T18:25:43.511Z" eventTime < "2012-04-23T18:30:43.511Z"` * Example 2: `eventTime >
47+
* "2012-04-23T18:25:43.511Z" eventType = detail-page-view` * Example 3:
48+
* `eventsMissingCatalogItems eventType = (NOT search) eventTime < "2018-04-23T18:30:43.511Z"` *
49+
* Example 4: `eventTime > "2012-04-23T18:25:43.511Z"` * Example 5: `eventType = (detail-page-view
50+
* OR search)` * Example 6: `eventsMissingCatalogItems`
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private java.lang.String filter;
55+
56+
/**
57+
* Required. The output location of the data.
58+
* The value may be {@code null}.
59+
*/
60+
@com.google.api.client.util.Key
61+
private GoogleCloudRetailV2alphaOutputConfig outputConfig;
62+
63+
/**
64+
* A filtering expression to specify restrictions on returned events. The expression is a sequence
65+
* of terms. Each term applies a restriction to the returned user events. Use this expression to
66+
* restrict results to a specific time range or to filter events by eventType. For example,
67+
* `eventTime > "2012-04-23T18:25:43.511Z" eventsMissingCatalogItems
68+
* eventTime<"2012-04-23T18:25:43.511Z" eventType=search` We expect only three types of fields: *
69+
* `eventTime`: This can be specified twice, once with a less than operator and once with a
70+
* greater than operator. The `eventTime` restriction should result in one, contiguous, valid,
71+
* `eventTime` range. * `eventType`: Boolean operators `OR` and `NOT` are supported if the
72+
* expression is enclosed in parentheses and the operators are separated from the tag values by a
73+
* space. * `eventsMissingCatalogItems`: This restricts results to events for which catalog items
74+
* were not found in the catalog. The default behavior is to return only those events for which
75+
* catalog items were found. Some examples of valid filters expressions: * Example 1: `eventTime >
76+
* "2012-04-23T18:25:43.511Z" eventTime < "2012-04-23T18:30:43.511Z"` * Example 2: `eventTime >
77+
* "2012-04-23T18:25:43.511Z" eventType = detail-page-view` * Example 3:
78+
* `eventsMissingCatalogItems eventType = (NOT search) eventTime < "2018-04-23T18:30:43.511Z"` *
79+
* Example 4: `eventTime > "2012-04-23T18:25:43.511Z"` * Example 5: `eventType = (detail-page-view
80+
* OR search)` * Example 6: `eventsMissingCatalogItems`
81+
* @return value or {@code null} for none
82+
*/
83+
public java.lang.String getFilter() {
84+
return filter;
85+
}
86+
87+
/**
88+
* A filtering expression to specify restrictions on returned events. The expression is a sequence
89+
* of terms. Each term applies a restriction to the returned user events. Use this expression to
90+
* restrict results to a specific time range or to filter events by eventType. For example,
91+
* `eventTime > "2012-04-23T18:25:43.511Z" eventsMissingCatalogItems
92+
* eventTime<"2012-04-23T18:25:43.511Z" eventType=search` We expect only three types of fields: *
93+
* `eventTime`: This can be specified twice, once with a less than operator and once with a
94+
* greater than operator. The `eventTime` restriction should result in one, contiguous, valid,
95+
* `eventTime` range. * `eventType`: Boolean operators `OR` and `NOT` are supported if the
96+
* expression is enclosed in parentheses and the operators are separated from the tag values by a
97+
* space. * `eventsMissingCatalogItems`: This restricts results to events for which catalog items
98+
* were not found in the catalog. The default behavior is to return only those events for which
99+
* catalog items were found. Some examples of valid filters expressions: * Example 1: `eventTime >
100+
* "2012-04-23T18:25:43.511Z" eventTime < "2012-04-23T18:30:43.511Z"` * Example 2: `eventTime >
101+
* "2012-04-23T18:25:43.511Z" eventType = detail-page-view` * Example 3:
102+
* `eventsMissingCatalogItems eventType = (NOT search) eventTime < "2018-04-23T18:30:43.511Z"` *
103+
* Example 4: `eventTime > "2012-04-23T18:25:43.511Z"` * Example 5: `eventType = (detail-page-view
104+
* OR search)` * Example 6: `eventsMissingCatalogItems`
105+
* @param filter filter or {@code null} for none
106+
*/
107+
public GoogleCloudRetailV2alphaExportUserEventsRequest setFilter(java.lang.String filter) {
108+
this.filter = filter;
109+
return this;
110+
}
111+
112+
/**
113+
* Required. The output location of the data.
114+
* @return value or {@code null} for none
115+
*/
116+
public GoogleCloudRetailV2alphaOutputConfig getOutputConfig() {
117+
return outputConfig;
118+
}
119+
120+
/**
121+
* Required. The output location of the data.
122+
* @param outputConfig outputConfig or {@code null} for none
123+
*/
124+
public GoogleCloudRetailV2alphaExportUserEventsRequest setOutputConfig(GoogleCloudRetailV2alphaOutputConfig outputConfig) {
125+
this.outputConfig = outputConfig;
126+
return this;
127+
}
128+
129+
@Override
130+
public GoogleCloudRetailV2alphaExportUserEventsRequest set(String fieldName, Object value) {
131+
return (GoogleCloudRetailV2alphaExportUserEventsRequest) super.set(fieldName, value);
132+
}
133+
134+
@Override
135+
public GoogleCloudRetailV2alphaExportUserEventsRequest clone() {
136+
return (GoogleCloudRetailV2alphaExportUserEventsRequest) super.clone();
137+
}
138+
139+
}

clients/google-api-services-retail/v2alpha/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-retail</artifactId>
11-
<version>v2alpha-rev20240702-2.0.0</version>
12-
<name>Vertex AI Search for Retail API v2alpha-rev20240702-2.0.0</name>
11+
<version>v2alpha-rev20240711-2.0.0</version>
12+
<name>Vertex AI Search for Retail API v2alpha-rev20240711-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-retail/v2alpha/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-retail</artifactId>
25-
<version>v2alpha-rev20240702-2.0.0</version>
25+
<version>v2alpha-rev20240711-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-retail:v2alpha-rev20240702-2.0.0'
38+
implementation 'com.google.apis:google-api-services-retail:v2alpha-rev20240711-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-retail/v2beta/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-retail</artifactId>
25-
<version>v2beta-rev20240702-2.0.0</version>
25+
<version>v2beta-rev20240711-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-retail:v2beta-rev20240702-2.0.0'
38+
implementation 'com.google.apis:google-api-services-retail:v2beta-rev20240711-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)