Skip to content

Commit 16e399f

Browse files
fix(deps): [Many APIs] Update the Java code generator (gapic-generator-java) to 2.31.0 (#10202)
* 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: eyJwIjoiamF2YS1zaG9wcGluZy1tZXJjaGFudC1yZXBvcnRzLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1zcGVlY2gvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1zdG9yYWdlLXRyYW5zZmVyLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1zdG9yYWdlaW5zaWdodHMvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS10YWxlbnQvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS10YXNrcy8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS10ZWxjb2F1dG9tYXRpb24vLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS10ZXh0dG9zcGVlY2gvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS10cHUvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS10cmFjZS8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS10cmFuc2xhdGUvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS12aWRlby1pbnRlbGxpZ2VuY2UvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS12aWRlby1saXZlLXN0cmVhbS8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS12aWRlby1zdGl0Y2hlci8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS12aWRlby10cmFuc2NvZGVyLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS12aXNpb24vLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS12bW1pZ3JhdGlvbi8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS12bXdhcmVlbmdpbmUvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS12cGNhY2Nlc3MvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS13ZWJyaXNrLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= * 🦉 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 * 🦉 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 d228ec1 commit 16e399f

130 files changed

Lines changed: 12020 additions & 746 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-shopping-merchant-reports/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/java-shopping-merchant-reports/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.shopping/google-shopping-merchant-reports.svg
204-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/0.6.0
204+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/0.8.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-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/ReportServiceClient.java

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,32 @@
5858
* <p>Note: close() needs to be called on the ReportServiceClient object to clean up resources such
5959
* as threads. In the example above, try-with-resources is used, which automatically calls close().
6060
*
61-
* <p>The surface of this class includes several types of Java methods for each of the API's
62-
* methods:
63-
*
64-
* <ol>
65-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
66-
* converted into function parameters. It may be the case that not all fields are available as
67-
* parameters, and not every API method will have a flattened method entry point.
68-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
69-
* which must be constructed before the call. Not every API method will have a request object
70-
* method.
71-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
72-
* callable object, which can be used to initiate calls to the service.
73-
* </ol>
61+
* <table>
62+
* <tr>
63+
* <th>Method</th>
64+
* <th>Description</th>
65+
* <th>Method Variants</th>
66+
* <tr>
67+
* <td>Search</td>
68+
* <td><p> Retrieves a report defined by a search query. The response might contain fewer rows than specified by `page_size`. Rely on `next_page_token` to determine if there are more rows to be requested.</td>
69+
* <td>
70+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
71+
* <ul>
72+
* <li>search(SearchRequest request)
73+
* </ul>
74+
* <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>
75+
* <ul>
76+
* <li>search(String parent)
77+
* </ul>
78+
* <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>
79+
* <ul>
80+
* <li>searchPagedCallable()
81+
* <li>searchCallable()
82+
* </ul>
83+
* </td>
84+
* </tr>
85+
* </tr>
86+
* </table>
7487
*
7588
* <p>See the individual methods for example code.
7689
*

java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/stub/ReportServiceStubSettings.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@ public ReportServiceStub createStub() throws IOException {
174174
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
175175
}
176176

177+
/** Returns the default service name. */
178+
@Override
179+
public String getServiceName() {
180+
return "merchantapi";
181+
}
182+
177183
/** Returns a builder for the default ExecutorProvider for this service. */
178184
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
179185
return InstantiatingExecutorProvider.newBuilder();

java-speech/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
231231
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
232232
[stability-image]: https://img.shields.io/badge/stability-stable-green
233233
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-speech.svg
234-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.25.0
234+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.27.0
235235
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
236236
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
237237
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java

Lines changed: 197 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,203 @@
5858
* <p>Note: close() needs to be called on the AdaptationClient object to clean up resources such as
5959
* threads. In the example above, try-with-resources is used, which automatically calls close().
6060
*
61-
* <p>The surface of this class includes several types of Java methods for each of the API's
62-
* methods:
63-
*
64-
* <ol>
65-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
66-
* converted into function parameters. It may be the case that not all fields are available as
67-
* parameters, and not every API method will have a flattened method entry point.
68-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
69-
* which must be constructed before the call. Not every API method will have a request object
70-
* method.
71-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
72-
* callable object, which can be used to initiate calls to the service.
73-
* </ol>
61+
* <table>
62+
* <tr>
63+
* <th>Method</th>
64+
* <th>Description</th>
65+
* <th>Method Variants</th>
66+
* <tr>
67+
* <td>CreatePhraseSet</td>
68+
* <td><p> Create a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call that includes the PhraseSet.</td>
69+
* <td>
70+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
71+
* <ul>
72+
* <li>createPhraseSet(CreatePhraseSetRequest request)
73+
* </ul>
74+
* <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>
75+
* <ul>
76+
* <li>createPhraseSet(LocationName parent, PhraseSet phraseSet, String phraseSetId)
77+
* <li>createPhraseSet(String parent, PhraseSet phraseSet, String phraseSetId)
78+
* </ul>
79+
* <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>
80+
* <ul>
81+
* <li>createPhraseSetCallable()
82+
* </ul>
83+
* </td>
84+
* </tr>
85+
* <tr>
86+
* <td>GetPhraseSet</td>
87+
* <td><p> Get a phrase set.</td>
88+
* <td>
89+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
90+
* <ul>
91+
* <li>getPhraseSet(GetPhraseSetRequest request)
92+
* </ul>
93+
* <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>
94+
* <ul>
95+
* <li>getPhraseSet(PhraseSetName name)
96+
* <li>getPhraseSet(String name)
97+
* </ul>
98+
* <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>
99+
* <ul>
100+
* <li>getPhraseSetCallable()
101+
* </ul>
102+
* </td>
103+
* </tr>
104+
* <tr>
105+
* <td>ListPhraseSet</td>
106+
* <td><p> List phrase sets.</td>
107+
* <td>
108+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
109+
* <ul>
110+
* <li>listPhraseSet(ListPhraseSetRequest request)
111+
* </ul>
112+
* <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>
113+
* <ul>
114+
* <li>listPhraseSet(LocationName parent)
115+
* <li>listPhraseSet(String parent)
116+
* </ul>
117+
* <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>
118+
* <ul>
119+
* <li>listPhraseSetPagedCallable()
120+
* <li>listPhraseSetCallable()
121+
* </ul>
122+
* </td>
123+
* </tr>
124+
* <tr>
125+
* <td>UpdatePhraseSet</td>
126+
* <td><p> Update a phrase set.</td>
127+
* <td>
128+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
129+
* <ul>
130+
* <li>updatePhraseSet(UpdatePhraseSetRequest request)
131+
* </ul>
132+
* <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>
133+
* <ul>
134+
* <li>updatePhraseSet(PhraseSet phraseSet, FieldMask updateMask)
135+
* </ul>
136+
* <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>
137+
* <ul>
138+
* <li>updatePhraseSetCallable()
139+
* </ul>
140+
* </td>
141+
* </tr>
142+
* <tr>
143+
* <td>DeletePhraseSet</td>
144+
* <td><p> Delete a phrase set.</td>
145+
* <td>
146+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
147+
* <ul>
148+
* <li>deletePhraseSet(DeletePhraseSetRequest request)
149+
* </ul>
150+
* <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>
151+
* <ul>
152+
* <li>deletePhraseSet(PhraseSetName name)
153+
* <li>deletePhraseSet(String name)
154+
* </ul>
155+
* <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>
156+
* <ul>
157+
* <li>deletePhraseSetCallable()
158+
* </ul>
159+
* </td>
160+
* </tr>
161+
* <tr>
162+
* <td>CreateCustomClass</td>
163+
* <td><p> Create a custom class.</td>
164+
* <td>
165+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
166+
* <ul>
167+
* <li>createCustomClass(CreateCustomClassRequest request)
168+
* </ul>
169+
* <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>
170+
* <ul>
171+
* <li>createCustomClass(LocationName parent, CustomClass customClass, String customClassId)
172+
* <li>createCustomClass(String parent, CustomClass customClass, String customClassId)
173+
* </ul>
174+
* <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>
175+
* <ul>
176+
* <li>createCustomClassCallable()
177+
* </ul>
178+
* </td>
179+
* </tr>
180+
* <tr>
181+
* <td>GetCustomClass</td>
182+
* <td><p> Get a custom class.</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>getCustomClass(GetCustomClassRequest request)
187+
* </ul>
188+
* <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>
189+
* <ul>
190+
* <li>getCustomClass(CustomClassName name)
191+
* <li>getCustomClass(String name)
192+
* </ul>
193+
* <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>
194+
* <ul>
195+
* <li>getCustomClassCallable()
196+
* </ul>
197+
* </td>
198+
* </tr>
199+
* <tr>
200+
* <td>ListCustomClasses</td>
201+
* <td><p> List custom classes.</td>
202+
* <td>
203+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
204+
* <ul>
205+
* <li>listCustomClasses(ListCustomClassesRequest request)
206+
* </ul>
207+
* <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>
208+
* <ul>
209+
* <li>listCustomClasses(LocationName parent)
210+
* <li>listCustomClasses(String parent)
211+
* </ul>
212+
* <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>
213+
* <ul>
214+
* <li>listCustomClassesPagedCallable()
215+
* <li>listCustomClassesCallable()
216+
* </ul>
217+
* </td>
218+
* </tr>
219+
* <tr>
220+
* <td>UpdateCustomClass</td>
221+
* <td><p> Update a custom class.</td>
222+
* <td>
223+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
224+
* <ul>
225+
* <li>updateCustomClass(UpdateCustomClassRequest request)
226+
* </ul>
227+
* <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>
228+
* <ul>
229+
* <li>updateCustomClass(CustomClass customClass, FieldMask updateMask)
230+
* </ul>
231+
* <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>
232+
* <ul>
233+
* <li>updateCustomClassCallable()
234+
* </ul>
235+
* </td>
236+
* </tr>
237+
* <tr>
238+
* <td>DeleteCustomClass</td>
239+
* <td><p> Delete a custom class.</td>
240+
* <td>
241+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
242+
* <ul>
243+
* <li>deleteCustomClass(DeleteCustomClassRequest request)
244+
* </ul>
245+
* <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>
246+
* <ul>
247+
* <li>deleteCustomClass(CustomClassName name)
248+
* <li>deleteCustomClass(String name)
249+
* </ul>
250+
* <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>
251+
* <ul>
252+
* <li>deleteCustomClassCallable()
253+
* </ul>
254+
* </td>
255+
* </tr>
256+
* </tr>
257+
* </table>
74258
*
75259
* <p>See the individual methods for example code.
76260
*

java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java

Lines changed: 54 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,60 @@
5353
* <p>Note: close() needs to be called on the SpeechClient object to clean up resources such as
5454
* threads. In the example above, try-with-resources is used, which automatically calls close().
5555
*
56-
* <p>The surface of this class includes several types of Java methods for each of the API's
57-
* methods:
58-
*
59-
* <ol>
60-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
61-
* converted into function parameters. It may be the case that not all fields are available as
62-
* parameters, and not every API method will have a flattened method entry point.
63-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
64-
* which must be constructed before the call. Not every API method will have a request object
65-
* method.
66-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
67-
* callable object, which can be used to initiate calls to the service.
68-
* </ol>
56+
* <table>
57+
* <tr>
58+
* <th>Method</th>
59+
* <th>Description</th>
60+
* <th>Method Variants</th>
61+
* <tr>
62+
* <td>Recognize</td>
63+
* <td><p> Performs synchronous speech recognition: receive results after all audio has been sent and processed.</td>
64+
* <td>
65+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
66+
* <ul>
67+
* <li>recognize(RecognizeRequest request)
68+
* </ul>
69+
* <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>
70+
* <ul>
71+
* <li>recognize(RecognitionConfig config, RecognitionAudio audio)
72+
* </ul>
73+
* <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>
74+
* <ul>
75+
* <li>recognizeCallable()
76+
* </ul>
77+
* </td>
78+
* </tr>
79+
* <tr>
80+
* <td>LongRunningRecognize</td>
81+
* <td><p> Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message. For more information on asynchronous speech recognition, see the [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).</td>
82+
* <td>
83+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
84+
* <ul>
85+
* <li>longRunningRecognizeAsync(LongRunningRecognizeRequest request)
86+
* </ul>
87+
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
88+
* <ul>
89+
* <li>longRunningRecognizeAsync(RecognitionConfig config, RecognitionAudio audio)
90+
* </ul>
91+
* <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>
92+
* <ul>
93+
* <li>longRunningRecognizeOperationCallable()
94+
* <li>longRunningRecognizeCallable()
95+
* </ul>
96+
* </td>
97+
* </tr>
98+
* <tr>
99+
* <td>StreamingRecognize</td>
100+
* <td><p> Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).</td>
101+
* <td>
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>streamingRecognizeCallable()
105+
* </ul>
106+
* </td>
107+
* </tr>
108+
* </tr>
109+
* </table>
69110
*
70111
* <p>See the individual methods for example code.
71112
*

java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,12 @@ public AdaptationStub createStub() throws IOException {
307307
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
308308
}
309309

310+
/** Returns the default service name. */
311+
@Override
312+
public String getServiceName() {
313+
return "speech";
314+
}
315+
310316
/** Returns a builder for the default ExecutorProvider for this service. */
311317
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
312318
return InstantiatingExecutorProvider.newBuilder();

java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ public SpeechStub createStub() throws IOException {
146146
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
147147
}
148148

149+
/** Returns the default service name. */
150+
@Override
151+
public String getServiceName() {
152+
return "speech";
153+
}
154+
149155
/** Returns a builder for the default ExecutorProvider for this service. */
150156
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
151157
return InstantiatingExecutorProvider.newBuilder();

0 commit comments

Comments
 (0)