public static final class SwimLengthsData.Builder extends GeneratedMessage.Builder<SwimLengthsData.Builder> implements SwimLengthsDataOrBuilderSwim lengths data over the time interval.
Protobuf type google.devicesandservices.health.v4.SwimLengthsData
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SwimLengthsData.BuilderImplements
SwimLengthsDataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SwimLengthsData build()| Returns | |
|---|---|
| Type | Description |
SwimLengthsData |
|
buildPartial()
public SwimLengthsData buildPartial()| Returns | |
|---|---|
| Type | Description |
SwimLengthsData |
|
clear()
public SwimLengthsData.Builder clear()| Returns | |
|---|---|
| Type | Description |
SwimLengthsData.Builder |
|
clearInterval()
public SwimLengthsData.Builder clearInterval()Required. Observed interval.
.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SwimLengthsData.Builder |
|
clearStrokeCount()
public SwimLengthsData.Builder clearStrokeCount()Required. Number of strokes in the lap.
optional int64 stroke_count = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SwimLengthsData.Builder |
This builder for chaining. |
clearSwimStrokeType()
public SwimLengthsData.Builder clearSwimStrokeType()Required. Swim stroke type.
.google.devicesandservices.health.v4.SwimLengthsData.SwimStrokeType swim_stroke_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SwimLengthsData.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public SwimLengthsData getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SwimLengthsData |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getInterval()
public ObservationTimeInterval getInterval()Required. Observed interval.
.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.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 = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ObservationTimeInterval.Builder |
|
getIntervalOrBuilder()
public ObservationTimeIntervalOrBuilder getIntervalOrBuilder()Required. Observed interval.
.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ObservationTimeIntervalOrBuilder |
|
getStrokeCount()
public long getStrokeCount()Required. Number of strokes in the lap.
optional int64 stroke_count = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
long |
The strokeCount. |
getSwimStrokeType()
public SwimLengthsData.SwimStrokeType getSwimStrokeType()Required. Swim stroke type.
.google.devicesandservices.health.v4.SwimLengthsData.SwimStrokeType swim_stroke_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SwimLengthsData.SwimStrokeType |
The swimStrokeType. |
getSwimStrokeTypeValue()
public int getSwimStrokeTypeValue()Required. Swim stroke type.
.google.devicesandservices.health.v4.SwimLengthsData.SwimStrokeType swim_stroke_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for swimStrokeType. |
hasInterval()
public boolean hasInterval()Required. Observed interval.
.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the interval field is set. |
hasStrokeCount()
public boolean hasStrokeCount()Required. Number of strokes in the lap.
optional int64 stroke_count = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the strokeCount field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SwimLengthsData other)
public SwimLengthsData.Builder mergeFrom(SwimLengthsData other)| Parameter | |
|---|---|
| Name | Description |
other |
SwimLengthsData |
| Returns | |
|---|---|
| Type | Description |
SwimLengthsData.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SwimLengthsData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SwimLengthsData.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SwimLengthsData.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SwimLengthsData.Builder |
|
mergeInterval(ObservationTimeInterval value)
public SwimLengthsData.Builder mergeInterval(ObservationTimeInterval value)Required. Observed interval.
.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ObservationTimeInterval |
| Returns | |
|---|---|
| Type | Description |
SwimLengthsData.Builder |
|
setInterval(ObservationTimeInterval value)
public SwimLengthsData.Builder setInterval(ObservationTimeInterval value)Required. Observed interval.
.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ObservationTimeInterval |
| Returns | |
|---|---|
| Type | Description |
SwimLengthsData.Builder |
|
setInterval(ObservationTimeInterval.Builder builderForValue)
public SwimLengthsData.Builder setInterval(ObservationTimeInterval.Builder builderForValue)Required. Observed interval.
.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ObservationTimeInterval.Builder |
| Returns | |
|---|---|
| Type | Description |
SwimLengthsData.Builder |
|
setStrokeCount(long value)
public SwimLengthsData.Builder setStrokeCount(long value)Required. Number of strokes in the lap.
optional int64 stroke_count = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe strokeCount to set. |
| Returns | |
|---|---|
| Type | Description |
SwimLengthsData.Builder |
This builder for chaining. |
setSwimStrokeType(SwimLengthsData.SwimStrokeType value)
public SwimLengthsData.Builder setSwimStrokeType(SwimLengthsData.SwimStrokeType value)Required. Swim stroke type.
.google.devicesandservices.health.v4.SwimLengthsData.SwimStrokeType swim_stroke_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
SwimLengthsData.SwimStrokeTypeThe swimStrokeType to set. |
| Returns | |
|---|---|
| Type | Description |
SwimLengthsData.Builder |
This builder for chaining. |
setSwimStrokeTypeValue(int value)
public SwimLengthsData.Builder setSwimStrokeTypeValue(int value)Required. Swim stroke type.
.google.devicesandservices.health.v4.SwimLengthsData.SwimStrokeType swim_stroke_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for swimStrokeType to set. |
| Returns | |
|---|---|
| Type | Description |
SwimLengthsData.Builder |
This builder for chaining. |