Class GrpcProjectsStub (1.38.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
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcProjectsStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcProjectsStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcProjectsStub
Exceptions
TypeDescription
IOException

create(ProjectsStubSettings settings)

public static final GrpcProjectsStub create(ProjectsStubSettings settings)
Parameter
NameDescription
settingsProjectsStubSettings
Returns
TypeDescription
GrpcProjectsStub
Exceptions
TypeDescription
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
NameDescription
settingsProjectsStubSettings
clientContextClientContext

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
NameDescription
settingsProjectsStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createProjectCallable()

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

createProjectOperationCallable()

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

deleteProjectCallable()

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

deleteProjectOperationCallable()

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

getIamPolicyCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

getProjectCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listProjectsCallable()

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

listProjectsPagedCallable()

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

moveProjectCallable()

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

moveProjectOperationCallable()

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

searchProjectsCallable()

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

searchProjectsPagedCallable()

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

undeleteProjectCallable()

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

undeleteProjectOperationCallable()

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

updateProjectCallable()

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

updateProjectOperationCallable()

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