Class Profile
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devicesandservices.health.v4.Profile
- All Implemented Interfaces:
ProfileOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Profile
extends com.google.protobuf.GeneratedMessage
implements ProfileOrBuilder
Profile details.Protobuf type
google.devicesandservices.health.v4.Profile- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetAge()Optional.intOutput only.intOutput only.static Profilestatic final com.google.protobuf.Descriptors.DescriptorOutput only.Output only.getName()Identifier.com.google.protobuf.ByteStringIdentifier.com.google.protobuf.Parser<Profile>intintOptional.intOptional.booleanOutput only.booleanOutput only.inthashCode()booleanOutput only.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Profile.Builderstatic Profile.BuildernewBuilder(Profile prototype) protected Profile.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ProfileparseDelimitedFrom(InputStream input) static ProfileparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProfileparseFrom(byte[] data) static ProfileparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProfileparseFrom(com.google.protobuf.ByteString data) static ProfileparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProfileparseFrom(com.google.protobuf.CodedInputStream input) static ProfileparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProfileparseFrom(InputStream input) static ProfileparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProfileparseFrom(ByteBuffer data) static ProfileparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Profile>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
AGE_FIELD_NUMBER
public static final int AGE_FIELD_NUMBER- See Also:
-
MEMBERSHIP_START_DATE_FIELD_NUMBER
public static final int MEMBERSHIP_START_DATE_FIELD_NUMBER- See Also:
-
USER_CONFIGURED_WALKING_STRIDE_LENGTH_MM_FIELD_NUMBER
public static final int USER_CONFIGURED_WALKING_STRIDE_LENGTH_MM_FIELD_NUMBER- See Also:
-
USER_CONFIGURED_RUNNING_STRIDE_LENGTH_MM_FIELD_NUMBER
public static final int USER_CONFIGURED_RUNNING_STRIDE_LENGTH_MM_FIELD_NUMBER- See Also:
-
AUTO_WALKING_STRIDE_LENGTH_MM_FIELD_NUMBER
public static final int AUTO_WALKING_STRIDE_LENGTH_MM_FIELD_NUMBER- See Also:
-
AUTO_RUNNING_STRIDE_LENGTH_MM_FIELD_NUMBER
public static final int AUTO_RUNNING_STRIDE_LENGTH_MM_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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];- Specified by:
getNamein interfaceProfileOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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];- Specified by:
getNameBytesin interfaceProfileOrBuilder- Returns:
- The bytes for name.
-
getAge
public int 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];- Specified by:
getAgein interfaceProfileOrBuilder- Returns:
- The age.
-
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];- Specified by:
hasMembershipStartDatein interfaceProfileOrBuilder- Returns:
- Whether the membershipStartDate field is set.
-
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];- Specified by:
getMembershipStartDatein interfaceProfileOrBuilder- Returns:
- The membershipStartDate.
-
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];- Specified by:
getMembershipStartDateOrBuilderin interfaceProfileOrBuilder
-
hasUserConfiguredWalkingStrideLengthMm
public boolean hasUserConfiguredWalkingStrideLengthMm()Optional. The user's user configured walking stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 user_configured_walking_stride_length_mm = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasUserConfiguredWalkingStrideLengthMmin interfaceProfileOrBuilder- Returns:
- Whether the userConfiguredWalkingStrideLengthMm field is set.
-
getUserConfiguredWalkingStrideLengthMm
public int getUserConfiguredWalkingStrideLengthMm()Optional. The user's user configured walking stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 user_configured_walking_stride_length_mm = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUserConfiguredWalkingStrideLengthMmin interfaceProfileOrBuilder- Returns:
- The userConfiguredWalkingStrideLengthMm.
-
hasUserConfiguredRunningStrideLengthMm
public boolean hasUserConfiguredRunningStrideLengthMm()Optional. The user's user configured running stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 user_configured_running_stride_length_mm = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasUserConfiguredRunningStrideLengthMmin interfaceProfileOrBuilder- Returns:
- Whether the userConfiguredRunningStrideLengthMm field is set.
-
getUserConfiguredRunningStrideLengthMm
public int getUserConfiguredRunningStrideLengthMm()Optional. The user's user configured running stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 user_configured_running_stride_length_mm = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUserConfiguredRunningStrideLengthMmin interfaceProfileOrBuilder- Returns:
- The userConfiguredRunningStrideLengthMm.
-
hasAutoWalkingStrideLengthMm
public boolean hasAutoWalkingStrideLengthMm()Output only. The automatically calculated walking stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 auto_walking_stride_length_mm = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasAutoWalkingStrideLengthMmin interfaceProfileOrBuilder- Returns:
- Whether the autoWalkingStrideLengthMm field is set.
-
getAutoWalkingStrideLengthMm
public int getAutoWalkingStrideLengthMm()Output only. The automatically calculated walking stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 auto_walking_stride_length_mm = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAutoWalkingStrideLengthMmin interfaceProfileOrBuilder- Returns:
- The autoWalkingStrideLengthMm.
-
hasAutoRunningStrideLengthMm
public boolean hasAutoRunningStrideLengthMm()Output only. The automatically calculated running stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 auto_running_stride_length_mm = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasAutoRunningStrideLengthMmin interfaceProfileOrBuilder- Returns:
- Whether the autoRunningStrideLengthMm field is set.
-
getAutoRunningStrideLengthMm
public int getAutoRunningStrideLengthMm()Output only. The automatically calculated running stride length, in millimeters. The user must consent to one of the following access scopes to access this field: - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly` - `https://www.googleapis.com/auth/googlehealth.activity_and_fitness`
optional int32 auto_running_stride_length_mm = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAutoRunningStrideLengthMmin interfaceProfileOrBuilder- Returns:
- The autoRunningStrideLengthMm.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Profile parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Profile parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Profile parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Profile parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Profile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Profile parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Profile parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Profile parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Profile parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Profile.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-