Class HttpJsonHealthProfileServiceStub (0.2.0)

public class HttpJsonHealthProfileServiceStub extends HealthProfileServiceStub

REST stub implementation for the HealthProfileService service API.

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

Inheritance

java.lang.Object > HealthProfileServiceStub > HttpJsonHealthProfileServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(HealthProfileServiceStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonHealthProfileServiceStub(HealthProfileServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonHealthProfileServiceStub(HealthProfileServiceStubSettings settings, ClientContext clientContext)

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

HttpJsonHealthProfileServiceStub(HealthProfileServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonHealthProfileServiceStub(HealthProfileServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonHealthProfileServiceStub, 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 HttpJsonStubCallableFactory

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

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