Skip to content

Commit 41b6664

Browse files
fix(deps): [Many APIs] Update the Java code generator (gapic-generator-java) to 2.31.0 (#10197)
* 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: eyJwIjoiamF2YS1kaWFsb2dmbG93Ly5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1kaXNjb3ZlcnllbmdpbmUvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1kaXN0cmlidXRlZGNsb3VkZWRnZS8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1kbHAvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1kbXMvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1kb2N1bWVudC1haS8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1kb21haW5zLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: ey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FtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1na2UtY29ubmVjdC1nYXRld2F5Ly5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1na2UtbXVsdGktY2xvdWQvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1na2VodWIvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1ncmFmZWFzLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= * 🦉 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 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 8c03be2 commit 41b6664

200 files changed

Lines changed: 17192 additions & 1212 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-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java

Lines changed: 218 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,224 @@
6565
* <p>Note: close() needs to be called on the AgentsClient object to clean up resources such as
6666
* threads. In the example above, try-with-resources is used, which automatically calls close().
6767
*
68-
* <p>The surface of this class includes several types of Java methods for each of the API's
69-
* methods:
70-
*
71-
* <ol>
72-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
73-
* converted into function parameters. It may be the case that not all fields are available as
74-
* parameters, and not every API method will have a flattened method entry point.
75-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
76-
* which must be constructed before the call. Not every API method will have a request object
77-
* method.
78-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
79-
* callable object, which can be used to initiate calls to the service.
80-
* </ol>
68+
* <table>
69+
* <tr>
70+
* <th>Method</th>
71+
* <th>Description</th>
72+
* <th>Method Variants</th>
73+
* <tr>
74+
* <td>GetAgent</td>
75+
* <td><p> Retrieves the specified agent.</td>
76+
* <td>
77+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
78+
* <ul>
79+
* <li>getAgent(GetAgentRequest request)
80+
* </ul>
81+
* <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>
82+
* <ul>
83+
* <li>getAgent(LocationName parent)
84+
* <li>getAgent(ProjectName parent)
85+
* <li>getAgent(String parent)
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>getAgentCallable()
90+
* </ul>
91+
* </td>
92+
* </tr>
93+
* <tr>
94+
* <td>SetAgent</td>
95+
* <td><p> Creates/updates the specified agent.
96+
* <p> Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).</td>
97+
* <td>
98+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
99+
* <ul>
100+
* <li>setAgent(SetAgentRequest request)
101+
* </ul>
102+
* <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>
103+
* <ul>
104+
* <li>setAgent(Agent agent)
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>setAgentCallable()
109+
* </ul>
110+
* </td>
111+
* </tr>
112+
* <tr>
113+
* <td>DeleteAgent</td>
114+
* <td><p> Deletes the specified agent.</td>
115+
* <td>
116+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
117+
* <ul>
118+
* <li>deleteAgent(DeleteAgentRequest request)
119+
* </ul>
120+
* <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>
121+
* <ul>
122+
* <li>deleteAgent(LocationName parent)
123+
* <li>deleteAgent(ProjectName parent)
124+
* <li>deleteAgent(String parent)
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>deleteAgentCallable()
129+
* </ul>
130+
* </td>
131+
* </tr>
132+
* <tr>
133+
* <td>SearchAgents</td>
134+
* <td><p> Returns the list of agents.
135+
* <p> Since there is at most one conversational agent per project, this method is useful primarily for listing all agents across projects the caller has access to. One can achieve that with a wildcard project collection id "-". Refer to [List Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).</td>
136+
* <td>
137+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
138+
* <ul>
139+
* <li>searchAgents(SearchAgentsRequest request)
140+
* </ul>
141+
* <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>
142+
* <ul>
143+
* <li>searchAgents(LocationName parent)
144+
* <li>searchAgents(ProjectName parent)
145+
* <li>searchAgents(String parent)
146+
* </ul>
147+
* <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>
148+
* <ul>
149+
* <li>searchAgentsPagedCallable()
150+
* <li>searchAgentsCallable()
151+
* </ul>
152+
* </td>
153+
* </tr>
154+
* <tr>
155+
* <td>TrainAgent</td>
156+
* <td><p> Trains the specified agent.
157+
* <p> This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields:
158+
* <p> - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
159+
* <p> Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).</td>
160+
* <td>
161+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
162+
* <ul>
163+
* <li>trainAgentAsync(TrainAgentRequest request)
164+
* </ul>
165+
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
166+
* <ul>
167+
* <li>trainAgentAsync(LocationName parent)
168+
* <li>trainAgentAsync(ProjectName parent)
169+
* <li>trainAgentAsync(String parent)
170+
* </ul>
171+
* <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>
172+
* <ul>
173+
* <li>trainAgentOperationCallable()
174+
* <li>trainAgentCallable()
175+
* </ul>
176+
* </td>
177+
* </tr>
178+
* <tr>
179+
* <td>ExportAgent</td>
180+
* <td><p> Exports the specified agent to a ZIP file.
181+
* <p> This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields:
182+
* <p> - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]</td>
183+
* <td>
184+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
185+
* <ul>
186+
* <li>exportAgentAsync(ExportAgentRequest request)
187+
* </ul>
188+
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
189+
* <ul>
190+
* <li>exportAgentAsync(LocationName parent)
191+
* <li>exportAgentAsync(ProjectName parent)
192+
* <li>exportAgentAsync(String parent)
193+
* </ul>
194+
* <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>
195+
* <ul>
196+
* <li>exportAgentOperationCallable()
197+
* <li>exportAgentCallable()
198+
* </ul>
199+
* </td>
200+
* </tr>
201+
* <tr>
202+
* <td>ImportAgent</td>
203+
* <td><p> Imports the specified agent from a ZIP file.
204+
* <p> Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the new versions from [ImportAgentRequest][google.cloud.dialogflow.v2.ImportAgentRequest]. After the import, the imported draft agent will be trained automatically (unless disabled in agent settings). However, once the import is done, training may not be completed yet. Please call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it returns in order to train explicitly.
205+
* <p> This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields:
206+
* <p> - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
207+
* <p> The operation only tracks when importing is complete, not when it is done training.
208+
* <p> Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).</td>
209+
* <td>
210+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
211+
* <ul>
212+
* <li>importAgentAsync(ImportAgentRequest request)
213+
* </ul>
214+
* <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>
215+
* <ul>
216+
* <li>importAgentOperationCallable()
217+
* <li>importAgentCallable()
218+
* </ul>
219+
* </td>
220+
* </tr>
221+
* <tr>
222+
* <td>RestoreAgent</td>
223+
* <td><p> Restores the specified agent from a ZIP file.
224+
* <p> Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. After the restore, the restored draft agent will be trained automatically (unless disabled in agent settings). However, once the restore is done, training may not be completed yet. Please call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it returns in order to train explicitly.
225+
* <p> This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields:
226+
* <p> - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
227+
* <p> The operation only tracks when restoring is complete, not when it is done training.
228+
* <p> Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).</td>
229+
* <td>
230+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
231+
* <ul>
232+
* <li>restoreAgentAsync(RestoreAgentRequest request)
233+
* </ul>
234+
* <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>
235+
* <ul>
236+
* <li>restoreAgentOperationCallable()
237+
* <li>restoreAgentCallable()
238+
* </ul>
239+
* </td>
240+
* </tr>
241+
* <tr>
242+
* <td>GetValidationResult</td>
243+
* <td><p> Gets agent validation result. Agent validation is performed during training time and is updated automatically when training is completed.</td>
244+
* <td>
245+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
246+
* <ul>
247+
* <li>getValidationResult(GetValidationResultRequest request)
248+
* </ul>
249+
* <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>
250+
* <ul>
251+
* <li>getValidationResultCallable()
252+
* </ul>
253+
* </td>
254+
* </tr>
255+
* <tr>
256+
* <td>ListLocations</td>
257+
* <td><p> Lists information about the supported locations for this service.</td>
258+
* <td>
259+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
260+
* <ul>
261+
* <li>listLocations(ListLocationsRequest request)
262+
* </ul>
263+
* <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>
264+
* <ul>
265+
* <li>listLocationsPagedCallable()
266+
* <li>listLocationsCallable()
267+
* </ul>
268+
* </td>
269+
* </tr>
270+
* <tr>
271+
* <td>GetLocation</td>
272+
* <td><p> Gets information about a location.</td>
273+
* <td>
274+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
275+
* <ul>
276+
* <li>getLocation(GetLocationRequest request)
277+
* </ul>
278+
* <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>
279+
* <ul>
280+
* <li>getLocationCallable()
281+
* </ul>
282+
* </td>
283+
* </tr>
284+
* </tr>
285+
* </table>
81286
*
82287
* <p>See the individual methods for example code.
83288
*

java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java

Lines changed: 75 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,81 @@
6161
* <p>Note: close() needs to be called on the AnswerRecordsClient object to clean up resources such
6262
* as threads. In the example above, try-with-resources is used, which automatically calls close().
6363
*
64-
* <p>The surface of this class includes several types of Java methods for each of the API's
65-
* methods:
66-
*
67-
* <ol>
68-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
69-
* converted into function parameters. It may be the case that not all fields are available as
70-
* parameters, and not every API method will have a flattened method entry point.
71-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
72-
* which must be constructed before the call. Not every API method will have a request object
73-
* method.
74-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
75-
* callable object, which can be used to initiate calls to the service.
76-
* </ol>
64+
* <table>
65+
* <tr>
66+
* <th>Method</th>
67+
* <th>Description</th>
68+
* <th>Method Variants</th>
69+
* <tr>
70+
* <td>ListAnswerRecords</td>
71+
* <td><p> Returns the list of all answer records in the specified project in reverse chronological order.</td>
72+
* <td>
73+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
74+
* <ul>
75+
* <li>listAnswerRecords(ListAnswerRecordsRequest request)
76+
* </ul>
77+
* <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>
78+
* <ul>
79+
* <li>listAnswerRecords(LocationName parent)
80+
* <li>listAnswerRecords(ProjectName parent)
81+
* <li>listAnswerRecords(String parent)
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>listAnswerRecordsPagedCallable()
86+
* <li>listAnswerRecordsCallable()
87+
* </ul>
88+
* </td>
89+
* </tr>
90+
* <tr>
91+
* <td>UpdateAnswerRecord</td>
92+
* <td><p> Updates the specified answer record.</td>
93+
* <td>
94+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
95+
* <ul>
96+
* <li>updateAnswerRecord(UpdateAnswerRecordRequest request)
97+
* </ul>
98+
* <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>
99+
* <ul>
100+
* <li>updateAnswerRecord(AnswerRecord answerRecord, FieldMask updateMask)
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>updateAnswerRecordCallable()
105+
* </ul>
106+
* </td>
107+
* </tr>
108+
* <tr>
109+
* <td>ListLocations</td>
110+
* <td><p> Lists information about the supported locations for this service.</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>listLocations(ListLocationsRequest request)
115+
* </ul>
116+
* <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>
117+
* <ul>
118+
* <li>listLocationsPagedCallable()
119+
* <li>listLocationsCallable()
120+
* </ul>
121+
* </td>
122+
* </tr>
123+
* <tr>
124+
* <td>GetLocation</td>
125+
* <td><p> Gets information about a location.</td>
126+
* <td>
127+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
128+
* <ul>
129+
* <li>getLocation(GetLocationRequest request)
130+
* </ul>
131+
* <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>
132+
* <ul>
133+
* <li>getLocationCallable()
134+
* </ul>
135+
* </td>
136+
* </tr>
137+
* </tr>
138+
* </table>
77139
*
78140
* <p>See the individual methods for example code.
79141
*

0 commit comments

Comments
 (0)