Class HttpJsonServicesStub (2.44.0)

publicclass HttpJsonServicesStubextendsServicesStub

REST stub implementation for the Services service API.

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

Inheritance

java.lang.Object > ServicesStub > HttpJsonServicesStub

Static Methods

create(ClientContext clientContext)

publicstaticfinalHttpJsonServicesStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonServicesStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

publicstaticfinalHttpJsonServicesStubcreate(ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonServicesStub
Exceptions
Type Description
IOException

create(ServicesStubSettings settings)

publicstaticfinalHttpJsonServicesStubcreate(ServicesStubSettingssettings)
Parameter
Name Description
settings ServicesStubSettings
Returns
Type Description
HttpJsonServicesStub
Exceptions
Type Description
IOException

getMethodDescriptors()

publicstaticList<ApiMethodDescriptor>getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonServicesStub(ServicesStubSettings settings, ClientContext clientContext)

protectedHttpJsonServicesStub(ServicesStubSettingssettings,ClientContextclientContext)

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

HttpJsonServicesStub(ServicesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protectedHttpJsonServicesStub(ServicesStubSettingssettings,ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)

Constructs an instance of HttpJsonServicesStub, 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 HttpJsonStubCallableFactory

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

getHttpJsonOperationsStub()

publicHttpJsonOperationsStubgetHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
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.