public static final class Exercise.ExerciseMetadata extends GeneratedMessage implements Exercise.ExerciseMetadataOrBuilderAdditional exercise metadata.
Protobuf type google.devicesandservices.health.v4.Exercise.ExerciseMetadata
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > Exercise.ExerciseMetadataImplements
Exercise.ExerciseMetadataOrBuilderStatic Fields
HAS_GPS_FIELD_NUMBER
public static final int HAS_GPS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
POOL_LENGTH_MILLIMETERS_FIELD_NUMBER
public static final int POOL_LENGTH_MILLIMETERS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static Exercise.ExerciseMetadata getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static Exercise.ExerciseMetadata.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata.Builder |
|
newBuilder(Exercise.ExerciseMetadata prototype)
public static Exercise.ExerciseMetadata.Builder newBuilder(Exercise.ExerciseMetadata prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
Exercise.ExerciseMetadata |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata.Builder |
|
parseDelimitedFrom(InputStream input)
public static Exercise.ExerciseMetadata parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Exercise.ExerciseMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static Exercise.ExerciseMetadata parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Exercise.ExerciseMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static Exercise.ExerciseMetadata parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Exercise.ExerciseMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static Exercise.ExerciseMetadata parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Exercise.ExerciseMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static Exercise.ExerciseMetadata parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Exercise.ExerciseMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static Exercise.ExerciseMetadata parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Exercise.ExerciseMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<Exercise.ExerciseMetadata> parser()| Returns | |
|---|---|
| Type | Description |
Parser<ExerciseMetadata> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public Exercise.ExerciseMetadata getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata |
|
getHasGps()
public boolean getHasGps()Optional. Whether the exercise had GPS tracking.
bool has_gps = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The hasGps. |
getParserForType()
public Parser<Exercise.ExerciseMetadata> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<ExerciseMetadata> |
|
getPoolLengthMillimeters()
public long getPoolLengthMillimeters()Optional. Pool length in millimeters. Only present in the swimming exercises.
optional int64 pool_length_millimeters = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The poolLengthMillimeters. |
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hasPoolLengthMillimeters()
public boolean hasPoolLengthMillimeters()Optional. Pool length in millimeters. Only present in the swimming exercises.
optional int64 pool_length_millimeters = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the poolLengthMillimeters field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public Exercise.ExerciseMetadata.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Exercise.ExerciseMetadata.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata.Builder |
|
toBuilder()
public Exercise.ExerciseMetadata.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
Exercise.ExerciseMetadata.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|