Class Symptoms (0.8.0)

public final class Symptoms extends GeneratedMessage implements SymptomsOrBuilder

Symptoms logged by the user.

Protobuf type google.devicesandservices.health.v4.Symptoms

Implements

SymptomsOrBuilder

Static Fields

SAMPLE_TIME_FIELD_NUMBER

public static final int SAMPLE_TIME_FIELD_NUMBER
Field Value
Type Description
int

SYMPTOMS_FIELD_NUMBER

public static final int SYMPTOMS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Symptoms getDefaultInstance()
Returns
Type Description
Symptoms

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

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

newBuilder(Symptoms prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Symptoms getDefaultInstanceForType()
Returns
Type Description
Symptoms

getParserForType()

public Parser<Symptoms> getParserForType()
Returns
Type Description
Parser<Symptoms>
Overrides

getSampleTime()

public ObservationSampleTime getSampleTime()

Required. Time when the symptoms were logged.

.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ObservationSampleTime

The sampleTime.

getSampleTimeOrBuilder()

public ObservationSampleTimeOrBuilder getSampleTimeOrBuilder()

Required. Time when the symptoms were logged.

.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ObservationSampleTimeOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSymptoms(int index)

public Symptoms.SymptomValue getSymptoms(int index)

Required. List of symptoms experienced.

repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
Symptoms.SymptomValue

The symptoms at the given index.

getSymptomsCount()

public int getSymptomsCount()

Required. List of symptoms experienced.

repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of symptoms.

getSymptomsList()

public List<Symptoms.SymptomValue> getSymptomsList()

Required. List of symptoms experienced.

repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<SymptomValue>

A list containing the symptoms.

getSymptomsValue(int index)

public int getSymptomsValue(int index)

Required. List of symptoms experienced.

repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.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 symptoms at the given index.

getSymptomsValueList()

public List<Integer> getSymptomsValueList()

Required. List of symptoms experienced.

repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for symptoms.

hasSampleTime()

public boolean hasSampleTime()

Required. Time when the symptoms were logged.

.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.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 Symptoms.Builder newBuilderForType()
Returns
Type Description
Symptoms.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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