Class Symptoms.Builder (0.8.0)

public static final class Symptoms.Builder extends GeneratedMessage.Builder<Symptoms.Builder> implements SymptomsOrBuilder

Symptoms logged by the user.

Protobuf type google.devicesandservices.health.v4.Symptoms

Implements

SymptomsOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllSymptoms(Iterable<? extends Symptoms.SymptomValue> values)

public Symptoms.Builder addAllSymptoms(Iterable<? extends Symptoms.SymptomValue> values)

Required. List of symptoms experienced.

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

Parameter
Name Description
values Iterable<? extends com.google.devicesandservices.health.v4.Symptoms.SymptomValue>

The symptoms to add.

Returns
Type Description
Symptoms.Builder

This builder for chaining.

addAllSymptomsValue(Iterable<Integer> values)

public Symptoms.Builder addAllSymptomsValue(Iterable<Integer> values)

Required. List of symptoms experienced.

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

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for symptoms to add.

Returns
Type Description
Symptoms.Builder

This builder for chaining.

addSymptoms(Symptoms.SymptomValue value)

public Symptoms.Builder addSymptoms(Symptoms.SymptomValue value)

Required. List of symptoms experienced.

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

Parameter
Name Description
value Symptoms.SymptomValue

The symptoms to add.

Returns
Type Description
Symptoms.Builder

This builder for chaining.

addSymptomsValue(int value)

public Symptoms.Builder addSymptomsValue(int value)

Required. List of symptoms experienced.

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

Parameter
Name Description
value int

The enum numeric value on the wire for symptoms to add.

Returns
Type Description
Symptoms.Builder

This builder for chaining.

build()

public Symptoms build()
Returns
Type Description
Symptoms

buildPartial()

public Symptoms buildPartial()
Returns
Type Description
Symptoms

clear()

public Symptoms.Builder clear()
Returns
Type Description
Symptoms.Builder
Overrides

clearSampleTime()

public Symptoms.Builder clearSampleTime()

Required. Time when the symptoms were logged.

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

Returns
Type Description
Symptoms.Builder

clearSymptoms()

public Symptoms.Builder clearSymptoms()

Required. List of symptoms experienced.

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

Returns
Type Description
Symptoms.Builder

This builder for chaining.

getDefaultInstanceForType()

public Symptoms getDefaultInstanceForType()
Returns
Type Description
Symptoms

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

getSampleTimeBuilder()

public ObservationSampleTime.Builder getSampleTimeBuilder()

Required. Time when the symptoms were logged.

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

Returns
Type Description
ObservationSampleTime.Builder

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Symptoms other)

public Symptoms.Builder mergeFrom(Symptoms other)
Parameter
Name Description
other Symptoms
Returns
Type Description
Symptoms.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Symptoms.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Symptoms.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Symptoms.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Symptoms.Builder
Overrides

mergeSampleTime(ObservationSampleTime value)

public Symptoms.Builder mergeSampleTime(ObservationSampleTime value)

Required. Time when the symptoms were logged.

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

Parameter
Name Description
value ObservationSampleTime
Returns
Type Description
Symptoms.Builder

setSampleTime(ObservationSampleTime value)

public Symptoms.Builder setSampleTime(ObservationSampleTime value)

Required. Time when the symptoms were logged.

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

Parameter
Name Description
value ObservationSampleTime
Returns
Type Description
Symptoms.Builder

setSampleTime(ObservationSampleTime.Builder builderForValue)

public Symptoms.Builder setSampleTime(ObservationSampleTime.Builder builderForValue)

Required. Time when the symptoms were logged.

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

Parameter
Name Description
builderForValue ObservationSampleTime.Builder
Returns
Type Description
Symptoms.Builder

setSymptoms(int index, Symptoms.SymptomValue value)

public Symptoms.Builder setSymptoms(int index, Symptoms.SymptomValue value)

Required. List of symptoms experienced.

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

Parameters
Name Description
index int

The index to set the value at.

value Symptoms.SymptomValue

The symptoms to set.

Returns
Type Description
Symptoms.Builder

This builder for chaining.

setSymptomsValue(int index, int value)

public Symptoms.Builder setSymptomsValue(int index, int value)

Required. List of symptoms experienced.

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

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for symptoms to set.

Returns
Type Description
Symptoms.Builder

This builder for chaining.