Class GrpcArtifactRegistryStub (1.1.1)

public class GrpcArtifactRegistryStub extends ArtifactRegistryStub

gRPC stub implementation for the ArtifactRegistry service API.

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

Inheritance

java.lang.Object > ArtifactRegistryStub > GrpcArtifactRegistryStub

Static Methods

create(ClientContext clientContext)

public static final GrpcArtifactRegistryStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcArtifactRegistryStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcArtifactRegistryStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcArtifactRegistryStub
Exceptions
TypeDescription
IOException

create(ArtifactRegistryStubSettings settings)

public static final GrpcArtifactRegistryStub create(ArtifactRegistryStubSettings settings)
Parameter
NameDescription
settingsArtifactRegistryStubSettings
Returns
TypeDescription
GrpcArtifactRegistryStub
Exceptions
TypeDescription
IOException

Constructors

GrpcArtifactRegistryStub(ArtifactRegistryStubSettings settings, ClientContext clientContext)

protected GrpcArtifactRegistryStub(ArtifactRegistryStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcArtifactRegistryStub, 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
NameDescription
settingsArtifactRegistryStubSettings
clientContextClientContext

GrpcArtifactRegistryStub(ArtifactRegistryStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcArtifactRegistryStub(ArtifactRegistryStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcArtifactRegistryStub, 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
NameDescription
settingsArtifactRegistryStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

getRepositoryCallable()

public UnaryCallable<GetRepositoryRequest,Repository> getRepositoryCallable()
Returns
TypeDescription
UnaryCallable<GetRepositoryRequest,Repository>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listDockerImagesCallable()

public UnaryCallable<ListDockerImagesRequest,ListDockerImagesResponse> listDockerImagesCallable()
Returns
TypeDescription
UnaryCallable<ListDockerImagesRequest,ListDockerImagesResponse>
Overrides

listDockerImagesPagedCallable()

public UnaryCallable<ListDockerImagesRequest,ArtifactRegistryClient.ListDockerImagesPagedResponse> listDockerImagesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListDockerImagesRequest,ListDockerImagesPagedResponse>
Overrides

listRepositoriesCallable()

public UnaryCallable<ListRepositoriesRequest,ListRepositoriesResponse> listRepositoriesCallable()
Returns
TypeDescription
UnaryCallable<ListRepositoriesRequest,ListRepositoriesResponse>
Overrides

listRepositoriesPagedCallable()

public UnaryCallable<ListRepositoriesRequest,ArtifactRegistryClient.ListRepositoriesPagedResponse> listRepositoriesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListRepositoriesRequest,ListRepositoriesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()