Class GrpcServicesStub (2.57.0)

publicclass GrpcServicesStubextendsServicesStub

gRPC stub implementation for the Services service API.

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

Inheritance

java.lang.Object > ServicesStub > GrpcServicesStub

Static Methods

create(ClientContext clientContext)

publicstaticfinalGrpcServicesStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcServicesStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ServicesStubSettings settings)

publicstaticfinalGrpcServicesStubcreate(ServicesStubSettingssettings)
Parameter
Name Description
settings ServicesStubSettings
Returns
Type Description
GrpcServicesStub
Exceptions
Type Description
IOException

Constructors

GrpcServicesStub(ServicesStubSettings settings, ClientContext clientContext)

protectedGrpcServicesStub(ServicesStubSettingssettings,ClientContextclientContext)

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

GrpcServicesStub(ServicesStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protectedGrpcServicesStub(ServicesStubSettingssettings,ClientContextclientContext,GrpcStubCallableFactorycallableFactory)

Constructs an instance of GrpcServicesStub, 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 ServicesStubSettings
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

deleteServiceCallable()

publicUnaryCallable<DeleteServiceRequest,Operation>deleteServiceCallable()
Returns
Type Description
UnaryCallable<DeleteServiceRequest,Operation>
Overrides

deleteServiceOperationCallable()

publicOperationCallable<DeleteServiceRequest,Empty,OperationMetadataV1>deleteServiceOperationCallable()
Returns
Type Description
OperationCallable<DeleteServiceRequest,Empty,OperationMetadataV1>
Overrides

getOperationsStub()

publicGrpcOperationsStubgetOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

getServiceCallable()

publicUnaryCallable<GetServiceRequest,Service>getServiceCallable()
Returns
Type Description
UnaryCallable<GetServiceRequest,Service>
Overrides

isShutdown()

publicbooleanisShutdown()
Returns
Type Description
boolean

isTerminated()

publicbooleanisTerminated()
Returns
Type Description
boolean

listServicesCallable()

publicUnaryCallable<ListServicesRequest,ListServicesResponse>listServicesCallable()
Returns
Type Description
UnaryCallable<ListServicesRequest,ListServicesResponse>
Overrides

listServicesPagedCallable()

publicUnaryCallable<ListServicesRequest,ServicesClient.ListServicesPagedResponse>listServicesPagedCallable()
Returns
Type Description
UnaryCallable<ListServicesRequest,ListServicesPagedResponse>
Overrides

shutdown()

publicvoidshutdown()

shutdownNow()

publicvoidshutdownNow()

updateServiceCallable()

publicUnaryCallable<UpdateServiceRequest,Operation>updateServiceCallable()
Returns
Type Description
UnaryCallable<UpdateServiceRequest,Operation>
Overrides

updateServiceOperationCallable()

publicOperationCallable<UpdateServiceRequest,Service,OperationMetadataV1>updateServiceOperationCallable()
Returns
Type Description
OperationCallable<UpdateServiceRequest,Service,OperationMetadataV1>
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年10月30日 UTC.