public class GrpcAppHubStub extends AppHubStub
gRPC stub implementation for the AppHub service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final GrpcAppHubStub create(ClientContext clientContext)
Parameter | |
---|---|
Name | Description |
clientContext | ClientContext |
Returns | |
---|---|
Type | Description |
GrpcAppHubStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcAppHubStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters | |
---|---|
Name | Description |
clientContext | ClientContext |
callableFactory | GrpcStubCallableFactory |
Returns | |
---|---|
Type | Description |
GrpcAppHubStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(AppHubStubSettings settings)
public static final GrpcAppHubStub create(AppHubStubSettings settings)
Parameter | |
---|---|
Name | Description |
settings | AppHubStubSettings |
Returns | |
---|---|
Type | Description |
GrpcAppHubStub |
Exceptions | |
---|---|
Type | Description |
IOException |
Constructors
GrpcAppHubStub(AppHubStubSettings settings, ClientContext clientContext)
protected GrpcAppHubStub(AppHubStubSettings settings, ClientContext clientContext)
Constructs an instance of GrpcAppHubStub, 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 |
GrpcAppHubStub(AppHubStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcAppHubStub(AppHubStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcAppHubStub, 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 | GrpcStubCallableFactory |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters | |
---|---|
Name | Description |
duration | long |
unit | TimeUnit |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
InterruptedException |
close()
public final void close()
createApplicationCallable()
public UnaryCallable<CreateApplicationRequest,Operation> createApplicationCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateApplicationRequest,Operation> |
createApplicationOperationCallable()
public OperationCallable<CreateApplicationRequest,Application,OperationMetadata> createApplicationOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<CreateApplicationRequest,Application,OperationMetadata> |
createServiceCallable()
public UnaryCallable<CreateServiceRequest,Operation> createServiceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateServiceRequest,Operation> |
createServiceOperationCallable()
public OperationCallable<CreateServiceRequest,Service,OperationMetadata> createServiceOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<CreateServiceRequest,Service,OperationMetadata> |
createServiceProjectAttachmentCallable()
public UnaryCallable<CreateServiceProjectAttachmentRequest,Operation> createServiceProjectAttachmentCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateServiceProjectAttachmentRequest,Operation> |
createServiceProjectAttachmentOperationCallable()
public OperationCallable<CreateServiceProjectAttachmentRequest,ServiceProjectAttachment,OperationMetadata> createServiceProjectAttachmentOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<CreateServiceProjectAttachmentRequest,ServiceProjectAttachment,OperationMetadata> |
createWorkloadCallable()
public UnaryCallable<CreateWorkloadRequest,Operation> createWorkloadCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateWorkloadRequest,Operation> |
createWorkloadOperationCallable()
public OperationCallable<CreateWorkloadRequest,Workload,OperationMetadata> createWorkloadOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<CreateWorkloadRequest,Workload,OperationMetadata> |
deleteApplicationCallable()
public UnaryCallable<DeleteApplicationRequest,Operation> deleteApplicationCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteApplicationRequest,Operation> |
deleteApplicationOperationCallable()
public OperationCallable<DeleteApplicationRequest,Empty,OperationMetadata> deleteApplicationOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteApplicationRequest,Empty,OperationMetadata> |
deleteServiceCallable()
public UnaryCallable<DeleteServiceRequest,Operation> deleteServiceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteServiceRequest,Operation> |
deleteServiceOperationCallable()
public OperationCallable<DeleteServiceRequest,Empty,OperationMetadata> deleteServiceOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteServiceRequest,Empty,OperationMetadata> |
deleteServiceProjectAttachmentCallable()
public UnaryCallable<DeleteServiceProjectAttachmentRequest,Operation> deleteServiceProjectAttachmentCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteServiceProjectAttachmentRequest,Operation> |
deleteServiceProjectAttachmentOperationCallable()
public OperationCallable<DeleteServiceProjectAttachmentRequest,Empty,OperationMetadata> deleteServiceProjectAttachmentOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteServiceProjectAttachmentRequest,Empty,OperationMetadata> |
deleteWorkloadCallable()
public UnaryCallable<DeleteWorkloadRequest,Operation> deleteWorkloadCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteWorkloadRequest,Operation> |
deleteWorkloadOperationCallable()
public OperationCallable<DeleteWorkloadRequest,Empty,OperationMetadata> deleteWorkloadOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteWorkloadRequest,Empty,OperationMetadata> |
detachServiceProjectAttachmentCallable()
public UnaryCallable<DetachServiceProjectAttachmentRequest,DetachServiceProjectAttachmentResponse> detachServiceProjectAttachmentCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DetachServiceProjectAttachmentRequest,DetachServiceProjectAttachmentResponse> |
getApplicationCallable()
public UnaryCallable<GetApplicationRequest,Application> getApplicationCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetApplicationRequest,Application> |
getDiscoveredServiceCallable()
public UnaryCallable<GetDiscoveredServiceRequest,DiscoveredService> getDiscoveredServiceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetDiscoveredServiceRequest,DiscoveredService> |
getDiscoveredWorkloadCallable()
public UnaryCallable<GetDiscoveredWorkloadRequest,DiscoveredWorkload> getDiscoveredWorkloadCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetDiscoveredWorkloadRequest,DiscoveredWorkload> |
getIamPolicyCallable()
public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getLocationCallable()
public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Returns | |
---|---|
Type | Description |
GrpcOperationsStub |
getServiceCallable()
public UnaryCallable<GetServiceRequest,Service> getServiceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetServiceRequest,Service> |
getServiceProjectAttachmentCallable()
public UnaryCallable<GetServiceProjectAttachmentRequest,ServiceProjectAttachment> getServiceProjectAttachmentCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetServiceProjectAttachmentRequest,ServiceProjectAttachment> |
getWorkloadCallable()
public UnaryCallable<GetWorkloadRequest,Workload> getWorkloadCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetWorkloadRequest,Workload> |
isShutdown()
public boolean isShutdown()
Returns | |
---|---|
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Returns | |
---|---|
Type | Description |
boolean |
listApplicationsCallable()
public UnaryCallable<ListApplicationsRequest,ListApplicationsResponse> listApplicationsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListApplicationsRequest,ListApplicationsResponse> |
listApplicationsPagedCallable()
public UnaryCallable<ListApplicationsRequest,AppHubClient.ListApplicationsPagedResponse> listApplicationsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListApplicationsRequest,ListApplicationsPagedResponse> |
listDiscoveredServicesCallable()
public UnaryCallable<ListDiscoveredServicesRequest,ListDiscoveredServicesResponse> listDiscoveredServicesCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListDiscoveredServicesRequest,ListDiscoveredServicesResponse> |
listDiscoveredServicesPagedCallable()
public UnaryCallable<ListDiscoveredServicesRequest,AppHubClient.ListDiscoveredServicesPagedResponse> listDiscoveredServicesPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListDiscoveredServicesRequest,ListDiscoveredServicesPagedResponse> |
listDiscoveredWorkloadsCallable()
public UnaryCallable<ListDiscoveredWorkloadsRequest,ListDiscoveredWorkloadsResponse> listDiscoveredWorkloadsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListDiscoveredWorkloadsRequest,ListDiscoveredWorkloadsResponse> |
listDiscoveredWorkloadsPagedCallable()
public UnaryCallable<ListDiscoveredWorkloadsRequest,AppHubClient.ListDiscoveredWorkloadsPagedResponse> listDiscoveredWorkloadsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListDiscoveredWorkloadsRequest,ListDiscoveredWorkloadsPagedResponse> |
listLocationsCallable()
public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> |
listLocationsPagedCallable()
public UnaryCallable<ListLocationsRequest,AppHubClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse> |
listServiceProjectAttachmentsCallable()
public UnaryCallable<ListServiceProjectAttachmentsRequest,ListServiceProjectAttachmentsResponse> listServiceProjectAttachmentsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListServiceProjectAttachmentsRequest,ListServiceProjectAttachmentsResponse> |
listServiceProjectAttachmentsPagedCallable()
public UnaryCallable<ListServiceProjectAttachmentsRequest,AppHubClient.ListServiceProjectAttachmentsPagedResponse> listServiceProjectAttachmentsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListServiceProjectAttachmentsRequest,ListServiceProjectAttachmentsPagedResponse> |
listServicesCallable()
public UnaryCallable<ListServicesRequest,ListServicesResponse> listServicesCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListServicesRequest,ListServicesResponse> |
listServicesPagedCallable()
public UnaryCallable<ListServicesRequest,AppHubClient.ListServicesPagedResponse> listServicesPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListServicesRequest,ListServicesPagedResponse> |
listWorkloadsCallable()
public UnaryCallable<ListWorkloadsRequest,ListWorkloadsResponse> listWorkloadsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListWorkloadsRequest,ListWorkloadsResponse> |
listWorkloadsPagedCallable()
public UnaryCallable<ListWorkloadsRequest,AppHubClient.ListWorkloadsPagedResponse> listWorkloadsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListWorkloadsRequest,ListWorkloadsPagedResponse> |
lookupDiscoveredServiceCallable()
public UnaryCallable<LookupDiscoveredServiceRequest,LookupDiscoveredServiceResponse> lookupDiscoveredServiceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<LookupDiscoveredServiceRequest,LookupDiscoveredServiceResponse> |
lookupDiscoveredWorkloadCallable()
public UnaryCallable<LookupDiscoveredWorkloadRequest,LookupDiscoveredWorkloadResponse> lookupDiscoveredWorkloadCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<LookupDiscoveredWorkloadRequest,LookupDiscoveredWorkloadResponse> |
lookupServiceProjectAttachmentCallable()
public UnaryCallable<LookupServiceProjectAttachmentRequest,LookupServiceProjectAttachmentResponse> lookupServiceProjectAttachmentCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<LookupServiceProjectAttachmentRequest,LookupServiceProjectAttachmentResponse> |
setIamPolicyCallable()
public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
testIamPermissionsCallable()
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
updateApplicationCallable()
public UnaryCallable<UpdateApplicationRequest,Operation> updateApplicationCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateApplicationRequest,Operation> |
updateApplicationOperationCallable()
public OperationCallable<UpdateApplicationRequest,Application,OperationMetadata> updateApplicationOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<UpdateApplicationRequest,Application,OperationMetadata> |
updateServiceCallable()
public UnaryCallable<UpdateServiceRequest,Operation> updateServiceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateServiceRequest,Operation> |
updateServiceOperationCallable()
public OperationCallable<UpdateServiceRequest,Service,OperationMetadata> updateServiceOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<UpdateServiceRequest,Service,OperationMetadata> |
updateWorkloadCallable()
public UnaryCallable<UpdateWorkloadRequest,Operation> updateWorkloadCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateWorkloadRequest,Operation> |
updateWorkloadOperationCallable()
public OperationCallable<UpdateWorkloadRequest,Workload,OperationMetadata> updateWorkloadOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<UpdateWorkloadRequest,Workload,OperationMetadata> |