Class HttpJsonBackupForGKEStub (0.34.0)

public class HttpJsonBackupForGKEStub extends BackupForGKEStub

REST stub implementation for the BackupForGKE service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > BackupForGKEStub > HttpJsonBackupForGKEStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonBackupForGKEStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonBackupForGKEStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonBackupForGKEStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonBackupForGKEStub
Exceptions
TypeDescription
IOException

create(BackupForGKEStubSettings settings)

public static final HttpJsonBackupForGKEStub create(BackupForGKEStubSettings settings)
Parameter
NameDescription
settingsBackupForGKEStubSettings
Returns
TypeDescription
HttpJsonBackupForGKEStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonBackupForGKEStub(BackupForGKEStubSettings settings, ClientContext clientContext)

protected HttpJsonBackupForGKEStub(BackupForGKEStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonBackupForGKEStub, 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
settingsBackupForGKEStubSettings
clientContextClientContext

HttpJsonBackupForGKEStub(BackupForGKEStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonBackupForGKEStub(BackupForGKEStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonBackupForGKEStub, 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
settingsBackupForGKEStubSettings
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

createBackupCallable()

public UnaryCallable<CreateBackupRequest,Operation> createBackupCallable()
Returns
TypeDescription
UnaryCallable<CreateBackupRequest,Operation>
Overrides

createBackupOperationCallable()

public OperationCallable<CreateBackupRequest,Backup,OperationMetadata> createBackupOperationCallable()
Returns
TypeDescription
OperationCallable<CreateBackupRequest,Backup,OperationMetadata>
Overrides

createBackupPlanCallable()

public UnaryCallable<CreateBackupPlanRequest,Operation> createBackupPlanCallable()
Returns
TypeDescription
UnaryCallable<CreateBackupPlanRequest,Operation>
Overrides

createBackupPlanOperationCallable()

public OperationCallable<CreateBackupPlanRequest,BackupPlan,OperationMetadata> createBackupPlanOperationCallable()
Returns
TypeDescription
OperationCallable<CreateBackupPlanRequest,BackupPlan,OperationMetadata>
Overrides

createRestoreCallable()

public UnaryCallable<CreateRestoreRequest,Operation> createRestoreCallable()
Returns
TypeDescription
UnaryCallable<CreateRestoreRequest,Operation>
Overrides

createRestoreOperationCallable()

public OperationCallable<CreateRestoreRequest,Restore,OperationMetadata> createRestoreOperationCallable()
Returns
TypeDescription
OperationCallable<CreateRestoreRequest,Restore,OperationMetadata>
Overrides

createRestorePlanCallable()

public UnaryCallable<CreateRestorePlanRequest,Operation> createRestorePlanCallable()
Returns
TypeDescription
UnaryCallable<CreateRestorePlanRequest,Operation>
Overrides

createRestorePlanOperationCallable()

public OperationCallable<CreateRestorePlanRequest,RestorePlan,OperationMetadata> createRestorePlanOperationCallable()
Returns
TypeDescription
OperationCallable<CreateRestorePlanRequest,RestorePlan,OperationMetadata>
Overrides

deleteBackupCallable()

public UnaryCallable<DeleteBackupRequest,Operation> deleteBackupCallable()
Returns
TypeDescription
UnaryCallable<DeleteBackupRequest,Operation>
Overrides

deleteBackupOperationCallable()

public OperationCallable<DeleteBackupRequest,Empty,OperationMetadata> deleteBackupOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteBackupRequest,Empty,OperationMetadata>
Overrides

deleteBackupPlanCallable()

public UnaryCallable<DeleteBackupPlanRequest,Operation> deleteBackupPlanCallable()
Returns
TypeDescription
UnaryCallable<DeleteBackupPlanRequest,Operation>
Overrides

deleteBackupPlanOperationCallable()

public OperationCallable<DeleteBackupPlanRequest,Empty,OperationMetadata> deleteBackupPlanOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteBackupPlanRequest,Empty,OperationMetadata>
Overrides

deleteRestoreCallable()

public UnaryCallable<DeleteRestoreRequest,Operation> deleteRestoreCallable()
Returns
TypeDescription
UnaryCallable<DeleteRestoreRequest,Operation>
Overrides

deleteRestoreOperationCallable()

public OperationCallable<DeleteRestoreRequest,Empty,OperationMetadata> deleteRestoreOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteRestoreRequest,Empty,OperationMetadata>
Overrides

deleteRestorePlanCallable()

public UnaryCallable<DeleteRestorePlanRequest,Operation> deleteRestorePlanCallable()
Returns
TypeDescription
UnaryCallable<DeleteRestorePlanRequest,Operation>
Overrides

deleteRestorePlanOperationCallable()

public OperationCallable<DeleteRestorePlanRequest,Empty,OperationMetadata> deleteRestorePlanOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteRestorePlanRequest,Empty,OperationMetadata>
Overrides

getBackupCallable()

public UnaryCallable<GetBackupRequest,Backup> getBackupCallable()
Returns
TypeDescription
UnaryCallable<GetBackupRequest,Backup>
Overrides

getBackupPlanCallable()

public UnaryCallable<GetBackupPlanRequest,BackupPlan> getBackupPlanCallable()
Returns
TypeDescription
UnaryCallable<GetBackupPlanRequest,BackupPlan>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getRestoreCallable()

public UnaryCallable<GetRestoreRequest,Restore> getRestoreCallable()
Returns
TypeDescription
UnaryCallable<GetRestoreRequest,Restore>
Overrides

getRestorePlanCallable()

public UnaryCallable<GetRestorePlanRequest,RestorePlan> getRestorePlanCallable()
Returns
TypeDescription
UnaryCallable<GetRestorePlanRequest,RestorePlan>
Overrides

getVolumeBackupCallable()

public UnaryCallable<GetVolumeBackupRequest,VolumeBackup> getVolumeBackupCallable()
Returns
TypeDescription
UnaryCallable<GetVolumeBackupRequest,VolumeBackup>
Overrides

getVolumeRestoreCallable()

public UnaryCallable<GetVolumeRestoreRequest,VolumeRestore> getVolumeRestoreCallable()
Returns
TypeDescription
UnaryCallable<GetVolumeRestoreRequest,VolumeRestore>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listBackupPlansCallable()

public UnaryCallable<ListBackupPlansRequest,ListBackupPlansResponse> listBackupPlansCallable()
Returns
TypeDescription
UnaryCallable<ListBackupPlansRequest,ListBackupPlansResponse>
Overrides

listBackupPlansPagedCallable()

public UnaryCallable<ListBackupPlansRequest,BackupForGKEClient.ListBackupPlansPagedResponse> listBackupPlansPagedCallable()
Returns
TypeDescription
UnaryCallable<ListBackupPlansRequest,ListBackupPlansPagedResponse>
Overrides

listBackupsCallable()

public UnaryCallable<ListBackupsRequest,ListBackupsResponse> listBackupsCallable()
Returns
TypeDescription
UnaryCallable<ListBackupsRequest,ListBackupsResponse>
Overrides

listBackupsPagedCallable()

public UnaryCallable<ListBackupsRequest,BackupForGKEClient.ListBackupsPagedResponse> listBackupsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListBackupsRequest,ListBackupsPagedResponse>
Overrides

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,BackupForGKEClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listRestorePlansCallable()

public UnaryCallable<ListRestorePlansRequest,ListRestorePlansResponse> listRestorePlansCallable()
Returns
TypeDescription
UnaryCallable<ListRestorePlansRequest,ListRestorePlansResponse>
Overrides

listRestorePlansPagedCallable()

public UnaryCallable<ListRestorePlansRequest,BackupForGKEClient.ListRestorePlansPagedResponse> listRestorePlansPagedCallable()
Returns
TypeDescription
UnaryCallable<ListRestorePlansRequest,ListRestorePlansPagedResponse>
Overrides

listRestoresCallable()

public UnaryCallable<ListRestoresRequest,ListRestoresResponse> listRestoresCallable()
Returns
TypeDescription
UnaryCallable<ListRestoresRequest,ListRestoresResponse>
Overrides

listRestoresPagedCallable()

public UnaryCallable<ListRestoresRequest,BackupForGKEClient.ListRestoresPagedResponse> listRestoresPagedCallable()
Returns
TypeDescription
UnaryCallable<ListRestoresRequest,ListRestoresPagedResponse>
Overrides

listVolumeBackupsCallable()

public UnaryCallable<ListVolumeBackupsRequest,ListVolumeBackupsResponse> listVolumeBackupsCallable()
Returns
TypeDescription
UnaryCallable<ListVolumeBackupsRequest,ListVolumeBackupsResponse>
Overrides

listVolumeBackupsPagedCallable()

public UnaryCallable<ListVolumeBackupsRequest,BackupForGKEClient.ListVolumeBackupsPagedResponse> listVolumeBackupsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListVolumeBackupsRequest,ListVolumeBackupsPagedResponse>
Overrides

listVolumeRestoresCallable()

public UnaryCallable<ListVolumeRestoresRequest,ListVolumeRestoresResponse> listVolumeRestoresCallable()
Returns
TypeDescription
UnaryCallable<ListVolumeRestoresRequest,ListVolumeRestoresResponse>
Overrides

listVolumeRestoresPagedCallable()

public UnaryCallable<ListVolumeRestoresRequest,BackupForGKEClient.ListVolumeRestoresPagedResponse> listVolumeRestoresPagedCallable()
Returns
TypeDescription
UnaryCallable<ListVolumeRestoresRequest,ListVolumeRestoresPagedResponse>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateBackupCallable()

public UnaryCallable<UpdateBackupRequest,Operation> updateBackupCallable()
Returns
TypeDescription
UnaryCallable<UpdateBackupRequest,Operation>
Overrides

updateBackupOperationCallable()

public OperationCallable<UpdateBackupRequest,Backup,OperationMetadata> updateBackupOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateBackupRequest,Backup,OperationMetadata>
Overrides

updateBackupPlanCallable()

public UnaryCallable<UpdateBackupPlanRequest,Operation> updateBackupPlanCallable()
Returns
TypeDescription
UnaryCallable<UpdateBackupPlanRequest,Operation>
Overrides

updateBackupPlanOperationCallable()

public OperationCallable<UpdateBackupPlanRequest,BackupPlan,OperationMetadata> updateBackupPlanOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateBackupPlanRequest,BackupPlan,OperationMetadata>
Overrides

updateRestoreCallable()

public UnaryCallable<UpdateRestoreRequest,Operation> updateRestoreCallable()
Returns
TypeDescription
UnaryCallable<UpdateRestoreRequest,Operation>
Overrides

updateRestoreOperationCallable()

public OperationCallable<UpdateRestoreRequest,Restore,OperationMetadata> updateRestoreOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateRestoreRequest,Restore,OperationMetadata>
Overrides

updateRestorePlanCallable()

public UnaryCallable<UpdateRestorePlanRequest,Operation> updateRestorePlanCallable()
Returns
TypeDescription
UnaryCallable<UpdateRestorePlanRequest,Operation>
Overrides

updateRestorePlanOperationCallable()

public OperationCallable<UpdateRestorePlanRequest,RestorePlan,OperationMetadata> updateRestorePlanOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateRestorePlanRequest,RestorePlan,OperationMetadata>
Overrides