public final class ActivityLevel extends GeneratedMessage implements ActivityLevelOrBuilderInternal type to capture activity level during a certain time interval.
Protobuf type google.devicesandservices.health.v4.ActivityLevel
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ActivityLevelImplements
ActivityLevelOrBuilderStatic Fields
ACTIVITY_LEVEL_TYPE_FIELD_NUMBER
public static final int ACTIVITY_LEVEL_TYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
INTERVAL_FIELD_NUMBER
public static final int INTERVAL_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static ActivityLevel getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
ActivityLevel |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static ActivityLevel.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
ActivityLevel.Builder |
|
newBuilder(ActivityLevel prototype)
public static ActivityLevel.Builder newBuilder(ActivityLevel prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
ActivityLevel |
| Returns | |
|---|---|
| Type | Description |
ActivityLevel.Builder |
|
parseDelimitedFrom(InputStream input)
public static ActivityLevel parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ActivityLevel |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ActivityLevel parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ActivityLevel |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static ActivityLevel parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
ActivityLevel |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ActivityLevel parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ActivityLevel |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static ActivityLevel parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
ActivityLevel |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ActivityLevel parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ActivityLevel |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static ActivityLevel parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
ActivityLevel |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ActivityLevel parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ActivityLevel |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static ActivityLevel parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ActivityLevel |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ActivityLevel parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ActivityLevel |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static ActivityLevel parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
ActivityLevel |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ActivityLevel parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ActivityLevel |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<ActivityLevel> parser()| Returns | |
|---|---|
| Type | Description |
Parser<ActivityLevel> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getActivityLevelType()
public ActivityLevel.ActivityLevelType getActivityLevelType()Required. Activity level type in the given time interval.
.google.devicesandservices.health.v4.ActivityLevel.ActivityLevelType activity_level_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ActivityLevel.ActivityLevelType |
The activityLevelType. |
getActivityLevelTypeValue()
public int getActivityLevelTypeValue()Required. Activity level type in the given time interval.
.google.devicesandservices.health.v4.ActivityLevel.ActivityLevelType activity_level_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for activityLevelType. |
getDefaultInstanceForType()
public ActivityLevel getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ActivityLevel |
|
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. |
getIntervalOrBuilder()
public ObservationTimeIntervalOrBuilder getIntervalOrBuilder()Required. Observed interval.
.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ObservationTimeIntervalOrBuilder |
|
getParserForType()
public Parser<ActivityLevel> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<ActivityLevel> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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. |
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 ActivityLevel.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
ActivityLevel.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ActivityLevel.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
ActivityLevel.Builder |
|
toBuilder()
public ActivityLevel.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
ActivityLevel.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|