Class HttpJsonAppHubStub (0.1.0)

publicclass HttpJsonAppHubStubextendsAppHubStub

REST stub implementation for the AppHub service API.

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

Inheritance

java.lang.Object > AppHubStub > HttpJsonAppHubStub

Inherited Members

Static Methods

create(ClientContext clientContext)

publicstaticfinalHttpJsonAppHubStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonAppHubStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(AppHubStubSettings settings)

publicstaticfinalHttpJsonAppHubStubcreate(AppHubStubSettingssettings)
Parameter
Name Description
settings AppHubStubSettings
Returns
Type Description
HttpJsonAppHubStub
Exceptions
Type Description
IOException

getMethodDescriptors()

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

Constructors

HttpJsonAppHubStub(AppHubStubSettings settings, ClientContext clientContext)

protectedHttpJsonAppHubStub(AppHubStubSettingssettings,ClientContextclientContext)

Constructs an instance of HttpJsonAppHubStub, 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 AppHubStubSettings
clientContext ClientContext

HttpJsonAppHubStub(AppHubStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protectedHttpJsonAppHubStub(AppHubStubSettingssettings,ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)

Constructs an instance of HttpJsonAppHubStub, 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 AppHubStubSettings
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

createApplicationCallable()

publicUnaryCallable<CreateApplicationRequest,Operation>createApplicationCallable()
Returns
Type Description
UnaryCallable<CreateApplicationRequest,Operation>
Overrides

createApplicationOperationCallable()

publicOperationCallable<CreateApplicationRequest,Application,OperationMetadata>createApplicationOperationCallable()
Returns
Type Description
OperationCallable<CreateApplicationRequest,Application,OperationMetadata>
Overrides

createServiceCallable()

publicUnaryCallable<CreateServiceRequest,Operation>createServiceCallable()
Returns
Type Description
UnaryCallable<CreateServiceRequest,Operation>
Overrides

createServiceOperationCallable()

publicOperationCallable<CreateServiceRequest,Service,OperationMetadata>createServiceOperationCallable()
Returns
Type Description
OperationCallable<CreateServiceRequest,Service,OperationMetadata>
Overrides

createServiceProjectAttachmentCallable()

publicUnaryCallable<CreateServiceProjectAttachmentRequest,Operation>createServiceProjectAttachmentCallable()
Returns
Type Description
UnaryCallable<CreateServiceProjectAttachmentRequest,Operation>
Overrides

createServiceProjectAttachmentOperationCallable()

publicOperationCallable<CreateServiceProjectAttachmentRequest,ServiceProjectAttachment,OperationMetadata>createServiceProjectAttachmentOperationCallable()
Returns
Type Description
OperationCallable<CreateServiceProjectAttachmentRequest,ServiceProjectAttachment,OperationMetadata>
Overrides

createWorkloadCallable()

publicUnaryCallable<CreateWorkloadRequest,Operation>createWorkloadCallable()
Returns
Type Description
UnaryCallable<CreateWorkloadRequest,Operation>
Overrides

createWorkloadOperationCallable()

publicOperationCallable<CreateWorkloadRequest,Workload,OperationMetadata>createWorkloadOperationCallable()
Returns
Type Description
OperationCallable<CreateWorkloadRequest,Workload,OperationMetadata>
Overrides

deleteApplicationCallable()

publicUnaryCallable<DeleteApplicationRequest,Operation>deleteApplicationCallable()
Returns
Type Description
UnaryCallable<DeleteApplicationRequest,Operation>
Overrides

deleteApplicationOperationCallable()

publicOperationCallable<DeleteApplicationRequest,Empty,OperationMetadata>deleteApplicationOperationCallable()
Returns
Type Description
OperationCallable<DeleteApplicationRequest,Empty,OperationMetadata>
Overrides

deleteServiceCallable()

publicUnaryCallable<DeleteServiceRequest,Operation>deleteServiceCallable()
Returns
Type Description
UnaryCallable<DeleteServiceRequest,Operation>
Overrides

deleteServiceOperationCallable()

publicOperationCallable<DeleteServiceRequest,Empty,OperationMetadata>deleteServiceOperationCallable()
Returns
Type Description
OperationCallable<DeleteServiceRequest,Empty,OperationMetadata>
Overrides

deleteServiceProjectAttachmentCallable()

publicUnaryCallable<DeleteServiceProjectAttachmentRequest,Operation>deleteServiceProjectAttachmentCallable()
Returns
Type Description
UnaryCallable<DeleteServiceProjectAttachmentRequest,Operation>
Overrides

deleteServiceProjectAttachmentOperationCallable()

publicOperationCallable<DeleteServiceProjectAttachmentRequest,Empty,OperationMetadata>deleteServiceProjectAttachmentOperationCallable()
Returns
Type Description
OperationCallable<DeleteServiceProjectAttachmentRequest,Empty,OperationMetadata>
Overrides

deleteWorkloadCallable()

publicUnaryCallable<DeleteWorkloadRequest,Operation>deleteWorkloadCallable()
Returns
Type Description
UnaryCallable<DeleteWorkloadRequest,Operation>
Overrides

deleteWorkloadOperationCallable()

publicOperationCallable<DeleteWorkloadRequest,Empty,OperationMetadata>deleteWorkloadOperationCallable()
Returns
Type Description
OperationCallable<DeleteWorkloadRequest,Empty,OperationMetadata>
Overrides

detachServiceProjectAttachmentCallable()

publicUnaryCallable<DetachServiceProjectAttachmentRequest,DetachServiceProjectAttachmentResponse>detachServiceProjectAttachmentCallable()
Returns
Type Description
UnaryCallable<DetachServiceProjectAttachmentRequest,DetachServiceProjectAttachmentResponse>
Overrides

getApplicationCallable()

publicUnaryCallable<GetApplicationRequest,Application>getApplicationCallable()
Returns
Type Description
UnaryCallable<GetApplicationRequest,Application>
Overrides

getDiscoveredServiceCallable()

publicUnaryCallable<GetDiscoveredServiceRequest,DiscoveredService>getDiscoveredServiceCallable()
Returns
Type Description
UnaryCallable<GetDiscoveredServiceRequest,DiscoveredService>
Overrides

getDiscoveredWorkloadCallable()

publicUnaryCallable<GetDiscoveredWorkloadRequest,DiscoveredWorkload>getDiscoveredWorkloadCallable()
Returns
Type Description
UnaryCallable<GetDiscoveredWorkloadRequest,DiscoveredWorkload>
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

getServiceCallable()

publicUnaryCallable<GetServiceRequest,Service>getServiceCallable()
Returns
Type Description
UnaryCallable<GetServiceRequest,Service>
Overrides

getServiceProjectAttachmentCallable()

publicUnaryCallable<GetServiceProjectAttachmentRequest,ServiceProjectAttachment>getServiceProjectAttachmentCallable()
Returns
Type Description
UnaryCallable<GetServiceProjectAttachmentRequest,ServiceProjectAttachment>
Overrides

getWorkloadCallable()

publicUnaryCallable<GetWorkloadRequest,Workload>getWorkloadCallable()
Returns
Type Description
UnaryCallable<GetWorkloadRequest,Workload>
Overrides

isShutdown()

publicbooleanisShutdown()
Returns
Type Description
boolean

isTerminated()

publicbooleanisTerminated()
Returns
Type Description
boolean

listApplicationsCallable()

publicUnaryCallable<ListApplicationsRequest,ListApplicationsResponse>listApplicationsCallable()
Returns
Type Description
UnaryCallable<ListApplicationsRequest,ListApplicationsResponse>
Overrides

listApplicationsPagedCallable()

publicUnaryCallable<ListApplicationsRequest,AppHubClient.ListApplicationsPagedResponse>listApplicationsPagedCallable()
Returns
Type Description
UnaryCallable<ListApplicationsRequest,ListApplicationsPagedResponse>
Overrides

listDiscoveredServicesCallable()

publicUnaryCallable<ListDiscoveredServicesRequest,ListDiscoveredServicesResponse>listDiscoveredServicesCallable()
Returns
Type Description
UnaryCallable<ListDiscoveredServicesRequest,ListDiscoveredServicesResponse>
Overrides

listDiscoveredServicesPagedCallable()

publicUnaryCallable<ListDiscoveredServicesRequest,AppHubClient.ListDiscoveredServicesPagedResponse>listDiscoveredServicesPagedCallable()
Returns
Type Description
UnaryCallable<ListDiscoveredServicesRequest,ListDiscoveredServicesPagedResponse>
Overrides

listDiscoveredWorkloadsCallable()

publicUnaryCallable<ListDiscoveredWorkloadsRequest,ListDiscoveredWorkloadsResponse>listDiscoveredWorkloadsCallable()
Returns
Type Description
UnaryCallable<ListDiscoveredWorkloadsRequest,ListDiscoveredWorkloadsResponse>
Overrides

listDiscoveredWorkloadsPagedCallable()

publicUnaryCallable<ListDiscoveredWorkloadsRequest,AppHubClient.ListDiscoveredWorkloadsPagedResponse>listDiscoveredWorkloadsPagedCallable()
Returns
Type Description
UnaryCallable<ListDiscoveredWorkloadsRequest,ListDiscoveredWorkloadsPagedResponse>
Overrides

listLocationsCallable()

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

listLocationsPagedCallable()

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

listServiceProjectAttachmentsCallable()

publicUnaryCallable<ListServiceProjectAttachmentsRequest,ListServiceProjectAttachmentsResponse>listServiceProjectAttachmentsCallable()
Returns
Type Description
UnaryCallable<ListServiceProjectAttachmentsRequest,ListServiceProjectAttachmentsResponse>
Overrides

listServiceProjectAttachmentsPagedCallable()

publicUnaryCallable<ListServiceProjectAttachmentsRequest,AppHubClient.ListServiceProjectAttachmentsPagedResponse>listServiceProjectAttachmentsPagedCallable()
Returns
Type Description
UnaryCallable<ListServiceProjectAttachmentsRequest,ListServiceProjectAttachmentsPagedResponse>
Overrides

listServicesCallable()

publicUnaryCallable<ListServicesRequest,ListServicesResponse>listServicesCallable()
Returns
Type Description
UnaryCallable<ListServicesRequest,ListServicesResponse>
Overrides

listServicesPagedCallable()

publicUnaryCallable<ListServicesRequest,AppHubClient.ListServicesPagedResponse>listServicesPagedCallable()
Returns
Type Description
UnaryCallable<ListServicesRequest,ListServicesPagedResponse>
Overrides

listWorkloadsCallable()

publicUnaryCallable<ListWorkloadsRequest,ListWorkloadsResponse>listWorkloadsCallable()
Returns
Type Description
UnaryCallable<ListWorkloadsRequest,ListWorkloadsResponse>
Overrides

listWorkloadsPagedCallable()

publicUnaryCallable<ListWorkloadsRequest,AppHubClient.ListWorkloadsPagedResponse>listWorkloadsPagedCallable()
Returns
Type Description
UnaryCallable<ListWorkloadsRequest,ListWorkloadsPagedResponse>
Overrides

lookupDiscoveredServiceCallable()

publicUnaryCallable<LookupDiscoveredServiceRequest,LookupDiscoveredServiceResponse>lookupDiscoveredServiceCallable()
Returns
Type Description
UnaryCallable<LookupDiscoveredServiceRequest,LookupDiscoveredServiceResponse>
Overrides

lookupDiscoveredWorkloadCallable()

publicUnaryCallable<LookupDiscoveredWorkloadRequest,LookupDiscoveredWorkloadResponse>lookupDiscoveredWorkloadCallable()
Returns
Type Description
UnaryCallable<LookupDiscoveredWorkloadRequest,LookupDiscoveredWorkloadResponse>
Overrides

lookupServiceProjectAttachmentCallable()

publicUnaryCallable<LookupServiceProjectAttachmentRequest,LookupServiceProjectAttachmentResponse>lookupServiceProjectAttachmentCallable()
Returns
Type Description
UnaryCallable<LookupServiceProjectAttachmentRequest,LookupServiceProjectAttachmentResponse>
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

updateApplicationCallable()

publicUnaryCallable<UpdateApplicationRequest,Operation>updateApplicationCallable()
Returns
Type Description
UnaryCallable<UpdateApplicationRequest,Operation>
Overrides

updateApplicationOperationCallable()

publicOperationCallable<UpdateApplicationRequest,Application,OperationMetadata>updateApplicationOperationCallable()
Returns
Type Description
OperationCallable<UpdateApplicationRequest,Application,OperationMetadata>
Overrides

updateServiceCallable()

publicUnaryCallable<UpdateServiceRequest,Operation>updateServiceCallable()
Returns
Type Description
UnaryCallable<UpdateServiceRequest,Operation>
Overrides

updateServiceOperationCallable()

publicOperationCallable<UpdateServiceRequest,Service,OperationMetadata>updateServiceOperationCallable()
Returns
Type Description
OperationCallable<UpdateServiceRequest,Service,OperationMetadata>
Overrides

updateWorkloadCallable()

publicUnaryCallable<UpdateWorkloadRequest,Operation>updateWorkloadCallable()
Returns
Type Description
UnaryCallable<UpdateWorkloadRequest,Operation>
Overrides

updateWorkloadOperationCallable()

publicOperationCallable<UpdateWorkloadRequest,Workload,OperationMetadata>updateWorkloadOperationCallable()
Returns
Type Description
OperationCallable<UpdateWorkloadRequest,Workload,OperationMetadata>
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.