Class HttpJsonBackupDRStub (0.3.0)

publicclass HttpJsonBackupDRStubextendsBackupDRStub

REST stub implementation for the BackupDR service API.

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

Inheritance

java.lang.Object > BackupDRStub > HttpJsonBackupDRStub

Inherited Members

Static Methods

create(ClientContext clientContext)

publicstaticfinalHttpJsonBackupDRStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonBackupDRStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

publicstaticfinalHttpJsonBackupDRStubcreate(ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonBackupDRStub
Exceptions
Type Description
IOException

create(BackupDRStubSettings settings)

publicstaticfinalHttpJsonBackupDRStubcreate(BackupDRStubSettingssettings)
Parameter
Name Description
settings BackupDRStubSettings
Returns
Type Description
HttpJsonBackupDRStub
Exceptions
Type Description
IOException

getMethodDescriptors()

publicstaticList<ApiMethodDescriptor>getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonBackupDRStub(BackupDRStubSettings settings, ClientContext clientContext)

protectedHttpJsonBackupDRStub(BackupDRStubSettingssettings,ClientContextclientContext)

Constructs an instance of HttpJsonBackupDRStub, 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
Name Description
settings BackupDRStubSettings
clientContext ClientContext

HttpJsonBackupDRStub(BackupDRStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protectedHttpJsonBackupDRStub(BackupDRStubSettingssettings,ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)

Constructs an instance of HttpJsonBackupDRStub, 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
Name Description
settings BackupDRStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

publicbooleanawaitTermination(longduration,TimeUnitunit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

publicfinalvoidclose()
Overrides

createManagementServerCallable()

publicUnaryCallable<CreateManagementServerRequest,Operation>createManagementServerCallable()
Returns
Type Description
UnaryCallable<CreateManagementServerRequest,Operation>
Overrides

createManagementServerOperationCallable()

publicOperationCallable<CreateManagementServerRequest,ManagementServer,OperationMetadata>createManagementServerOperationCallable()
Returns
Type Description
OperationCallable<CreateManagementServerRequest,ManagementServer,OperationMetadata>
Overrides

deleteManagementServerCallable()

publicUnaryCallable<DeleteManagementServerRequest,Operation>deleteManagementServerCallable()
Returns
Type Description
UnaryCallable<DeleteManagementServerRequest,Operation>
Overrides

deleteManagementServerOperationCallable()

publicOperationCallable<DeleteManagementServerRequest,Empty,OperationMetadata>deleteManagementServerOperationCallable()
Returns
Type Description
OperationCallable<DeleteManagementServerRequest,Empty,OperationMetadata>
Overrides

getHttpJsonOperationsStub()

publicHttpJsonOperationsStubgetHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getIamPolicyCallable()

publicUnaryCallable<GetIamPolicyRequest,Policy>getIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getLocationCallable()

publicUnaryCallable<GetLocationRequest,Location>getLocationCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getManagementServerCallable()

publicUnaryCallable<GetManagementServerRequest,ManagementServer>getManagementServerCallable()
Returns
Type Description
UnaryCallable<GetManagementServerRequest,ManagementServer>
Overrides

isShutdown()

publicbooleanisShutdown()
Returns
Type Description
boolean

isTerminated()

publicbooleanisTerminated()
Returns
Type Description
boolean

listLocationsCallable()

publicUnaryCallable<ListLocationsRequest,ListLocationsResponse>listLocationsCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

publicUnaryCallable<ListLocationsRequest,BackupDRClient.ListLocationsPagedResponse>listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listManagementServersCallable()

publicUnaryCallable<ListManagementServersRequest,ListManagementServersResponse>listManagementServersCallable()
Returns
Type Description
UnaryCallable<ListManagementServersRequest,ListManagementServersResponse>
Overrides

listManagementServersPagedCallable()

publicUnaryCallable<ListManagementServersRequest,BackupDRClient.ListManagementServersPagedResponse>listManagementServersPagedCallable()
Returns
Type Description
UnaryCallable<ListManagementServersRequest,ListManagementServersPagedResponse>
Overrides

setIamPolicyCallable()

publicUnaryCallable<SetIamPolicyRequest,Policy>setIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

publicvoidshutdown()

shutdownNow()

publicvoidshutdownNow()

testIamPermissionsCallable()

publicUnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse>testIamPermissionsCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.