Class DeveloperConnectGrpc.DeveloperConnectFutureStub (0.11.0)

public static final class DeveloperConnectGrpc.DeveloperConnectFutureStub extends AbstractFutureStub<DeveloperConnectGrpc.DeveloperConnectFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service DeveloperConnect.

Service describing handlers for resources

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > DeveloperConnectGrpc.DeveloperConnectFutureStub

Methods

build(Channel channel, CallOptions callOptions)

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

createConnection(CreateConnectionRequest request)

public ListenableFuture<Operation> createConnection(CreateConnectionRequest request)

Creates a new Connection in a given project and location.

Parameter
Name Description
request CreateConnectionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>
public ListenableFuture<Operation> createGitRepositoryLink(CreateGitRepositoryLinkRequest request)

Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect will configure the Git Repository to send webhook events to Developer Connect. Connections that use Firebase GitHub Application will have events forwarded to the Firebase service. All other Connections will have events forwarded to Cloud Build.

Parameter
Name Description
request CreateGitRepositoryLinkRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteConnection(DeleteConnectionRequest request)

public ListenableFuture<Operation> deleteConnection(DeleteConnectionRequest request)

Deletes a single Connection.

Parameter
Name Description
request DeleteConnectionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>
public ListenableFuture<Operation> deleteGitRepositoryLink(DeleteGitRepositoryLinkRequest request)

Deletes a single GitRepositoryLink.

Parameter
Name Description
request DeleteGitRepositoryLinkRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

fetchGitHubInstallations(FetchGitHubInstallationsRequest request)

public ListenableFuture<FetchGitHubInstallationsResponse> fetchGitHubInstallations(FetchGitHubInstallationsRequest request)

FetchGitHubInstallations returns the list of GitHub Installations that are available to be added to a Connection. For github.com, only installations accessible to the authorizer token are returned. For GitHub Enterprise, all installations are returned.

Parameter
Name Description
request FetchGitHubInstallationsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<FetchGitHubInstallationsResponse>

fetchGitRefs(FetchGitRefsRequest request)

public ListenableFuture<FetchGitRefsResponse> fetchGitRefs(FetchGitRefsRequest request)

Fetch the list of branches or tags for a given repository.

Parameter
Name Description
request FetchGitRefsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<FetchGitRefsResponse>

fetchLinkableGitRepositories(FetchLinkableGitRepositoriesRequest request)

public ListenableFuture<FetchLinkableGitRepositoriesResponse> fetchLinkableGitRepositories(FetchLinkableGitRepositoriesRequest request)

FetchLinkableGitRepositories returns a list of git repositories from an SCM that are available to be added to a Connection.

Parameter
Name Description
request FetchLinkableGitRepositoriesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<FetchLinkableGitRepositoriesResponse>

fetchReadToken(FetchReadTokenRequest request)

public ListenableFuture<FetchReadTokenResponse> fetchReadToken(FetchReadTokenRequest request)

Fetches read token of a given gitRepositoryLink.

Parameter
Name Description
request FetchReadTokenRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<FetchReadTokenResponse>

fetchReadWriteToken(FetchReadWriteTokenRequest request)

public ListenableFuture<FetchReadWriteTokenResponse> fetchReadWriteToken(FetchReadWriteTokenRequest request)

Fetches read/write token of a given gitRepositoryLink.

Parameter
Name Description
request FetchReadWriteTokenRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<FetchReadWriteTokenResponse>

getConnection(GetConnectionRequest request)

public ListenableFuture<Connection> getConnection(GetConnectionRequest request)

Gets details of a single Connection.

Parameter
Name Description
request GetConnectionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Connection>
public ListenableFuture<GitRepositoryLink> getGitRepositoryLink(GetGitRepositoryLinkRequest request)

Gets details of a single GitRepositoryLink.

Parameter
Name Description
request GetGitRepositoryLinkRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<GitRepositoryLink>

listConnections(ListConnectionsRequest request)

public ListenableFuture<ListConnectionsResponse> listConnections(ListConnectionsRequest request)

Lists Connections in a given project and location.

Parameter
Name Description
request ListConnectionsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListConnectionsResponse>
public ListenableFuture<ListGitRepositoryLinksResponse> listGitRepositoryLinks(ListGitRepositoryLinksRequest request)

Lists GitRepositoryLinks in a given project, location, and connection.

Parameter
Name Description
request ListGitRepositoryLinksRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListGitRepositoryLinksResponse>

updateConnection(UpdateConnectionRequest request)

public ListenableFuture<Operation> updateConnection(UpdateConnectionRequest request)

Updates the parameters of a single Connection.

Parameter
Name Description
request UpdateConnectionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>