Class MenstrualPeriod.Builder (0.8.0)

public static final class MenstrualPeriod.Builder extends GeneratedMessage.Builder<MenstrualPeriod.Builder> implements MenstrualPeriodOrBuilder

Menstrual period record.

Protobuf type google.devicesandservices.health.v4.MenstrualPeriod

Static Methods

getDescriptor()

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

Methods

build()

public MenstrualPeriod build()
Returns
Type Description
MenstrualPeriod

buildPartial()

public MenstrualPeriod buildPartial()
Returns
Type Description
MenstrualPeriod

clear()

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

clearInterval()

public MenstrualPeriod.Builder clearInterval()

Required. Observed interval.

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MenstrualPeriod.Builder

clearNotes()

public MenstrualPeriod.Builder clearNotes()

Optional. Standard free-form notes captured at manual logging.

string notes = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MenstrualPeriod.Builder

This builder for chaining.

getDefaultInstanceForType()

public MenstrualPeriod getDefaultInstanceForType()
Returns
Type Description
MenstrualPeriod

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInterval()

public ObservationTimeInterval getInterval()

Required. Observed interval.

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ObservationTimeInterval

The interval.

getIntervalBuilder()

public ObservationTimeInterval.Builder getIntervalBuilder()

Required. Observed interval.

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ObservationTimeInterval.Builder

getIntervalOrBuilder()

public ObservationTimeIntervalOrBuilder getIntervalOrBuilder()

Required. Observed interval.

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ObservationTimeIntervalOrBuilder

getNotes()

public String getNotes()

Optional. Standard free-form notes captured at manual logging.

string notes = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The notes.

getNotesBytes()

public ByteString getNotesBytes()

Optional. Standard free-form notes captured at manual logging.

string notes = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for notes.

hasInterval()

public boolean hasInterval()

Required. Observed interval.

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the interval field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MenstrualPeriod other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInterval(ObservationTimeInterval value)

public MenstrualPeriod.Builder mergeInterval(ObservationTimeInterval value)

Required. Observed interval.

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ObservationTimeInterval
Returns
Type Description
MenstrualPeriod.Builder

setInterval(ObservationTimeInterval value)

public MenstrualPeriod.Builder setInterval(ObservationTimeInterval value)

Required. Observed interval.

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ObservationTimeInterval
Returns
Type Description
MenstrualPeriod.Builder

setInterval(ObservationTimeInterval.Builder builderForValue)

public MenstrualPeriod.Builder setInterval(ObservationTimeInterval.Builder builderForValue)

Required. Observed interval.

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ObservationTimeInterval.Builder
Returns
Type Description
MenstrualPeriod.Builder

setNotes(String value)

public MenstrualPeriod.Builder setNotes(String value)

Optional. Standard free-form notes captured at manual logging.

string notes = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The notes to set.

Returns
Type Description
MenstrualPeriod.Builder

This builder for chaining.

setNotesBytes(ByteString value)

public MenstrualPeriod.Builder setNotesBytes(ByteString value)

Optional. Standard free-form notes captured at manual logging.

string notes = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for notes to set.

Returns
Type Description
MenstrualPeriod.Builder

This builder for chaining.