Class Moods (0.8.0)

public final class Moods extends GeneratedMessage implements MoodsOrBuilder

Moods record.

Protobuf type google.devicesandservices.health.v4.Moods

Implements

MoodsOrBuilder

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()
Returns
Type Description
Descriptor

newBuilder()

public static Moods.Builder newBuilder()
Returns
Type Description
Moods.Builder

newBuilder(Moods prototype)

public static Moods.Builder newBuilder(Moods prototype)
Parameter
Name Description
prototype Moods
Returns
Type Description
Moods.Builder

parseDelimitedFrom(InputStream input)

public static Moods parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Moods
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Moods parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Moods
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Moods parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Moods
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Moods parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Moods
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Moods parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Moods
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Moods parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Moods
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Moods parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Moods
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Moods parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Moods
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Moods parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Moods
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Moods parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Moods
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Moods parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Moods
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Moods parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Moods
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Moods> parser()
Returns
Type Description
Parser<Moods>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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()
Returns
Type Description
Parser<Moods>
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];

Returns
Type Description
ObservationSampleTime

The sampleTime.

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];

Returns
Type Description
ObservationSampleTimeOrBuilder

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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Moods.Builder newBuilderForType()
Returns
Type Description
Moods.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Moods.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Moods.Builder
Overrides

toBuilder()

public Moods.Builder toBuilder()
Returns
Type Description
Moods.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException