Show / Hide Table of Contents

Class HealthProfileServiceClient

HealthProfileService client wrapper, for convenient use.

Inheritance
object
HealthProfileServiceClient
HealthProfileServiceClientImpl
Inherited Members
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.DevicesAndServices.Health.V4
Assembly: Google.DevicesAndServices.Health.V4.dll
Syntax
public abstract class HealthProfileServiceClient
Remarks

Health Profile Service

Properties

DefaultEndpoint

The default endpoint for the HealthProfileService service, which is a host of "health.googleapis.com" and a port of 443.

Declaration
public static string DefaultEndpoint { get; }
Property Value
Type Description
string

DefaultScopes

The default HealthProfileService scopes.

Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
Type Description
IReadOnlyList<string>
Remarks

The default HealthProfileService scopes are:

  • https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly
  • https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly
  • https://www.googleapis.com/auth/googlehealth.profile.readonly
  • https://www.googleapis.com/auth/googlehealth.settings.readonly
  • https://www.googleapis.com/auth/googlehealth.sleep.readonly

GrpcClient

The underlying gRPC HealthProfileService client

Declaration
public virtual HealthProfileService.HealthProfileServiceClient GrpcClient { get; }
Property Value
Type Description
HealthProfileService.HealthProfileServiceClient

ServiceMetadata

The service metadata associated with this client type.

Declaration
public static ServiceMetadata ServiceMetadata { get; }
Property Value
Type Description
ServiceMetadata

Methods

Create()

Synchronously creates a HealthProfileServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use HealthProfileServiceClientBuilder.

Declaration
public static HealthProfileServiceClient Create()
Returns
Type Description
HealthProfileServiceClient

The created HealthProfileServiceClient.

CreateAsync(CancellationToken)

Asynchronously creates a HealthProfileServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use HealthProfileServiceClientBuilder.

Declaration
public static Task<HealthProfileServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
Task<HealthProfileServiceClient>

The task representing the created HealthProfileServiceClient.

GetIdentity(GetIdentityRequest, CallSettings)

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, CallSettings callSettings = null)
Parameters
Type Name Description
GetIdentityRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Identity

The RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create();
// Initialize request argument(s)
GetIdentityRequest request = new GetIdentityRequest
{
    IdentityName = IdentityName.FromUser("[USER]"),
};
// Make the request
Identity response = healthProfileServiceClient.GetIdentity(request);

GetIdentity(IdentityName, CallSettings)

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(IdentityName name, CallSettings callSettings = null)
Parameters
Type Name Description
IdentityName name

Required. The resource name of the Identity. Format: users/me/identity

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Identity

The RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create();
// Initialize request argument(s)
IdentityName name = IdentityName.FromUser("[USER]");
// Make the request
Identity response = healthProfileServiceClient.GetIdentity(name);

GetIdentity(string, CallSettings)

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(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The resource name of the Identity. Format: users/me/identity

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Identity

The RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create();
// Initialize request argument(s)
string name = "users/[USER]/identity";
// Make the request
Identity response = healthProfileServiceClient.GetIdentity(name);

GetIdentityAsync(GetIdentityRequest, CallSettings)

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 Task<Identity> GetIdentityAsync(GetIdentityRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetIdentityRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Identity>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
GetIdentityRequest request = new GetIdentityRequest
{
    IdentityName = IdentityName.FromUser("[USER]"),
};
// Make the request
Identity response = await healthProfileServiceClient.GetIdentityAsync(request);

GetIdentityAsync(GetIdentityRequest, 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 Task<Identity> GetIdentityAsync(GetIdentityRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
GetIdentityRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Identity>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
GetIdentityRequest request = new GetIdentityRequest
{
    IdentityName = IdentityName.FromUser("[USER]"),
};
// Make the request
Identity response = await healthProfileServiceClient.GetIdentityAsync(request);

GetIdentityAsync(IdentityName, CallSettings)

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 Task<Identity> GetIdentityAsync(IdentityName name, CallSettings callSettings = null)
Parameters
Type Name Description
IdentityName name

Required. The resource name of the Identity. Format: users/me/identity

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Identity>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
IdentityName name = IdentityName.FromUser("[USER]");
// Make the request
Identity response = await healthProfileServiceClient.GetIdentityAsync(name);

GetIdentityAsync(IdentityName, 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 Task<Identity> GetIdentityAsync(IdentityName name, CancellationToken cancellationToken)
Parameters
Type Name Description
IdentityName name

Required. The resource name of the Identity. Format: users/me/identity

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Identity>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
IdentityName name = IdentityName.FromUser("[USER]");
// Make the request
Identity response = await healthProfileServiceClient.GetIdentityAsync(name);

GetIdentityAsync(string, CallSettings)

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 Task<Identity> GetIdentityAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The resource name of the Identity. Format: users/me/identity

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Identity>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "users/[USER]/identity";
// Make the request
Identity response = await healthProfileServiceClient.GetIdentityAsync(name);

GetIdentityAsync(string, 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 Task<Identity> GetIdentityAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
string name

Required. The resource name of the Identity. Format: users/me/identity

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Identity>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "users/[USER]/identity";
// Make the request
Identity response = await healthProfileServiceClient.GetIdentityAsync(name);

GetProfile(GetProfileRequest, CallSettings)

Returns user Profile details.

Declaration
public virtual Profile GetProfile(GetProfileRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetProfileRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Profile

The RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create();
// Initialize request argument(s)
GetProfileRequest request = new GetProfileRequest
{
    ProfileName = ProfileName.FromUser("[USER]"),
};
// Make the request
Profile response = healthProfileServiceClient.GetProfile(request);

GetProfile(ProfileName, CallSettings)

Returns user Profile details.

Declaration
public virtual Profile GetProfile(ProfileName name, CallSettings callSettings = null)
Parameters
Type Name Description
ProfileName name

Required. The name of the Profile. Format: users/me/profile.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Profile

The RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create();
// Initialize request argument(s)
ProfileName name = ProfileName.FromUser("[USER]");
// Make the request
Profile response = healthProfileServiceClient.GetProfile(name);

GetProfile(string, CallSettings)

Returns user Profile details.

Declaration
public virtual Profile GetProfile(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The name of the Profile. Format: users/me/profile.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Profile

The RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create();
// Initialize request argument(s)
string name = "users/[USER]/profile";
// Make the request
Profile response = healthProfileServiceClient.GetProfile(name);

GetProfileAsync(GetProfileRequest, CallSettings)

Returns user Profile details.

Declaration
public virtual Task<Profile> GetProfileAsync(GetProfileRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetProfileRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Profile>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
GetProfileRequest request = new GetProfileRequest
{
    ProfileName = ProfileName.FromUser("[USER]"),
};
// Make the request
Profile response = await healthProfileServiceClient.GetProfileAsync(request);

GetProfileAsync(GetProfileRequest, CancellationToken)

Returns user Profile details.

Declaration
public virtual Task<Profile> GetProfileAsync(GetProfileRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
GetProfileRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Profile>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
GetProfileRequest request = new GetProfileRequest
{
    ProfileName = ProfileName.FromUser("[USER]"),
};
// Make the request
Profile response = await healthProfileServiceClient.GetProfileAsync(request);

GetProfileAsync(ProfileName, CallSettings)

Returns user Profile details.

Declaration
public virtual Task<Profile> GetProfileAsync(ProfileName name, CallSettings callSettings = null)
Parameters
Type Name Description
ProfileName name

Required. The name of the Profile. Format: users/me/profile.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Profile>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
ProfileName name = ProfileName.FromUser("[USER]");
// Make the request
Profile response = await healthProfileServiceClient.GetProfileAsync(name);

GetProfileAsync(ProfileName, CancellationToken)

Returns user Profile details.

Declaration
public virtual Task<Profile> GetProfileAsync(ProfileName name, CancellationToken cancellationToken)
Parameters
Type Name Description
ProfileName name

Required. The name of the Profile. Format: users/me/profile.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Profile>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
ProfileName name = ProfileName.FromUser("[USER]");
// Make the request
Profile response = await healthProfileServiceClient.GetProfileAsync(name);

GetProfileAsync(string, CallSettings)

Returns user Profile details.

Declaration
public virtual Task<Profile> GetProfileAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The name of the Profile. Format: users/me/profile.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Profile>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "users/[USER]/profile";
// Make the request
Profile response = await healthProfileServiceClient.GetProfileAsync(name);

GetProfileAsync(string, CancellationToken)

Returns user Profile details.

Declaration
public virtual Task<Profile> GetProfileAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
string name

Required. The name of the Profile. Format: users/me/profile.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Profile>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "users/[USER]/profile";
// Make the request
Profile response = await healthProfileServiceClient.GetProfileAsync(name);

GetSettings(GetSettingsRequest, CallSettings)

Returns user settings details.

Declaration
public virtual Settings GetSettings(GetSettingsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetSettingsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Settings

The RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create();
// Initialize request argument(s)
GetSettingsRequest request = new GetSettingsRequest
{
    SettingsName = SettingsName.FromUser("[USER]"),
};
// Make the request
Settings response = healthProfileServiceClient.GetSettings(request);

GetSettings(SettingsName, CallSettings)

Returns user settings details.

Declaration
public virtual Settings GetSettings(SettingsName name, CallSettings callSettings = null)
Parameters
Type Name Description
SettingsName name

Required. The name of the Settings. Format: users/me/settings.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Settings

The RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create();
// Initialize request argument(s)
SettingsName name = SettingsName.FromUser("[USER]");
// Make the request
Settings response = healthProfileServiceClient.GetSettings(name);

GetSettings(string, CallSettings)

Returns user settings details.

Declaration
public virtual Settings GetSettings(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The name of the Settings. Format: users/me/settings.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Settings

The RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create();
// Initialize request argument(s)
string name = "users/[USER]/settings";
// Make the request
Settings response = healthProfileServiceClient.GetSettings(name);

GetSettingsAsync(GetSettingsRequest, CallSettings)

Returns user settings details.

Declaration
public virtual Task<Settings> GetSettingsAsync(GetSettingsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetSettingsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Settings>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
GetSettingsRequest request = new GetSettingsRequest
{
    SettingsName = SettingsName.FromUser("[USER]"),
};
// Make the request
Settings response = await healthProfileServiceClient.GetSettingsAsync(request);

GetSettingsAsync(GetSettingsRequest, CancellationToken)

Returns user settings details.

Declaration
public virtual Task<Settings> GetSettingsAsync(GetSettingsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
GetSettingsRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Settings>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
GetSettingsRequest request = new GetSettingsRequest
{
    SettingsName = SettingsName.FromUser("[USER]"),
};
// Make the request
Settings response = await healthProfileServiceClient.GetSettingsAsync(request);

GetSettingsAsync(SettingsName, CallSettings)

Returns user settings details.

Declaration
public virtual Task<Settings> GetSettingsAsync(SettingsName name, CallSettings callSettings = null)
Parameters
Type Name Description
SettingsName name

Required. The name of the Settings. Format: users/me/settings.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Settings>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
SettingsName name = SettingsName.FromUser("[USER]");
// Make the request
Settings response = await healthProfileServiceClient.GetSettingsAsync(name);

GetSettingsAsync(SettingsName, CancellationToken)

Returns user settings details.

Declaration
public virtual Task<Settings> GetSettingsAsync(SettingsName name, CancellationToken cancellationToken)
Parameters
Type Name Description
SettingsName name

Required. The name of the Settings. Format: users/me/settings.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Settings>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
SettingsName name = SettingsName.FromUser("[USER]");
// Make the request
Settings response = await healthProfileServiceClient.GetSettingsAsync(name);

GetSettingsAsync(string, CallSettings)

Returns user settings details.

Declaration
public virtual Task<Settings> GetSettingsAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The name of the Settings. Format: users/me/settings.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Settings>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "users/[USER]/settings";
// Make the request
Settings response = await healthProfileServiceClient.GetSettingsAsync(name);

GetSettingsAsync(string, CancellationToken)

Returns user settings details.

Declaration
public virtual Task<Settings> GetSettingsAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
string name

Required. The name of the Settings. Format: users/me/settings.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Settings>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "users/[USER]/settings";
// Make the request
Settings response = await healthProfileServiceClient.GetSettingsAsync(name);

ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Declaration
public static Task ShutdownDefaultChannelsAsync()
Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UpdateProfile(Profile, FieldMask, CallSettings)

Updates the user's profile details.

Declaration
public virtual Profile UpdateProfile(Profile profile, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
Profile profile

Required. Profile details.

FieldMask updateMask

Optional. The list of fields to be updated.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Profile

The RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create();
// Initialize request argument(s)
Profile profile = new Profile();
FieldMask updateMask = new FieldMask();
// Make the request
Profile response = healthProfileServiceClient.UpdateProfile(profile, updateMask);

UpdateProfile(UpdateProfileRequest, CallSettings)

Updates the user's profile details.

Declaration
public virtual Profile UpdateProfile(UpdateProfileRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateProfileRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Profile

The RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create();
// Initialize request argument(s)
UpdateProfileRequest request = new UpdateProfileRequest
{
    Profile = new Profile(),
    UpdateMask = new FieldMask(),
};
// Make the request
Profile response = healthProfileServiceClient.UpdateProfile(request);

UpdateProfileAsync(Profile, FieldMask, CallSettings)

Updates the user's profile details.

Declaration
public virtual Task<Profile> UpdateProfileAsync(Profile profile, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
Profile profile

Required. Profile details.

FieldMask updateMask

Optional. The list of fields to be updated.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Profile>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
Profile profile = new Profile();
FieldMask updateMask = new FieldMask();
// Make the request
Profile response = await healthProfileServiceClient.UpdateProfileAsync(profile, updateMask);

UpdateProfileAsync(Profile, FieldMask, CancellationToken)

Updates the user's profile details.

Declaration
public virtual Task<Profile> UpdateProfileAsync(Profile profile, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
Type Name Description
Profile profile

Required. Profile details.

FieldMask updateMask

Optional. The list of fields to be updated.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Profile>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
Profile profile = new Profile();
FieldMask updateMask = new FieldMask();
// Make the request
Profile response = await healthProfileServiceClient.UpdateProfileAsync(profile, updateMask);

UpdateProfileAsync(UpdateProfileRequest, CallSettings)

Updates the user's profile details.

Declaration
public virtual Task<Profile> UpdateProfileAsync(UpdateProfileRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateProfileRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Profile>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateProfileRequest request = new UpdateProfileRequest
{
    Profile = new Profile(),
    UpdateMask = new FieldMask(),
};
// Make the request
Profile response = await healthProfileServiceClient.UpdateProfileAsync(request);

UpdateProfileAsync(UpdateProfileRequest, CancellationToken)

Updates the user's profile details.

Declaration
public virtual Task<Profile> UpdateProfileAsync(UpdateProfileRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
UpdateProfileRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Profile>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateProfileRequest request = new UpdateProfileRequest
{
    Profile = new Profile(),
    UpdateMask = new FieldMask(),
};
// Make the request
Profile response = await healthProfileServiceClient.UpdateProfileAsync(request);

UpdateSettings(Settings, FieldMask, CallSettings)

Updates the user's settings details.

Declaration
public virtual Settings UpdateSettings(Settings settings, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
Settings settings

Required. Settings details

FieldMask updateMask

Optional. The list of fields to be updated.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Settings

The RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create();
// Initialize request argument(s)
Settings settings = new Settings();
FieldMask updateMask = new FieldMask();
// Make the request
Settings response = healthProfileServiceClient.UpdateSettings(settings, updateMask);

UpdateSettings(UpdateSettingsRequest, CallSettings)

Updates the user's settings details.

Declaration
public virtual Settings UpdateSettings(UpdateSettingsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateSettingsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Settings

The RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = HealthProfileServiceClient.Create();
// Initialize request argument(s)
UpdateSettingsRequest request = new UpdateSettingsRequest
{
    Settings = new Settings(),
    UpdateMask = new FieldMask(),
};
// Make the request
Settings response = healthProfileServiceClient.UpdateSettings(request);

UpdateSettingsAsync(Settings, FieldMask, CallSettings)

Updates the user's settings details.

Declaration
public virtual Task<Settings> UpdateSettingsAsync(Settings settings, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
Settings settings

Required. Settings details

FieldMask updateMask

Optional. The list of fields to be updated.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Settings>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
Settings settings = new Settings();
FieldMask updateMask = new FieldMask();
// Make the request
Settings response = await healthProfileServiceClient.UpdateSettingsAsync(settings, updateMask);

UpdateSettingsAsync(Settings, FieldMask, CancellationToken)

Updates the user's settings details.

Declaration
public virtual Task<Settings> UpdateSettingsAsync(Settings settings, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
Type Name Description
Settings settings

Required. Settings details

FieldMask updateMask

Optional. The list of fields to be updated.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Settings>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
Settings settings = new Settings();
FieldMask updateMask = new FieldMask();
// Make the request
Settings response = await healthProfileServiceClient.UpdateSettingsAsync(settings, updateMask);

UpdateSettingsAsync(UpdateSettingsRequest, CallSettings)

Updates the user's settings details.

Declaration
public virtual Task<Settings> UpdateSettingsAsync(UpdateSettingsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateSettingsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Settings>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateSettingsRequest request = new UpdateSettingsRequest
{
    Settings = new Settings(),
    UpdateMask = new FieldMask(),
};
// Make the request
Settings response = await healthProfileServiceClient.UpdateSettingsAsync(request);

UpdateSettingsAsync(UpdateSettingsRequest, CancellationToken)

Updates the user's settings details.

Declaration
public virtual Task<Settings> UpdateSettingsAsync(UpdateSettingsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
UpdateSettingsRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Settings>

A Task containing the RPC response.

Sample code
// Create client
HealthProfileServiceClient healthProfileServiceClient = await HealthProfileServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateSettingsRequest request = new UpdateSettingsRequest
{
    Settings = new Settings(),
    UpdateMask = new FieldMask(),
};
// Make the request
Settings response = await healthProfileServiceClient.UpdateSettingsAsync(request);
In this article
Back to top Generated by DocFX