Class Height (0.2.0)

public final class Height extends GeneratedMessage implements HeightOrBuilder

Body height measurement.

Protobuf type google.devicesandservices.health.v4.Height

Implements

HeightOrBuilder

Static Fields

HEIGHT_MILLIMETERS_FIELD_NUMBER

public static final int HEIGHT_MILLIMETERS_FIELD_NUMBER
Field Value
Type Description
int

SAMPLE_TIME_FIELD_NUMBER

public static final int SAMPLE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Height getDefaultInstance()
Returns
Type Description
Height

getDescriptor()

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

newBuilder()

public static Height.Builder newBuilder()
Returns
Type Description
Height.Builder

newBuilder(Height prototype)

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

parseDelimitedFrom(InputStream input)

public static Height parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Height
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Height parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Height
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Height parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Height
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Height parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Height
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Height parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Height
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Height> parser()
Returns
Type Description
Parser<Height>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Height getDefaultInstanceForType()
Returns
Type Description
Height

getHeightMillimeters()

public long getHeightMillimeters()

Required. Height of the user in millimeters.

optional int64 height_millimeters = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The heightMillimeters.

getParserForType()

public Parser<Height> getParserForType()
Returns
Type Description
Parser<Height>
Overrides

getSampleTime()

public ObservationSampleTime getSampleTime()

Required. The time at which the height was recorded.

.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ObservationSampleTime

The sampleTime.

getSampleTimeOrBuilder()

public ObservationSampleTimeOrBuilder getSampleTimeOrBuilder()

Required. The time at which the height was recorded.

.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ObservationSampleTimeOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasHeightMillimeters()

public boolean hasHeightMillimeters()

Required. Height of the user in millimeters.

optional int64 height_millimeters = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the heightMillimeters field is set.

hasSampleTime()

public boolean hasSampleTime()

Required. The time at which the height was recorded.

.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the sampleTime field is set.

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 Height.Builder newBuilderForType()
Returns
Type Description
Height.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public Height.Builder toBuilder()
Returns
Type Description
Height.Builder

writeTo(CodedOutputStream output)

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