Class HttpJsonProjectsStub
- java.lang.Object
-
- com.google.cloud.resourcemanager.v3.stub.ProjectsStub
-
- com.google.cloud.resourcemanager.v3.stub.HttpJsonProjectsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonProjectsStub(ProjectsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonProjectsStub, using the given settings.protectedHttpJsonProjectsStub(ProjectsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonProjectsStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static HttpJsonProjectsStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonProjectsStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonProjectsStubcreate(ProjectsStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateProjectRequest,com.google.longrunning.Operation>createProjectCallable()com.google.api.gax.rpc.OperationCallable<CreateProjectRequest,Project,CreateProjectMetadata>createProjectOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteProjectRequest,com.google.longrunning.Operation>deleteProjectCallable()com.google.api.gax.rpc.OperationCallable<DeleteProjectRequest,Project,DeleteProjectMetadata>deleteProjectOperationCallable()com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStubgetHttpJsonOperationsStub()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>getIamPolicyCallable()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()com.google.api.gax.rpc.UnaryCallable<GetProjectRequest,Project>getProjectCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListProjectsRequest,ListProjectsResponse>listProjectsCallable()com.google.api.gax.rpc.UnaryCallable<ListProjectsRequest,ProjectsClient.ListProjectsPagedResponse>listProjectsPagedCallable()com.google.api.gax.rpc.UnaryCallable<MoveProjectRequest,com.google.longrunning.Operation>moveProjectCallable()com.google.api.gax.rpc.OperationCallable<MoveProjectRequest,Project,MoveProjectMetadata>moveProjectOperationCallable()com.google.api.gax.rpc.UnaryCallable<SearchProjectsRequest,SearchProjectsResponse>searchProjectsCallable()com.google.api.gax.rpc.UnaryCallable<SearchProjectsRequest,ProjectsClient.SearchProjectsPagedResponse>searchProjectsPagedCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>setIamPolicyCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>testIamPermissionsCallable()com.google.api.gax.rpc.UnaryCallable<UndeleteProjectRequest,com.google.longrunning.Operation>undeleteProjectCallable()com.google.api.gax.rpc.OperationCallable<UndeleteProjectRequest,Project,UndeleteProjectMetadata>undeleteProjectOperationCallable()com.google.api.gax.rpc.UnaryCallable<UpdateProjectRequest,com.google.longrunning.Operation>updateProjectCallable()com.google.api.gax.rpc.OperationCallable<UpdateProjectRequest,Project,UpdateProjectMetadata>updateProjectOperationCallable()-
Methods inherited from class com.google.cloud.resourcemanager.v3.stub.ProjectsStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonProjectsStub
protected HttpJsonProjectsStub(ProjectsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
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.- Throws:
IOException
-
HttpJsonProjectsStub
protected HttpJsonProjectsStub(ProjectsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
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.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonProjectsStub create(ProjectsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonProjectsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonProjectsStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStubin classProjectsStub
-
getProjectCallable
public com.google.api.gax.rpc.UnaryCallable<GetProjectRequest,Project> getProjectCallable()
- Overrides:
getProjectCallablein classProjectsStub
-
listProjectsCallable
public com.google.api.gax.rpc.UnaryCallable<ListProjectsRequest,ListProjectsResponse> listProjectsCallable()
- Overrides:
listProjectsCallablein classProjectsStub
-
listProjectsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListProjectsRequest,ProjectsClient.ListProjectsPagedResponse> listProjectsPagedCallable()
- Overrides:
listProjectsPagedCallablein classProjectsStub
-
searchProjectsCallable
public com.google.api.gax.rpc.UnaryCallable<SearchProjectsRequest,SearchProjectsResponse> searchProjectsCallable()
- Overrides:
searchProjectsCallablein classProjectsStub
-
searchProjectsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchProjectsRequest,ProjectsClient.SearchProjectsPagedResponse> searchProjectsPagedCallable()
- Overrides:
searchProjectsPagedCallablein classProjectsStub
-
createProjectCallable
public com.google.api.gax.rpc.UnaryCallable<CreateProjectRequest,com.google.longrunning.Operation> createProjectCallable()
- Overrides:
createProjectCallablein classProjectsStub
-
createProjectOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateProjectRequest,Project,CreateProjectMetadata> createProjectOperationCallable()
- Overrides:
createProjectOperationCallablein classProjectsStub
-
updateProjectCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateProjectRequest,com.google.longrunning.Operation> updateProjectCallable()
- Overrides:
updateProjectCallablein classProjectsStub
-
updateProjectOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateProjectRequest,Project,UpdateProjectMetadata> updateProjectOperationCallable()
- Overrides:
updateProjectOperationCallablein classProjectsStub
-
moveProjectCallable
public com.google.api.gax.rpc.UnaryCallable<MoveProjectRequest,com.google.longrunning.Operation> moveProjectCallable()
- Overrides:
moveProjectCallablein classProjectsStub
-
moveProjectOperationCallable
public com.google.api.gax.rpc.OperationCallable<MoveProjectRequest,Project,MoveProjectMetadata> moveProjectOperationCallable()
- Overrides:
moveProjectOperationCallablein classProjectsStub
-
deleteProjectCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteProjectRequest,com.google.longrunning.Operation> deleteProjectCallable()
- Overrides:
deleteProjectCallablein classProjectsStub
-
deleteProjectOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteProjectRequest,Project,DeleteProjectMetadata> deleteProjectOperationCallable()
- Overrides:
deleteProjectOperationCallablein classProjectsStub
-
undeleteProjectCallable
public com.google.api.gax.rpc.UnaryCallable<UndeleteProjectRequest,com.google.longrunning.Operation> undeleteProjectCallable()
- Overrides:
undeleteProjectCallablein classProjectsStub
-
undeleteProjectOperationCallable
public com.google.api.gax.rpc.OperationCallable<UndeleteProjectRequest,Project,UndeleteProjectMetadata> undeleteProjectOperationCallable()
- Overrides:
undeleteProjectOperationCallablein classProjectsStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classProjectsStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classProjectsStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classProjectsStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classProjectsStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-