Class HttpJsonVersionsStub (2.35.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
HttpJsonVersionsStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(VersionsStubSettings settings)

publicstaticfinalHttpJsonVersionsStubcreate(VersionsStubSettingssettings)
Parameter
Name Description
settings VersionsStubSettings
Returns
Type Description
HttpJsonVersionsStub
Exceptions
Type Description
IOException

getMethodDescriptors()

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

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

createVersionCallable()

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

createVersionOperationCallable()

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

deleteVersionCallable()

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

deleteVersionOperationCallable()

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

getHttpJsonOperationsStub()

publicHttpJsonOperationsStubgetHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getVersionCallable()

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

isShutdown()

publicbooleanisShutdown()
Returns
Type Description
boolean

isTerminated()

publicbooleanisTerminated()
Returns
Type Description
boolean

listVersionsCallable()

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

listVersionsPagedCallable()

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

shutdown()

publicvoidshutdown()

shutdownNow()

publicvoidshutdownNow()

updateVersionCallable()

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

updateVersionOperationCallable()

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