Class protos.google.devicesandservices.health.v4beta.HealthProfileService (0.9.0)

Represents a HealthProfileService

Inheritance

$protobuf.rpc.Service > protos.google.devicesandservices.health.v4beta.HealthProfileService

Package

@google-cloud/health

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new HealthProfileService service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): HealthProfileService;

Creates new HealthProfileService service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
HealthProfileService

RPC service. Useful where requests and/or responses are streamed.

getIdentity(request, callback)

public getIdentity(request: google.devicesandservices.health.v4beta.IGetIdentityRequest, callback: google.devicesandservices.health.v4beta.HealthProfileService.GetIdentityCallback): void;

Calls GetIdentity.

Parameters
Name Description
request IGetIdentityRequest

GetIdentityRequest message or plain object

callback GetIdentityCallback

Node-style callback called with the error, if any, and Identity

Returns
Type Description
void

getIdentity(request)

public getIdentity(request: google.devicesandservices.health.v4beta.IGetIdentityRequest): Promise<google.devicesandservices.health.v4beta.Identity>;

Calls GetIdentity.

Parameter
Name Description
request IGetIdentityRequest

GetIdentityRequest message or plain object

Returns
Type Description
Promise<google.devicesandservices.health.v4beta.Identity>

Promise

getIrnProfile(request, callback)

public getIrnProfile(request: google.devicesandservices.health.v4beta.IGetIrnProfileRequest, callback: google.devicesandservices.health.v4beta.HealthProfileService.GetIrnProfileCallback): void;

Calls GetIrnProfile.

Parameters
Name Description
request IGetIrnProfileRequest

GetIrnProfileRequest message or plain object

callback GetIrnProfileCallback

Node-style callback called with the error, if any, and IrnProfile

Returns
Type Description
void

getIrnProfile(request)

public getIrnProfile(request: google.devicesandservices.health.v4beta.IGetIrnProfileRequest): Promise<google.devicesandservices.health.v4beta.IrnProfile>;

Calls GetIrnProfile.

Parameter
Name Description
request IGetIrnProfileRequest

GetIrnProfileRequest message or plain object

Returns
Type Description
Promise<google.devicesandservices.health.v4beta.IrnProfile>

Promise

getPairedDevice(request, callback)

public getPairedDevice(request: google.devicesandservices.health.v4beta.IGetPairedDeviceRequest, callback: google.devicesandservices.health.v4beta.HealthProfileService.GetPairedDeviceCallback): void;

Calls GetPairedDevice.

Parameters
Name Description
request IGetPairedDeviceRequest

GetPairedDeviceRequest message or plain object

callback GetPairedDeviceCallback

Node-style callback called with the error, if any, and PairedDevice

Returns
Type Description
void

getPairedDevice(request)

public getPairedDevice(request: google.devicesandservices.health.v4beta.IGetPairedDeviceRequest): Promise<google.devicesandservices.health.v4beta.PairedDevice>;

Calls GetPairedDevice.

Parameter
Name Description
request IGetPairedDeviceRequest

GetPairedDeviceRequest message or plain object

Returns
Type Description
Promise<google.devicesandservices.health.v4beta.PairedDevice>

Promise

getProfile(request, callback)

public getProfile(request: google.devicesandservices.health.v4beta.IGetProfileRequest, callback: google.devicesandservices.health.v4beta.HealthProfileService.GetProfileCallback): void;

Calls GetProfile.

Parameters
Name Description
request IGetProfileRequest

GetProfileRequest message or plain object

callback GetProfileCallback

Node-style callback called with the error, if any, and Profile

Returns
Type Description
void

getProfile(request)

public getProfile(request: google.devicesandservices.health.v4beta.IGetProfileRequest): Promise<google.devicesandservices.health.v4beta.Profile>;

Calls GetProfile.

Parameter
Name Description
request IGetProfileRequest

GetProfileRequest message or plain object

Returns
Type Description
Promise<google.devicesandservices.health.v4beta.Profile>

Promise

getSettings(request, callback)

public getSettings(request: google.devicesandservices.health.v4beta.IGetSettingsRequest, callback: google.devicesandservices.health.v4beta.HealthProfileService.GetSettingsCallback): void;

Calls GetSettings.

Parameters
Name Description
request IGetSettingsRequest

GetSettingsRequest message or plain object

callback GetSettingsCallback

Node-style callback called with the error, if any, and Settings

Returns
Type Description
void

getSettings(request)

public getSettings(request: google.devicesandservices.health.v4beta.IGetSettingsRequest): Promise<google.devicesandservices.health.v4beta.Settings>;

Calls GetSettings.

Parameter
Name Description
request IGetSettingsRequest

GetSettingsRequest message or plain object

Returns
Type Description
Promise<google.devicesandservices.health.v4beta.Settings>

Promise

listPairedDevices(request, callback)

public listPairedDevices(request: google.devicesandservices.health.v4beta.IListPairedDevicesRequest, callback: google.devicesandservices.health.v4beta.HealthProfileService.ListPairedDevicesCallback): void;

Calls ListPairedDevices.

Parameters
Name Description
request IListPairedDevicesRequest

ListPairedDevicesRequest message or plain object

callback ListPairedDevicesCallback

Node-style callback called with the error, if any, and ListPairedDevicesResponse

Returns
Type Description
void

listPairedDevices(request)

public listPairedDevices(request: google.devicesandservices.health.v4beta.IListPairedDevicesRequest): Promise<google.devicesandservices.health.v4beta.ListPairedDevicesResponse>;

Calls ListPairedDevices.

Parameter
Name Description
request IListPairedDevicesRequest

ListPairedDevicesRequest message or plain object

Returns
Type Description
Promise<google.devicesandservices.health.v4beta.ListPairedDevicesResponse>

Promise

updateProfile(request, callback)

public updateProfile(request: google.devicesandservices.health.v4beta.IUpdateProfileRequest, callback: google.devicesandservices.health.v4beta.HealthProfileService.UpdateProfileCallback): void;

Calls UpdateProfile.

Parameters
Name Description
request IUpdateProfileRequest

UpdateProfileRequest message or plain object

callback UpdateProfileCallback

Node-style callback called with the error, if any, and Profile

Returns
Type Description
void

updateProfile(request)

public updateProfile(request: google.devicesandservices.health.v4beta.IUpdateProfileRequest): Promise<google.devicesandservices.health.v4beta.Profile>;

Calls UpdateProfile.

Parameter
Name Description
request IUpdateProfileRequest

UpdateProfileRequest message or plain object

Returns
Type Description
Promise<google.devicesandservices.health.v4beta.Profile>

Promise

updateSettings(request, callback)

public updateSettings(request: google.devicesandservices.health.v4beta.IUpdateSettingsRequest, callback: google.devicesandservices.health.v4beta.HealthProfileService.UpdateSettingsCallback): void;

Calls UpdateSettings.

Parameters
Name Description
request IUpdateSettingsRequest

UpdateSettingsRequest message or plain object

callback UpdateSettingsCallback

Node-style callback called with the error, if any, and Settings

Returns
Type Description
void

updateSettings(request)

public updateSettings(request: google.devicesandservices.health.v4beta.IUpdateSettingsRequest): Promise<google.devicesandservices.health.v4beta.Settings>;

Calls UpdateSettings.

Parameter
Name Description
request IUpdateSettingsRequest

UpdateSettingsRequest message or plain object

Returns
Type Description
Promise<google.devicesandservices.health.v4beta.Settings>

Promise