Class HttpJsonAppHubStub (0.1.0)

public class HttpJsonAppHubStub extends AppHubStub

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

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(AppHubStubSettings settings)

public static final HttpJsonAppHubStub create(AppHubStubSettings settings)
Parameter
NameDescription
settingsAppHubStubSettings
Returns
TypeDescription
HttpJsonAppHubStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonAppHubStub(AppHubStubSettings settings, ClientContext clientContext)

protected HttpJsonAppHubStub(AppHubStubSettings settings, ClientContext clientContext)

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
NameDescription
settingsAppHubStubSettings
clientContextClientContext

HttpJsonAppHubStub(AppHubStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonAppHubStub(AppHubStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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
NameDescription
settingsAppHubStubSettings
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

createApplicationCallable()

public UnaryCallable<CreateApplicationRequest,Operation> createApplicationCallable()
Returns
TypeDescription
UnaryCallable<CreateApplicationRequest,Operation>
Overrides

createApplicationOperationCallable()

public OperationCallable<CreateApplicationRequest,Application,OperationMetadata> createApplicationOperationCallable()
Returns
TypeDescription
OperationCallable<CreateApplicationRequest,Application,OperationMetadata>
Overrides

createServiceCallable()

public UnaryCallable<CreateServiceRequest,Operation> createServiceCallable()
Returns
TypeDescription
UnaryCallable<CreateServiceRequest,Operation>
Overrides

createServiceOperationCallable()

public OperationCallable<CreateServiceRequest,Service,OperationMetadata> createServiceOperationCallable()
Returns
TypeDescription
OperationCallable<CreateServiceRequest,Service,OperationMetadata>
Overrides

createServiceProjectAttachmentCallable()

public UnaryCallable<CreateServiceProjectAttachmentRequest,Operation> createServiceProjectAttachmentCallable()
Returns
TypeDescription
UnaryCallable<CreateServiceProjectAttachmentRequest,Operation>
Overrides

createServiceProjectAttachmentOperationCallable()

public OperationCallable<CreateServiceProjectAttachmentRequest,ServiceProjectAttachment,OperationMetadata> createServiceProjectAttachmentOperationCallable()
Returns
TypeDescription
OperationCallable<CreateServiceProjectAttachmentRequest,ServiceProjectAttachment,OperationMetadata>
Overrides

createWorkloadCallable()

public UnaryCallable<CreateWorkloadRequest,Operation> createWorkloadCallable()
Returns
TypeDescription
UnaryCallable<CreateWorkloadRequest,Operation>
Overrides

createWorkloadOperationCallable()

public OperationCallable<CreateWorkloadRequest,Workload,OperationMetadata> createWorkloadOperationCallable()
Returns
TypeDescription
OperationCallable<CreateWorkloadRequest,Workload,OperationMetadata>
Overrides

deleteApplicationCallable()

public UnaryCallable<DeleteApplicationRequest,Operation> deleteApplicationCallable()
Returns
TypeDescription
UnaryCallable<DeleteApplicationRequest,Operation>
Overrides

deleteApplicationOperationCallable()

public OperationCallable<DeleteApplicationRequest,Empty,OperationMetadata> deleteApplicationOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteApplicationRequest,Empty,OperationMetadata>
Overrides

deleteServiceCallable()

public UnaryCallable<DeleteServiceRequest,Operation> deleteServiceCallable()
Returns
TypeDescription
UnaryCallable<DeleteServiceRequest,Operation>
Overrides

deleteServiceOperationCallable()

public OperationCallable<DeleteServiceRequest,Empty,OperationMetadata> deleteServiceOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteServiceRequest,Empty,OperationMetadata>
Overrides

deleteServiceProjectAttachmentCallable()

public UnaryCallable<DeleteServiceProjectAttachmentRequest,Operation> deleteServiceProjectAttachmentCallable()
Returns
TypeDescription
UnaryCallable<DeleteServiceProjectAttachmentRequest,Operation>
Overrides

deleteServiceProjectAttachmentOperationCallable()

public OperationCallable<DeleteServiceProjectAttachmentRequest,Empty,OperationMetadata> deleteServiceProjectAttachmentOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteServiceProjectAttachmentRequest,Empty,OperationMetadata>
Overrides

deleteWorkloadCallable()

public UnaryCallable<DeleteWorkloadRequest,Operation> deleteWorkloadCallable()
Returns
TypeDescription
UnaryCallable<DeleteWorkloadRequest,Operation>
Overrides

deleteWorkloadOperationCallable()

public OperationCallable<DeleteWorkloadRequest,Empty,OperationMetadata> deleteWorkloadOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteWorkloadRequest,Empty,OperationMetadata>
Overrides

detachServiceProjectAttachmentCallable()

public UnaryCallable<DetachServiceProjectAttachmentRequest,DetachServiceProjectAttachmentResponse> detachServiceProjectAttachmentCallable()
Returns
TypeDescription
UnaryCallable<DetachServiceProjectAttachmentRequest,DetachServiceProjectAttachmentResponse>
Overrides

getApplicationCallable()

public UnaryCallable<GetApplicationRequest,Application> getApplicationCallable()
Returns
TypeDescription
UnaryCallable<GetApplicationRequest,Application>
Overrides

getDiscoveredServiceCallable()

public UnaryCallable<GetDiscoveredServiceRequest,DiscoveredService> getDiscoveredServiceCallable()
Returns
TypeDescription
UnaryCallable<GetDiscoveredServiceRequest,DiscoveredService>
Overrides

getDiscoveredWorkloadCallable()

public UnaryCallable<GetDiscoveredWorkloadRequest,DiscoveredWorkload> getDiscoveredWorkloadCallable()
Returns
TypeDescription
UnaryCallable<GetDiscoveredWorkloadRequest,DiscoveredWorkload>
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

getServiceCallable()

public UnaryCallable<GetServiceRequest,Service> getServiceCallable()
Returns
TypeDescription
UnaryCallable<GetServiceRequest,Service>
Overrides

getServiceProjectAttachmentCallable()

public UnaryCallable<GetServiceProjectAttachmentRequest,ServiceProjectAttachment> getServiceProjectAttachmentCallable()
Returns
TypeDescription
UnaryCallable<GetServiceProjectAttachmentRequest,ServiceProjectAttachment>
Overrides

getWorkloadCallable()

public UnaryCallable<GetWorkloadRequest,Workload> getWorkloadCallable()
Returns
TypeDescription
UnaryCallable<GetWorkloadRequest,Workload>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listApplicationsCallable()

public UnaryCallable<ListApplicationsRequest,ListApplicationsResponse> listApplicationsCallable()
Returns
TypeDescription
UnaryCallable<ListApplicationsRequest,ListApplicationsResponse>
Overrides

listApplicationsPagedCallable()

public UnaryCallable<ListApplicationsRequest,AppHubClient.ListApplicationsPagedResponse> listApplicationsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListApplicationsRequest,ListApplicationsPagedResponse>
Overrides

listDiscoveredServicesCallable()

public UnaryCallable<ListDiscoveredServicesRequest,ListDiscoveredServicesResponse> listDiscoveredServicesCallable()
Returns
TypeDescription
UnaryCallable<ListDiscoveredServicesRequest,ListDiscoveredServicesResponse>
Overrides

listDiscoveredServicesPagedCallable()

public UnaryCallable<ListDiscoveredServicesRequest,AppHubClient.ListDiscoveredServicesPagedResponse> listDiscoveredServicesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListDiscoveredServicesRequest,ListDiscoveredServicesPagedResponse>
Overrides

listDiscoveredWorkloadsCallable()

public UnaryCallable<ListDiscoveredWorkloadsRequest,ListDiscoveredWorkloadsResponse> listDiscoveredWorkloadsCallable()
Returns
TypeDescription
UnaryCallable<ListDiscoveredWorkloadsRequest,ListDiscoveredWorkloadsResponse>
Overrides

listDiscoveredWorkloadsPagedCallable()

public UnaryCallable<ListDiscoveredWorkloadsRequest,AppHubClient.ListDiscoveredWorkloadsPagedResponse> listDiscoveredWorkloadsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListDiscoveredWorkloadsRequest,ListDiscoveredWorkloadsPagedResponse>
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,AppHubClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listServiceProjectAttachmentsCallable()

public UnaryCallable<ListServiceProjectAttachmentsRequest,ListServiceProjectAttachmentsResponse> listServiceProjectAttachmentsCallable()
Returns
TypeDescription
UnaryCallable<ListServiceProjectAttachmentsRequest,ListServiceProjectAttachmentsResponse>
Overrides

listServiceProjectAttachmentsPagedCallable()

public UnaryCallable<ListServiceProjectAttachmentsRequest,AppHubClient.ListServiceProjectAttachmentsPagedResponse> listServiceProjectAttachmentsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListServiceProjectAttachmentsRequest,ListServiceProjectAttachmentsPagedResponse>
Overrides

listServicesCallable()

public UnaryCallable<ListServicesRequest,ListServicesResponse> listServicesCallable()
Returns
TypeDescription
UnaryCallable<ListServicesRequest,ListServicesResponse>
Overrides

listServicesPagedCallable()

public UnaryCallable<ListServicesRequest,AppHubClient.ListServicesPagedResponse> listServicesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListServicesRequest,ListServicesPagedResponse>
Overrides

listWorkloadsCallable()

public UnaryCallable<ListWorkloadsRequest,ListWorkloadsResponse> listWorkloadsCallable()
Returns
TypeDescription
UnaryCallable<ListWorkloadsRequest,ListWorkloadsResponse>
Overrides

listWorkloadsPagedCallable()

public UnaryCallable<ListWorkloadsRequest,AppHubClient.ListWorkloadsPagedResponse> listWorkloadsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListWorkloadsRequest,ListWorkloadsPagedResponse>
Overrides

lookupDiscoveredServiceCallable()

public UnaryCallable<LookupDiscoveredServiceRequest,LookupDiscoveredServiceResponse> lookupDiscoveredServiceCallable()
Returns
TypeDescription
UnaryCallable<LookupDiscoveredServiceRequest,LookupDiscoveredServiceResponse>
Overrides

lookupDiscoveredWorkloadCallable()

public UnaryCallable<LookupDiscoveredWorkloadRequest,LookupDiscoveredWorkloadResponse> lookupDiscoveredWorkloadCallable()
Returns
TypeDescription
UnaryCallable<LookupDiscoveredWorkloadRequest,LookupDiscoveredWorkloadResponse>
Overrides

lookupServiceProjectAttachmentCallable()

public UnaryCallable<LookupServiceProjectAttachmentRequest,LookupServiceProjectAttachmentResponse> lookupServiceProjectAttachmentCallable()
Returns
TypeDescription
UnaryCallable<LookupServiceProjectAttachmentRequest,LookupServiceProjectAttachmentResponse>
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

updateApplicationCallable()

public UnaryCallable<UpdateApplicationRequest,Operation> updateApplicationCallable()
Returns
TypeDescription
UnaryCallable<UpdateApplicationRequest,Operation>
Overrides

updateApplicationOperationCallable()

public OperationCallable<UpdateApplicationRequest,Application,OperationMetadata> updateApplicationOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateApplicationRequest,Application,OperationMetadata>
Overrides

updateServiceCallable()

public UnaryCallable<UpdateServiceRequest,Operation> updateServiceCallable()
Returns
TypeDescription
UnaryCallable<UpdateServiceRequest,Operation>
Overrides

updateServiceOperationCallable()

public OperationCallable<UpdateServiceRequest,Service,OperationMetadata> updateServiceOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateServiceRequest,Service,OperationMetadata>
Overrides

updateWorkloadCallable()

public UnaryCallable<UpdateWorkloadRequest,Operation> updateWorkloadCallable()
Returns
TypeDescription
UnaryCallable<UpdateWorkloadRequest,Operation>
Overrides

updateWorkloadOperationCallable()

public OperationCallable<UpdateWorkloadRequest,Workload,OperationMetadata> updateWorkloadOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateWorkloadRequest,Workload,OperationMetadata>
Overrides