Class HttpJsonVersionsStub (2.12.0)

publicclass HttpJsonVersionsStubextendsVersionsStub

REST stub implementation for the Versions service API.

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

Inheritance

java.lang.Object > VersionsStub > HttpJsonVersionsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

publicstaticfinalHttpJsonVersionsStubcreate(ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
Exceptions
Type Description

create(VersionsStubSettings settings)

publicstaticfinalHttpJsonVersionsStubcreate(VersionsStubSettingssettings)
Parameter
Name Description
Returns
Type Description
Exceptions
Type Description

getMethodDescriptors()

publicstaticList<ApiMethodDescriptor>getMethodDescriptors()
Returns
Type Description

Constructors

HttpJsonVersionsStub(VersionsStubSettings settings, ClientContext clientContext)

protectedHttpJsonVersionsStub(VersionsStubSettingssettings,ClientContextclientContext)

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

HttpJsonVersionsStub(VersionsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protectedHttpJsonVersionsStub(VersionsStubSettingssettings,ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)

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

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

createVersionCallable()

publicUnaryCallable<CreateVersionRequest,Operation>createVersionCallable()
Returns
Type Description
Overrides

createVersionOperationCallable()

publicOperationCallable<CreateVersionRequest,Version,CreateVersionMetadataV1>createVersionOperationCallable()
Returns
Type Description
Overrides

deleteVersionCallable()

publicUnaryCallable<DeleteVersionRequest,Operation>deleteVersionCallable()
Returns
Type Description
Overrides

deleteVersionOperationCallable()

publicOperationCallable<DeleteVersionRequest,Empty,OperationMetadataV1>deleteVersionOperationCallable()
Returns
Type Description
Overrides

getHttpJsonOperationsStub()

publicHttpJsonOperationsStubgetHttpJsonOperationsStub()
Returns
Type Description
Overrides

getVersionCallable()

publicUnaryCallable<GetVersionRequest,Version>getVersionCallable()
Returns
Type Description
Overrides

isShutdown()

publicbooleanisShutdown()
Returns
Type Description

isTerminated()

publicbooleanisTerminated()
Returns
Type Description

listVersionsCallable()

publicUnaryCallable<ListVersionsRequest,ListVersionsResponse>listVersionsCallable()
Returns
Type Description
Overrides

listVersionsPagedCallable()

publicUnaryCallable<ListVersionsRequest,VersionsClient.ListVersionsPagedResponse>listVersionsPagedCallable()
Returns
Type Description
Overrides

shutdown()

publicvoidshutdown()

shutdownNow()

publicvoidshutdownNow()

updateVersionCallable()

publicUnaryCallable<UpdateVersionRequest,Operation>updateVersionCallable()
Returns
Type Description
Overrides

updateVersionOperationCallable()

publicOperationCallable<UpdateVersionRequest,Version,OperationMetadataV1>updateVersionOperationCallable()
Returns
Type Description
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.