Class Identity.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
com.google.devicesandservices.health.v4.Identity.Builder
All Implemented Interfaces:
IdentityOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Identity

public static final class Identity.Builder extends com.google.protobuf.GeneratedMessage.Builder<Identity.Builder> implements IdentityOrBuilder
 Represents details about the Google user's identity.
 
Protobuf type google.devicesandservices.health.v4.Identity
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
    • clear

      public Identity.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
    • getDefaultInstanceForType

      public Identity getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Identity build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Identity buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Identity.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Identity.Builder>
    • mergeFrom

      public Identity.Builder mergeFrom(Identity other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
    • mergeFrom

      public Identity.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Identity.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. The resource name of this Identity resource.
       Format: `users/me/identity`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface IdentityOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The resource name of this Identity resource.
       Format: `users/me/identity`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface IdentityOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Identity.Builder setName(String value)
       Identifier. The resource name of this Identity resource.
       Format: `users/me/identity`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Identity.Builder clearName()
       Identifier. The resource name of this Identity resource.
       Format: `users/me/identity`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Identity.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The resource name of this Identity resource.
       Format: `users/me/identity`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getLegacyUserId

      public String getLegacyUserId()
       Output only. The legacy Fitbit User identifier. This is the Fitbit ID used
       in the legacy Fitbit APIs (v1-v3). It can be referenced by clients
       migrating from the legacy Fitbit APIs to map their existing identifiers to
       the new Google user ID.
      
       It **must not** be used for any other purpose. It is not of any use for new
       clients using only the Google Health APIs.
      
       Valid values are strings of 1-63 characters, and valid characters are
       lowercase and uppercase letters, numbers, and hyphens.
       
      string legacy_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLegacyUserId in interface IdentityOrBuilder
      Returns:
      The legacyUserId.
    • getLegacyUserIdBytes

      public com.google.protobuf.ByteString getLegacyUserIdBytes()
       Output only. The legacy Fitbit User identifier. This is the Fitbit ID used
       in the legacy Fitbit APIs (v1-v3). It can be referenced by clients
       migrating from the legacy Fitbit APIs to map their existing identifiers to
       the new Google user ID.
      
       It **must not** be used for any other purpose. It is not of any use for new
       clients using only the Google Health APIs.
      
       Valid values are strings of 1-63 characters, and valid characters are
       lowercase and uppercase letters, numbers, and hyphens.
       
      string legacy_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLegacyUserIdBytes in interface IdentityOrBuilder
      Returns:
      The bytes for legacyUserId.
    • setLegacyUserId

      public Identity.Builder setLegacyUserId(String value)
       Output only. The legacy Fitbit User identifier. This is the Fitbit ID used
       in the legacy Fitbit APIs (v1-v3). It can be referenced by clients
       migrating from the legacy Fitbit APIs to map their existing identifiers to
       the new Google user ID.
      
       It **must not** be used for any other purpose. It is not of any use for new
       clients using only the Google Health APIs.
      
       Valid values are strings of 1-63 characters, and valid characters are
       lowercase and uppercase letters, numbers, and hyphens.
       
      string legacy_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The legacyUserId to set.
      Returns:
      This builder for chaining.
    • clearLegacyUserId

      public Identity.Builder clearLegacyUserId()
       Output only. The legacy Fitbit User identifier. This is the Fitbit ID used
       in the legacy Fitbit APIs (v1-v3). It can be referenced by clients
       migrating from the legacy Fitbit APIs to map their existing identifiers to
       the new Google user ID.
      
       It **must not** be used for any other purpose. It is not of any use for new
       clients using only the Google Health APIs.
      
       Valid values are strings of 1-63 characters, and valid characters are
       lowercase and uppercase letters, numbers, and hyphens.
       
      string legacy_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setLegacyUserIdBytes

      public Identity.Builder setLegacyUserIdBytes(com.google.protobuf.ByteString value)
       Output only. The legacy Fitbit User identifier. This is the Fitbit ID used
       in the legacy Fitbit APIs (v1-v3). It can be referenced by clients
       migrating from the legacy Fitbit APIs to map their existing identifiers to
       the new Google user ID.
      
       It **must not** be used for any other purpose. It is not of any use for new
       clients using only the Google Health APIs.
      
       Valid values are strings of 1-63 characters, and valid characters are
       lowercase and uppercase letters, numbers, and hyphens.
       
      string legacy_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for legacyUserId to set.
      Returns:
      This builder for chaining.
    • getHealthUserId

      public String getHealthUserId()
       Output only. The Google User Identifier in the Google Health APIs. It
       matches the
       `{user}` resource ID segment in the resource name paths, e.g.
       `users/{user}/dataTypes/steps`.
      
       Valid values are strings of 1-63 characters, and valid characters are
       lowercase and uppercase letters, numbers, and hyphens.
       
      string health_user_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHealthUserId in interface IdentityOrBuilder
      Returns:
      The healthUserId.
    • getHealthUserIdBytes

      public com.google.protobuf.ByteString getHealthUserIdBytes()
       Output only. The Google User Identifier in the Google Health APIs. It
       matches the
       `{user}` resource ID segment in the resource name paths, e.g.
       `users/{user}/dataTypes/steps`.
      
       Valid values are strings of 1-63 characters, and valid characters are
       lowercase and uppercase letters, numbers, and hyphens.
       
      string health_user_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHealthUserIdBytes in interface IdentityOrBuilder
      Returns:
      The bytes for healthUserId.
    • setHealthUserId

      public Identity.Builder setHealthUserId(String value)
       Output only. The Google User Identifier in the Google Health APIs. It
       matches the
       `{user}` resource ID segment in the resource name paths, e.g.
       `users/{user}/dataTypes/steps`.
      
       Valid values are strings of 1-63 characters, and valid characters are
       lowercase and uppercase letters, numbers, and hyphens.
       
      string health_user_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The healthUserId to set.
      Returns:
      This builder for chaining.
    • clearHealthUserId

      public Identity.Builder clearHealthUserId()
       Output only. The Google User Identifier in the Google Health APIs. It
       matches the
       `{user}` resource ID segment in the resource name paths, e.g.
       `users/{user}/dataTypes/steps`.
      
       Valid values are strings of 1-63 characters, and valid characters are
       lowercase and uppercase letters, numbers, and hyphens.
       
      string health_user_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setHealthUserIdBytes

      public Identity.Builder setHealthUserIdBytes(com.google.protobuf.ByteString value)
       Output only. The Google User Identifier in the Google Health APIs. It
       matches the
       `{user}` resource ID segment in the resource name paths, e.g.
       `users/{user}/dataTypes/steps`.
      
       Valid values are strings of 1-63 characters, and valid characters are
       lowercase and uppercase letters, numbers, and hyphens.
       
      string health_user_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for healthUserId to set.
      Returns:
      This builder for chaining.