public static final class MenstrualPeriod.Builder extends GeneratedMessage.Builder<MenstrualPeriod.Builder> implements MenstrualPeriodOrBuilderMenstrual period record.
Protobuf type google.devicesandservices.health.v4.MenstrualPeriod
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > MenstrualPeriod.BuilderImplements
MenstrualPeriodOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public MenstrualPeriod.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
MenstrualPeriod.Builder |
|
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 |
StringThe 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 |
ByteStringThe bytes for notes to set. |
| Returns | |
|---|---|
| Type | Description |
MenstrualPeriod.Builder |
This builder for chaining. |