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 protected
HttpJsonProjectsStub(ProjectsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonProjectsStub, using the given settings.protected
HttpJsonProjectsStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static HttpJsonProjectsStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonProjectsStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonProjectsStub
create(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.HttpJsonOperationsStub
getHttpJsonOperationsStub()
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()
boolean
isShutdown()
boolean
isTerminated()
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()
void
shutdown()
void
shutdownNow()
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:
getHttpJsonOperationsStub
in classProjectsStub
-
getProjectCallable
public com.google.api.gax.rpc.UnaryCallable<GetProjectRequest,Project> getProjectCallable()
- Overrides:
getProjectCallable
in classProjectsStub
-
listProjectsCallable
public com.google.api.gax.rpc.UnaryCallable<ListProjectsRequest,ListProjectsResponse> listProjectsCallable()
- Overrides:
listProjectsCallable
in classProjectsStub
-
listProjectsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListProjectsRequest,ProjectsClient.ListProjectsPagedResponse> listProjectsPagedCallable()
- Overrides:
listProjectsPagedCallable
in classProjectsStub
-
searchProjectsCallable
public com.google.api.gax.rpc.UnaryCallable<SearchProjectsRequest,SearchProjectsResponse> searchProjectsCallable()
- Overrides:
searchProjectsCallable
in classProjectsStub
-
searchProjectsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchProjectsRequest,ProjectsClient.SearchProjectsPagedResponse> searchProjectsPagedCallable()
- Overrides:
searchProjectsPagedCallable
in classProjectsStub
-
createProjectCallable
public com.google.api.gax.rpc.UnaryCallable<CreateProjectRequest,com.google.longrunning.Operation> createProjectCallable()
- Overrides:
createProjectCallable
in classProjectsStub
-
createProjectOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateProjectRequest,Project,CreateProjectMetadata> createProjectOperationCallable()
- Overrides:
createProjectOperationCallable
in classProjectsStub
-
updateProjectCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateProjectRequest,com.google.longrunning.Operation> updateProjectCallable()
- Overrides:
updateProjectCallable
in classProjectsStub
-
updateProjectOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateProjectRequest,Project,UpdateProjectMetadata> updateProjectOperationCallable()
- Overrides:
updateProjectOperationCallable
in classProjectsStub
-
moveProjectCallable
public com.google.api.gax.rpc.UnaryCallable<MoveProjectRequest,com.google.longrunning.Operation> moveProjectCallable()
- Overrides:
moveProjectCallable
in classProjectsStub
-
moveProjectOperationCallable
public com.google.api.gax.rpc.OperationCallable<MoveProjectRequest,Project,MoveProjectMetadata> moveProjectOperationCallable()
- Overrides:
moveProjectOperationCallable
in classProjectsStub
-
deleteProjectCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteProjectRequest,com.google.longrunning.Operation> deleteProjectCallable()
- Overrides:
deleteProjectCallable
in classProjectsStub
-
deleteProjectOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteProjectRequest,Project,DeleteProjectMetadata> deleteProjectOperationCallable()
- Overrides:
deleteProjectOperationCallable
in classProjectsStub
-
undeleteProjectCallable
public com.google.api.gax.rpc.UnaryCallable<UndeleteProjectRequest,com.google.longrunning.Operation> undeleteProjectCallable()
- Overrides:
undeleteProjectCallable
in classProjectsStub
-
undeleteProjectOperationCallable
public com.google.api.gax.rpc.OperationCallable<UndeleteProjectRequest,Project,UndeleteProjectMetadata> undeleteProjectOperationCallable()
- Overrides:
undeleteProjectOperationCallable
in classProjectsStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classProjectsStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classProjectsStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classProjectsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-