Class GrpcAppHubStub (0.12.0)

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.

Inheritance

java.lang.Object > AppHubStub > GrpcAppHubStub

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

createApplicationCallable()

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

createApplicationOperationCallable()

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

createServiceCallable()

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

createServiceOperationCallable()

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

createServiceProjectAttachmentCallable()

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

createServiceProjectAttachmentOperationCallable()

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

createWorkloadCallable()

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

createWorkloadOperationCallable()

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

deleteApplicationCallable()

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

deleteApplicationOperationCallable()

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

deleteServiceCallable()

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

deleteServiceOperationCallable()

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

deleteServiceProjectAttachmentCallable()

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

deleteServiceProjectAttachmentOperationCallable()

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

deleteWorkloadCallable()

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

deleteWorkloadOperationCallable()

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

detachServiceProjectAttachmentCallable()

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

getApplicationCallable()

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

getDiscoveredServiceCallable()

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

getDiscoveredWorkloadCallable()

public UnaryCallable<GetDiscoveredWorkloadRequest,DiscoveredWorkload> getDiscoveredWorkloadCallable()
Returns
Type Description
UnaryCallable<GetDiscoveredWorkloadRequest,DiscoveredWorkload>
Overrides

getIamPolicyCallable()

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

getLocationCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

getServiceCallable()

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

getServiceProjectAttachmentCallable()

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

getWorkloadCallable()

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

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

listApplicationsPagedCallable()

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

listDiscoveredServicesCallable()

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

listDiscoveredServicesPagedCallable()

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

listDiscoveredWorkloadsCallable()

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

listDiscoveredWorkloadsPagedCallable()

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

listLocationsCallable()

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

listLocationsPagedCallable()

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

listServiceProjectAttachmentsCallable()

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

listServiceProjectAttachmentsPagedCallable()

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

listServicesCallable()

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

listServicesPagedCallable()

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

listWorkloadsCallable()

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

listWorkloadsPagedCallable()

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

lookupDiscoveredServiceCallable()

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

lookupDiscoveredWorkloadCallable()

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

lookupServiceProjectAttachmentCallable()

public UnaryCallable<LookupServiceProjectAttachmentRequest,LookupServiceProjectAttachmentResponse> lookupServiceProjectAttachmentCallable()
Returns
Type Description
UnaryCallable<LookupServiceProjectAttachmentRequest,LookupServiceProjectAttachmentResponse>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
Type Description
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
Type Description
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateApplicationCallable()

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

updateApplicationOperationCallable()

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

updateServiceCallable()

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

updateServiceOperationCallable()

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

updateWorkloadCallable()

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

updateWorkloadOperationCallable()

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