Class DataSource.Device (0.2.0)

public static final class DataSource.Device extends GeneratedMessage implements DataSource.DeviceOrBuilder

Captures metadata about the device that recorded the measurement.

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

Static Fields

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

FORM_FACTOR_FIELD_NUMBER

public static final int FORM_FACTOR_FIELD_NUMBER
Field Value
Type Description
int

MANUFACTURER_FIELD_NUMBER

public static final int MANUFACTURER_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DataSource.Device getDefaultInstance()
Returns
Type Description
DataSource.Device

getDescriptor()

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

newBuilder()

public static DataSource.Device.Builder newBuilder()
Returns
Type Description
DataSource.Device.Builder

newBuilder(DataSource.Device prototype)

public static DataSource.Device.Builder newBuilder(DataSource.Device prototype)
Parameter
Name Description
prototype DataSource.Device
Returns
Type Description
DataSource.Device.Builder

parseDelimitedFrom(InputStream input)

public static DataSource.Device parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DataSource.Device
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataSource.Device parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSource.Device
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DataSource.Device parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DataSource.Device
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DataSource.Device parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSource.Device
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DataSource.Device parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DataSource.Device
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DataSource.Device parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSource.Device
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DataSource.Device parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DataSource.Device
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DataSource.Device parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSource.Device
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DataSource.Device parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DataSource.Device
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataSource.Device parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSource.Device
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DataSource.Device parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DataSource.Device
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DataSource.Device parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSource.Device
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DataSource.Device> parser()
Returns
Type Description
Parser<Device>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public DataSource.Device getDefaultInstanceForType()
Returns
Type Description
DataSource.Device

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.

getParserForType()

public Parser<DataSource.Device> getParserForType()
Returns
Type Description
Parser<Device>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DataSource.Device.Builder newBuilderForType()
Returns
Type Description
DataSource.Device.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected DataSource.Device.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DataSource.Device.Builder
Overrides

toBuilder()

public DataSource.Device.Builder toBuilder()
Returns
Type Description
DataSource.Device.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException