Interface IdentityOrBuilder (0.2.0)

public interface IdentityOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getHealthUserId()

public abstract String getHealthUserId()

Output only. The Google User Identifier in the Google Health APIs. It matches the {user} resource ID segment in the resource name paths, e.g. users/{user}/dataTypes/steps.

Valid values are strings of 1-63 characters, and valid characters are lowercase and uppercase letters, numbers, and hyphens.

string health_user_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The healthUserId.

getHealthUserIdBytes()

public abstract ByteString getHealthUserIdBytes()

Output only. The Google User Identifier in the Google Health APIs. It matches the {user} resource ID segment in the resource name paths, e.g. users/{user}/dataTypes/steps.

Valid values are strings of 1-63 characters, and valid characters are lowercase and uppercase letters, numbers, and hyphens.

string health_user_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for healthUserId.

getLegacyUserId()

public abstract String getLegacyUserId()

Output only. The legacy Fitbit User identifier. This is the Fitbit ID used in the legacy Fitbit APIs (v1-v3). It can be referenced by clients migrating from the legacy Fitbit APIs to map their existing identifiers to the new Google user ID.

It must not be used for any other purpose. It is not of any use for new clients using only the Google Health APIs.

Valid values are strings of 1-63 characters, and valid characters are lowercase and uppercase letters, numbers, and hyphens.

string legacy_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The legacyUserId.

getLegacyUserIdBytes()

public abstract ByteString getLegacyUserIdBytes()

Output only. The legacy Fitbit User identifier. This is the Fitbit ID used in the legacy Fitbit APIs (v1-v3). It can be referenced by clients migrating from the legacy Fitbit APIs to map their existing identifiers to the new Google user ID.

It must not be used for any other purpose. It is not of any use for new clients using only the Google Health APIs.

Valid values are strings of 1-63 characters, and valid characters are lowercase and uppercase letters, numbers, and hyphens.

string legacy_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for legacyUserId.

getName()

public abstract String getName()

Identifier. The resource name of this Identity resource. Format: users/me/identity

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Identifier. The resource name of this Identity resource. Format: users/me/identity

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.