public interface MoodsOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getMoods(int index)
public abstract Moods.Mood getMoods(int index)Required. The moods logged.
repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
Moods.Mood |
The moods at the given index. |
getMoodsCount()
public abstract int getMoodsCount()Required. The moods logged.
repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The count of moods. |
getMoodsList()
public abstract List<Moods.Mood> getMoodsList()Required. The moods logged.
repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<Mood> |
A list containing the moods. |
getMoodsValue(int index)
public abstract int getMoodsValue(int index)Required. The moods logged.
repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire of moods at the given index. |
getMoodsValueList()
public abstract List<Integer> getMoodsValueList()Required. The moods logged.
repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for moods. |
getSampleTime()
public abstract ObservationSampleTime getSampleTime()Required. The time at which moods were measured.
.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime |
The sampleTime. |
getSampleTimeOrBuilder()
public abstract ObservationSampleTimeOrBuilder getSampleTimeOrBuilder()Required. The time at which moods were measured.
.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ObservationSampleTimeOrBuilder |
|
getValences(int index)
public abstract Moods.Valence getValences(int index)Optional. The valences.
repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
Moods.Valence |
The valences at the given index. |
getValencesCount()
public abstract int getValencesCount()Optional. The valences.
repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of valences. |
getValencesList()
public abstract List<Moods.Valence> getValencesList()Optional. The valences.
repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Valence> |
A list containing the valences. |
getValencesValue(int index)
public abstract int getValencesValue(int index)Optional. The valences.
repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire of valences at the given index. |
getValencesValueList()
public abstract List<Integer> getValencesValueList()Optional. The valences.
repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for valences. |
hasSampleTime()
public abstract boolean hasSampleTime()Required. The time at which moods were measured.
.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sampleTime field is set. |