public static final class Identity.Builder extends GeneratedMessage.Builder<Identity.Builder> implements IdentityOrBuilderRepresents details about the Google user's identity.
Protobuf type google.devicesandservices.health.v4.Identity
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Identity.BuilderImplements
IdentityOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Identity build()| Returns | |
|---|---|
| Type | Description |
Identity |
|
buildPartial()
public Identity buildPartial()| Returns | |
|---|---|
| Type | Description |
Identity |
|
clear()
public Identity.Builder clear()| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
|
clearHealthUserId()
public Identity.Builder clearHealthUserId() 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 |
Identity.Builder |
This builder for chaining. |
clearLegacyUserId()
public Identity.Builder clearLegacyUserId()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 |
Identity.Builder |
This builder for chaining. |
clearName()
public Identity.Builder clearName() Identifier. The resource name of this Identity resource.
Format: users/me/identity
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Identity getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Identity |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getHealthUserId()
public 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 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 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 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 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 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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Identity other)
public Identity.Builder mergeFrom(Identity other)| Parameter | |
|---|---|
| Name | Description |
other |
Identity |
| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Identity.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Identity.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
|
setHealthUserId(String value)
public Identity.Builder setHealthUserId(String value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe healthUserId to set. |
| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
This builder for chaining. |
setHealthUserIdBytes(ByteString value)
public Identity.Builder setHealthUserIdBytes(ByteString value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for healthUserId to set. |
| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
This builder for chaining. |
setLegacyUserId(String value)
public Identity.Builder setLegacyUserId(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe legacyUserId to set. |
| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
This builder for chaining. |
setLegacyUserIdBytes(ByteString value)
public Identity.Builder setLegacyUserIdBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for legacyUserId to set. |
| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
This builder for chaining. |
setName(String value)
public Identity.Builder setName(String value) Identifier. The resource name of this Identity resource.
Format: users/me/identity
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Identity.Builder setNameBytes(ByteString value) Identifier. The resource name of this Identity resource.
Format: users/me/identity
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
This builder for chaining. |