Class DeveloperConnectGrpc.DeveloperConnectStub (0.1.0)

public static final class DeveloperConnectGrpc.DeveloperConnectStub extends AbstractAsyncStub<DeveloperConnectGrpc.DeveloperConnectStub>

A stub to allow clients to do asynchronous rpc calls to service DeveloperConnect.

Service describing handlers for resources

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > DeveloperConnectGrpc.DeveloperConnectStub

Methods

build(Channel channel, CallOptions callOptions)

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

createConnection(CreateConnectionRequest request, StreamObserver<Operation> responseObserver)

public void createConnection(CreateConnectionRequest request, StreamObserver<Operation> responseObserver)

Creates a new Connection in a given project and location.

Parameters
Name Description
request CreateConnectionRequest
responseObserver io.grpc.stub.StreamObserver<Operation>
public void createGitRepositoryLink(CreateGitRepositoryLinkRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
Name Description
request CreateGitRepositoryLinkRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deleteConnection(DeleteConnectionRequest request, StreamObserver<Operation> responseObserver)

public void deleteConnection(DeleteConnectionRequest request, StreamObserver<Operation> responseObserver)

Deletes a single Connection.

Parameters
Name Description
request DeleteConnectionRequest
responseObserver io.grpc.stub.StreamObserver<Operation>
public void deleteGitRepositoryLink(DeleteGitRepositoryLinkRequest request, StreamObserver<Operation> responseObserver)

Deletes a single GitRepositoryLink.

Parameters
Name Description
request DeleteGitRepositoryLinkRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

fetchGitHubInstallations(FetchGitHubInstallationsRequest request, StreamObserver<FetchGitHubInstallationsResponse> responseObserver)

public void fetchGitHubInstallations(FetchGitHubInstallationsRequest request, StreamObserver<FetchGitHubInstallationsResponse> responseObserver)

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.

Parameters
Name Description
request FetchGitHubInstallationsRequest
responseObserver io.grpc.stub.StreamObserver<FetchGitHubInstallationsResponse>

fetchGitRefs(FetchGitRefsRequest request, StreamObserver<FetchGitRefsResponse> responseObserver)

public void fetchGitRefs(FetchGitRefsRequest request, StreamObserver<FetchGitRefsResponse> responseObserver)

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

Parameters
Name Description
request FetchGitRefsRequest
responseObserver io.grpc.stub.StreamObserver<FetchGitRefsResponse>

fetchLinkableGitRepositories(FetchLinkableGitRepositoriesRequest request, StreamObserver<FetchLinkableGitRepositoriesResponse> responseObserver)

public void fetchLinkableGitRepositories(FetchLinkableGitRepositoriesRequest request, StreamObserver<FetchLinkableGitRepositoriesResponse> responseObserver)

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

Parameters
Name Description
request FetchLinkableGitRepositoriesRequest
responseObserver io.grpc.stub.StreamObserver<FetchLinkableGitRepositoriesResponse>

fetchReadToken(FetchReadTokenRequest request, StreamObserver<FetchReadTokenResponse> responseObserver)

public void fetchReadToken(FetchReadTokenRequest request, StreamObserver<FetchReadTokenResponse> responseObserver)

Fetches read token of a given gitRepositoryLink.

Parameters
Name Description
request FetchReadTokenRequest
responseObserver io.grpc.stub.StreamObserver<FetchReadTokenResponse>

fetchReadWriteToken(FetchReadWriteTokenRequest request, StreamObserver<FetchReadWriteTokenResponse> responseObserver)

public void fetchReadWriteToken(FetchReadWriteTokenRequest request, StreamObserver<FetchReadWriteTokenResponse> responseObserver)

Fetches read/write token of a given gitRepositoryLink.

Parameters
Name Description
request FetchReadWriteTokenRequest
responseObserver io.grpc.stub.StreamObserver<FetchReadWriteTokenResponse>

getConnection(GetConnectionRequest request, StreamObserver<Connection> responseObserver)

public void getConnection(GetConnectionRequest request, StreamObserver<Connection> responseObserver)

Gets details of a single Connection.

Parameters
Name Description
request GetConnectionRequest
responseObserver io.grpc.stub.StreamObserver<Connection>
public void getGitRepositoryLink(GetGitRepositoryLinkRequest request, StreamObserver<GitRepositoryLink> responseObserver)

Gets details of a single GitRepositoryLink.

Parameters
Name Description
request GetGitRepositoryLinkRequest
responseObserver io.grpc.stub.StreamObserver<GitRepositoryLink>

listConnections(ListConnectionsRequest request, StreamObserver<ListConnectionsResponse> responseObserver)

public void listConnections(ListConnectionsRequest request, StreamObserver<ListConnectionsResponse> responseObserver)

Lists Connections in a given project and location.

Parameters
Name Description
request ListConnectionsRequest
responseObserver io.grpc.stub.StreamObserver<ListConnectionsResponse>
public void listGitRepositoryLinks(ListGitRepositoryLinksRequest request, StreamObserver<ListGitRepositoryLinksResponse> responseObserver)

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

Parameters
Name Description
request ListGitRepositoryLinksRequest
responseObserver io.grpc.stub.StreamObserver<ListGitRepositoryLinksResponse>

updateConnection(UpdateConnectionRequest request, StreamObserver<Operation> responseObserver)

public void updateConnection(UpdateConnectionRequest request, StreamObserver<Operation> responseObserver)

Updates the parameters of a single Connection.

Parameters
Name Description
request UpdateConnectionRequest
responseObserver io.grpc.stub.StreamObserver<Operation>