public static final class Height.Builder extends GeneratedMessage.Builder<Height.Builder> implements HeightOrBuilderBody height measurement.
Protobuf type google.devicesandservices.health.v4.Height
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Height.BuilderImplements
HeightOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Height build()| Returns | |
|---|---|
| Type | Description |
Height |
|
buildPartial()
public Height buildPartial()| Returns | |
|---|---|
| Type | Description |
Height |
|
clear()
public Height.Builder clear()| Returns | |
|---|---|
| Type | Description |
Height.Builder |
|
clearHeightMillimeters()
public Height.Builder clearHeightMillimeters()Required. Height of the user in millimeters.
optional int64 height_millimeters = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Height.Builder |
This builder for chaining. |
clearSampleTime()
public Height.Builder clearSampleTime()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 |
Height.Builder |
|
getDefaultInstanceForType()
public Height getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Height |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
getSampleTimeBuilder()
public ObservationSampleTime.Builder getSampleTimeBuilder()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.Builder |
|
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 |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Height other)
public Height.Builder mergeFrom(Height other)| Parameter | |
|---|---|
| Name | Description |
other |
Height |
| Returns | |
|---|---|
| Type | Description |
Height.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Height.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Height.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Height.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Height.Builder |
|
mergeSampleTime(ObservationSampleTime value)
public Height.Builder mergeSampleTime(ObservationSampleTime value)Required. The time at which the height was recorded.
.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ObservationSampleTime |
| Returns | |
|---|---|
| Type | Description |
Height.Builder |
|
setHeightMillimeters(long value)
public Height.Builder setHeightMillimeters(long value)Required. Height of the user in millimeters.
optional int64 height_millimeters = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe heightMillimeters to set. |
| Returns | |
|---|---|
| Type | Description |
Height.Builder |
This builder for chaining. |
setSampleTime(ObservationSampleTime value)
public Height.Builder setSampleTime(ObservationSampleTime value)Required. The time at which the height was recorded.
.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ObservationSampleTime |
| Returns | |
|---|---|
| Type | Description |
Height.Builder |
|
setSampleTime(ObservationSampleTime.Builder builderForValue)
public Height.Builder setSampleTime(ObservationSampleTime.Builder builderForValue)Required. The time at which the height was recorded.
.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ObservationSampleTime.Builder |
| Returns | |
|---|---|
| Type | Description |
Height.Builder |
|