Class GrpcHealthProfileServiceStub (0.2.0)

public class GrpcHealthProfileServiceStub extends HealthProfileServiceStub

gRPC stub implementation for the HealthProfileService service API.

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

Inheritance

java.lang.Object > HealthProfileServiceStub > GrpcHealthProfileServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcHealthProfileServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcHealthProfileServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcHealthProfileServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcHealthProfileServiceStub
Exceptions
Type Description
IOException

create(HealthProfileServiceStubSettings settings)

public static final GrpcHealthProfileServiceStub create(HealthProfileServiceStubSettings settings)
Parameter
Name Description
settings HealthProfileServiceStubSettings
Returns
Type Description
GrpcHealthProfileServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcHealthProfileServiceStub(HealthProfileServiceStubSettings settings, ClientContext clientContext)

protected GrpcHealthProfileServiceStub(HealthProfileServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcHealthProfileServiceStub, 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 HealthProfileServiceStubSettings
clientContext ClientContext

GrpcHealthProfileServiceStub(HealthProfileServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcHealthProfileServiceStub(HealthProfileServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcHealthProfileServiceStub, 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 HealthProfileServiceStubSettings
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

getIdentityCallable()

public UnaryCallable<GetIdentityRequest,Identity> getIdentityCallable()
Returns
Type Description
UnaryCallable<GetIdentityRequest,Identity>
Overrides

getIrnProfileCallable()

public UnaryCallable<GetIrnProfileRequest,IrnProfile> getIrnProfileCallable()
Returns
Type Description
UnaryCallable<GetIrnProfileRequest,IrnProfile>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

getPairedDeviceCallable()

public UnaryCallable<GetPairedDeviceRequest,PairedDevice> getPairedDeviceCallable()
Returns
Type Description
UnaryCallable<GetPairedDeviceRequest,PairedDevice>
Overrides

getProfileCallable()

public UnaryCallable<GetProfileRequest,Profile> getProfileCallable()
Returns
Type Description
UnaryCallable<GetProfileRequest,Profile>
Overrides

getSettingsCallable()

public UnaryCallable<GetSettingsRequest,Settings> getSettingsCallable()
Returns
Type Description
UnaryCallable<GetSettingsRequest,Settings>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listPairedDevicesCallable()

public UnaryCallable<ListPairedDevicesRequest,ListPairedDevicesResponse> listPairedDevicesCallable()
Returns
Type Description
UnaryCallable<ListPairedDevicesRequest,ListPairedDevicesResponse>
Overrides

listPairedDevicesPagedCallable()

public UnaryCallable<ListPairedDevicesRequest,HealthProfileServiceClient.ListPairedDevicesPagedResponse> listPairedDevicesPagedCallable()
Returns
Type Description
UnaryCallable<ListPairedDevicesRequest,ListPairedDevicesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateProfileCallable()

public UnaryCallable<UpdateProfileRequest,Profile> updateProfileCallable()
Returns
Type Description
UnaryCallable<UpdateProfileRequest,Profile>
Overrides

updateSettingsCallable()

public UnaryCallable<UpdateSettingsRequest,Settings> updateSettingsCallable()
Returns
Type Description
UnaryCallable<UpdateSettingsRequest,Settings>
Overrides