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 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
-
-
-
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:
disableXpnHostCallablein classProjectsStub
-
disableXpnHostOperationCallable
public com.google.api.gax.rpc.OperationCallable<DisableXpnHostProjectRequest,Operation,Operation> disableXpnHostOperationCallable()
- Overrides:
disableXpnHostOperationCallablein classProjectsStub
-
disableXpnResourceCallable
public com.google.api.gax.rpc.UnaryCallable<DisableXpnResourceProjectRequest,Operation> disableXpnResourceCallable()
- Overrides:
disableXpnResourceCallablein classProjectsStub
-
disableXpnResourceOperationCallable
public com.google.api.gax.rpc.OperationCallable<DisableXpnResourceProjectRequest,Operation,Operation> disableXpnResourceOperationCallable()
- Overrides:
disableXpnResourceOperationCallablein classProjectsStub
-
enableXpnHostCallable
public com.google.api.gax.rpc.UnaryCallable<EnableXpnHostProjectRequest,Operation> enableXpnHostCallable()
- Overrides:
enableXpnHostCallablein classProjectsStub
-
enableXpnHostOperationCallable
public com.google.api.gax.rpc.OperationCallable<EnableXpnHostProjectRequest,Operation,Operation> enableXpnHostOperationCallable()
- Overrides:
enableXpnHostOperationCallablein classProjectsStub
-
enableXpnResourceCallable
public com.google.api.gax.rpc.UnaryCallable<EnableXpnResourceProjectRequest,Operation> enableXpnResourceCallable()
- Overrides:
enableXpnResourceCallablein classProjectsStub
-
enableXpnResourceOperationCallable
public com.google.api.gax.rpc.OperationCallable<EnableXpnResourceProjectRequest,Operation,Operation> enableXpnResourceOperationCallable()
- Overrides:
enableXpnResourceOperationCallablein classProjectsStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetProjectRequest,Project> getCallable()
- Overrides:
getCallablein classProjectsStub
-
getXpnHostCallable
public com.google.api.gax.rpc.UnaryCallable<GetXpnHostProjectRequest,Project> getXpnHostCallable()
- Overrides:
getXpnHostCallablein classProjectsStub
-
getXpnResourcesCallable
public com.google.api.gax.rpc.UnaryCallable<GetXpnResourcesProjectsRequest,ProjectsGetXpnResources> getXpnResourcesCallable()
- Overrides:
getXpnResourcesCallablein classProjectsStub
-
getXpnResourcesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<GetXpnResourcesProjectsRequest,ProjectsClient.GetXpnResourcesPagedResponse> getXpnResourcesPagedCallable()
- Overrides:
getXpnResourcesPagedCallablein classProjectsStub
-
listXpnHostsCallable
public com.google.api.gax.rpc.UnaryCallable<ListXpnHostsProjectsRequest,XpnHostList> listXpnHostsCallable()
- Overrides:
listXpnHostsCallablein classProjectsStub
-
listXpnHostsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListXpnHostsProjectsRequest,ProjectsClient.ListXpnHostsPagedResponse> listXpnHostsPagedCallable()
- Overrides:
listXpnHostsPagedCallablein classProjectsStub
-
moveDiskCallable
public com.google.api.gax.rpc.UnaryCallable<MoveDiskProjectRequest,Operation> moveDiskCallable()
- Overrides:
moveDiskCallablein classProjectsStub
-
moveDiskOperationCallable
public com.google.api.gax.rpc.OperationCallable<MoveDiskProjectRequest,Operation,Operation> moveDiskOperationCallable()
- Overrides:
moveDiskOperationCallablein classProjectsStub
-
moveInstanceCallable
public com.google.api.gax.rpc.UnaryCallable<MoveInstanceProjectRequest,Operation> moveInstanceCallable()
- Overrides:
moveInstanceCallablein classProjectsStub
-
moveInstanceOperationCallable
public com.google.api.gax.rpc.OperationCallable<MoveInstanceProjectRequest,Operation,Operation> moveInstanceOperationCallable()
- Overrides:
moveInstanceOperationCallablein classProjectsStub
-
setCommonInstanceMetadataCallable
public com.google.api.gax.rpc.UnaryCallable<SetCommonInstanceMetadataProjectRequest,Operation> setCommonInstanceMetadataCallable()
- Overrides:
setCommonInstanceMetadataCallablein classProjectsStub
-
setCommonInstanceMetadataOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetCommonInstanceMetadataProjectRequest,Operation,Operation> setCommonInstanceMetadataOperationCallable()
- Overrides:
setCommonInstanceMetadataOperationCallablein classProjectsStub
-
setDefaultNetworkTierCallable
public com.google.api.gax.rpc.UnaryCallable<SetDefaultNetworkTierProjectRequest,Operation> setDefaultNetworkTierCallable()
- Overrides:
setDefaultNetworkTierCallablein classProjectsStub
-
setDefaultNetworkTierOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetDefaultNetworkTierProjectRequest,Operation,Operation> setDefaultNetworkTierOperationCallable()
- Overrides:
setDefaultNetworkTierOperationCallablein classProjectsStub
-
setUsageExportBucketCallable
public com.google.api.gax.rpc.UnaryCallable<SetUsageExportBucketProjectRequest,Operation> setUsageExportBucketCallable()
- Overrides:
setUsageExportBucketCallablein classProjectsStub
-
setUsageExportBucketOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetUsageExportBucketProjectRequest,Operation,Operation> setUsageExportBucketOperationCallable()
- Overrides:
setUsageExportBucketOperationCallablein 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
-
-