Class RegistryGrpc.RegistryBlockingStub (0.44.0)

public static final class RegistryGrpc.RegistryBlockingStub extends AbstractBlockingStub<RegistryGrpc.RegistryBlockingStub>

A stub to allow clients to do synchronous rpc calls to service Registry.

The Registry service allows teams to manage descriptions of APIs.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > RegistryGrpc.RegistryBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

protected RegistryGrpc.RegistryBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
RegistryGrpc.RegistryBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createApi(CreateApiRequest request)

public Api createApi(CreateApiRequest request)

Creates a specified API.

Parameter
Name Description
request CreateApiRequest
Returns
Type Description
Api

createApiDeployment(CreateApiDeploymentRequest request)

public ApiDeployment createApiDeployment(CreateApiDeploymentRequest request)

Creates a specified deployment.

Parameter
Name Description
request CreateApiDeploymentRequest
Returns
Type Description
ApiDeployment

createApiSpec(CreateApiSpecRequest request)

public ApiSpec createApiSpec(CreateApiSpecRequest request)

Creates a specified spec.

Parameter
Name Description
request CreateApiSpecRequest
Returns
Type Description
ApiSpec

createApiVersion(CreateApiVersionRequest request)

public ApiVersion createApiVersion(CreateApiVersionRequest request)

Creates a specified version.

Parameter
Name Description
request CreateApiVersionRequest
Returns
Type Description
ApiVersion

createArtifact(CreateArtifactRequest request)

public Artifact createArtifact(CreateArtifactRequest request)

Creates a specified artifact.

Parameter
Name Description
request CreateArtifactRequest
Returns
Type Description
Artifact

deleteApi(DeleteApiRequest request)

public Empty deleteApi(DeleteApiRequest request)

Removes a specified API and all of the resources that it owns.

Parameter
Name Description
request DeleteApiRequest
Returns
Type Description
Empty

deleteApiDeployment(DeleteApiDeploymentRequest request)

public Empty deleteApiDeployment(DeleteApiDeploymentRequest request)

Removes a specified deployment, all revisions, and all child resources (e.g., artifacts).

Parameter
Name Description
request DeleteApiDeploymentRequest
Returns
Type Description
Empty

deleteApiDeploymentRevision(DeleteApiDeploymentRevisionRequest request)

public ApiDeployment deleteApiDeploymentRevision(DeleteApiDeploymentRevisionRequest request)

Deletes a revision of a deployment.

Parameter
Name Description
request DeleteApiDeploymentRevisionRequest
Returns
Type Description
ApiDeployment

deleteApiSpec(DeleteApiSpecRequest request)

public Empty deleteApiSpec(DeleteApiSpecRequest request)

Removes a specified spec, all revisions, and all child resources (e.g., artifacts).

Parameter
Name Description
request DeleteApiSpecRequest
Returns
Type Description
Empty

deleteApiSpecRevision(DeleteApiSpecRevisionRequest request)

public ApiSpec deleteApiSpecRevision(DeleteApiSpecRevisionRequest request)

Deletes a revision of a spec.

Parameter
Name Description
request DeleteApiSpecRevisionRequest
Returns
Type Description
ApiSpec

deleteApiVersion(DeleteApiVersionRequest request)

public Empty deleteApiVersion(DeleteApiVersionRequest request)

Removes a specified version and all of the resources that it owns.

Parameter
Name Description
request DeleteApiVersionRequest
Returns
Type Description
Empty

deleteArtifact(DeleteArtifactRequest request)

public Empty deleteArtifact(DeleteArtifactRequest request)

Removes a specified artifact.

Parameter
Name Description
request DeleteArtifactRequest
Returns
Type Description
Empty

getApi(GetApiRequest request)

public Api getApi(GetApiRequest request)

Returns a specified API.

Parameter
Name Description
request GetApiRequest
Returns
Type Description
Api

getApiDeployment(GetApiDeploymentRequest request)

public ApiDeployment getApiDeployment(GetApiDeploymentRequest request)

Returns a specified deployment.

Parameter
Name Description
request GetApiDeploymentRequest
Returns
Type Description
ApiDeployment

getApiSpec(GetApiSpecRequest request)

public ApiSpec getApiSpec(GetApiSpecRequest request)

Returns a specified spec.

Parameter
Name Description
request GetApiSpecRequest
Returns
Type Description
ApiSpec

getApiSpecContents(GetApiSpecContentsRequest request)

public HttpBody getApiSpecContents(GetApiSpecContentsRequest request)

Returns the contents of a specified spec. If specs are stored with GZip compression, the default behavior is to return the spec uncompressed (the mime_type response field indicates the exact format returned).

Parameter
Name Description
request GetApiSpecContentsRequest
Returns
Type Description
com.google.api.HttpBody

getApiVersion(GetApiVersionRequest request)

public ApiVersion getApiVersion(GetApiVersionRequest request)

Returns a specified version.

Parameter
Name Description
request GetApiVersionRequest
Returns
Type Description
ApiVersion

getArtifact(GetArtifactRequest request)

public Artifact getArtifact(GetArtifactRequest request)

Returns a specified artifact.

Parameter
Name Description
request GetArtifactRequest
Returns
Type Description
Artifact

getArtifactContents(GetArtifactContentsRequest request)

public HttpBody getArtifactContents(GetArtifactContentsRequest request)

Returns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

Parameter
Name Description
request GetArtifactContentsRequest
Returns
Type Description
com.google.api.HttpBody

listApiDeploymentRevisions(ListApiDeploymentRevisionsRequest request)

public ListApiDeploymentRevisionsResponse listApiDeploymentRevisions(ListApiDeploymentRevisionsRequest request)

Lists all revisions of a deployment. Revisions are returned in descending order of revision creation time.

Parameter
Name Description
request ListApiDeploymentRevisionsRequest
Returns
Type Description
ListApiDeploymentRevisionsResponse

listApiDeployments(ListApiDeploymentsRequest request)

public ListApiDeploymentsResponse listApiDeployments(ListApiDeploymentsRequest request)

Returns matching deployments.

Parameter
Name Description
request ListApiDeploymentsRequest
Returns
Type Description
ListApiDeploymentsResponse

listApiSpecRevisions(ListApiSpecRevisionsRequest request)

public ListApiSpecRevisionsResponse listApiSpecRevisions(ListApiSpecRevisionsRequest request)

Lists all revisions of a spec. Revisions are returned in descending order of revision creation time.

Parameter
Name Description
request ListApiSpecRevisionsRequest
Returns
Type Description
ListApiSpecRevisionsResponse

listApiSpecs(ListApiSpecsRequest request)

public ListApiSpecsResponse listApiSpecs(ListApiSpecsRequest request)

Returns matching specs.

Parameter
Name Description
request ListApiSpecsRequest
Returns
Type Description
ListApiSpecsResponse

listApiVersions(ListApiVersionsRequest request)

public ListApiVersionsResponse listApiVersions(ListApiVersionsRequest request)

Returns matching versions.

Parameter
Name Description
request ListApiVersionsRequest
Returns
Type Description
ListApiVersionsResponse

listApis(ListApisRequest request)

public ListApisResponse listApis(ListApisRequest request)

Returns matching APIs.

Parameter
Name Description
request ListApisRequest
Returns
Type Description
ListApisResponse

listArtifacts(ListArtifactsRequest request)

public ListArtifactsResponse listArtifacts(ListArtifactsRequest request)

Returns matching artifacts.

Parameter
Name Description
request ListArtifactsRequest
Returns
Type Description
ListArtifactsResponse

replaceArtifact(ReplaceArtifactRequest request)

public Artifact replaceArtifact(ReplaceArtifactRequest request)

Used to replace a specified artifact.

Parameter
Name Description
request ReplaceArtifactRequest
Returns
Type Description
Artifact

rollbackApiDeployment(RollbackApiDeploymentRequest request)

public ApiDeployment rollbackApiDeployment(RollbackApiDeploymentRequest request)

Sets the current revision to a specified prior revision. Note that this creates a new revision with a new revision ID.

Parameter
Name Description
request RollbackApiDeploymentRequest
Returns
Type Description
ApiDeployment

rollbackApiSpec(RollbackApiSpecRequest request)

public ApiSpec rollbackApiSpec(RollbackApiSpecRequest request)

Sets the current revision to a specified prior revision. Note that this creates a new revision with a new revision ID.

Parameter
Name Description
request RollbackApiSpecRequest
Returns
Type Description
ApiSpec

tagApiDeploymentRevision(TagApiDeploymentRevisionRequest request)

public ApiDeployment tagApiDeploymentRevision(TagApiDeploymentRevisionRequest request)

Adds a tag to a specified revision of a deployment.

Parameter
Name Description
request TagApiDeploymentRevisionRequest
Returns
Type Description
ApiDeployment

tagApiSpecRevision(TagApiSpecRevisionRequest request)

public ApiSpec tagApiSpecRevision(TagApiSpecRevisionRequest request)

Adds a tag to a specified revision of a spec.

Parameter
Name Description
request TagApiSpecRevisionRequest
Returns
Type Description
ApiSpec

updateApi(UpdateApiRequest request)

public Api updateApi(UpdateApiRequest request)

Used to modify a specified API.

Parameter
Name Description
request UpdateApiRequest
Returns
Type Description
Api

updateApiDeployment(UpdateApiDeploymentRequest request)

public ApiDeployment updateApiDeployment(UpdateApiDeploymentRequest request)

Used to modify a specified deployment.

Parameter
Name Description
request UpdateApiDeploymentRequest
Returns
Type Description
ApiDeployment

updateApiSpec(UpdateApiSpecRequest request)

public ApiSpec updateApiSpec(UpdateApiSpecRequest request)

Used to modify a specified spec.

Parameter
Name Description
request UpdateApiSpecRequest
Returns
Type Description
ApiSpec

updateApiVersion(UpdateApiVersionRequest request)

public ApiVersion updateApiVersion(UpdateApiVersionRequest request)

Used to modify a specified version.

Parameter
Name Description
request UpdateApiVersionRequest
Returns
Type Description
ApiVersion