Class GrpcArtifactRegistryStub
- java.lang.Object
-
- com.google.devtools.artifactregistry.v1.stub.ArtifactRegistryStub
-
- com.google.devtools.artifactregistry.v1.stub.GrpcArtifactRegistryStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcArtifactRegistryStub(ArtifactRegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcArtifactRegistryStub, using the given settings.protected
GrpcArtifactRegistryStub(ArtifactRegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcArtifactRegistryStub, using the given settings.
-
Method Summary
-
Methods inherited from class com.google.devtools.artifactregistry.v1.stub.ArtifactRegistryStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcArtifactRegistryStub
protected GrpcArtifactRegistryStub(ArtifactRegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
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.- Throws:
IOException
-
GrpcArtifactRegistryStub
protected GrpcArtifactRegistryStub(ArtifactRegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
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.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcArtifactRegistryStub create(ArtifactRegistryStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcArtifactRegistryStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcArtifactRegistryStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStub
in classArtifactRegistryStub
-
listDockerImagesCallable
public com.google.api.gax.rpc.UnaryCallable<ListDockerImagesRequest,ListDockerImagesResponse> listDockerImagesCallable()
- Overrides:
listDockerImagesCallable
in classArtifactRegistryStub
-
listDockerImagesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListDockerImagesRequest,ArtifactRegistryClient.ListDockerImagesPagedResponse> listDockerImagesPagedCallable()
- Overrides:
listDockerImagesPagedCallable
in classArtifactRegistryStub
-
getDockerImageCallable
public com.google.api.gax.rpc.UnaryCallable<GetDockerImageRequest,DockerImage> getDockerImageCallable()
- Overrides:
getDockerImageCallable
in classArtifactRegistryStub
-
listMavenArtifactsCallable
public com.google.api.gax.rpc.UnaryCallable<ListMavenArtifactsRequest,ListMavenArtifactsResponse> listMavenArtifactsCallable()
- Overrides:
listMavenArtifactsCallable
in classArtifactRegistryStub
-
listMavenArtifactsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListMavenArtifactsRequest,ArtifactRegistryClient.ListMavenArtifactsPagedResponse> listMavenArtifactsPagedCallable()
- Overrides:
listMavenArtifactsPagedCallable
in classArtifactRegistryStub
-
getMavenArtifactCallable
public com.google.api.gax.rpc.UnaryCallable<GetMavenArtifactRequest,MavenArtifact> getMavenArtifactCallable()
- Overrides:
getMavenArtifactCallable
in classArtifactRegistryStub
-
listNpmPackagesCallable
public com.google.api.gax.rpc.UnaryCallable<ListNpmPackagesRequest,ListNpmPackagesResponse> listNpmPackagesCallable()
- Overrides:
listNpmPackagesCallable
in classArtifactRegistryStub
-
listNpmPackagesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListNpmPackagesRequest,ArtifactRegistryClient.ListNpmPackagesPagedResponse> listNpmPackagesPagedCallable()
- Overrides:
listNpmPackagesPagedCallable
in classArtifactRegistryStub
-
getNpmPackageCallable
public com.google.api.gax.rpc.UnaryCallable<GetNpmPackageRequest,NpmPackage> getNpmPackageCallable()
- Overrides:
getNpmPackageCallable
in classArtifactRegistryStub
-
listPythonPackagesCallable
public com.google.api.gax.rpc.UnaryCallable<ListPythonPackagesRequest,ListPythonPackagesResponse> listPythonPackagesCallable()
- Overrides:
listPythonPackagesCallable
in classArtifactRegistryStub
-
listPythonPackagesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListPythonPackagesRequest,ArtifactRegistryClient.ListPythonPackagesPagedResponse> listPythonPackagesPagedCallable()
- Overrides:
listPythonPackagesPagedCallable
in classArtifactRegistryStub
-
getPythonPackageCallable
public com.google.api.gax.rpc.UnaryCallable<GetPythonPackageRequest,PythonPackage> getPythonPackageCallable()
- Overrides:
getPythonPackageCallable
in classArtifactRegistryStub
-
importAptArtifactsCallable
public com.google.api.gax.rpc.UnaryCallable<ImportAptArtifactsRequest,com.google.longrunning.Operation> importAptArtifactsCallable()
- Overrides:
importAptArtifactsCallable
in classArtifactRegistryStub
-
importAptArtifactsOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportAptArtifactsRequest,ImportAptArtifactsResponse,ImportAptArtifactsMetadata> importAptArtifactsOperationCallable()
- Overrides:
importAptArtifactsOperationCallable
in classArtifactRegistryStub
-
importYumArtifactsCallable
public com.google.api.gax.rpc.UnaryCallable<ImportYumArtifactsRequest,com.google.longrunning.Operation> importYumArtifactsCallable()
- Overrides:
importYumArtifactsCallable
in classArtifactRegistryStub
-
importYumArtifactsOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportYumArtifactsRequest,ImportYumArtifactsResponse,ImportYumArtifactsMetadata> importYumArtifactsOperationCallable()
- Overrides:
importYumArtifactsOperationCallable
in classArtifactRegistryStub
-
listRepositoriesCallable
public com.google.api.gax.rpc.UnaryCallable<ListRepositoriesRequest,ListRepositoriesResponse> listRepositoriesCallable()
- Overrides:
listRepositoriesCallable
in classArtifactRegistryStub
-
listRepositoriesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListRepositoriesRequest,ArtifactRegistryClient.ListRepositoriesPagedResponse> listRepositoriesPagedCallable()
- Overrides:
listRepositoriesPagedCallable
in classArtifactRegistryStub
-
getRepositoryCallable
public com.google.api.gax.rpc.UnaryCallable<GetRepositoryRequest,Repository> getRepositoryCallable()
- Overrides:
getRepositoryCallable
in classArtifactRegistryStub
-
createRepositoryCallable
public com.google.api.gax.rpc.UnaryCallable<CreateRepositoryRequest,com.google.longrunning.Operation> createRepositoryCallable()
- Overrides:
createRepositoryCallable
in classArtifactRegistryStub
-
createRepositoryOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateRepositoryRequest,Repository,OperationMetadata> createRepositoryOperationCallable()
- Overrides:
createRepositoryOperationCallable
in classArtifactRegistryStub
-
updateRepositoryCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateRepositoryRequest,Repository> updateRepositoryCallable()
- Overrides:
updateRepositoryCallable
in classArtifactRegistryStub
-
deleteRepositoryCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteRepositoryRequest,com.google.longrunning.Operation> deleteRepositoryCallable()
- Overrides:
deleteRepositoryCallable
in classArtifactRegistryStub
-
deleteRepositoryOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteRepositoryRequest,com.google.protobuf.Empty,OperationMetadata> deleteRepositoryOperationCallable()
- Overrides:
deleteRepositoryOperationCallable
in classArtifactRegistryStub
-
listPackagesCallable
public com.google.api.gax.rpc.UnaryCallable<ListPackagesRequest,ListPackagesResponse> listPackagesCallable()
- Overrides:
listPackagesCallable
in classArtifactRegistryStub
-
listPackagesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListPackagesRequest,ArtifactRegistryClient.ListPackagesPagedResponse> listPackagesPagedCallable()
- Overrides:
listPackagesPagedCallable
in classArtifactRegistryStub
-
getPackageCallable
public com.google.api.gax.rpc.UnaryCallable<GetPackageRequest,Package> getPackageCallable()
- Overrides:
getPackageCallable
in classArtifactRegistryStub
-
deletePackageCallable
public com.google.api.gax.rpc.UnaryCallable<DeletePackageRequest,com.google.longrunning.Operation> deletePackageCallable()
- Overrides:
deletePackageCallable
in classArtifactRegistryStub
-
deletePackageOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeletePackageRequest,com.google.protobuf.Empty,OperationMetadata> deletePackageOperationCallable()
- Overrides:
deletePackageOperationCallable
in classArtifactRegistryStub
-
listVersionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListVersionsRequest,ListVersionsResponse> listVersionsCallable()
- Overrides:
listVersionsCallable
in classArtifactRegistryStub
-
listVersionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListVersionsRequest,ArtifactRegistryClient.ListVersionsPagedResponse> listVersionsPagedCallable()
- Overrides:
listVersionsPagedCallable
in classArtifactRegistryStub
-
getVersionCallable
public com.google.api.gax.rpc.UnaryCallable<GetVersionRequest,Version> getVersionCallable()
- Overrides:
getVersionCallable
in classArtifactRegistryStub
-
deleteVersionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteVersionRequest,com.google.longrunning.Operation> deleteVersionCallable()
- Overrides:
deleteVersionCallable
in classArtifactRegistryStub
-
deleteVersionOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteVersionRequest,com.google.protobuf.Empty,OperationMetadata> deleteVersionOperationCallable()
- Overrides:
deleteVersionOperationCallable
in classArtifactRegistryStub
-
listFilesCallable
public com.google.api.gax.rpc.UnaryCallable<ListFilesRequest,ListFilesResponse> listFilesCallable()
- Overrides:
listFilesCallable
in classArtifactRegistryStub
-
listFilesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListFilesRequest,ArtifactRegistryClient.ListFilesPagedResponse> listFilesPagedCallable()
- Overrides:
listFilesPagedCallable
in classArtifactRegistryStub
-
getFileCallable
public com.google.api.gax.rpc.UnaryCallable<GetFileRequest,File> getFileCallable()
- Overrides:
getFileCallable
in classArtifactRegistryStub
-
listTagsCallable
public com.google.api.gax.rpc.UnaryCallable<ListTagsRequest,ListTagsResponse> listTagsCallable()
- Overrides:
listTagsCallable
in classArtifactRegistryStub
-
listTagsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListTagsRequest,ArtifactRegistryClient.ListTagsPagedResponse> listTagsPagedCallable()
- Overrides:
listTagsPagedCallable
in classArtifactRegistryStub
-
getTagCallable
public com.google.api.gax.rpc.UnaryCallable<GetTagRequest,Tag> getTagCallable()
- Overrides:
getTagCallable
in classArtifactRegistryStub
-
createTagCallable
public com.google.api.gax.rpc.UnaryCallable<CreateTagRequest,Tag> createTagCallable()
- Overrides:
createTagCallable
in classArtifactRegistryStub
-
updateTagCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateTagRequest,Tag> updateTagCallable()
- Overrides:
updateTagCallable
in classArtifactRegistryStub
-
deleteTagCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteTagRequest,com.google.protobuf.Empty> deleteTagCallable()
- Overrides:
deleteTagCallable
in classArtifactRegistryStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classArtifactRegistryStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classArtifactRegistryStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classArtifactRegistryStub
-
getProjectSettingsCallable
public com.google.api.gax.rpc.UnaryCallable<GetProjectSettingsRequest,ProjectSettings> getProjectSettingsCallable()
- Overrides:
getProjectSettingsCallable
in classArtifactRegistryStub
-
updateProjectSettingsCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateProjectSettingsRequest,ProjectSettings> updateProjectSettingsCallable()
- Overrides:
updateProjectSettingsCallable
in classArtifactRegistryStub
-
getVPCSCConfigCallable
public com.google.api.gax.rpc.UnaryCallable<GetVPCSCConfigRequest,VPCSCConfig> getVPCSCConfigCallable()
- Overrides:
getVPCSCConfigCallable
in classArtifactRegistryStub
-
updateVPCSCConfigCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateVPCSCConfigRequest,VPCSCConfig> updateVPCSCConfigCallable()
- Overrides:
updateVPCSCConfigCallable
in classArtifactRegistryStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classArtifactRegistryStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,ArtifactRegistryClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classArtifactRegistryStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classArtifactRegistryStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classArtifactRegistryStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-