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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ProjectsStubSettings settings)

public static final HttpJsonProjectsStub create(ProjectsStubSettings settings)
Parameter
NameDescription
settingsProjectsStubSettings
Returns
TypeDescription
HttpJsonProjectsStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsProjectsStubSettings
clientContextClientContext

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

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

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

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