Class HttpJsonArtifactRegistryStub (1.8.0)

See more code actions.
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.

java.lang.Object > ArtifactRegistryStub > HttpJsonArtifactRegistryStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonArtifactRegistryStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns Exceptions
TypeDescription
IOException

create(ArtifactRegistryStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonArtifactRegistryStub(ArtifactRegistryStubSettings settings, ClientContext clientContext)

protected HttpJsonArtifactRegistryStub(ArtifactRegistryStubSettings settings, ClientContext clientContext)

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.

Parameters
NameDescription
settingsArtifactRegistryStubSettings
clientContextClientContext

HttpJsonArtifactRegistryStub(ArtifactRegistryStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonArtifactRegistryStub(ArtifactRegistryStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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.

Parameters
NameDescription
settingsArtifactRegistryStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

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

createRepositoryCallable()

public UnaryCallable<CreateRepositoryRequest,Operation> createRepositoryCallable()
Returns Overrides

createRepositoryOperationCallable()

public OperationCallable<CreateRepositoryRequest,Repository,OperationMetadata> createRepositoryOperationCallable()
Returns Overrides

createTagCallable()

public UnaryCallable<CreateTagRequest,Tag> createTagCallable()
Returns Overrides

deletePackageCallable()

public UnaryCallable<DeletePackageRequest,Operation> deletePackageCallable()
Returns Overrides

deletePackageOperationCallable()

public OperationCallable<DeletePackageRequest,Empty,OperationMetadata> deletePackageOperationCallable()
Returns Overrides

deleteRepositoryCallable()

public UnaryCallable<DeleteRepositoryRequest,Operation> deleteRepositoryCallable()
Returns Overrides

deleteRepositoryOperationCallable()

public OperationCallable<DeleteRepositoryRequest,Empty,OperationMetadata> deleteRepositoryOperationCallable()
Returns Overrides

deleteTagCallable()

public UnaryCallable<DeleteTagRequest,Empty> deleteTagCallable()
Returns Overrides

deleteVersionCallable()

public UnaryCallable<DeleteVersionRequest,Operation> deleteVersionCallable()
Returns Overrides

deleteVersionOperationCallable()

public OperationCallable<DeleteVersionRequest,Empty,OperationMetadata> deleteVersionOperationCallable()
Returns Overrides

getFileCallable()

public UnaryCallable<GetFileRequest,File> getFileCallable()
Returns Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getPackageCallable()

public UnaryCallable<GetPackageRequest,Package> getPackageCallable()
Returns Overrides

getProjectSettingsCallable()

public UnaryCallable<GetProjectSettingsRequest,ProjectSettings> getProjectSettingsCallable()
Returns Overrides

getRepositoryCallable()

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

getTagCallable()

public UnaryCallable<GetTagRequest,Tag> getTagCallable()
Returns Overrides

getVersionCallable()

public UnaryCallable<GetVersionRequest,Version> getVersionCallable()
Returns Overrides

importAptArtifactsCallable()

public UnaryCallable<ImportAptArtifactsRequest,Operation> importAptArtifactsCallable()
Returns Overrides

importAptArtifactsOperationCallable()

public OperationCallable<ImportAptArtifactsRequest,ImportAptArtifactsResponse,ImportAptArtifactsMetadata> importAptArtifactsOperationCallable()
Returns Overrides

importYumArtifactsCallable()

public UnaryCallable<ImportYumArtifactsRequest,Operation> importYumArtifactsCallable()
Returns Overrides

importYumArtifactsOperationCallable()

public OperationCallable<ImportYumArtifactsRequest,ImportYumArtifactsResponse,ImportYumArtifactsMetadata> importYumArtifactsOperationCallable()
Returns Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listFilesCallable()

public UnaryCallable<ListFilesRequest,ListFilesResponse> listFilesCallable()
Returns Overrides

listFilesPagedCallable()

public UnaryCallable<ListFilesRequest,ArtifactRegistryClient.ListFilesPagedResponse> listFilesPagedCallable()
Returns Overrides

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,ArtifactRegistryClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listPackagesCallable()

public UnaryCallable<ListPackagesRequest,ListPackagesResponse> listPackagesCallable()
Returns Overrides

listPackagesPagedCallable()

public UnaryCallable<ListPackagesRequest,ArtifactRegistryClient.ListPackagesPagedResponse> listPackagesPagedCallable()
Returns Overrides

listRepositoriesCallable()

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

listRepositoriesPagedCallable()

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

listTagsCallable()

public UnaryCallable<ListTagsRequest,ListTagsResponse> listTagsCallable()
Returns Overrides

listTagsPagedCallable()

public UnaryCallable<ListTagsRequest,ArtifactRegistryClient.ListTagsPagedResponse> listTagsPagedCallable()
Returns Overrides

listVersionsCallable()

public UnaryCallable<ListVersionsRequest,ListVersionsResponse> listVersionsCallable()
Returns Overrides

listVersionsPagedCallable()

public UnaryCallable<ListVersionsRequest,ArtifactRegistryClient.ListVersionsPagedResponse> listVersionsPagedCallable()
Returns Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateProjectSettingsCallable()

public UnaryCallable<UpdateProjectSettingsRequest,ProjectSettings> updateProjectSettingsCallable()
Returns Overrides

updateRepositoryCallable()

public UnaryCallable<UpdateRepositoryRequest,Repository> updateRepositoryCallable()
Returns Overrides

updateTagCallable()

public UnaryCallable<UpdateTagRequest,Tag> updateTagCallable()
Returns Overrides