public final class Profile extends GeneratedMessage implements ProfileOrBuilder
Profile details.
Protobuf type google.devicesandservices.health.v4.Profile
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
AGE_FIELD_NUMBER
public static final int AGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
AUTO_RUNNING_STRIDE_LENGTH_MM_FIELD_NUMBER
public static final int AUTO_RUNNING_STRIDE_LENGTH_MM_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
AUTO_WALKING_STRIDE_LENGTH_MM_FIELD_NUMBER
public static final int AUTO_WALKING_STRIDE_LENGTH_MM_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MEMBERSHIP_START_DATE_FIELD_NUMBER
public static final int MEMBERSHIP_START_DATE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int USER_CONFIGURED_RUNNING_STRIDE_LENGTH_MM_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int USER_CONFIGURED_WALKING_STRIDE_LENGTH_MM_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Profile getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Profile.Builder newBuilder()
newBuilder(Profile prototype)
public static Profile.Builder newBuilder(Profile prototype)
| Parameter |
| Name |
Description |
prototype |
Profile
|
public static Profile parseDelimitedFrom(InputStream input)
public static Profile parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Profile parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Profile parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Profile parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Profile parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Profile parseFrom(CodedInputStream input)
public static Profile parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Profile parseFrom(InputStream input)
public static Profile parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Profile parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Profile parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Profile> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAge()
Optional. The age in years based on the user's birth date.
Updates to this field are currently not supported.
int32 age = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The age.
|
getAutoRunningStrideLengthMm()
public int getAutoRunningStrideLengthMm()
| Returns |
| Type |
Description |
int |
The autoRunningStrideLengthMm.
|
getAutoWalkingStrideLengthMm()
public int getAutoWalkingStrideLengthMm()
| Returns |
| Type |
Description |
int |
The autoWalkingStrideLengthMm.
|
getDefaultInstanceForType()
public Profile getDefaultInstanceForType()
getMembershipStartDate()
public Date getMembershipStartDate()
Output only. The date the user created their account.
Updates to this field are currently not supported.
.google.type.Date membership_start_date = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
com.google.type.Date |
The membershipStartDate.
|
getMembershipStartDateOrBuilder()
public DateOrBuilder getMembershipStartDateOrBuilder()
Output only. The date the user created their account.
Updates to this field are currently not supported.
.google.type.Date membership_start_date = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
com.google.type.DateOrBuilder |
|
getName()
Identifier. The resource name of this Profile resource.
Format: users/{user}/profile
Example: users/1234567890/profile or users/me/profile
The {user} ID is a system-generated Google Health API user ID, a string of
1-63 characters consisting of lowercase and uppercase letters, numbers, and
hyphens. The literal me can also be used to refer to the authenticated
user.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns |
| Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Identifier. The resource name of this Profile resource.
Format: users/{user}/profile
Example: users/1234567890/profile or users/me/profile
The {user} ID is a system-generated Google Health API user ID, a string of
1-63 characters consisting of lowercase and uppercase letters, numbers, and
hyphens. The literal me can also be used to refer to the authenticated
user.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns |
| Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<Profile> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
public int getUserConfiguredRunningStrideLengthMm()
| Returns |
| Type |
Description |
int |
The userConfiguredRunningStrideLengthMm.
|
public int getUserConfiguredWalkingStrideLengthMm()
| Returns |
| Type |
Description |
int |
The userConfiguredWalkingStrideLengthMm.
|
hasAutoRunningStrideLengthMm()
public boolean hasAutoRunningStrideLengthMm()
| Returns |
| Type |
Description |
boolean |
Whether the autoRunningStrideLengthMm field is set.
|
hasAutoWalkingStrideLengthMm()
public boolean hasAutoWalkingStrideLengthMm()
| Returns |
| Type |
Description |
boolean |
Whether the autoWalkingStrideLengthMm field is set.
|
hasMembershipStartDate()
public boolean hasMembershipStartDate()
Output only. The date the user created their account.
Updates to this field are currently not supported.
.google.type.Date membership_start_date = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the membershipStartDate field is set.
|
public boolean hasUserConfiguredRunningStrideLengthMm()
| Returns |
| Type |
Description |
boolean |
Whether the userConfiguredRunningStrideLengthMm field is set.
|
public boolean hasUserConfiguredWalkingStrideLengthMm()
| Returns |
| Type |
Description |
boolean |
Whether the userConfiguredWalkingStrideLengthMm field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Profile.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Profile.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Profile.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides