Class HealthProfileService.HealthProfileServiceClient
Client for HealthProfileService
Inheritance
Inherited Members
Namespace: Google.DevicesAndServices.Health.V4
Assembly: Google.DevicesAndServices.Health.V4.dll
Syntax
public class HealthProfileService.HealthProfileServiceClient : ClientBase<HealthProfileService.HealthProfileServiceClient>
Constructors
HealthProfileServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected HealthProfileServiceClient()
HealthProfileServiceClient(CallInvoker)
Creates a new client for HealthProfileService that uses a custom CallInvoker.
Declaration
public HealthProfileServiceClient(CallInvoker callInvoker)
Parameters
| Type | Name | Description |
|---|---|---|
| CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
HealthProfileServiceClient(ChannelBase)
Creates a new client for HealthProfileService
Declaration
public HealthProfileServiceClient(ChannelBase channel)
Parameters
| Type | Name | Description |
|---|---|---|
| ChannelBase | channel | The channel to use to make remote calls. |
HealthProfileServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected HealthProfileServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
GetIdentity(GetIdentityRequest, CallOptions)
Gets the user's identity.
It includes the legacy Fitbit user ID and the Google user ID and it can be used by migrating clients to map identifiers between the two systems.
Declaration
public virtual Identity GetIdentity(GetIdentityRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GetIdentityRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| Identity | The response received from the server. |
GetIdentity(GetIdentityRequest, Metadata, DateTime?, CancellationToken)
Gets the user's identity.
It includes the legacy Fitbit user ID and the Google user ID and it can be used by migrating clients to map identifiers between the two systems.
Declaration
public virtual Identity GetIdentity(GetIdentityRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetIdentityRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| Identity | The response received from the server. |
GetIdentityAsync(GetIdentityRequest, CallOptions)
Gets the user's identity.
It includes the legacy Fitbit user ID and the Google user ID and it can be used by migrating clients to map identifiers between the two systems.
Declaration
public virtual AsyncUnaryCall<Identity> GetIdentityAsync(GetIdentityRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GetIdentityRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<Identity> | The call object. |
GetIdentityAsync(GetIdentityRequest, Metadata, DateTime?, CancellationToken)
Gets the user's identity.
It includes the legacy Fitbit user ID and the Google user ID and it can be used by migrating clients to map identifiers between the two systems.
Declaration
public virtual AsyncUnaryCall<Identity> GetIdentityAsync(GetIdentityRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetIdentityRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<Identity> | The call object. |
GetProfile(GetProfileRequest, CallOptions)
Returns user Profile details.
Declaration
public virtual Profile GetProfile(GetProfileRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GetProfileRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| Profile | The response received from the server. |
GetProfile(GetProfileRequest, Metadata, DateTime?, CancellationToken)
Returns user Profile details.
Declaration
public virtual Profile GetProfile(GetProfileRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetProfileRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| Profile | The response received from the server. |
GetProfileAsync(GetProfileRequest, CallOptions)
Returns user Profile details.
Declaration
public virtual AsyncUnaryCall<Profile> GetProfileAsync(GetProfileRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GetProfileRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<Profile> | The call object. |
GetProfileAsync(GetProfileRequest, Metadata, DateTime?, CancellationToken)
Returns user Profile details.
Declaration
public virtual AsyncUnaryCall<Profile> GetProfileAsync(GetProfileRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetProfileRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<Profile> | The call object. |
GetSettings(GetSettingsRequest, CallOptions)
Returns user settings details.
Declaration
public virtual Settings GetSettings(GetSettingsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GetSettingsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| Settings | The response received from the server. |
GetSettings(GetSettingsRequest, Metadata, DateTime?, CancellationToken)
Returns user settings details.
Declaration
public virtual Settings GetSettings(GetSettingsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetSettingsRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| Settings | The response received from the server. |
GetSettingsAsync(GetSettingsRequest, CallOptions)
Returns user settings details.
Declaration
public virtual AsyncUnaryCall<Settings> GetSettingsAsync(GetSettingsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GetSettingsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<Settings> | The call object. |
GetSettingsAsync(GetSettingsRequest, Metadata, DateTime?, CancellationToken)
Returns user settings details.
Declaration
public virtual AsyncUnaryCall<Settings> GetSettingsAsync(GetSettingsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetSettingsRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<Settings> | The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration.
Declaration
protected override HealthProfileService.HealthProfileServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration |
Returns
| Type | Description |
|---|---|
| HealthProfileService.HealthProfileServiceClient |
Overrides
UpdateProfile(UpdateProfileRequest, CallOptions)
Updates the user's profile details.
Declaration
public virtual Profile UpdateProfile(UpdateProfileRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateProfileRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| Profile | The response received from the server. |
UpdateProfile(UpdateProfileRequest, Metadata, DateTime?, CancellationToken)
Updates the user's profile details.
Declaration
public virtual Profile UpdateProfile(UpdateProfileRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateProfileRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| Profile | The response received from the server. |
UpdateProfileAsync(UpdateProfileRequest, CallOptions)
Updates the user's profile details.
Declaration
public virtual AsyncUnaryCall<Profile> UpdateProfileAsync(UpdateProfileRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateProfileRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<Profile> | The call object. |
UpdateProfileAsync(UpdateProfileRequest, Metadata, DateTime?, CancellationToken)
Updates the user's profile details.
Declaration
public virtual AsyncUnaryCall<Profile> UpdateProfileAsync(UpdateProfileRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateProfileRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<Profile> | The call object. |
UpdateSettings(UpdateSettingsRequest, CallOptions)
Updates the user's settings details.
Declaration
public virtual Settings UpdateSettings(UpdateSettingsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateSettingsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| Settings | The response received from the server. |
UpdateSettings(UpdateSettingsRequest, Metadata, DateTime?, CancellationToken)
Updates the user's settings details.
Declaration
public virtual Settings UpdateSettings(UpdateSettingsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateSettingsRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| Settings | The response received from the server. |
UpdateSettingsAsync(UpdateSettingsRequest, CallOptions)
Updates the user's settings details.
Declaration
public virtual AsyncUnaryCall<Settings> UpdateSettingsAsync(UpdateSettingsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateSettingsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<Settings> | The call object. |
UpdateSettingsAsync(UpdateSettingsRequest, Metadata, DateTime?, CancellationToken)
Updates the user's settings details.
Declaration
public virtual AsyncUnaryCall<Settings> UpdateSettingsAsync(UpdateSettingsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateSettingsRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<Settings> | The call object. |