Skip to content

Commit

Permalink
fix(deps): [Many APIs] Update the Java code generator (gapic-generato…
Browse files Browse the repository at this point in the history
…r-java) to 2.31.0 (#10203)

* fix(deps): Update the Java code generator (gapic-generator-java) to 2.31.0

PiperOrigin-RevId: 596645164

Source-Link: googleapis/googleapis@4a0e62e

Source-Link: googleapis/googleapis-gen@a10ed6a
Copy-Tag: eyJwIjoiamF2YS13ZWJzZWN1cml0eXNjYW5uZXIvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ==
Copy-Tag: eyJwIjoiamF2YS13b3JrZmxvdy1leGVjdXRpb25zLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0=
Copy-Tag: eyJwIjoiamF2YS13b3JrZmxvd3MvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ==
Copy-Tag: eyJwIjoiamF2YS13b3Jrc3RhdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ==

* 🦉 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Jan 9, 2024
1 parent 8578789 commit 89c017e
Show file tree
Hide file tree
Showing 22 changed files with 2,060 additions and 121 deletions.
2 changes: 1 addition & 1 deletion java-websecurityscanner/README.md
Expand Up @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-websecurityscanner.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.30.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.32.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Expand Up @@ -62,19 +62,199 @@
* such as threads. In the example above, try-with-resources is used, which automatically calls
* close().
*
* <p>The surface of this class includes several types of Java methods for each of the API's
* methods:
*
* <ol>
* <li>A "flattened" method. With this type of method, the fields of the request type have been
* converted into function parameters. It may be the case that not all fields are available as
* parameters, and not every API method will have a flattened method entry point.
* <li>A "request object" method. This type of method only takes one parameter, a request object,
* which must be constructed before the call. Not every API method will have a request object
* method.
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
* callable object, which can be used to initiate calls to the service.
* </ol>
* <table>
* <tr>
* <th>Method</th>
* <th>Description</th>
* <th>Method Variants</th>
* <tr>
* <td>CreateScanConfig</td>
* <td><p> Creates a new ScanConfig.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>createScanConfig(CreateScanConfigRequest request)
* </ul>
* <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>
* <ul>
* <li>createScanConfigCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>DeleteScanConfig</td>
* <td><p> Deletes an existing ScanConfig and its child resources.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>deleteScanConfig(DeleteScanConfigRequest request)
* </ul>
* <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>
* <ul>
* <li>deleteScanConfigCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>GetScanConfig</td>
* <td><p> Gets a ScanConfig.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>getScanConfig(GetScanConfigRequest request)
* </ul>
* <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>
* <ul>
* <li>getScanConfigCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>ListScanConfigs</td>
* <td><p> Lists ScanConfigs under a given project.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>listScanConfigs(ListScanConfigsRequest request)
* </ul>
* <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>
* <ul>
* <li>listScanConfigsPagedCallable()
* <li>listScanConfigsCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>UpdateScanConfig</td>
* <td><p> Updates a ScanConfig. This method support partial update of a ScanConfig.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>updateScanConfig(UpdateScanConfigRequest request)
* </ul>
* <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>
* <ul>
* <li>updateScanConfigCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>StartScanRun</td>
* <td><p> Start a ScanRun according to the given ScanConfig.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>startScanRun(StartScanRunRequest request)
* </ul>
* <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>
* <ul>
* <li>startScanRunCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>GetScanRun</td>
* <td><p> Gets a ScanRun.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>getScanRun(GetScanRunRequest request)
* </ul>
* <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>
* <ul>
* <li>getScanRunCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>ListScanRuns</td>
* <td><p> Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>listScanRuns(ListScanRunsRequest request)
* </ul>
* <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>
* <ul>
* <li>listScanRunsPagedCallable()
* <li>listScanRunsCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>StopScanRun</td>
* <td><p> Stops a ScanRun. The stopped ScanRun is returned.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>stopScanRun(StopScanRunRequest request)
* </ul>
* <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>
* <ul>
* <li>stopScanRunCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>ListCrawledUrls</td>
* <td><p> List CrawledUrls under a given ScanRun.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>listCrawledUrls(ListCrawledUrlsRequest request)
* </ul>
* <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>
* <ul>
* <li>listCrawledUrlsPagedCallable()
* <li>listCrawledUrlsCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>GetFinding</td>
* <td><p> Gets a Finding.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>getFinding(GetFindingRequest request)
* </ul>
* <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>
* <ul>
* <li>getFindingCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>ListFindings</td>
* <td><p> List Findings under a given ScanRun.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>listFindings(ListFindingsRequest request)
* </ul>
* <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>
* <ul>
* <li>listFindingsPagedCallable()
* <li>listFindingsCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td>ListFindingTypeStats</td>
* <td><p> List all FindingTypeStats under a given ScanRun.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li>listFindingTypeStats(ListFindingTypeStatsRequest request)
* </ul>
* <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>
* <ul>
* <li>listFindingTypeStatsCallable()
* </ul>
* </td>
* </tr>
* </tr>
* </table>
*
* <p>See the individual methods for example code.
*
Expand Down
Expand Up @@ -452,6 +452,12 @@ public WebSecurityScannerStub createStub() throws IOException {
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
}

/** Returns the default service name. */
@Override
public String getServiceName() {
return "websecurityscanner";
}

/** Returns a builder for the default ExecutorProvider for this service. */
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
return InstantiatingExecutorProvider.newBuilder();
Expand Down

0 comments on commit 89c017e

Please sign in to comment.