Class HttpJsonProjectsStub (1.44.0)

public class HttpJsonProjectsStub extends ProjectsStub

REST stub implementation for the Projects service API.

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

Inheritance

java.lang.Object > ProjectsStub > HttpJsonProjectsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ProjectsStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonProjectsStub(ProjectsStubSettings settings, ClientContext clientContext)

protected HttpJsonProjectsStub(ProjectsStubSettings settings, ClientContext clientContext)

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

HttpJsonProjectsStub(ProjectsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonProjectsStub(ProjectsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonProjectsStub, 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 HttpJsonStubCallableFactory

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
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