public final class

DataProto.Device.Builder

extends <any>

implements DataProto.DeviceOrBuilder

 java.lang.Object

↳<any>

↳androidx.health.platform.client.proto.DataProto.Device.Builder

Overview

Protobuf type androidx.health.platform.client.proto.Device

Summary

Methods
public DataProto.Device.BuilderclearIdentifier()

optional string identifier = 1;

public DataProto.Device.BuilderclearManufacturer()

optional string manufacturer = 2;

public DataProto.Device.BuilderclearModel()

optional string model = 3;

public DataProto.Device.BuilderclearType()

optional string type = 4;

public java.lang.StringgetIdentifier()

optional string identifier = 1;

public com.google.protobuf.ByteStringgetIdentifierBytes()

optional string identifier = 1;

public java.lang.StringgetManufacturer()

optional string manufacturer = 2;

public com.google.protobuf.ByteStringgetManufacturerBytes()

optional string manufacturer = 2;

public java.lang.StringgetModel()

optional string model = 3;

public com.google.protobuf.ByteStringgetModelBytes()

optional string model = 3;

public java.lang.StringgetType()

optional string type = 4;

public com.google.protobuf.ByteStringgetTypeBytes()

optional string type = 4;

public booleanhasIdentifier()

optional string identifier = 1;

public booleanhasManufacturer()

optional string manufacturer = 2;

public booleanhasModel()

optional string model = 3;

public booleanhasType()

optional string type = 4;

public DataProto.Device.BuildersetIdentifier(java.lang.String value)

optional string identifier = 1;

public DataProto.Device.BuildersetIdentifierBytes(com.google.protobuf.ByteString value)

optional string identifier = 1;

public DataProto.Device.BuildersetManufacturer(java.lang.String value)

optional string manufacturer = 2;

public DataProto.Device.BuildersetManufacturerBytes(com.google.protobuf.ByteString value)

optional string manufacturer = 2;

public DataProto.Device.BuildersetModel(java.lang.String value)

optional string model = 3;

public DataProto.Device.BuildersetModelBytes(com.google.protobuf.ByteString value)

optional string model = 3;

public DataProto.Device.BuildersetType(java.lang.String value)

optional string type = 4;

public DataProto.Device.BuildersetTypeBytes(com.google.protobuf.ByteString value)

optional string type = 4;

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public boolean hasIdentifier()

optional string identifier = 1;

Returns:

Whether the identifier field is set.

public java.lang.String getIdentifier()

optional string identifier = 1;

Returns:

The identifier.

public com.google.protobuf.ByteString getIdentifierBytes()

optional string identifier = 1;

Returns:

The bytes for identifier.

public DataProto.Device.Builder setIdentifier(java.lang.String value)

optional string identifier = 1;

Parameters:

value: The identifier to set.

Returns:

This builder for chaining.

public DataProto.Device.Builder clearIdentifier()

optional string identifier = 1;

Returns:

This builder for chaining.

public DataProto.Device.Builder setIdentifierBytes(com.google.protobuf.ByteString value)

optional string identifier = 1;

Parameters:

value: The bytes for identifier to set.

Returns:

This builder for chaining.

public boolean hasManufacturer()

optional string manufacturer = 2;

Returns:

Whether the manufacturer field is set.

public java.lang.String getManufacturer()

optional string manufacturer = 2;

Returns:

The manufacturer.

public com.google.protobuf.ByteString getManufacturerBytes()

optional string manufacturer = 2;

Returns:

The bytes for manufacturer.

public DataProto.Device.Builder setManufacturer(java.lang.String value)

optional string manufacturer = 2;

Parameters:

value: The manufacturer to set.

Returns:

This builder for chaining.

public DataProto.Device.Builder clearManufacturer()

optional string manufacturer = 2;

Returns:

This builder for chaining.

public DataProto.Device.Builder setManufacturerBytes(com.google.protobuf.ByteString value)

optional string manufacturer = 2;

Parameters:

value: The bytes for manufacturer to set.

Returns:

This builder for chaining.

public boolean hasModel()

optional string model = 3;

Returns:

Whether the model field is set.

public java.lang.String getModel()

optional string model = 3;

Returns:

The model.

public com.google.protobuf.ByteString getModelBytes()

optional string model = 3;

Returns:

The bytes for model.

public DataProto.Device.Builder setModel(java.lang.String value)

optional string model = 3;

Parameters:

value: The model to set.

Returns:

This builder for chaining.

public DataProto.Device.Builder clearModel()

optional string model = 3;

Returns:

This builder for chaining.

public DataProto.Device.Builder setModelBytes(com.google.protobuf.ByteString value)

optional string model = 3;

Parameters:

value: The bytes for model to set.

Returns:

This builder for chaining.

public boolean hasType()

optional string type = 4;

Returns:

Whether the type field is set.

public java.lang.String getType()

optional string type = 4;

Returns:

The type.

public com.google.protobuf.ByteString getTypeBytes()

optional string type = 4;

Returns:

The bytes for type.

public DataProto.Device.Builder setType(java.lang.String value)

optional string type = 4;

Parameters:

value: The type to set.

Returns:

This builder for chaining.

public DataProto.Device.Builder clearType()

optional string type = 4;

Returns:

This builder for chaining.

public DataProto.Device.Builder setTypeBytes(com.google.protobuf.ByteString value)

optional string type = 4;

Parameters:

value: The bytes for type to set.

Returns:

This builder for chaining.