# Interface ObservationSampleTimeOrBuilder (0.2.0)

    public interface ObservationSampleTimeOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getCivilTime()

    public abstract 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.CivilDateTime` | The civilTime. |

### getCivilTimeOrBuilder()

    public abstract 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.CivilDateTimeOrBuilder` |   |

### getPhysicalTime()

    public abstract Timestamp getPhysicalTime()

Required. The time of the observation.

`.google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The physicalTime. |

### getPhysicalTimeOrBuilder()

    public abstract TimestampOrBuilder getPhysicalTimeOrBuilder()

Required. The time of the observation.

`.google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getUtcOffset()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Duration.html` | The utcOffset. |

### getUtcOffsetOrBuilder()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.DurationOrBuilder.html` |   |

### hasCivilTime()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the civilTime field is set. |

### hasPhysicalTime()

    public abstract boolean hasPhysicalTime()

Required. The time of the observation.

`.google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the physicalTime field is set. |

### hasUtcOffset()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the utcOffset field is set. |