Class GrpcSystemPolicyV1Stub (1.6.0)

publicclass GrpcSystemPolicyV1StubextendsSystemPolicyV1Stub

gRPC stub implementation for the SystemPolicyV1 service API.

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

Inheritance

java.lang.Object > SystemPolicyV1Stub > GrpcSystemPolicyV1Stub

Static Methods

create(ClientContext clientContext)

publicstaticfinalGrpcSystemPolicyV1Stubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
Exceptions
Type Description

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

publicstaticfinalGrpcSystemPolicyV1Stubcreate(ClientContextclientContext,GrpcStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
Exceptions
Type Description

create(SystemPolicyV1StubSettings settings)

publicstaticfinalGrpcSystemPolicyV1Stubcreate(SystemPolicyV1StubSettingssettings)
Parameter
Name Description
Returns
Type Description
Exceptions
Type Description

Constructors

GrpcSystemPolicyV1Stub(SystemPolicyV1StubSettings settings, ClientContext clientContext)

protectedGrpcSystemPolicyV1Stub(SystemPolicyV1StubSettingssettings,ClientContextclientContext)

Constructs an instance of GrpcSystemPolicyV1Stub, 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
clientContext ClientContext

GrpcSystemPolicyV1Stub(SystemPolicyV1StubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protectedGrpcSystemPolicyV1Stub(SystemPolicyV1StubSettingssettings,ClientContextclientContext,GrpcStubCallableFactorycallableFactory)

Constructs an instance of GrpcSystemPolicyV1Stub, 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
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

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

close()

publicfinalvoidclose()
Overrides

getOperationsStub()

publicGrpcOperationsStubgetOperationsStub()
Returns
Type Description

getSystemPolicyCallable()

publicUnaryCallable<Service.GetSystemPolicyRequest,Resources.Policy>getSystemPolicyCallable()
Returns
Type Description
Overrides

isShutdown()

publicbooleanisShutdown()
Returns
Type Description

isTerminated()

publicbooleanisTerminated()
Returns
Type Description

shutdown()

publicvoidshutdown()

shutdownNow()

publicvoidshutdownNow()

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.