Skip to content

Commit d228ec1

Browse files
fix(deps): [Many APIs] Update the Java code generator (gapic-generator-java) to 2.31.0 (#10201)
* fix(deps): Update the Java code generator (gapic-generator-java) to 2.31.0 PiperOrigin-RevId: 596645164 Source-Link: googleapis/googleapis@4a0e62e Source-Link: https://github.com/googleapis/googleapis-gen/commit/a10ed6a77676c37e60799098d48d0afb16008613 Copy-Tag: eyJwIjoiamF2YS1yZWNvbW1lbmRhdGlvbnMtYWkvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1yZWNvbW1lbmRlci8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1yZWRpcy1jbHVzdGVyLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1yZWRpcy8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1yZXNvdXJjZS1zZXR0aW5ncy8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1yZXNvdXJjZW1hbmFnZXIvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1yZXRhaWwvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OG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wIjoiamF2YS1zZXJ2aWNlLW1hbmFnZW1lbnQvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1zZXJ2aWNlLXVzYWdlLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1zZXJ2aWNlZGlyZWN0b3J5Ly5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1zaGVsbC8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1zaG9wcGluZy1tZXJjaGFudC1pbnZlbnRvcmllcy8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: reverted Ignore annotation deletion --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Tomo Suzuki <suztomo@google.com>
1 parent c12ae4a commit d228ec1

167 files changed

Lines changed: 12714 additions & 981 deletions

File tree

Some content is hidden

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

java-recommendations-ai/README.md

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

java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java

Lines changed: 121 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,127 @@
6262
* <p>Note: close() needs to be called on the CatalogServiceClient object to clean up resources such
6363
* as threads. In the example above, try-with-resources is used, which automatically calls close().
6464
*
65-
* <p>The surface of this class includes several types of Java methods for each of the API's
66-
* methods:
67-
*
68-
* <ol>
69-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
70-
* converted into function parameters. It may be the case that not all fields are available as
71-
* parameters, and not every API method will have a flattened method entry point.
72-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
73-
* which must be constructed before the call. Not every API method will have a request object
74-
* method.
75-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
76-
* callable object, which can be used to initiate calls to the service.
77-
* </ol>
65+
* <table>
66+
* <tr>
67+
* <th>Method</th>
68+
* <th>Description</th>
69+
* <th>Method Variants</th>
70+
* <tr>
71+
* <td>CreateCatalogItem</td>
72+
* <td><p> Creates a catalog item.</td>
73+
* <td>
74+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
75+
* <ul>
76+
* <li>createCatalogItem(CreateCatalogItemRequest request)
77+
* </ul>
78+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
79+
* <ul>
80+
* <li>createCatalogItem(CatalogName parent, CatalogItem catalogItem)
81+
* <li>createCatalogItem(String parent, CatalogItem catalogItem)
82+
* </ul>
83+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
84+
* <ul>
85+
* <li>createCatalogItemCallable()
86+
* </ul>
87+
* </td>
88+
* </tr>
89+
* <tr>
90+
* <td>GetCatalogItem</td>
91+
* <td><p> Gets a specific catalog item.</td>
92+
* <td>
93+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
94+
* <ul>
95+
* <li>getCatalogItem(GetCatalogItemRequest request)
96+
* </ul>
97+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
98+
* <ul>
99+
* <li>getCatalogItem(CatalogItemPathName name)
100+
* <li>getCatalogItem(String name)
101+
* </ul>
102+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
103+
* <ul>
104+
* <li>getCatalogItemCallable()
105+
* </ul>
106+
* </td>
107+
* </tr>
108+
* <tr>
109+
* <td>ListCatalogItems</td>
110+
* <td><p> Gets a list of catalog items.</td>
111+
* <td>
112+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
113+
* <ul>
114+
* <li>listCatalogItems(ListCatalogItemsRequest request)
115+
* </ul>
116+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
117+
* <ul>
118+
* <li>listCatalogItems(CatalogName parent, String filter)
119+
* <li>listCatalogItems(String parent, String filter)
120+
* </ul>
121+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
122+
* <ul>
123+
* <li>listCatalogItemsPagedCallable()
124+
* <li>listCatalogItemsCallable()
125+
* </ul>
126+
* </td>
127+
* </tr>
128+
* <tr>
129+
* <td>UpdateCatalogItem</td>
130+
* <td><p> Updates a catalog item. Partial updating is supported. Non-existing items will be created.</td>
131+
* <td>
132+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
133+
* <ul>
134+
* <li>updateCatalogItem(UpdateCatalogItemRequest request)
135+
* </ul>
136+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
137+
* <ul>
138+
* <li>updateCatalogItem(CatalogItemPathName name, CatalogItem catalogItem, FieldMask updateMask)
139+
* <li>updateCatalogItem(String name, CatalogItem catalogItem, FieldMask updateMask)
140+
* </ul>
141+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
142+
* <ul>
143+
* <li>updateCatalogItemCallable()
144+
* </ul>
145+
* </td>
146+
* </tr>
147+
* <tr>
148+
* <td>DeleteCatalogItem</td>
149+
* <td><p> Deletes a catalog item.</td>
150+
* <td>
151+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
152+
* <ul>
153+
* <li>deleteCatalogItem(DeleteCatalogItemRequest request)
154+
* </ul>
155+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
156+
* <ul>
157+
* <li>deleteCatalogItem(CatalogItemPathName name)
158+
* <li>deleteCatalogItem(String name)
159+
* </ul>
160+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
161+
* <ul>
162+
* <li>deleteCatalogItemCallable()
163+
* </ul>
164+
* </td>
165+
* </tr>
166+
* <tr>
167+
* <td>ImportCatalogItems</td>
168+
* <td><p> Bulk import of multiple catalog items. Request processing may be synchronous. No partial updating supported. Non-existing items will be created.
169+
* <p> Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully updated.</td>
170+
* <td>
171+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
172+
* <ul>
173+
* <li>importCatalogItemsAsync(CatalogName parent, String requestId, InputConfig inputConfig, ImportErrorsConfig errorsConfig)
174+
* <li>importCatalogItemsAsync(String parent, String requestId, InputConfig inputConfig, ImportErrorsConfig errorsConfig)
175+
* <li>importCatalogItemsAsync(ImportCatalogItemsRequest request)
176+
* </ul>
177+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
178+
* <ul>
179+
* <li>importCatalogItemsOperationCallable()
180+
* <li>importCatalogItemsCallable()
181+
* </ul>
182+
* </td>
183+
* </tr>
184+
* </tr>
185+
* </table>
78186
*
79187
* <p>See the individual methods for example code.
80188
*

java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java

Lines changed: 65 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,71 @@
6666
* resources such as threads. In the example above, try-with-resources is used, which automatically
6767
* calls close().
6868
*
69-
* <p>The surface of this class includes several types of Java methods for each of the API's
70-
* methods:
71-
*
72-
* <ol>
73-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
74-
* converted into function parameters. It may be the case that not all fields are available as
75-
* parameters, and not every API method will have a flattened method entry point.
76-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
77-
* which must be constructed before the call. Not every API method will have a request object
78-
* method.
79-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
80-
* callable object, which can be used to initiate calls to the service.
81-
* </ol>
69+
* <table>
70+
* <tr>
71+
* <th>Method</th>
72+
* <th>Description</th>
73+
* <th>Method Variants</th>
74+
* <tr>
75+
* <td>CreatePredictionApiKeyRegistration</td>
76+
* <td><p> Register an API key for use with predict method.</td>
77+
* <td>
78+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
79+
* <ul>
80+
* <li>createPredictionApiKeyRegistration(CreatePredictionApiKeyRegistrationRequest request)
81+
* </ul>
82+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
83+
* <ul>
84+
* <li>createPredictionApiKeyRegistration(EventStoreName parent, PredictionApiKeyRegistration predictionApiKeyRegistration)
85+
* <li>createPredictionApiKeyRegistration(String parent, PredictionApiKeyRegistration predictionApiKeyRegistration)
86+
* </ul>
87+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
88+
* <ul>
89+
* <li>createPredictionApiKeyRegistrationCallable()
90+
* </ul>
91+
* </td>
92+
* </tr>
93+
* <tr>
94+
* <td>ListPredictionApiKeyRegistrations</td>
95+
* <td><p> List the registered apiKeys for use with predict method.</td>
96+
* <td>
97+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
98+
* <ul>
99+
* <li>listPredictionApiKeyRegistrations(ListPredictionApiKeyRegistrationsRequest request)
100+
* </ul>
101+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
102+
* <ul>
103+
* <li>listPredictionApiKeyRegistrations(EventStoreName parent)
104+
* <li>listPredictionApiKeyRegistrations(String parent)
105+
* </ul>
106+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
107+
* <ul>
108+
* <li>listPredictionApiKeyRegistrationsPagedCallable()
109+
* <li>listPredictionApiKeyRegistrationsCallable()
110+
* </ul>
111+
* </td>
112+
* </tr>
113+
* <tr>
114+
* <td>DeletePredictionApiKeyRegistration</td>
115+
* <td><p> Unregister an apiKey from using for predict method.</td>
116+
* <td>
117+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
118+
* <ul>
119+
* <li>deletePredictionApiKeyRegistration(DeletePredictionApiKeyRegistrationRequest request)
120+
* </ul>
121+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
122+
* <ul>
123+
* <li>deletePredictionApiKeyRegistration(PredictionApiKeyRegistrationName name)
124+
* <li>deletePredictionApiKeyRegistration(String name)
125+
* </ul>
126+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
127+
* <ul>
128+
* <li>deletePredictionApiKeyRegistrationCallable()
129+
* </ul>
130+
* </td>
131+
* </tr>
132+
* </tr>
133+
* </table>
82134
*
83135
* <p>See the individual methods for example code.
84136
*

java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,33 @@
6363
* such as threads. In the example above, try-with-resources is used, which automatically calls
6464
* close().
6565
*
66-
* <p>The surface of this class includes several types of Java methods for each of the API's
67-
* methods:
68-
*
69-
* <ol>
70-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
71-
* converted into function parameters. It may be the case that not all fields are available as
72-
* parameters, and not every API method will have a flattened method entry point.
73-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
74-
* which must be constructed before the call. Not every API method will have a request object
75-
* method.
76-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
77-
* callable object, which can be used to initiate calls to the service.
78-
* </ol>
66+
* <table>
67+
* <tr>
68+
* <th>Method</th>
69+
* <th>Description</th>
70+
* <th>Method Variants</th>
71+
* <tr>
72+
* <td>Predict</td>
73+
* <td><p> Makes a recommendation prediction. If using API Key based authentication, the API Key must be registered using the [PredictionApiKeyRegistry][google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry] service. [Learn more](/recommendations-ai/docs/setting-up#register-key).</td>
74+
* <td>
75+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
76+
* <ul>
77+
* <li>predict(PredictRequest request)
78+
* </ul>
79+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
80+
* <ul>
81+
* <li>predict(PlacementName name, UserEvent userEvent)
82+
* <li>predict(String name, UserEvent userEvent)
83+
* </ul>
84+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
85+
* <ul>
86+
* <li>predictPagedCallable()
87+
* <li>predictCallable()
88+
* </ul>
89+
* </td>
90+
* </tr>
91+
* </tr>
92+
* </table>
7993
*
8094
* <p>See the individual methods for example code.
8195
*

0 commit comments

Comments
 (0)