public static final class DataType.Builder extends GeneratedMessage.Builder<DataType.Builder> implements DataTypeOrBuilderRepresents 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DataType.BuilderImplements
DataTypeOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DataType.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DataType.Builder |
|
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 |
StringThe 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 |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
DataType.Builder |
This builder for chaining. |