Class GrpcVersionsStub (2.5.0)

publicclass GrpcVersionsStubextendsVersionsStub

gRPC stub implementation for the Versions service API.

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

Inheritance

java.lang.Object > VersionsStub > GrpcVersionsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

publicstaticfinalGrpcVersionsStubcreate(ClientContextclientContext,GrpcStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
Exceptions
Type Description

create(VersionsStubSettings settings)

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

Constructors

GrpcVersionsStub(VersionsStubSettings settings, ClientContext clientContext)

protectedGrpcVersionsStub(VersionsStubSettingssettings,ClientContextclientContext)

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

GrpcVersionsStub(VersionsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protectedGrpcVersionsStub(VersionsStubSettingssettings,ClientContextclientContext,GrpcStubCallableFactorycallableFactory)

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

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

getOperationsStub()

publicGrpcOperationsStubgetOperationsStub()
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.