public static final class DataSource.Device.Builder extends GeneratedMessage.Builder<DataSource.Device.Builder> implements DataSource.DeviceOrBuilderCaptures metadata about the device that recorded the measurement.
Protobuf type google.devicesandservices.health.v4.DataSource.Device
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DataSource.Device.BuilderImplements
DataSource.DeviceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DataSource.Device build()| Returns | |
|---|---|
| Type | Description |
DataSource.Device |
|
buildPartial()
public DataSource.Device buildPartial()| Returns | |
|---|---|
| Type | Description |
DataSource.Device |
|
clear()
public DataSource.Device.Builder clear()| Returns | |
|---|---|
| Type | Description |
DataSource.Device.Builder |
|
clearDisplayName()
public DataSource.Device.Builder clearDisplayName()Optional. An optional name for the device.
string display_name = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DataSource.Device.Builder |
This builder for chaining. |
clearFormFactor()
public DataSource.Device.Builder clearFormFactor()Optional. Captures the form factor of the device.
.google.devicesandservices.health.v4.DataSource.Device.FormFactor form_factor = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DataSource.Device.Builder |
This builder for chaining. |
clearManufacturer()
public DataSource.Device.Builder clearManufacturer()Optional. An optional manufacturer of the device.
string manufacturer = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DataSource.Device.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public DataSource.Device getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DataSource.Device |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDisplayName()
public String getDisplayName()Optional. An optional name for the device.
string display_name = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()Optional. An optional name for the device.
string display_name = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for displayName. |
getFormFactor()
public DataSource.Device.FormFactor getFormFactor()Optional. Captures the form factor of the device.
.google.devicesandservices.health.v4.DataSource.Device.FormFactor form_factor = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DataSource.Device.FormFactor |
The formFactor. |
getFormFactorValue()
public int getFormFactorValue()Optional. Captures the form factor of the device.
.google.devicesandservices.health.v4.DataSource.Device.FormFactor form_factor = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for formFactor. |
getManufacturer()
public String getManufacturer()Optional. An optional manufacturer of the device.
string manufacturer = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The manufacturer. |
getManufacturerBytes()
public ByteString getManufacturerBytes()Optional. An optional manufacturer of the device.
string manufacturer = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for manufacturer. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(DataSource.Device other)
public DataSource.Device.Builder mergeFrom(DataSource.Device other)| Parameter | |
|---|---|
| Name | Description |
other |
DataSource.Device |
| Returns | |
|---|---|
| Type | Description |
DataSource.Device.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DataSource.Device.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DataSource.Device.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DataSource.Device.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DataSource.Device.Builder |
|
setDisplayName(String value)
public DataSource.Device.Builder setDisplayName(String value)Optional. An optional name for the device.
string display_name = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe displayName to set. |
| Returns | |
|---|---|
| Type | Description |
DataSource.Device.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public DataSource.Device.Builder setDisplayNameBytes(ByteString value)Optional. An optional name for the device.
string display_name = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
DataSource.Device.Builder |
This builder for chaining. |
setFormFactor(DataSource.Device.FormFactor value)
public DataSource.Device.Builder setFormFactor(DataSource.Device.FormFactor value)Optional. Captures the form factor of the device.
.google.devicesandservices.health.v4.DataSource.Device.FormFactor form_factor = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
DataSource.Device.FormFactorThe formFactor to set. |
| Returns | |
|---|---|
| Type | Description |
DataSource.Device.Builder |
This builder for chaining. |
setFormFactorValue(int value)
public DataSource.Device.Builder setFormFactorValue(int value)Optional. Captures the form factor of the device.
.google.devicesandservices.health.v4.DataSource.Device.FormFactor form_factor = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for formFactor to set. |
| Returns | |
|---|---|
| Type | Description |
DataSource.Device.Builder |
This builder for chaining. |
setManufacturer(String value)
public DataSource.Device.Builder setManufacturer(String value)Optional. An optional manufacturer of the device.
string manufacturer = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe manufacturer to set. |
| Returns | |
|---|---|
| Type | Description |
DataSource.Device.Builder |
This builder for chaining. |
setManufacturerBytes(ByteString value)
public DataSource.Device.Builder setManufacturerBytes(ByteString value)Optional. An optional manufacturer of the device.
string manufacturer = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for manufacturer to set. |
| Returns | |
|---|---|
| Type | Description |
DataSource.Device.Builder |
This builder for chaining. |