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()
Overrides

createApplicationOperationCallable()

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

createServiceCallable()

public UnaryCallable<CreateServiceRequest,Operation> createServiceCallable()
Overrides

createServiceOperationCallable()

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

createServiceProjectAttachmentCallable()

public UnaryCallable<CreateServiceProjectAttachmentRequest,Operation> createServiceProjectAttachmentCallable()
Overrides

createServiceProjectAttachmentOperationCallable()

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

createWorkloadCallable()

public UnaryCallable<CreateWorkloadRequest,Operation> createWorkloadCallable()
Overrides

createWorkloadOperationCallable()

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

deleteApplicationCallable()

public UnaryCallable<DeleteApplicationRequest,Operation> deleteApplicationCallable()
Overrides

deleteApplicationOperationCallable()

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

deleteServiceCallable()

public UnaryCallable<DeleteServiceRequest,Operation> deleteServiceCallable()
Overrides

deleteServiceOperationCallable()

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

deleteServiceProjectAttachmentCallable()

public UnaryCallable<DeleteServiceProjectAttachmentRequest,Operation> deleteServiceProjectAttachmentCallable()
Overrides

deleteServiceProjectAttachmentOperationCallable()

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

deleteWorkloadCallable()

public UnaryCallable<DeleteWorkloadRequest,Operation> deleteWorkloadCallable()
Overrides

deleteWorkloadOperationCallable()

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

detachServiceProjectAttachmentCallable()

public UnaryCallable<DetachServiceProjectAttachmentRequest,DetachServiceProjectAttachmentResponse> detachServiceProjectAttachmentCallable()
Overrides

getApplicationCallable()

public UnaryCallable<GetApplicationRequest,Application> getApplicationCallable()
Overrides

getDiscoveredServiceCallable()

public UnaryCallable<GetDiscoveredServiceRequest,DiscoveredService> getDiscoveredServiceCallable()
Overrides

getDiscoveredWorkloadCallable()

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

getWorkloadCallable()

public UnaryCallable<GetWorkloadRequest,Workload> getWorkloadCallable()
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listApplicationsCallable()

public UnaryCallable<ListApplicationsRequest,ListApplicationsResponse> listApplicationsCallable()
Overrides

listApplicationsPagedCallable()

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

listDiscoveredServicesCallable()

public UnaryCallable<ListDiscoveredServicesRequest,ListDiscoveredServicesResponse> listDiscoveredServicesCallable()
Overrides

listDiscoveredServicesPagedCallable()

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

listDiscoveredWorkloadsCallable()

public UnaryCallable<ListDiscoveredWorkloadsRequest,ListDiscoveredWorkloadsResponse> listDiscoveredWorkloadsCallable()
Overrides

listDiscoveredWorkloadsPagedCallable()

public UnaryCallable<ListDiscoveredWorkloadsRequest,AppHubClient.ListDiscoveredWorkloadsPagedResponse> listDiscoveredWorkloadsPagedCallable()
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()
Overrides

listServiceProjectAttachmentsPagedCallable()

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

listServicesCallable()

public UnaryCallable<ListServicesRequest,ListServicesResponse> listServicesCallable()
Overrides

listServicesPagedCallable()

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

listWorkloadsCallable()

public UnaryCallable<ListWorkloadsRequest,ListWorkloadsResponse> listWorkloadsCallable()
Overrides

listWorkloadsPagedCallable()

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

lookupDiscoveredServiceCallable()

public UnaryCallable<LookupDiscoveredServiceRequest,LookupDiscoveredServiceResponse> lookupDiscoveredServiceCallable()
Overrides

lookupDiscoveredWorkloadCallable()

public UnaryCallable<LookupDiscoveredWorkloadRequest,LookupDiscoveredWorkloadResponse> lookupDiscoveredWorkloadCallable()
Overrides

lookupServiceProjectAttachmentCallable()

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

updateApplicationOperationCallable()

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

updateServiceCallable()

public UnaryCallable<UpdateServiceRequest,Operation> updateServiceCallable()
Overrides

updateServiceOperationCallable()

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

updateWorkloadCallable()

public UnaryCallable<UpdateWorkloadRequest,Operation> updateWorkloadCallable()
Overrides

updateWorkloadOperationCallable()

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