Class GrpcRegistryStub (0.58.0)

public class GrpcRegistryStub extends RegistryStub

gRPC stub implementation for the Registry service API.

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

Inheritance

java.lang.Object > RegistryStub > GrpcRegistryStub

Static Methods

create(ClientContext clientContext)

public static final GrpcRegistryStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcRegistryStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcRegistryStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcRegistryStub
Exceptions
Type Description
IOException

create(RegistryStubSettings settings)

public static final GrpcRegistryStub create(RegistryStubSettings settings)
Parameter
Name Description
settings RegistryStubSettings
Returns
Type Description
GrpcRegistryStub
Exceptions
Type Description
IOException

Constructors

GrpcRegistryStub(RegistryStubSettings settings, ClientContext clientContext)

protected GrpcRegistryStub(RegistryStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcRegistryStub, 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 RegistryStubSettings
clientContext ClientContext

GrpcRegistryStub(RegistryStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcRegistryStub(RegistryStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcRegistryStub, 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 RegistryStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createApiCallable()

public UnaryCallable<CreateApiRequest,Api> createApiCallable()
Returns
Type Description
UnaryCallable<CreateApiRequest,Api>
Overrides

createApiDeploymentCallable()

public UnaryCallable<CreateApiDeploymentRequest,ApiDeployment> createApiDeploymentCallable()
Overrides

createApiSpecCallable()

public UnaryCallable<CreateApiSpecRequest,ApiSpec> createApiSpecCallable()
Returns
Type Description
UnaryCallable<CreateApiSpecRequest,ApiSpec>
Overrides

createApiVersionCallable()

public UnaryCallable<CreateApiVersionRequest,ApiVersion> createApiVersionCallable()
Overrides

createArtifactCallable()

public UnaryCallable<CreateArtifactRequest,Artifact> createArtifactCallable()
Returns
Type Description
UnaryCallable<CreateArtifactRequest,Artifact>
Overrides

deleteApiCallable()

public UnaryCallable<DeleteApiRequest,Empty> deleteApiCallable()
Returns
Type Description
UnaryCallable<DeleteApiRequest,Empty>
Overrides

deleteApiDeploymentCallable()

public UnaryCallable<DeleteApiDeploymentRequest,Empty> deleteApiDeploymentCallable()
Returns
Type Description
UnaryCallable<DeleteApiDeploymentRequest,Empty>
Overrides

deleteApiDeploymentRevisionCallable()

public UnaryCallable<DeleteApiDeploymentRevisionRequest,ApiDeployment> deleteApiDeploymentRevisionCallable()
Overrides

deleteApiSpecCallable()

public UnaryCallable<DeleteApiSpecRequest,Empty> deleteApiSpecCallable()
Returns
Type Description
UnaryCallable<DeleteApiSpecRequest,Empty>
Overrides

deleteApiSpecRevisionCallable()

public UnaryCallable<DeleteApiSpecRevisionRequest,ApiSpec> deleteApiSpecRevisionCallable()
Overrides

deleteApiVersionCallable()

public UnaryCallable<DeleteApiVersionRequest,Empty> deleteApiVersionCallable()
Returns
Type Description
UnaryCallable<DeleteApiVersionRequest,Empty>
Overrides

deleteArtifactCallable()

public UnaryCallable<DeleteArtifactRequest,Empty> deleteArtifactCallable()
Returns
Type Description
UnaryCallable<DeleteArtifactRequest,Empty>
Overrides

getApiCallable()

public UnaryCallable<GetApiRequest,Api> getApiCallable()
Returns
Type Description
UnaryCallable<GetApiRequest,Api>
Overrides

getApiDeploymentCallable()

public UnaryCallable<GetApiDeploymentRequest,ApiDeployment> getApiDeploymentCallable()
Overrides

getApiSpecCallable()

public UnaryCallable<GetApiSpecRequest,ApiSpec> getApiSpecCallable()
Returns
Type Description
UnaryCallable<GetApiSpecRequest,ApiSpec>
Overrides

getApiSpecContentsCallable()

public UnaryCallable<GetApiSpecContentsRequest,HttpBody> getApiSpecContentsCallable()
Returns
Type Description
UnaryCallable<GetApiSpecContentsRequest,com.google.api.HttpBody>
Overrides

getApiVersionCallable()

public UnaryCallable<GetApiVersionRequest,ApiVersion> getApiVersionCallable()
Returns
Type Description
UnaryCallable<GetApiVersionRequest,ApiVersion>
Overrides

getArtifactCallable()

public UnaryCallable<GetArtifactRequest,Artifact> getArtifactCallable()
Returns
Type Description
UnaryCallable<GetArtifactRequest,Artifact>
Overrides

getArtifactContentsCallable()

public UnaryCallable<GetArtifactContentsRequest,HttpBody> getArtifactContentsCallable()
Returns
Type Description
UnaryCallable<GetArtifactContentsRequest,com.google.api.HttpBody>
Overrides

getIamPolicyCallable()

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

getLocationCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listApiDeploymentRevisionsCallable()

public UnaryCallable<ListApiDeploymentRevisionsRequest,ListApiDeploymentRevisionsResponse> listApiDeploymentRevisionsCallable()
Overrides

listApiDeploymentRevisionsPagedCallable()

public UnaryCallable<ListApiDeploymentRevisionsRequest,RegistryClient.ListApiDeploymentRevisionsPagedResponse> listApiDeploymentRevisionsPagedCallable()
Overrides

listApiDeploymentsCallable()

public UnaryCallable<ListApiDeploymentsRequest,ListApiDeploymentsResponse> listApiDeploymentsCallable()
Overrides

listApiDeploymentsPagedCallable()

public UnaryCallable<ListApiDeploymentsRequest,RegistryClient.ListApiDeploymentsPagedResponse> listApiDeploymentsPagedCallable()
Overrides

listApiSpecRevisionsCallable()

public UnaryCallable<ListApiSpecRevisionsRequest,ListApiSpecRevisionsResponse> listApiSpecRevisionsCallable()
Overrides

listApiSpecRevisionsPagedCallable()

public UnaryCallable<ListApiSpecRevisionsRequest,RegistryClient.ListApiSpecRevisionsPagedResponse> listApiSpecRevisionsPagedCallable()
Overrides

listApiSpecsCallable()

public UnaryCallable<ListApiSpecsRequest,ListApiSpecsResponse> listApiSpecsCallable()
Overrides

listApiSpecsPagedCallable()

public UnaryCallable<ListApiSpecsRequest,RegistryClient.ListApiSpecsPagedResponse> listApiSpecsPagedCallable()
Overrides

listApiVersionsCallable()

public UnaryCallable<ListApiVersionsRequest,ListApiVersionsResponse> listApiVersionsCallable()
Overrides

listApiVersionsPagedCallable()

public UnaryCallable<ListApiVersionsRequest,RegistryClient.ListApiVersionsPagedResponse> listApiVersionsPagedCallable()
Overrides

listApisCallable()

public UnaryCallable<ListApisRequest,ListApisResponse> listApisCallable()
Returns
Type Description
UnaryCallable<ListApisRequest,ListApisResponse>
Overrides

listApisPagedCallable()

public UnaryCallable<ListApisRequest,RegistryClient.ListApisPagedResponse> listApisPagedCallable()
Overrides

listArtifactsCallable()

public UnaryCallable<ListArtifactsRequest,ListArtifactsResponse> listArtifactsCallable()
Overrides

listArtifactsPagedCallable()

public UnaryCallable<ListArtifactsRequest,RegistryClient.ListArtifactsPagedResponse> listArtifactsPagedCallable()
Overrides

listLocationsCallable()

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

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,RegistryClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

replaceArtifactCallable()

public UnaryCallable<ReplaceArtifactRequest,Artifact> replaceArtifactCallable()
Returns
Type Description
UnaryCallable<ReplaceArtifactRequest,Artifact>
Overrides

rollbackApiDeploymentCallable()

public UnaryCallable<RollbackApiDeploymentRequest,ApiDeployment> rollbackApiDeploymentCallable()
Overrides

rollbackApiSpecCallable()

public UnaryCallable<RollbackApiSpecRequest,ApiSpec> rollbackApiSpecCallable()
Returns
Type Description
UnaryCallable<RollbackApiSpecRequest,ApiSpec>
Overrides

setIamPolicyCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

tagApiDeploymentRevisionCallable()

public UnaryCallable<TagApiDeploymentRevisionRequest,ApiDeployment> tagApiDeploymentRevisionCallable()
Overrides

tagApiSpecRevisionCallable()

public UnaryCallable<TagApiSpecRevisionRequest,ApiSpec> tagApiSpecRevisionCallable()
Returns
Type Description
UnaryCallable<TagApiSpecRevisionRequest,ApiSpec>
Overrides

testIamPermissionsCallable()

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

updateApiCallable()

public UnaryCallable<UpdateApiRequest,Api> updateApiCallable()
Returns
Type Description
UnaryCallable<UpdateApiRequest,Api>
Overrides

updateApiDeploymentCallable()

public UnaryCallable<UpdateApiDeploymentRequest,ApiDeployment> updateApiDeploymentCallable()
Overrides

updateApiSpecCallable()

public UnaryCallable<UpdateApiSpecRequest,ApiSpec> updateApiSpecCallable()
Returns
Type Description
UnaryCallable<UpdateApiSpecRequest,ApiSpec>
Overrides

updateApiVersionCallable()

public UnaryCallable<UpdateApiVersionRequest,ApiVersion> updateApiVersionCallable()
Overrides