Class GrpcImageVersionsStub (1.78.0)

publicclass GrpcImageVersionsStubextendsImageVersionsStub

gRPC stub implementation for the ImageVersions service API.

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

Inheritance

java.lang.Object > ImageVersionsStub > GrpcImageVersionsStub

Static Methods

create(ClientContext clientContext)

publicstaticfinalGrpcImageVersionsStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcImageVersionsStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ImageVersionsStubSettings settings)

publicstaticfinalGrpcImageVersionsStubcreate(ImageVersionsStubSettingssettings)
Parameter
Name Description
settings ImageVersionsStubSettings
Returns
Type Description
GrpcImageVersionsStub
Exceptions
Type Description
IOException

Constructors

GrpcImageVersionsStub(ImageVersionsStubSettings settings, ClientContext clientContext)

protectedGrpcImageVersionsStub(ImageVersionsStubSettingssettings,ClientContextclientContext)

Constructs an instance of GrpcImageVersionsStub, 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 ImageVersionsStubSettings
clientContext ClientContext

GrpcImageVersionsStub(ImageVersionsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protectedGrpcImageVersionsStub(ImageVersionsStubSettingssettings,ClientContextclientContext,GrpcStubCallableFactorycallableFactory)

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

getOperationsStub()

publicGrpcOperationsStubgetOperationsStub()
Returns
Type Description
GrpcOperationsStub

isShutdown()

publicbooleanisShutdown()
Returns
Type Description
boolean

isTerminated()

publicbooleanisTerminated()
Returns
Type Description
boolean

listImageVersionsCallable()

publicUnaryCallable<ListImageVersionsRequest,ListImageVersionsResponse>listImageVersionsCallable()
Returns
Type Description
UnaryCallable<ListImageVersionsRequest,ListImageVersionsResponse>
Overrides

listImageVersionsPagedCallable()

publicUnaryCallable<ListImageVersionsRequest,ImageVersionsClient.ListImageVersionsPagedResponse>listImageVersionsPagedCallable()
Returns
Type Description
UnaryCallable<ListImageVersionsRequest,ListImageVersionsPagedResponse>
Overrides

shutdown()

publicvoidshutdown()

shutdownNow()

publicvoidshutdownNow()

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.