Class GrpcProjectsStub (1.56.0)

public class GrpcProjectsStub extends ProjectsStub

gRPC stub implementation for the Projects service API.

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

Inheritance

java.lang.Object > ProjectsStub > GrpcProjectsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ProjectsStubSettings settings)

public static final GrpcProjectsStub create(ProjectsStubSettings settings)
Parameter
Name Description
settings ProjectsStubSettings
Returns
Type Description
GrpcProjectsStub
Exceptions
Type Description
IOException

Constructors

GrpcProjectsStub(ProjectsStubSettings settings, ClientContext clientContext)

protected GrpcProjectsStub(ProjectsStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcProjectsStub, 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 ProjectsStubSettings
clientContext ClientContext

GrpcProjectsStub(ProjectsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcProjectsStub(ProjectsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcProjectsStub, 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 ProjectsStubSettings
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

createProjectCallable()

public UnaryCallable<CreateProjectRequest,Operation> createProjectCallable()
Returns
Type Description
UnaryCallable<CreateProjectRequest,Operation>
Overrides

createProjectOperationCallable()

public OperationCallable<CreateProjectRequest,Project,CreateProjectMetadata> createProjectOperationCallable()
Returns
Type Description
OperationCallable<CreateProjectRequest,Project,CreateProjectMetadata>
Overrides

deleteProjectCallable()

public UnaryCallable<DeleteProjectRequest,Operation> deleteProjectCallable()
Returns
Type Description
UnaryCallable<DeleteProjectRequest,Operation>
Overrides

deleteProjectOperationCallable()

public OperationCallable<DeleteProjectRequest,Project,DeleteProjectMetadata> deleteProjectOperationCallable()
Returns
Type Description
OperationCallable<DeleteProjectRequest,Project,DeleteProjectMetadata>
Overrides

getIamPolicyCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

getProjectCallable()

public UnaryCallable<GetProjectRequest,Project> getProjectCallable()
Returns
Type Description
UnaryCallable<GetProjectRequest,Project>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listProjectsCallable()

public UnaryCallable<ListProjectsRequest,ListProjectsResponse> listProjectsCallable()
Returns
Type Description
UnaryCallable<ListProjectsRequest,ListProjectsResponse>
Overrides

listProjectsPagedCallable()

public UnaryCallable<ListProjectsRequest,ProjectsClient.ListProjectsPagedResponse> listProjectsPagedCallable()
Returns
Type Description
UnaryCallable<ListProjectsRequest,ListProjectsPagedResponse>
Overrides

moveProjectCallable()

public UnaryCallable<MoveProjectRequest,Operation> moveProjectCallable()
Returns
Type Description
UnaryCallable<MoveProjectRequest,Operation>
Overrides

moveProjectOperationCallable()

public OperationCallable<MoveProjectRequest,Project,MoveProjectMetadata> moveProjectOperationCallable()
Returns
Type Description
OperationCallable<MoveProjectRequest,Project,MoveProjectMetadata>
Overrides

searchProjectsCallable()

public UnaryCallable<SearchProjectsRequest,SearchProjectsResponse> searchProjectsCallable()
Returns
Type Description
UnaryCallable<SearchProjectsRequest,SearchProjectsResponse>
Overrides

searchProjectsPagedCallable()

public UnaryCallable<SearchProjectsRequest,ProjectsClient.SearchProjectsPagedResponse> searchProjectsPagedCallable()
Returns
Type Description
UnaryCallable<SearchProjectsRequest,SearchProjectsPagedResponse>
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()

testIamPermissionsCallable()

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

undeleteProjectCallable()

public UnaryCallable<UndeleteProjectRequest,Operation> undeleteProjectCallable()
Returns
Type Description
UnaryCallable<UndeleteProjectRequest,Operation>
Overrides

undeleteProjectOperationCallable()

public OperationCallable<UndeleteProjectRequest,Project,UndeleteProjectMetadata> undeleteProjectOperationCallable()
Returns
Type Description
OperationCallable<UndeleteProjectRequest,Project,UndeleteProjectMetadata>
Overrides

updateProjectCallable()

public UnaryCallable<UpdateProjectRequest,Operation> updateProjectCallable()
Returns
Type Description
UnaryCallable<UpdateProjectRequest,Operation>
Overrides

updateProjectOperationCallable()

public OperationCallable<UpdateProjectRequest,Project,UpdateProjectMetadata> updateProjectOperationCallable()
Returns
Type Description
OperationCallable<UpdateProjectRequest,Project,UpdateProjectMetadata>
Overrides