Class BloodGlucose (0.2.0)

public final class BloodGlucose extends GeneratedMessage implements BloodGlucoseOrBuilder

Represents a blood glucose level measurement. LINT: LEGACY_NAMES

Protobuf type google.devicesandservices.health.v4.BloodGlucose

Static Fields

BLOOD_GLUCOSE_MILLIGRAMS_PER_DECILITER_FIELD_NUMBER

public static final int BLOOD_GLUCOSE_MILLIGRAMS_PER_DECILITER_FIELD_NUMBER
Field Value
Type Description
int

MEAL_TYPE_FIELD_NUMBER

public static final int MEAL_TYPE_FIELD_NUMBER
Field Value
Type Description
int

MEASUREMENT_SOURCE_FIELD_NUMBER

public static final int MEASUREMENT_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

MEASUREMENT_TIMING_FIELD_NUMBER

public static final int MEASUREMENT_TIMING_FIELD_NUMBER
Field Value
Type Description
int

NOTES_FIELD_NUMBER

public static final int NOTES_FIELD_NUMBER
Field Value
Type Description
int

SAMPLE_TIME_FIELD_NUMBER

public static final int SAMPLE_TIME_FIELD_NUMBER
Field Value
Type Description
int

SPECIMEN_FIELD_NUMBER

public static final int SPECIMEN_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BloodGlucose getDefaultInstance()
Returns
Type Description
BloodGlucose

getDescriptor()

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

newBuilder()

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

newBuilder(BloodGlucose prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBloodGlucoseMilligramsPerDeciliter()

public double getBloodGlucoseMilligramsPerDeciliter()

Required. Blood glucose level concentration in mg/dL.

optional double blood_glucose_milligrams_per_deciliter = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
double

The bloodGlucoseMilligramsPerDeciliter.

getDefaultInstanceForType()

public BloodGlucose getDefaultInstanceForType()
Returns
Type Description
BloodGlucose

getMealType()

public BloodGlucose.MealType getMealType()

Optional. Meal type of the measurement.

.google.devicesandservices.health.v4.BloodGlucose.MealType meal_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BloodGlucose.MealType

The mealType.

getMealTypeValue()

public int getMealTypeValue()

Optional. Meal type of the measurement.

.google.devicesandservices.health.v4.BloodGlucose.MealType meal_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for mealType.

getMeasurementSource()

public BloodGlucose.MeasurementSource getMeasurementSource()

Optional. Source of the measurement.

.google.devicesandservices.health.v4.BloodGlucose.MeasurementSource measurement_source = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BloodGlucose.MeasurementSource

The measurementSource.

getMeasurementSourceValue()

public int getMeasurementSourceValue()

Optional. Source of the measurement.

.google.devicesandservices.health.v4.BloodGlucose.MeasurementSource measurement_source = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for measurementSource.

getMeasurementTiming()

public BloodGlucose.MeasurementTiming getMeasurementTiming()

Optional. Timing of the measurement.

.google.devicesandservices.health.v4.BloodGlucose.MeasurementTiming measurement_timing = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BloodGlucose.MeasurementTiming

The measurementTiming.

getMeasurementTimingValue()

public int getMeasurementTimingValue()

Optional. Timing of the measurement.

.google.devicesandservices.health.v4.BloodGlucose.MeasurementTiming measurement_timing = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for measurementTiming.

getNotes()

public String getNotes()

Optional. Standard free-form notes captured at manual logging.

string notes = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The notes.

getNotesBytes()

public ByteString getNotesBytes()

Optional. Standard free-form notes captured at manual logging.

string notes = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for notes.

getParserForType()

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

getSampleTime()

public ObservationSampleTime getSampleTime()

Required. The time at which blood glucose was measured.

.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 blood glucose was measured.

.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

getSpecimen()

public BloodGlucose.Specimen getSpecimen()

Optional. Type of body fluid used to measure the blood glucose.

.google.devicesandservices.health.v4.BloodGlucose.Specimen specimen = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BloodGlucose.Specimen

The specimen.

getSpecimenValue()

public int getSpecimenValue()

Optional. Type of body fluid used to measure the blood glucose.

.google.devicesandservices.health.v4.BloodGlucose.Specimen specimen = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for specimen.

hasBloodGlucoseMilligramsPerDeciliter()

public boolean hasBloodGlucoseMilligramsPerDeciliter()

Required. Blood glucose level concentration in mg/dL.

optional double blood_glucose_milligrams_per_deciliter = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the bloodGlucoseMilligramsPerDeciliter field is set.

hasSampleTime()

public boolean hasSampleTime()

Required. The time at which blood glucose was measured.

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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