Package com.google.cloud.compute.v1.stub
Class HttpJsonProjectsStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.ProjectsStub
-
- com.google.cloud.compute.v1.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
-
-
-
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()
-
disableXpnHostCallable
public com.google.api.gax.rpc.UnaryCallable<DisableXpnHostProjectRequest,Operation> disableXpnHostCallable()
- Overrides:
disableXpnHostCallable
in classProjectsStub
-
disableXpnHostOperationCallable
public com.google.api.gax.rpc.OperationCallable<DisableXpnHostProjectRequest,Operation,Operation> disableXpnHostOperationCallable()
- Overrides:
disableXpnHostOperationCallable
in classProjectsStub
-
disableXpnResourceCallable
public com.google.api.gax.rpc.UnaryCallable<DisableXpnResourceProjectRequest,Operation> disableXpnResourceCallable()
- Overrides:
disableXpnResourceCallable
in classProjectsStub
-
disableXpnResourceOperationCallable
public com.google.api.gax.rpc.OperationCallable<DisableXpnResourceProjectRequest,Operation,Operation> disableXpnResourceOperationCallable()
- Overrides:
disableXpnResourceOperationCallable
in classProjectsStub
-
enableXpnHostCallable
public com.google.api.gax.rpc.UnaryCallable<EnableXpnHostProjectRequest,Operation> enableXpnHostCallable()
- Overrides:
enableXpnHostCallable
in classProjectsStub
-
enableXpnHostOperationCallable
public com.google.api.gax.rpc.OperationCallable<EnableXpnHostProjectRequest,Operation,Operation> enableXpnHostOperationCallable()
- Overrides:
enableXpnHostOperationCallable
in classProjectsStub
-
enableXpnResourceCallable
public com.google.api.gax.rpc.UnaryCallable<EnableXpnResourceProjectRequest,Operation> enableXpnResourceCallable()
- Overrides:
enableXpnResourceCallable
in classProjectsStub
-
enableXpnResourceOperationCallable
public com.google.api.gax.rpc.OperationCallable<EnableXpnResourceProjectRequest,Operation,Operation> enableXpnResourceOperationCallable()
- Overrides:
enableXpnResourceOperationCallable
in classProjectsStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetProjectRequest,Project> getCallable()
- Overrides:
getCallable
in classProjectsStub
-
getXpnHostCallable
public com.google.api.gax.rpc.UnaryCallable<GetXpnHostProjectRequest,Project> getXpnHostCallable()
- Overrides:
getXpnHostCallable
in classProjectsStub
-
getXpnResourcesCallable
public com.google.api.gax.rpc.UnaryCallable<GetXpnResourcesProjectsRequest,ProjectsGetXpnResources> getXpnResourcesCallable()
- Overrides:
getXpnResourcesCallable
in classProjectsStub
-
getXpnResourcesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<GetXpnResourcesProjectsRequest,ProjectsClient.GetXpnResourcesPagedResponse> getXpnResourcesPagedCallable()
- Overrides:
getXpnResourcesPagedCallable
in classProjectsStub
-
listXpnHostsCallable
public com.google.api.gax.rpc.UnaryCallable<ListXpnHostsProjectsRequest,XpnHostList> listXpnHostsCallable()
- Overrides:
listXpnHostsCallable
in classProjectsStub
-
listXpnHostsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListXpnHostsProjectsRequest,ProjectsClient.ListXpnHostsPagedResponse> listXpnHostsPagedCallable()
- Overrides:
listXpnHostsPagedCallable
in classProjectsStub
-
moveDiskCallable
public com.google.api.gax.rpc.UnaryCallable<MoveDiskProjectRequest,Operation> moveDiskCallable()
- Overrides:
moveDiskCallable
in classProjectsStub
-
moveDiskOperationCallable
public com.google.api.gax.rpc.OperationCallable<MoveDiskProjectRequest,Operation,Operation> moveDiskOperationCallable()
- Overrides:
moveDiskOperationCallable
in classProjectsStub
-
moveInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<MoveInstanceProjectRequest,Operation> moveInstanceCallable()
- Overrides:
moveInstanceCallable
in classProjectsStub
-
moveInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<MoveInstanceProjectRequest,Operation,Operation> moveInstanceOperationCallable()
- Overrides:
moveInstanceOperationCallable
in classProjectsStub
-
setCommonInstanceMetadataCallable
public com.google.api.gax.rpc.UnaryCallable<SetCommonInstanceMetadataProjectRequest,Operation> setCommonInstanceMetadataCallable()
- Overrides:
setCommonInstanceMetadataCallable
in classProjectsStub
-
setCommonInstanceMetadataOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetCommonInstanceMetadataProjectRequest,Operation,Operation> setCommonInstanceMetadataOperationCallable()
- Overrides:
setCommonInstanceMetadataOperationCallable
in classProjectsStub
-
setDefaultNetworkTierCallable
public com.google.api.gax.rpc.UnaryCallable<SetDefaultNetworkTierProjectRequest,Operation> setDefaultNetworkTierCallable()
- Overrides:
setDefaultNetworkTierCallable
in classProjectsStub
-
setDefaultNetworkTierOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetDefaultNetworkTierProjectRequest,Operation,Operation> setDefaultNetworkTierOperationCallable()
- Overrides:
setDefaultNetworkTierOperationCallable
in classProjectsStub
-
setUsageExportBucketCallable
public com.google.api.gax.rpc.UnaryCallable<SetUsageExportBucketProjectRequest,Operation> setUsageExportBucketCallable()
- Overrides:
setUsageExportBucketCallable
in classProjectsStub
-
setUsageExportBucketOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetUsageExportBucketProjectRequest,Operation,Operation> setUsageExportBucketOperationCallable()
- Overrides:
setUsageExportBucketOperationCallable
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
-
-