public final class Moods extends GeneratedMessage implements MoodsOrBuilder
Moods record.
Protobuf type google.devicesandservices.health.v4.Moods
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
MOODS_FIELD_NUMBER
public static final int MOODS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SAMPLE_TIME_FIELD_NUMBER
public static final int SAMPLE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
VALENCES_FIELD_NUMBER
public static final int VALENCES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Moods getDefaultInstance()
| Returns |
| Type |
Description |
Moods |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Moods.Builder newBuilder()
newBuilder(Moods prototype)
public static Moods.Builder newBuilder(Moods prototype)
| Parameter |
| Name |
Description |
prototype |
Moods
|
public static Moods parseDelimitedFrom(InputStream input)
| Returns |
| Type |
Description |
Moods |
|
public static Moods parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Moods |
|
parseFrom(byte[] data)
public static Moods parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
Moods |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Moods parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Moods |
|
parseFrom(ByteString data)
public static Moods parseFrom(ByteString data)
| Returns |
| Type |
Description |
Moods |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Moods parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Moods |
|
public static Moods parseFrom(CodedInputStream input)
| Returns |
| Type |
Description |
Moods |
|
public static Moods parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Moods |
|
public static Moods parseFrom(InputStream input)
| Returns |
| Type |
Description |
Moods |
|
public static Moods parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Moods |
|
parseFrom(ByteBuffer data)
public static Moods parseFrom(ByteBuffer data)
| Returns |
| Type |
Description |
Moods |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Moods parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Moods |
|
parser()
public static Parser<Moods> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Moods getDefaultInstanceForType()
| Returns |
| Type |
Description |
Moods |
|
getMoods(int index)
public 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 |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
Moods.Mood |
The moods at the given index.
|
getMoodsCount()
public 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 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 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 |
int
The 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 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.
|
getParserForType()
public Parser<Moods> getParserForType()
Overrides
getSampleTime()
public ObservationSampleTime getSampleTime()
Required. The time at which moods were measured.
.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED];
getSampleTimeOrBuilder()
public ObservationSampleTimeOrBuilder getSampleTimeOrBuilder()
Required. The time at which moods were measured.
.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED];
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getValences(int index)
public 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 |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
Moods.Valence |
The valences at the given index.
|
getValencesCount()
public 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 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 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 |
int
The 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 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 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.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Moods.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Moods.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Moods.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides