Class GrpcContainerAnalysisStub (2.31.0)

publicclass GrpcContainerAnalysisStubextendsContainerAnalysisStub

gRPC stub implementation for the ContainerAnalysis service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > ContainerAnalysisStub > GrpcContainerAnalysisStub

Static Methods

create(ClientContext clientContext)

publicstaticfinalGrpcContainerAnalysisStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcContainerAnalysisStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

publicstaticfinalGrpcContainerAnalysisStubcreate(ClientContextclientContext,GrpcStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcContainerAnalysisStub
Exceptions
Type Description
IOException

create(ContainerAnalysisStubSettings settings)

publicstaticfinalGrpcContainerAnalysisStubcreate(ContainerAnalysisStubSettingssettings)
Parameter
Name Description
settings ContainerAnalysisStubSettings
Returns
Type Description
GrpcContainerAnalysisStub
Exceptions
Type Description
IOException

Constructors

GrpcContainerAnalysisStub(ContainerAnalysisStubSettings settings, ClientContext clientContext)

protectedGrpcContainerAnalysisStub(ContainerAnalysisStubSettingssettings,ClientContextclientContext)

Constructs an instance of GrpcContainerAnalysisStub, 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.

Parameters
Name Description
settings ContainerAnalysisStubSettings
clientContext ClientContext

GrpcContainerAnalysisStub(ContainerAnalysisStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protectedGrpcContainerAnalysisStub(ContainerAnalysisStubSettingssettings,ClientContextclientContext,GrpcStubCallableFactorycallableFactory)

Constructs an instance of GrpcContainerAnalysisStub, 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.

Parameters
Name Description
settings ContainerAnalysisStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

publicbooleanawaitTermination(longduration,TimeUnitunit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

publicfinalvoidclose()
Overrides

getIamPolicyCallable()

publicUnaryCallable<GetIamPolicyRequest,Policy>getIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getOperationsStub()

publicGrpcOperationsStubgetOperationsStub()
Returns
Type Description
GrpcOperationsStub

getVulnerabilityOccurrencesSummaryCallable()

publicUnaryCallable<GetVulnerabilityOccurrencesSummaryRequest,VulnerabilityOccurrencesSummary>getVulnerabilityOccurrencesSummaryCallable()
Returns
Type Description
UnaryCallable<GetVulnerabilityOccurrencesSummaryRequest,VulnerabilityOccurrencesSummary>
Overrides

isShutdown()

publicbooleanisShutdown()
Returns
Type Description
boolean

isTerminated()

publicbooleanisTerminated()
Returns
Type Description
boolean

setIamPolicyCallable()

publicUnaryCallable<SetIamPolicyRequest,Policy>setIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

publicvoidshutdown()

shutdownNow()

publicvoidshutdownNow()

testIamPermissionsCallable()

publicUnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse>testIamPermissionsCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.