Class HttpJsonRepositoryManagerStub (3.37.0)

See more code actions.
public class HttpJsonRepositoryManagerStub extends RepositoryManagerStub

REST stub implementation for the RepositoryManager service API.

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

Inheritance

java.lang.Object > RepositoryManagerStub > HttpJsonRepositoryManagerStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(RepositoryManagerStubSettings settings)

public static final HttpJsonRepositoryManagerStub create(RepositoryManagerStubSettings settings)
Parameter
NameDescription
settingsRepositoryManagerStubSettings
Returns
TypeDescription
HttpJsonRepositoryManagerStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonRepositoryManagerStub(RepositoryManagerStubSettings settings, ClientContext clientContext)

protected HttpJsonRepositoryManagerStub(RepositoryManagerStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonRepositoryManagerStub, 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
settingsRepositoryManagerStubSettings
clientContextClientContext

HttpJsonRepositoryManagerStub(RepositoryManagerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonRepositoryManagerStub(RepositoryManagerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonRepositoryManagerStub, 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
settingsRepositoryManagerStubSettings
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

batchCreateRepositoriesCallable()

public UnaryCallable<BatchCreateRepositoriesRequest,Operation> batchCreateRepositoriesCallable()
Overrides

batchCreateRepositoriesOperationCallable()

public OperationCallable<BatchCreateRepositoriesRequest,BatchCreateRepositoriesResponse,OperationMetadata> batchCreateRepositoriesOperationCallable()
Overrides

close()

public final void close()
Overrides

createConnectionCallable()

public UnaryCallable<CreateConnectionRequest,Operation> createConnectionCallable()
Overrides

createConnectionOperationCallable()

public OperationCallable<CreateConnectionRequest,Connection,OperationMetadata> createConnectionOperationCallable()
Overrides

createRepositoryCallable()

public UnaryCallable<CreateRepositoryRequest,Operation> createRepositoryCallable()
Overrides

createRepositoryOperationCallable()

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

deleteConnectionCallable()

public UnaryCallable<DeleteConnectionRequest,Operation> deleteConnectionCallable()
Overrides

deleteConnectionOperationCallable()

public OperationCallable<DeleteConnectionRequest,Empty,OperationMetadata> deleteConnectionOperationCallable()
Overrides

deleteRepositoryCallable()

public UnaryCallable<DeleteRepositoryRequest,Operation> deleteRepositoryCallable()
Overrides

deleteRepositoryOperationCallable()

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

fetchGitRefsCallable()

public UnaryCallable<FetchGitRefsRequest,FetchGitRefsResponse> fetchGitRefsCallable()
Overrides

fetchLinkableRepositoriesCallable()

public UnaryCallable<FetchLinkableRepositoriesRequest,FetchLinkableRepositoriesResponse> fetchLinkableRepositoriesCallable()
Overrides

fetchLinkableRepositoriesPagedCallable()

public UnaryCallable<FetchLinkableRepositoriesRequest,RepositoryManagerClient.FetchLinkableRepositoriesPagedResponse> fetchLinkableRepositoriesPagedCallable()
Overrides

fetchReadTokenCallable()

public UnaryCallable<FetchReadTokenRequest,FetchReadTokenResponse> fetchReadTokenCallable()
Overrides

fetchReadWriteTokenCallable()

public UnaryCallable<FetchReadWriteTokenRequest,FetchReadWriteTokenResponse> fetchReadWriteTokenCallable()
Overrides

getConnectionCallable()

public UnaryCallable<GetConnectionRequest,Connection> getConnectionCallable()
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

getRepositoryCallable()

public UnaryCallable<GetRepositoryRequest,Repository> getRepositoryCallable()
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listConnectionsCallable()

public UnaryCallable<ListConnectionsRequest,ListConnectionsResponse> listConnectionsCallable()
Overrides

listConnectionsPagedCallable()

public UnaryCallable<ListConnectionsRequest,RepositoryManagerClient.ListConnectionsPagedResponse> listConnectionsPagedCallable()
Overrides

listRepositoriesCallable()

public UnaryCallable<ListRepositoriesRequest,ListRepositoriesResponse> listRepositoriesCallable()
Overrides

listRepositoriesPagedCallable()

public UnaryCallable<ListRepositoriesRequest,RepositoryManagerClient.ListRepositoriesPagedResponse> listRepositoriesPagedCallable()
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

updateConnectionCallable()

public UnaryCallable<UpdateConnectionRequest,Operation> updateConnectionCallable()
Overrides

updateConnectionOperationCallable()

public OperationCallable<UpdateConnectionRequest,Connection,OperationMetadata> updateConnectionOperationCallable()
Overrides