Class DataSource.Device.Builder (0.2.0)

public static final class DataSource.Device.Builder extends GeneratedMessage.Builder<DataSource.Device.Builder> implements DataSource.DeviceOrBuilder

Captures metadata about the device that recorded the measurement.

Protobuf type google.devicesandservices.health.v4.DataSource.Device

Static 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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
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
Overrides

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 String

The 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 ByteString

The 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.FormFactor

The 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 int

The 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 String

The 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 ByteString

The bytes for manufacturer to set.

Returns
Type Description
DataSource.Device.Builder

This builder for chaining.