Class User.Builder (0.2.0)

public static final class User.Builder extends GeneratedMessage.Builder<User.Builder> implements UserOrBuilder

Represents a user in the Google Health API. It matches the parent resource of collections owned by the user.

Clients currently do not need to interact with this resource directly.

Protobuf type google.devicesandservices.health.v4.User

Implements

UserOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public User build()
Returns
Type Description
User

buildPartial()

public User buildPartial()
Returns
Type Description
User

clear()

public User.Builder clear()
Returns
Type Description
User.Builder
Overrides

clearName()

public User.Builder clearName()

Identifier. The resource name of the user.

The {user} ID is a system-generated identifier, as described in Identity.health_user_id.

Format: users/{user}

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

Returns
Type Description
User.Builder

This builder for chaining.

getDefaultInstanceForType()

public User getDefaultInstanceForType()
Returns
Type Description
User

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Identifier. The resource name of the user.

The {user} ID is a system-generated identifier, as described in Identity.health_user_id.

Format: users/{user}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the user.

The {user} ID is a system-generated identifier, as described in Identity.health_user_id.

Format: users/{user}

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(User other)

public User.Builder mergeFrom(User other)
Parameter
Name Description
other User
Returns
Type Description
User.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public User.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
User.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public User.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
User.Builder
Overrides

setName(String value)

public User.Builder setName(String value)

Identifier. The resource name of the user.

The {user} ID is a system-generated identifier, as described in Identity.health_user_id.

Format: users/{user}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
User.Builder

This builder for chaining.

setNameBytes(ByteString value)

public User.Builder setNameBytes(ByteString value)

Identifier. The resource name of the user.

The {user} ID is a system-generated identifier, as described in Identity.health_user_id.

Format: users/{user}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
User.Builder

This builder for chaining.