Class GrpcSecurityCenterStub
- java.lang.Object
-
- com.google.cloud.securitycenter.v1p1beta1.stub.SecurityCenterStub
-
- com.google.cloud.securitycenter.v1p1beta1.stub.GrpcSecurityCenterStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class GrpcSecurityCenterStub extends SecurityCenterStub
gRPC stub implementation for the SecurityCenter service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcSecurityCenterStub(SecurityCenterStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcSecurityCenterStub, using the given settings.protected
GrpcSecurityCenterStub(SecurityCenterStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcSecurityCenterStub, using the given settings.
-
Method Summary
-
Methods inherited from class com.google.cloud.securitycenter.v1p1beta1.stub.SecurityCenterStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcSecurityCenterStub
protected GrpcSecurityCenterStub(SecurityCenterStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcSecurityCenterStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
GrpcSecurityCenterStub
protected GrpcSecurityCenterStub(SecurityCenterStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcSecurityCenterStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcSecurityCenterStub create(SecurityCenterStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcSecurityCenterStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcSecurityCenterStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStub
in classSecurityCenterStub
-
createSourceCallable
public com.google.api.gax.rpc.UnaryCallable<CreateSourceRequest,Source> createSourceCallable()
- Overrides:
createSourceCallable
in classSecurityCenterStub
-
createFindingCallable
public com.google.api.gax.rpc.UnaryCallable<CreateFindingRequest,Finding> createFindingCallable()
- Overrides:
createFindingCallable
in classSecurityCenterStub
-
createNotificationConfigCallable
public com.google.api.gax.rpc.UnaryCallable<CreateNotificationConfigRequest,NotificationConfig> createNotificationConfigCallable()
- Overrides:
createNotificationConfigCallable
in classSecurityCenterStub
-
deleteNotificationConfigCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteNotificationConfigRequest,com.google.protobuf.Empty> deleteNotificationConfigCallable()
- Overrides:
deleteNotificationConfigCallable
in classSecurityCenterStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classSecurityCenterStub
-
getNotificationConfigCallable
public com.google.api.gax.rpc.UnaryCallable<GetNotificationConfigRequest,NotificationConfig> getNotificationConfigCallable()
- Overrides:
getNotificationConfigCallable
in classSecurityCenterStub
-
getOrganizationSettingsCallable
public com.google.api.gax.rpc.UnaryCallable<GetOrganizationSettingsRequest,OrganizationSettings> getOrganizationSettingsCallable()
- Overrides:
getOrganizationSettingsCallable
in classSecurityCenterStub
-
getSourceCallable
public com.google.api.gax.rpc.UnaryCallable<GetSourceRequest,Source> getSourceCallable()
- Overrides:
getSourceCallable
in classSecurityCenterStub
-
groupAssetsCallable
public com.google.api.gax.rpc.UnaryCallable<GroupAssetsRequest,GroupAssetsResponse> groupAssetsCallable()
- Overrides:
groupAssetsCallable
in classSecurityCenterStub
-
groupAssetsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<GroupAssetsRequest,SecurityCenterClient.GroupAssetsPagedResponse> groupAssetsPagedCallable()
- Overrides:
groupAssetsPagedCallable
in classSecurityCenterStub
-
groupFindingsCallable
public com.google.api.gax.rpc.UnaryCallable<GroupFindingsRequest,GroupFindingsResponse> groupFindingsCallable()
- Overrides:
groupFindingsCallable
in classSecurityCenterStub
-
groupFindingsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<GroupFindingsRequest,SecurityCenterClient.GroupFindingsPagedResponse> groupFindingsPagedCallable()
- Overrides:
groupFindingsPagedCallable
in classSecurityCenterStub
-
listAssetsCallable
public com.google.api.gax.rpc.UnaryCallable<ListAssetsRequest,ListAssetsResponse> listAssetsCallable()
- Overrides:
listAssetsCallable
in classSecurityCenterStub
-
listAssetsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListAssetsRequest,SecurityCenterClient.ListAssetsPagedResponse> listAssetsPagedCallable()
- Overrides:
listAssetsPagedCallable
in classSecurityCenterStub
-
listFindingsCallable
public com.google.api.gax.rpc.UnaryCallable<ListFindingsRequest,ListFindingsResponse> listFindingsCallable()
- Overrides:
listFindingsCallable
in classSecurityCenterStub
-
listFindingsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListFindingsRequest,SecurityCenterClient.ListFindingsPagedResponse> listFindingsPagedCallable()
- Overrides:
listFindingsPagedCallable
in classSecurityCenterStub
-
listNotificationConfigsCallable
public com.google.api.gax.rpc.UnaryCallable<ListNotificationConfigsRequest,ListNotificationConfigsResponse> listNotificationConfigsCallable()
- Overrides:
listNotificationConfigsCallable
in classSecurityCenterStub
-
listNotificationConfigsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListNotificationConfigsRequest,SecurityCenterClient.ListNotificationConfigsPagedResponse> listNotificationConfigsPagedCallable()
- Overrides:
listNotificationConfigsPagedCallable
in classSecurityCenterStub
-
listSourcesCallable
public com.google.api.gax.rpc.UnaryCallable<ListSourcesRequest,ListSourcesResponse> listSourcesCallable()
- Overrides:
listSourcesCallable
in classSecurityCenterStub
-
listSourcesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSourcesRequest,SecurityCenterClient.ListSourcesPagedResponse> listSourcesPagedCallable()
- Overrides:
listSourcesPagedCallable
in classSecurityCenterStub
-
runAssetDiscoveryCallable
public com.google.api.gax.rpc.UnaryCallable<RunAssetDiscoveryRequest,com.google.longrunning.Operation> runAssetDiscoveryCallable()
- Overrides:
runAssetDiscoveryCallable
in classSecurityCenterStub
-
runAssetDiscoveryOperationCallable
public com.google.api.gax.rpc.OperationCallable<RunAssetDiscoveryRequest,RunAssetDiscoveryResponse,com.google.protobuf.Empty> runAssetDiscoveryOperationCallable()
- Overrides:
runAssetDiscoveryOperationCallable
in classSecurityCenterStub
-
setFindingStateCallable
public com.google.api.gax.rpc.UnaryCallable<SetFindingStateRequest,Finding> setFindingStateCallable()
- Overrides:
setFindingStateCallable
in classSecurityCenterStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classSecurityCenterStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classSecurityCenterStub
-
updateFindingCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateFindingRequest,Finding> updateFindingCallable()
- Overrides:
updateFindingCallable
in classSecurityCenterStub
-
updateNotificationConfigCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateNotificationConfigRequest,NotificationConfig> updateNotificationConfigCallable()
- Overrides:
updateNotificationConfigCallable
in classSecurityCenterStub
-
updateOrganizationSettingsCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateOrganizationSettingsRequest,OrganizationSettings> updateOrganizationSettingsCallable()
- Overrides:
updateOrganizationSettingsCallable
in classSecurityCenterStub
-
updateSourceCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateSourceRequest,Source> updateSourceCallable()
- Overrides:
updateSourceCallable
in classSecurityCenterStub
-
updateSecurityMarksCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateSecurityMarksRequest,SecurityMarks> updateSecurityMarksCallable()
- Overrides:
updateSecurityMarksCallable
in classSecurityCenterStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classSecurityCenterStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-