Class DataType.Builder (0.2.0)

public static final class DataType.Builder extends GeneratedMessage.Builder<DataType.Builder> implements DataTypeOrBuilder

Represents a type of health data a user can have data points recorded for. It matches the parent resource of collection containing data points of the given type.

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

Protobuf type google.devicesandservices.health.v4.DataType

Implements

DataTypeOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public DataType build()
Returns
Type Description
DataType

buildPartial()

public DataType buildPartial()
Returns
Type Description
DataType

clear()

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

clearName()

public DataType.Builder clearName()

Identifier. The resource name of the data type.

Format: users/{user}/dataTypes/{data_type}

See DataPoint.name for examples and possible values.

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

Returns
Type Description
DataType.Builder

This builder for chaining.

getDefaultInstanceForType()

public DataType getDefaultInstanceForType()
Returns
Type Description
DataType

getDescriptorForType()

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

getName()

public String getName()

Identifier. The resource name of the data type.

Format: users/{user}/dataTypes/{data_type}

See DataPoint.name for examples and possible values.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the data type.

Format: users/{user}/dataTypes/{data_type}

See DataPoint.name for examples and possible values.

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(DataType other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public DataType.Builder setName(String value)

Identifier. The resource name of the data type.

Format: users/{user}/dataTypes/{data_type}

See DataPoint.name for examples and possible values.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DataType.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DataType.Builder setNameBytes(ByteString value)

Identifier. The resource name of the data type.

Format: users/{user}/dataTypes/{data_type}

See DataPoint.name for examples and possible values.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DataType.Builder

This builder for chaining.