public static final class ObservationSampleTime.Builder extends GeneratedMessage.Builder<ObservationSampleTime.Builder> implements ObservationSampleTimeOrBuilderRepresents a sample time of an observed data point.
Protobuf type google.devicesandservices.health.v4.ObservationSampleTime
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ObservationSampleTime.BuilderImplements
ObservationSampleTimeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ObservationSampleTime build()| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime |
|
buildPartial()
public ObservationSampleTime buildPartial()| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime |
|
clear()
public ObservationSampleTime.Builder clear()| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime.Builder |
|
clearCivilTime()
public ObservationSampleTime.Builder clearCivilTime()Output only. The civil time in the timezone the subject is in at the time of the observation.
.google.devicesandservices.health.v4.CivilDateTime civil_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime.Builder |
|
clearPhysicalTime()
public ObservationSampleTime.Builder clearPhysicalTime()Required. The time of the observation.
.google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime.Builder |
|
clearUtcOffset()
public ObservationSampleTime.Builder clearUtcOffset()Required. The offset of the user's local time during the observation relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime.Builder |
|
getCivilTime()
public CivilDateTime getCivilTime()Output only. The civil time in the timezone the subject is in at the time of the observation.
.google.devicesandservices.health.v4.CivilDateTime civil_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CivilDateTime |
The civilTime. |
getCivilTimeBuilder()
public CivilDateTime.Builder getCivilTimeBuilder()Output only. The civil time in the timezone the subject is in at the time of the observation.
.google.devicesandservices.health.v4.CivilDateTime civil_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CivilDateTime.Builder |
|
getCivilTimeOrBuilder()
public CivilDateTimeOrBuilder getCivilTimeOrBuilder()Output only. The civil time in the timezone the subject is in at the time of the observation.
.google.devicesandservices.health.v4.CivilDateTime civil_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CivilDateTimeOrBuilder |
|
getDefaultInstanceForType()
public ObservationSampleTime getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPhysicalTime()
public Timestamp getPhysicalTime()Required. The time of the observation.
.google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The physicalTime. |
getPhysicalTimeBuilder()
public Timestamp.Builder getPhysicalTimeBuilder()Required. The time of the observation.
.google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getPhysicalTimeOrBuilder()
public TimestampOrBuilder getPhysicalTimeOrBuilder()Required. The time of the observation.
.google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getUtcOffset()
public Duration getUtcOffset()Required. The offset of the user's local time during the observation relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Duration |
The utcOffset. |
getUtcOffsetBuilder()
public Duration.Builder getUtcOffsetBuilder()Required. The offset of the user's local time during the observation relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUtcOffsetOrBuilder()
public DurationOrBuilder getUtcOffsetOrBuilder()Required. The offset of the user's local time during the observation relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
hasCivilTime()
public boolean hasCivilTime()Output only. The civil time in the timezone the subject is in at the time of the observation.
.google.devicesandservices.health.v4.CivilDateTime civil_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the civilTime field is set. |
hasPhysicalTime()
public boolean hasPhysicalTime()Required. The time of the observation.
.google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the physicalTime field is set. |
hasUtcOffset()
public boolean hasUtcOffset()Required. The offset of the user's local time during the observation relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the utcOffset field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCivilTime(CivilDateTime value)
public ObservationSampleTime.Builder mergeCivilTime(CivilDateTime value)Output only. The civil time in the timezone the subject is in at the time of the observation.
.google.devicesandservices.health.v4.CivilDateTime civil_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
CivilDateTime |
| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime.Builder |
|
mergeFrom(ObservationSampleTime other)
public ObservationSampleTime.Builder mergeFrom(ObservationSampleTime other)| Parameter | |
|---|---|
| Name | Description |
other |
ObservationSampleTime |
| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ObservationSampleTime.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ObservationSampleTime.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime.Builder |
|
mergePhysicalTime(Timestamp value)
public ObservationSampleTime.Builder mergePhysicalTime(Timestamp value)Required. The time of the observation.
.google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime.Builder |
|
mergeUtcOffset(Duration value)
public ObservationSampleTime.Builder mergeUtcOffset(Duration value)Required. The offset of the user's local time during the observation relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime.Builder |
|
setCivilTime(CivilDateTime value)
public ObservationSampleTime.Builder setCivilTime(CivilDateTime value)Output only. The civil time in the timezone the subject is in at the time of the observation.
.google.devicesandservices.health.v4.CivilDateTime civil_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
CivilDateTime |
| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime.Builder |
|
setCivilTime(CivilDateTime.Builder builderForValue)
public ObservationSampleTime.Builder setCivilTime(CivilDateTime.Builder builderForValue)Output only. The civil time in the timezone the subject is in at the time of the observation.
.google.devicesandservices.health.v4.CivilDateTime civil_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
CivilDateTime.Builder |
| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime.Builder |
|
setPhysicalTime(Timestamp value)
public ObservationSampleTime.Builder setPhysicalTime(Timestamp value)Required. The time of the observation.
.google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime.Builder |
|
setPhysicalTime(Timestamp.Builder builderForValue)
public ObservationSampleTime.Builder setPhysicalTime(Timestamp.Builder builderForValue)Required. The time of the observation.
.google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime.Builder |
|
setUtcOffset(Duration value)
public ObservationSampleTime.Builder setUtcOffset(Duration value)Required. The offset of the user's local time during the observation relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime.Builder |
|
setUtcOffset(Duration.Builder builderForValue)
public ObservationSampleTime.Builder setUtcOffset(Duration.Builder builderForValue)Required. The offset of the user's local time during the observation relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime.Builder |
|