Class GrpcSystemPolicyV1Stub (1.27.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
GrpcSystemPolicyV1Stub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(SystemPolicyV1StubSettings settings)

publicstaticfinalGrpcSystemPolicyV1Stubcreate(SystemPolicyV1StubSettingssettings)
Parameter
Name Description
settings SystemPolicyV1StubSettings
Returns
Type Description
GrpcSystemPolicyV1Stub
Exceptions
Type Description
IOException

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
settings SystemPolicyV1StubSettings
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
settings SystemPolicyV1StubSettings
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

getOperationsStub()

publicGrpcOperationsStubgetOperationsStub()
Returns
Type Description
GrpcOperationsStub

getSystemPolicyCallable()

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

isShutdown()

publicbooleanisShutdown()
Returns
Type Description
boolean

isTerminated()

publicbooleanisTerminated()
Returns
Type Description
boolean

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.