Class GrpcContainerAnalysisStub (2.4.1)

public class GrpcContainerAnalysisStub extends ContainerAnalysisStub

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)

public static final GrpcContainerAnalysisStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcContainerAnalysisStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcContainerAnalysisStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcContainerAnalysisStub
Exceptions
TypeDescription
IOException

create(ContainerAnalysisStubSettings settings)

public static final GrpcContainerAnalysisStub create(ContainerAnalysisStubSettings settings)
Parameter
NameDescription
settingsContainerAnalysisStubSettings
Returns
TypeDescription
GrpcContainerAnalysisStub
Exceptions
TypeDescription
IOException

Constructors

GrpcContainerAnalysisStub(ContainerAnalysisStubSettings settings, ClientContext clientContext)

protected GrpcContainerAnalysisStub(ContainerAnalysisStubSettings settings, ClientContext clientContext)

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
NameDescription
settingsContainerAnalysisStubSettings
clientContextClientContext

GrpcContainerAnalysisStub(ContainerAnalysisStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcContainerAnalysisStub(ContainerAnalysisStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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
NameDescription
settingsContainerAnalysisStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

getVulnerabilityOccurrencesSummaryCallable()

public UnaryCallable<GetVulnerabilityOccurrencesSummaryRequest,VulnerabilityOccurrencesSummary> getVulnerabilityOccurrencesSummaryCallable()
Returns
TypeDescription
UnaryCallable<GetVulnerabilityOccurrencesSummaryRequest,VulnerabilityOccurrencesSummary>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides