Class StepsRollupValue (0.2.0)

public final class StepsRollupValue extends GeneratedMessage implements StepsRollupValueOrBuilder

Represents the result of the rollup of the steps data type.

Protobuf type google.devicesandservices.health.v4.StepsRollupValue

Static Fields

COUNT_SUM_FIELD_NUMBER

public static final int COUNT_SUM_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static StepsRollupValue getDefaultInstance()
Returns
Type Description
StepsRollupValue

getDescriptor()

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

newBuilder()

public static StepsRollupValue.Builder newBuilder()
Returns
Type Description
StepsRollupValue.Builder

newBuilder(StepsRollupValue prototype)

public static StepsRollupValue.Builder newBuilder(StepsRollupValue prototype)
Parameter
Name Description
prototype StepsRollupValue
Returns
Type Description
StepsRollupValue.Builder

parseDelimitedFrom(InputStream input)

public static StepsRollupValue parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StepsRollupValue
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StepsRollupValue parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StepsRollupValue
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static StepsRollupValue parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
StepsRollupValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StepsRollupValue parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StepsRollupValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StepsRollupValue parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
StepsRollupValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StepsRollupValue parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StepsRollupValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StepsRollupValue parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
StepsRollupValue
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StepsRollupValue parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StepsRollupValue
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static StepsRollupValue parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StepsRollupValue
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StepsRollupValue parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StepsRollupValue
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static StepsRollupValue parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
StepsRollupValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StepsRollupValue parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StepsRollupValue
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<StepsRollupValue> parser()
Returns
Type Description
Parser<StepsRollupValue>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCountSum()

public long getCountSum()

Total number of steps in the interval.

optional int64 count_sum = 1;

Returns
Type Description
long

The countSum.

getDefaultInstanceForType()

public StepsRollupValue getDefaultInstanceForType()
Returns
Type Description
StepsRollupValue

getParserForType()

public Parser<StepsRollupValue> getParserForType()
Returns
Type Description
Parser<StepsRollupValue>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCountSum()

public boolean hasCountSum()

Total number of steps in the interval.

optional int64 count_sum = 1;

Returns
Type Description
boolean

Whether the countSum field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public StepsRollupValue.Builder newBuilderForType()
Returns
Type Description
StepsRollupValue.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected StepsRollupValue.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
StepsRollupValue.Builder
Overrides

toBuilder()

public StepsRollupValue.Builder toBuilder()
Returns
Type Description
StepsRollupValue.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException