Class HttpJsonArtifactRegistryStub
- java.lang.Object
-
- com.google.devtools.artifactregistry.v1beta2.stub.ArtifactRegistryStub
-
- com.google.devtools.artifactregistry.v1beta2.stub.HttpJsonArtifactRegistryStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub
REST 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 protectedHttpJsonArtifactRegistryStub(ArtifactRegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonArtifactRegistryStub, using the given settings.protectedHttpJsonArtifactRegistryStub(ArtifactRegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonArtifactRegistryStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static HttpJsonArtifactRegistryStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonArtifactRegistryStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonArtifactRegistryStubcreate(ArtifactRegistryStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateRepositoryRequest,com.google.longrunning.Operation>createRepositoryCallable()com.google.api.gax.rpc.OperationCallable<CreateRepositoryRequest,Repository,OperationMetadata>createRepositoryOperationCallable()com.google.api.gax.rpc.UnaryCallable<CreateTagRequest,Tag>createTagCallable()com.google.api.gax.rpc.UnaryCallable<DeletePackageRequest,com.google.longrunning.Operation>deletePackageCallable()com.google.api.gax.rpc.OperationCallable<DeletePackageRequest,com.google.protobuf.Empty,OperationMetadata>deletePackageOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteRepositoryRequest,com.google.longrunning.Operation>deleteRepositoryCallable()com.google.api.gax.rpc.OperationCallable<DeleteRepositoryRequest,com.google.protobuf.Empty,OperationMetadata>deleteRepositoryOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteTagRequest,com.google.protobuf.Empty>deleteTagCallable()com.google.api.gax.rpc.UnaryCallable<DeleteVersionRequest,com.google.longrunning.Operation>deleteVersionCallable()com.google.api.gax.rpc.OperationCallable<DeleteVersionRequest,com.google.protobuf.Empty,OperationMetadata>deleteVersionOperationCallable()com.google.api.gax.rpc.UnaryCallable<GetFileRequest,File>getFileCallable()com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStubgetHttpJsonOperationsStub()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>getIamPolicyCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>getLocationCallable()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()com.google.api.gax.rpc.UnaryCallable<GetPackageRequest,Package>getPackageCallable()com.google.api.gax.rpc.UnaryCallable<GetProjectSettingsRequest,ProjectSettings>getProjectSettingsCallable()com.google.api.gax.rpc.UnaryCallable<GetRepositoryRequest,Repository>getRepositoryCallable()com.google.api.gax.rpc.UnaryCallable<GetTagRequest,Tag>getTagCallable()com.google.api.gax.rpc.UnaryCallable<GetVersionRequest,Version>getVersionCallable()com.google.api.gax.rpc.UnaryCallable<ImportAptArtifactsRequest,com.google.longrunning.Operation>importAptArtifactsCallable()com.google.api.gax.rpc.OperationCallable<ImportAptArtifactsRequest,ImportAptArtifactsResponse,ImportAptArtifactsMetadata>importAptArtifactsOperationCallable()com.google.api.gax.rpc.UnaryCallable<ImportYumArtifactsRequest,com.google.longrunning.Operation>importYumArtifactsCallable()com.google.api.gax.rpc.OperationCallable<ImportYumArtifactsRequest,ImportYumArtifactsResponse,ImportYumArtifactsMetadata>importYumArtifactsOperationCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListFilesRequest,ListFilesResponse>listFilesCallable()com.google.api.gax.rpc.UnaryCallable<ListFilesRequest,ArtifactRegistryClient.ListFilesPagedResponse>listFilesPagedCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>listLocationsCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,ArtifactRegistryClient.ListLocationsPagedResponse>listLocationsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListPackagesRequest,ListPackagesResponse>listPackagesCallable()com.google.api.gax.rpc.UnaryCallable<ListPackagesRequest,ArtifactRegistryClient.ListPackagesPagedResponse>listPackagesPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListRepositoriesRequest,ListRepositoriesResponse>listRepositoriesCallable()com.google.api.gax.rpc.UnaryCallable<ListRepositoriesRequest,ArtifactRegistryClient.ListRepositoriesPagedResponse>listRepositoriesPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListTagsRequest,ListTagsResponse>listTagsCallable()com.google.api.gax.rpc.UnaryCallable<ListTagsRequest,ArtifactRegistryClient.ListTagsPagedResponse>listTagsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListVersionsRequest,ListVersionsResponse>listVersionsCallable()com.google.api.gax.rpc.UnaryCallable<ListVersionsRequest,ArtifactRegistryClient.ListVersionsPagedResponse>listVersionsPagedCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>setIamPolicyCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>testIamPermissionsCallable()com.google.api.gax.rpc.UnaryCallable<UpdateProjectSettingsRequest,ProjectSettings>updateProjectSettingsCallable()com.google.api.gax.rpc.UnaryCallable<UpdateRepositoryRequest,Repository>updateRepositoryCallable()com.google.api.gax.rpc.UnaryCallable<UpdateTagRequest,Tag>updateTagCallable()-
Methods inherited from class com.google.devtools.artifactregistry.v1beta2.stub.ArtifactRegistryStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonArtifactRegistryStub
protected HttpJsonArtifactRegistryStub(ArtifactRegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonArtifactRegistryStub, 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
-
HttpJsonArtifactRegistryStub
protected HttpJsonArtifactRegistryStub(ArtifactRegistryStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonArtifactRegistryStub, 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 HttpJsonArtifactRegistryStub create(ArtifactRegistryStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonArtifactRegistryStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonArtifactRegistryStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStubin classArtifactRegistryStub
-
importAptArtifactsCallable
public com.google.api.gax.rpc.UnaryCallable<ImportAptArtifactsRequest,com.google.longrunning.Operation> importAptArtifactsCallable()
- Overrides:
importAptArtifactsCallablein classArtifactRegistryStub
-
importAptArtifactsOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportAptArtifactsRequest,ImportAptArtifactsResponse,ImportAptArtifactsMetadata> importAptArtifactsOperationCallable()
- Overrides:
importAptArtifactsOperationCallablein classArtifactRegistryStub
-
importYumArtifactsCallable
public com.google.api.gax.rpc.UnaryCallable<ImportYumArtifactsRequest,com.google.longrunning.Operation> importYumArtifactsCallable()
- Overrides:
importYumArtifactsCallablein classArtifactRegistryStub
-
importYumArtifactsOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportYumArtifactsRequest,ImportYumArtifactsResponse,ImportYumArtifactsMetadata> importYumArtifactsOperationCallable()
- Overrides:
importYumArtifactsOperationCallablein classArtifactRegistryStub
-
listRepositoriesCallable
public com.google.api.gax.rpc.UnaryCallable<ListRepositoriesRequest,ListRepositoriesResponse> listRepositoriesCallable()
- Overrides:
listRepositoriesCallablein classArtifactRegistryStub
-
listRepositoriesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListRepositoriesRequest,ArtifactRegistryClient.ListRepositoriesPagedResponse> listRepositoriesPagedCallable()
- Overrides:
listRepositoriesPagedCallablein classArtifactRegistryStub
-
getRepositoryCallable
public com.google.api.gax.rpc.UnaryCallable<GetRepositoryRequest,Repository> getRepositoryCallable()
- Overrides:
getRepositoryCallablein classArtifactRegistryStub
-
createRepositoryCallable
public com.google.api.gax.rpc.UnaryCallable<CreateRepositoryRequest,com.google.longrunning.Operation> createRepositoryCallable()
- Overrides:
createRepositoryCallablein classArtifactRegistryStub
-
createRepositoryOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateRepositoryRequest,Repository,OperationMetadata> createRepositoryOperationCallable()
- Overrides:
createRepositoryOperationCallablein classArtifactRegistryStub
-
updateRepositoryCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateRepositoryRequest,Repository> updateRepositoryCallable()
- Overrides:
updateRepositoryCallablein classArtifactRegistryStub
-
deleteRepositoryCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteRepositoryRequest,com.google.longrunning.Operation> deleteRepositoryCallable()
- Overrides:
deleteRepositoryCallablein classArtifactRegistryStub
-
deleteRepositoryOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteRepositoryRequest,com.google.protobuf.Empty,OperationMetadata> deleteRepositoryOperationCallable()
- Overrides:
deleteRepositoryOperationCallablein classArtifactRegistryStub
-
listPackagesCallable
public com.google.api.gax.rpc.UnaryCallable<ListPackagesRequest,ListPackagesResponse> listPackagesCallable()
- Overrides:
listPackagesCallablein classArtifactRegistryStub
-
listPackagesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListPackagesRequest,ArtifactRegistryClient.ListPackagesPagedResponse> listPackagesPagedCallable()
- Overrides:
listPackagesPagedCallablein classArtifactRegistryStub
-
getPackageCallable
public com.google.api.gax.rpc.UnaryCallable<GetPackageRequest,Package> getPackageCallable()
- Overrides:
getPackageCallablein classArtifactRegistryStub
-
deletePackageCallable
public com.google.api.gax.rpc.UnaryCallable<DeletePackageRequest,com.google.longrunning.Operation> deletePackageCallable()
- Overrides:
deletePackageCallablein classArtifactRegistryStub
-
deletePackageOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeletePackageRequest,com.google.protobuf.Empty,OperationMetadata> deletePackageOperationCallable()
- Overrides:
deletePackageOperationCallablein classArtifactRegistryStub
-
listVersionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListVersionsRequest,ListVersionsResponse> listVersionsCallable()
- Overrides:
listVersionsCallablein classArtifactRegistryStub
-
listVersionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListVersionsRequest,ArtifactRegistryClient.ListVersionsPagedResponse> listVersionsPagedCallable()
- Overrides:
listVersionsPagedCallablein classArtifactRegistryStub
-
getVersionCallable
public com.google.api.gax.rpc.UnaryCallable<GetVersionRequest,Version> getVersionCallable()
- Overrides:
getVersionCallablein classArtifactRegistryStub
-
deleteVersionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteVersionRequest,com.google.longrunning.Operation> deleteVersionCallable()
- Overrides:
deleteVersionCallablein classArtifactRegistryStub
-
deleteVersionOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteVersionRequest,com.google.protobuf.Empty,OperationMetadata> deleteVersionOperationCallable()
- Overrides:
deleteVersionOperationCallablein classArtifactRegistryStub
-
listFilesCallable
public com.google.api.gax.rpc.UnaryCallable<ListFilesRequest,ListFilesResponse> listFilesCallable()
- Overrides:
listFilesCallablein classArtifactRegistryStub
-
listFilesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListFilesRequest,ArtifactRegistryClient.ListFilesPagedResponse> listFilesPagedCallable()
- Overrides:
listFilesPagedCallablein classArtifactRegistryStub
-
getFileCallable
public com.google.api.gax.rpc.UnaryCallable<GetFileRequest,File> getFileCallable()
- Overrides:
getFileCallablein classArtifactRegistryStub
-
listTagsCallable
public com.google.api.gax.rpc.UnaryCallable<ListTagsRequest,ListTagsResponse> listTagsCallable()
- Overrides:
listTagsCallablein classArtifactRegistryStub
-
listTagsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListTagsRequest,ArtifactRegistryClient.ListTagsPagedResponse> listTagsPagedCallable()
- Overrides:
listTagsPagedCallablein classArtifactRegistryStub
-
getTagCallable
public com.google.api.gax.rpc.UnaryCallable<GetTagRequest,Tag> getTagCallable()
- Overrides:
getTagCallablein classArtifactRegistryStub
-
createTagCallable
public com.google.api.gax.rpc.UnaryCallable<CreateTagRequest,Tag> createTagCallable()
- Overrides:
createTagCallablein classArtifactRegistryStub
-
updateTagCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateTagRequest,Tag> updateTagCallable()
- Overrides:
updateTagCallablein classArtifactRegistryStub
-
deleteTagCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteTagRequest,com.google.protobuf.Empty> deleteTagCallable()
- Overrides:
deleteTagCallablein classArtifactRegistryStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classArtifactRegistryStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classArtifactRegistryStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classArtifactRegistryStub
-
getProjectSettingsCallable
public com.google.api.gax.rpc.UnaryCallable<GetProjectSettingsRequest,ProjectSettings> getProjectSettingsCallable()
- Overrides:
getProjectSettingsCallablein classArtifactRegistryStub
-
updateProjectSettingsCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateProjectSettingsRequest,ProjectSettings> updateProjectSettingsCallable()
- Overrides:
updateProjectSettingsCallablein classArtifactRegistryStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classArtifactRegistryStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,ArtifactRegistryClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classArtifactRegistryStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallablein classArtifactRegistryStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-