Skip to content

Commit e56e666

Browse files
fix(deps): [Many APIs] Update the Java code generator (gapic-generator-java) to 2.31.0 (#10195)
* 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: eyJwIjoiamF2YS1iYXJlLW1ldGFsLXNvbHV0aW9uLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1iYXRjaC8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1iZXlvbmRjb3JwLWFwcGNvbm5lY3Rpb25zLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1iZXlvbmRjb3JwLWFwcGNvbm5lY3RvcnMvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1iZXlvbmRjb3JwLWFwcGdhdGV3YXlzLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1iZXlvbmRjb3JwLWNsaWVudGNvbm5lY3RvcnNlcnZpY2VzLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1iZXlvbmRjb3JwLWNsaWVudGdhdGV3YXlzLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1iaWdsYWtlLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1iaWdxdWVyeS1kYXRhLWV4Y2hhbmdlLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1iaWdxdWVyeWNvbm5lY3Rpb24vLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1iaWdxdWVyeWRhdGFwb2xpY3kvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS1iaWdxdWVyeWRhdGF0cmFuc2Zlci8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1iaWdxdWVyeW1pZ3JhdGlvbi8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1iaWdxdWVyeXJlc2VydmF0aW9uLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1iaWxsaW5nLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1iaWxsaW5nYnVkZ2V0cy8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1iaW5hcnktYXV0aG9yaXphdGlvbi8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 Copy-Tag: eyJwIjoiamF2YS1jZXJ0aWZpY2F0ZS1tYW5hZ2VyLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1jaGFubmVsLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS1jbG91ZGJ1aWxkLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= * 🦉 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 ccb8866 commit e56e666

File tree

88 files changed

+8327
-462
lines changed

Some content is hidden

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

88 files changed

+8327
-462
lines changed

java-bare-metal-solution/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.cloud/google-cloud-bare-metal-solution.svg
204-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.30.0
204+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.32.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-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/BareMetalSolutionClient.java

Lines changed: 894 additions & 13 deletions
Large diffs are not rendered by default.

java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/BareMetalSolutionStubSettings.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,6 +1229,12 @@ public BareMetalSolutionStub createStub() throws IOException {
12291229
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
12301230
}
12311231

1232+
/** Returns the default service name. */
1233+
@Override
1234+
public String getServiceName() {
1235+
return "baremetalsolution";
1236+
}
1237+
12321238
/** Returns a builder for the default ExecutorProvider for this service. */
12331239
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
12341240
return InstantiatingExecutorProvider.newBuilder();

java-batch/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.cloud/google-cloud-batch.svg
204-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.30.0
204+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.32.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-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java

Lines changed: 151 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,157 @@
6767
* <p>Note: close() needs to be called on the BatchServiceClient object to clean up resources such
6868
* as threads. In the example above, try-with-resources is used, which automatically calls close().
6969
*
70-
* <p>The surface of this class includes several types of Java methods for each of the API's
71-
* methods:
72-
*
73-
* <ol>
74-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
75-
* converted into function parameters. It may be the case that not all fields are available as
76-
* parameters, and not every API method will have a flattened method entry point.
77-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
78-
* which must be constructed before the call. Not every API method will have a request object
79-
* method.
80-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
81-
* callable object, which can be used to initiate calls to the service.
82-
* </ol>
70+
* <table>
71+
* <tr>
72+
* <th>Method</th>
73+
* <th>Description</th>
74+
* <th>Method Variants</th>
75+
* <tr>
76+
* <td>CreateJob</td>
77+
* <td><p> Create a Job.</td>
78+
* <td>
79+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
80+
* <ul>
81+
* <li>createJob(CreateJobRequest request)
82+
* </ul>
83+
* <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>
84+
* <ul>
85+
* <li>createJob(LocationName parent, Job job, String jobId)
86+
* <li>createJob(String parent, Job job, String jobId)
87+
* </ul>
88+
* <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>
89+
* <ul>
90+
* <li>createJobCallable()
91+
* </ul>
92+
* </td>
93+
* </tr>
94+
* <tr>
95+
* <td>GetJob</td>
96+
* <td><p> Get a Job specified by its resource name.</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>getJob(GetJobRequest 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>getJob(JobName name)
105+
* <li>getJob(String name)
106+
* </ul>
107+
* <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>
108+
* <ul>
109+
* <li>getJobCallable()
110+
* </ul>
111+
* </td>
112+
* </tr>
113+
* <tr>
114+
* <td>DeleteJob</td>
115+
* <td><p> Delete a Job.</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>deleteJobAsync(DeleteJobRequest request)
120+
* </ul>
121+
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
122+
* <ul>
123+
* <li>deleteJobAsync(String name)
124+
* </ul>
125+
* <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>
126+
* <ul>
127+
* <li>deleteJobOperationCallable()
128+
* <li>deleteJobCallable()
129+
* </ul>
130+
* </td>
131+
* </tr>
132+
* <tr>
133+
* <td>ListJobs</td>
134+
* <td><p> List all Jobs for a project within a region.</td>
135+
* <td>
136+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
137+
* <ul>
138+
* <li>listJobs(ListJobsRequest request)
139+
* </ul>
140+
* <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>
141+
* <ul>
142+
* <li>listJobs(String parent)
143+
* </ul>
144+
* <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>
145+
* <ul>
146+
* <li>listJobsPagedCallable()
147+
* <li>listJobsCallable()
148+
* </ul>
149+
* </td>
150+
* </tr>
151+
* <tr>
152+
* <td>GetTask</td>
153+
* <td><p> Return a single Task.</td>
154+
* <td>
155+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
156+
* <ul>
157+
* <li>getTask(GetTaskRequest request)
158+
* </ul>
159+
* <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>
160+
* <ul>
161+
* <li>getTask(TaskName name)
162+
* <li>getTask(String name)
163+
* </ul>
164+
* <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>
165+
* <ul>
166+
* <li>getTaskCallable()
167+
* </ul>
168+
* </td>
169+
* </tr>
170+
* <tr>
171+
* <td>ListTasks</td>
172+
* <td><p> List Tasks associated with a job.</td>
173+
* <td>
174+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
175+
* <ul>
176+
* <li>listTasks(ListTasksRequest request)
177+
* </ul>
178+
* <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>
179+
* <ul>
180+
* <li>listTasks(TaskGroupName parent)
181+
* <li>listTasks(String parent)
182+
* </ul>
183+
* <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>
184+
* <ul>
185+
* <li>listTasksPagedCallable()
186+
* <li>listTasksCallable()
187+
* </ul>
188+
* </td>
189+
* </tr>
190+
* <tr>
191+
* <td>ListLocations</td>
192+
* <td><p> Lists information about the supported locations for this service.</td>
193+
* <td>
194+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
195+
* <ul>
196+
* <li>listLocations(ListLocationsRequest request)
197+
* </ul>
198+
* <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>
199+
* <ul>
200+
* <li>listLocationsPagedCallable()
201+
* <li>listLocationsCallable()
202+
* </ul>
203+
* </td>
204+
* </tr>
205+
* <tr>
206+
* <td>GetLocation</td>
207+
* <td><p> Gets information about a location.</td>
208+
* <td>
209+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
210+
* <ul>
211+
* <li>getLocation(GetLocationRequest request)
212+
* </ul>
213+
* <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>
214+
* <ul>
215+
* <li>getLocationCallable()
216+
* </ul>
217+
* </td>
218+
* </tr>
219+
* </tr>
220+
* </table>
83221
*
84222
* <p>See the individual methods for example code.
85223
*

java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,12 @@ public BatchServiceStub createStub() throws IOException {
356356
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
357357
}
358358

359+
/** Returns the default service name. */
360+
@Override
361+
public String getServiceName() {
362+
return "batch";
363+
}
364+
359365
/** Returns a builder for the default ExecutorProvider for this service. */
360366
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
361367
return InstantiatingExecutorProvider.newBuilder();

java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceClient.java

Lines changed: 151 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,157 @@
6767
* <p>Note: close() needs to be called on the BatchServiceClient object to clean up resources such
6868
* as threads. In the example above, try-with-resources is used, which automatically calls close().
6969
*
70-
* <p>The surface of this class includes several types of Java methods for each of the API's
71-
* methods:
72-
*
73-
* <ol>
74-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
75-
* converted into function parameters. It may be the case that not all fields are available as
76-
* parameters, and not every API method will have a flattened method entry point.
77-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
78-
* which must be constructed before the call. Not every API method will have a request object
79-
* method.
80-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
81-
* callable object, which can be used to initiate calls to the service.
82-
* </ol>
70+
* <table>
71+
* <tr>
72+
* <th>Method</th>
73+
* <th>Description</th>
74+
* <th>Method Variants</th>
75+
* <tr>
76+
* <td>CreateJob</td>
77+
* <td><p> Create a Job.</td>
78+
* <td>
79+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
80+
* <ul>
81+
* <li>createJob(CreateJobRequest request)
82+
* </ul>
83+
* <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>
84+
* <ul>
85+
* <li>createJob(LocationName parent, Job job, String jobId)
86+
* <li>createJob(String parent, Job job, String jobId)
87+
* </ul>
88+
* <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>
89+
* <ul>
90+
* <li>createJobCallable()
91+
* </ul>
92+
* </td>
93+
* </tr>
94+
* <tr>
95+
* <td>GetJob</td>
96+
* <td><p> Get a Job specified by its resource name.</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>getJob(GetJobRequest 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>getJob(JobName name)
105+
* <li>getJob(String name)
106+
* </ul>
107+
* <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>
108+
* <ul>
109+
* <li>getJobCallable()
110+
* </ul>
111+
* </td>
112+
* </tr>
113+
* <tr>
114+
* <td>DeleteJob</td>
115+
* <td><p> Delete a Job.</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>deleteJobAsync(DeleteJobRequest request)
120+
* </ul>
121+
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
122+
* <ul>
123+
* <li>deleteJobAsync(String name)
124+
* </ul>
125+
* <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>
126+
* <ul>
127+
* <li>deleteJobOperationCallable()
128+
* <li>deleteJobCallable()
129+
* </ul>
130+
* </td>
131+
* </tr>
132+
* <tr>
133+
* <td>ListJobs</td>
134+
* <td><p> List all Jobs for a project within a region.</td>
135+
* <td>
136+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
137+
* <ul>
138+
* <li>listJobs(ListJobsRequest request)
139+
* </ul>
140+
* <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>
141+
* <ul>
142+
* <li>listJobs(String parent)
143+
* </ul>
144+
* <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>
145+
* <ul>
146+
* <li>listJobsPagedCallable()
147+
* <li>listJobsCallable()
148+
* </ul>
149+
* </td>
150+
* </tr>
151+
* <tr>
152+
* <td>GetTask</td>
153+
* <td><p> Return a single Task.</td>
154+
* <td>
155+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
156+
* <ul>
157+
* <li>getTask(GetTaskRequest request)
158+
* </ul>
159+
* <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>
160+
* <ul>
161+
* <li>getTask(TaskName name)
162+
* <li>getTask(String name)
163+
* </ul>
164+
* <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>
165+
* <ul>
166+
* <li>getTaskCallable()
167+
* </ul>
168+
* </td>
169+
* </tr>
170+
* <tr>
171+
* <td>ListTasks</td>
172+
* <td><p> List Tasks associated with a job.</td>
173+
* <td>
174+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
175+
* <ul>
176+
* <li>listTasks(ListTasksRequest request)
177+
* </ul>
178+
* <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>
179+
* <ul>
180+
* <li>listTasks(TaskGroupName parent)
181+
* <li>listTasks(String parent)
182+
* </ul>
183+
* <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>
184+
* <ul>
185+
* <li>listTasksPagedCallable()
186+
* <li>listTasksCallable()
187+
* </ul>
188+
* </td>
189+
* </tr>
190+
* <tr>
191+
* <td>ListLocations</td>
192+
* <td><p> Lists information about the supported locations for this service.</td>
193+
* <td>
194+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
195+
* <ul>
196+
* <li>listLocations(ListLocationsRequest request)
197+
* </ul>
198+
* <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>
199+
* <ul>
200+
* <li>listLocationsPagedCallable()
201+
* <li>listLocationsCallable()
202+
* </ul>
203+
* </td>
204+
* </tr>
205+
* <tr>
206+
* <td>GetLocation</td>
207+
* <td><p> Gets information about a location.</td>
208+
* <td>
209+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
210+
* <ul>
211+
* <li>getLocation(GetLocationRequest request)
212+
* </ul>
213+
* <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>
214+
* <ul>
215+
* <li>getLocationCallable()
216+
* </ul>
217+
* </td>
218+
* </tr>
219+
* </tr>
220+
* </table>
83221
*
84222
* <p>See the individual methods for example code.
85223
*

java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStubSettings.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,12 @@ public BatchServiceStub createStub() throws IOException {
357357
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
358358
}
359359

360+
/** Returns the default service name. */
361+
@Override
362+
public String getServiceName() {
363+
return "batch";
364+
}
365+
360366
/** Returns a builder for the default ExecutorProvider for this service. */
361367
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
362368
return InstantiatingExecutorProvider.newBuilder();

0 commit comments

Comments
 (0)