Skip to content

Commit

Permalink
fix(deps): [securitycenter] Update the Java code generator (gapic-gen…
Browse files Browse the repository at this point in the history
…erator-java) to 2.37.0 (#10448)

* feat: Added security center api V2 client library

PiperOrigin-RevId: 611571259

Source-Link: googleapis/googleapis@e42dca2

Source-Link: googleapis/googleapis-gen@c7150bf
Copy-Tag: eyJwIjoiamF2YS1zZWN1cml0eWNlbnRlci8uT3dsQm90LnlhbWwiLCJoIjoiYzcxNTBiZjUzNTQ3MmEzNGI1MmQ5ODM2YWY5NzI2NjQwMmU0OWEwOCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

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

PiperOrigin-RevId: 611816371

Source-Link: googleapis/googleapis@2a40f63

Source-Link: googleapis/googleapis-gen@d30ff07
Copy-Tag: eyJwIjoiamF2YS1zZWN1cml0eWNlbnRlci8uT3dsQm90LnlhbWwiLCJoIjoiZDMwZmYwNzY3Nzc3YjM4MWZiMTYxN2Y2N2E5MGUzYWJkM2JkYzZkYyJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: fix for consolidate_config check failure.

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Min Zhu <zhumin@google.com>
  • Loading branch information
3 people committed Mar 4, 2024
1 parent ec1623d commit a90ba11
Show file tree
Hide file tree
Showing 526 changed files with 255,575 additions and 168 deletions.
10 changes: 10 additions & 0 deletions java-securitycenter/google-cloud-securitycenter-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
<artifactId>grpc-google-cloud-securitycenter-v1p1beta1</artifactId>
<version>0.140.0-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-securitycenter-v1p1beta1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-securitycenter-v2</artifactId>
<version>2.45.0-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-securitycenter-v2:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-securitycenter-v1</artifactId>
Expand All @@ -55,6 +60,11 @@
<artifactId>proto-google-cloud-securitycenter-v1p1beta1</artifactId>
<version>0.140.0-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-securitycenter-v1p1beta1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-securitycenter-v2</artifactId>
<version>2.45.0-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-securitycenter-v2:current} -->
</dependency>
</dependencies>
</dependencyManagement>
</project>
9 changes: 9 additions & 0 deletions java-securitycenter/google-cloud-securitycenter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
<artifactId>proto-google-common-protos</artifactId>
</dependency>

<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-securitycenter-v2</artifactId>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-securitycenter-v1</artifactId>
Expand Down Expand Up @@ -90,6 +94,11 @@
<artifactId>grpc-google-cloud-securitycenter-v1</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-securitycenter-v2</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-securitycenter-v1beta1</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,6 @@ public static Builder newBuilder() {
}

/** Returns a new REST builder for this class. */
@BetaApi
public static Builder newHttpJsonBuilder() {
return Builder.createHttpJsonDefault();
}
Expand Down Expand Up @@ -529,7 +528,6 @@ private static Builder createDefault() {
return new Builder(SecurityCenterStubSettings.newBuilder());
}

@BetaApi
private static Builder createHttpJsonDefault() {
return new Builder(SecurityCenterStubSettings.newHttpJsonBuilder());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.securitycenter.v1.stub;

import com.google.api.core.BetaApi;
import com.google.api.gax.httpjson.HttpJsonCallSettings;
import com.google.api.gax.httpjson.HttpJsonCallableFactory;
import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable;
Expand All @@ -41,7 +40,6 @@
* <p>This class is for advanced usage.
*/
@Generated("by gapic-generator-java")
@BetaApi
public class HttpJsonSecurityCenterCallableFactory
implements HttpJsonStubCallableFactory<Operation, OperationsStub> {

Expand Down Expand Up @@ -73,8 +71,6 @@ public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createBatchingCa
httpJsonCallSettings, callSettings, clientContext);
}

@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
@Override
public <RequestT, ResponseT, MetadataT>
OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSourcesPagedResponse;

import com.google.api.HttpRule;
import com.google.api.core.BetaApi;
import com.google.api.core.InternalApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.core.BackgroundResourceAggregation;
Expand Down Expand Up @@ -135,7 +134,6 @@
* <p>This class is for advanced usage and reflects the underlying API directly.
*/
@Generated("by gapic-generator-java")
@BetaApi
public class HttpJsonSecurityCenterStub extends SecurityCenterStub {
private static final TypeRegistry typeRegistry =
TypeRegistry.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2259,8 +2259,6 @@ public Builder applyToAllUnaryMethods(
}

/** Returns the builder for the settings used for calls to bulkMuteFindings. */
@BetaApi(
"The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallSettings.Builder<BulkMuteFindingsRequest, BulkMuteFindingsResponse, Empty>
bulkMuteFindingsOperationSettings() {
return bulkMuteFindingsOperationSettings;
Expand Down Expand Up @@ -2480,8 +2478,6 @@ public UnaryCallSettings.Builder<GetSourceRequest, Source> getSourceSettings() {
}

/** Returns the builder for the settings used for calls to runAssetDiscovery. */
@BetaApi(
"The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallSettings.Builder<RunAssetDiscoveryRequest, RunAssetDiscoveryResponse, Empty>
runAssetDiscoveryOperationSettings() {
return runAssetDiscoveryOperationSettings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ public static Builder newBuilder() {
}

/** Returns a new REST builder for this class. */
@BetaApi
public static Builder newHttpJsonBuilder() {
return Builder.createHttpJsonDefault();
}
Expand Down Expand Up @@ -287,7 +286,6 @@ private static Builder createDefault() {
return new Builder(SecurityCenterStubSettings.newBuilder());
}

@BetaApi
private static Builder createHttpJsonDefault() {
return new Builder(SecurityCenterStubSettings.newHttpJsonBuilder());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createBatchingCa
httpJsonCallSettings, callSettings, clientContext);
}

@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
@Override
public <RequestT, ResponseT, MetadataT>
OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1113,8 +1113,6 @@ public UnaryCallSettings.Builder<GetSourceRequest, Source> getSourceSettings() {
}

/** Returns the builder for the settings used for calls to runAssetDiscovery. */
@BetaApi(
"The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallSettings.Builder<RunAssetDiscoveryRequest, Empty, Empty>
runAssetDiscoveryOperationSettings() {
return runAssetDiscoveryOperationSettings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ public static Builder newBuilder() {
}

/** Returns a new REST builder for this class. */
@BetaApi
public static Builder newHttpJsonBuilder() {
return Builder.createHttpJsonDefault();
}
Expand Down Expand Up @@ -321,7 +320,6 @@ private static Builder createDefault() {
return new Builder(SecurityCenterStubSettings.newBuilder());
}

@BetaApi
private static Builder createHttpJsonDefault() {
return new Builder(SecurityCenterStubSettings.newHttpJsonBuilder());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createBatchingCa
httpJsonCallSettings, callSettings, clientContext);
}

@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
@Override
public <RequestT, ResponseT, MetadataT>
OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1342,8 +1342,6 @@ public UnaryCallSettings.Builder<GetSourceRequest, Source> getSourceSettings() {
}

/** Returns the builder for the settings used for calls to runAssetDiscovery. */
@BetaApi(
"The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallSettings.Builder<RunAssetDiscoveryRequest, RunAssetDiscoveryResponse, Empty>
runAssetDiscoveryOperationSettings() {
return runAssetDiscoveryOperationSettings;
Expand Down

0 comments on commit a90ba11

Please sign in to comment.