Class HttpJsonProjectsStub (1.9.1)

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

disableXpnHostCallable()

public UnaryCallable<DisableXpnHostProjectRequest,Operation> disableXpnHostCallable()
Returns
TypeDescription
UnaryCallable<DisableXpnHostProjectRequest,Operation>
Overrides

disableXpnHostOperationCallable()

public OperationCallable<DisableXpnHostProjectRequest,Operation,Operation> disableXpnHostOperationCallable()
Returns
TypeDescription
OperationCallable<DisableXpnHostProjectRequest,Operation,Operation>
Overrides

disableXpnResourceCallable()

public UnaryCallable<DisableXpnResourceProjectRequest,Operation> disableXpnResourceCallable()
Returns
TypeDescription
UnaryCallable<DisableXpnResourceProjectRequest,Operation>
Overrides

disableXpnResourceOperationCallable()

public OperationCallable<DisableXpnResourceProjectRequest,Operation,Operation> disableXpnResourceOperationCallable()
Returns
TypeDescription
OperationCallable<DisableXpnResourceProjectRequest,Operation,Operation>
Overrides

enableXpnHostCallable()

public UnaryCallable<EnableXpnHostProjectRequest,Operation> enableXpnHostCallable()
Returns
TypeDescription
UnaryCallable<EnableXpnHostProjectRequest,Operation>
Overrides

enableXpnHostOperationCallable()

public OperationCallable<EnableXpnHostProjectRequest,Operation,Operation> enableXpnHostOperationCallable()
Returns
TypeDescription
OperationCallable<EnableXpnHostProjectRequest,Operation,Operation>
Overrides

enableXpnResourceCallable()

public UnaryCallable<EnableXpnResourceProjectRequest,Operation> enableXpnResourceCallable()
Returns
TypeDescription
UnaryCallable<EnableXpnResourceProjectRequest,Operation>
Overrides

enableXpnResourceOperationCallable()

public OperationCallable<EnableXpnResourceProjectRequest,Operation,Operation> enableXpnResourceOperationCallable()
Returns
TypeDescription
OperationCallable<EnableXpnResourceProjectRequest,Operation,Operation>
Overrides

getCallable()

public UnaryCallable<GetProjectRequest,Project> getCallable()
Returns
TypeDescription
UnaryCallable<GetProjectRequest,Project>
Overrides

getXpnHostCallable()

public UnaryCallable<GetXpnHostProjectRequest,Project> getXpnHostCallable()
Returns
TypeDescription
UnaryCallable<GetXpnHostProjectRequest,Project>
Overrides

getXpnResourcesCallable()

public UnaryCallable<GetXpnResourcesProjectsRequest,ProjectsGetXpnResources> getXpnResourcesCallable()
Returns
TypeDescription
UnaryCallable<GetXpnResourcesProjectsRequest,ProjectsGetXpnResources>
Overrides

getXpnResourcesPagedCallable()

public UnaryCallable<GetXpnResourcesProjectsRequest,ProjectsClient.GetXpnResourcesPagedResponse> getXpnResourcesPagedCallable()
Returns
TypeDescription
UnaryCallable<GetXpnResourcesProjectsRequest,GetXpnResourcesPagedResponse>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listXpnHostsCallable()

public UnaryCallable<ListXpnHostsProjectsRequest,XpnHostList> listXpnHostsCallable()
Returns
TypeDescription
UnaryCallable<ListXpnHostsProjectsRequest,XpnHostList>
Overrides

listXpnHostsPagedCallable()

public UnaryCallable<ListXpnHostsProjectsRequest,ProjectsClient.ListXpnHostsPagedResponse> listXpnHostsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListXpnHostsProjectsRequest,ListXpnHostsPagedResponse>
Overrides

moveDiskCallable()

public UnaryCallable<MoveDiskProjectRequest,Operation> moveDiskCallable()
Returns
TypeDescription
UnaryCallable<MoveDiskProjectRequest,Operation>
Overrides

moveDiskOperationCallable()

public OperationCallable<MoveDiskProjectRequest,Operation,Operation> moveDiskOperationCallable()
Returns
TypeDescription
OperationCallable<MoveDiskProjectRequest,Operation,Operation>
Overrides

moveInstanceCallable()

public UnaryCallable<MoveInstanceProjectRequest,Operation> moveInstanceCallable()
Returns
TypeDescription
UnaryCallable<MoveInstanceProjectRequest,Operation>
Overrides

moveInstanceOperationCallable()

public OperationCallable<MoveInstanceProjectRequest,Operation,Operation> moveInstanceOperationCallable()
Returns
TypeDescription
OperationCallable<MoveInstanceProjectRequest,Operation,Operation>
Overrides

setCommonInstanceMetadataCallable()

public UnaryCallable<SetCommonInstanceMetadataProjectRequest,Operation> setCommonInstanceMetadataCallable()
Returns
TypeDescription
UnaryCallable<SetCommonInstanceMetadataProjectRequest,Operation>
Overrides

setCommonInstanceMetadataOperationCallable()

public OperationCallable<SetCommonInstanceMetadataProjectRequest,Operation,Operation> setCommonInstanceMetadataOperationCallable()
Returns
TypeDescription
OperationCallable<SetCommonInstanceMetadataProjectRequest,Operation,Operation>
Overrides

setDefaultNetworkTierCallable()

public UnaryCallable<SetDefaultNetworkTierProjectRequest,Operation> setDefaultNetworkTierCallable()
Returns
TypeDescription
UnaryCallable<SetDefaultNetworkTierProjectRequest,Operation>
Overrides

setDefaultNetworkTierOperationCallable()

public OperationCallable<SetDefaultNetworkTierProjectRequest,Operation,Operation> setDefaultNetworkTierOperationCallable()
Returns
TypeDescription
OperationCallable<SetDefaultNetworkTierProjectRequest,Operation,Operation>
Overrides

setUsageExportBucketCallable()

public UnaryCallable<SetUsageExportBucketProjectRequest,Operation> setUsageExportBucketCallable()
Returns
TypeDescription
UnaryCallable<SetUsageExportBucketProjectRequest,Operation>
Overrides

setUsageExportBucketOperationCallable()

public OperationCallable<SetUsageExportBucketProjectRequest,Operation,Operation> setUsageExportBucketOperationCallable()
Returns
TypeDescription
OperationCallable<SetUsageExportBucketProjectRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()