Class DataSource.Application

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devicesandservices.health.v4.DataSource.Application
All Implemented Interfaces:
DataSource.ApplicationOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
DataSource

public static final class DataSource.Application extends com.google.protobuf.GeneratedMessage implements DataSource.ApplicationOrBuilder
 Optional metadata for the application that provided this data.
 
Protobuf type google.devicesandservices.health.v4.DataSource.Application
See Also:
  • Field Details

    • PACKAGE_NAME_FIELD_NUMBER

      public static final int PACKAGE_NAME_FIELD_NUMBER
      See Also:
    • WEB_CLIENT_ID_FIELD_NUMBER

      public static final int WEB_CLIENT_ID_FIELD_NUMBER
      See Also:
    • GOOGLE_WEB_CLIENT_ID_FIELD_NUMBER

      public static final int GOOGLE_WEB_CLIENT_ID_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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getPackageName

      public String getPackageName()
       Output only. A unique identifier for the mobile application
       that was the source of the data.
      
       This is typically the application's package name on Android (e.g.,
       `com.google.fitbit`) or the bundle ID on iOS. This field is informational
       and helps trace data origin. This field is system-populated when the data
       is uploaded from the Fitbit mobile application, Health Connect or Health
       Kit.
       
      string package_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPackageName in interface DataSource.ApplicationOrBuilder
      Returns:
      The packageName.
    • getPackageNameBytes

      public com.google.protobuf.ByteString getPackageNameBytes()
       Output only. A unique identifier for the mobile application
       that was the source of the data.
      
       This is typically the application's package name on Android (e.g.,
       `com.google.fitbit`) or the bundle ID on iOS. This field is informational
       and helps trace data origin. This field is system-populated when the data
       is uploaded from the Fitbit mobile application, Health Connect or Health
       Kit.
       
      string package_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPackageNameBytes in interface DataSource.ApplicationOrBuilder
      Returns:
      The bytes for packageName.
    • getWebClientId

      public String getWebClientId()
       Output only. The client ID of the application that recorded the data.
      
       This ID is a legacy Fitbit API client ID, which is different from a
       Google OAuth client ID. Example format: `ABC123`.
       This field is system-populated and used for tracing data from
       legacy Fitbit API integrations. This field is system-populated when
       the data is uploaded from a legacy Fitbit API integration.
       
      string web_client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWebClientId in interface DataSource.ApplicationOrBuilder
      Returns:
      The webClientId.
    • getWebClientIdBytes

      public com.google.protobuf.ByteString getWebClientIdBytes()
       Output only. The client ID of the application that recorded the data.
      
       This ID is a legacy Fitbit API client ID, which is different from a
       Google OAuth client ID. Example format: `ABC123`.
       This field is system-populated and used for tracing data from
       legacy Fitbit API integrations. This field is system-populated when
       the data is uploaded from a legacy Fitbit API integration.
       
      string web_client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWebClientIdBytes in interface DataSource.ApplicationOrBuilder
      Returns:
      The bytes for webClientId.
    • getGoogleWebClientId

      public String getGoogleWebClientId()
       Output only. The Google OAuth 2.0 client ID of the web application or
       service that recorded the data.
      
       This is the client ID used during the Google OAuth
       flow to obtain user credentials. This field is system-populated when
       the data is uploaded from Google Web API.
       
      string google_web_client_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getGoogleWebClientId in interface DataSource.ApplicationOrBuilder
      Returns:
      The googleWebClientId.
    • getGoogleWebClientIdBytes

      public com.google.protobuf.ByteString getGoogleWebClientIdBytes()
       Output only. The Google OAuth 2.0 client ID of the web application or
       service that recorded the data.
      
       This is the client ID used during the Google OAuth
       flow to obtain user credentials. This field is system-populated when
       the data is uploaded from Google Web API.
       
      string google_web_client_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getGoogleWebClientIdBytes in interface DataSource.ApplicationOrBuilder
      Returns:
      The bytes for googleWebClientId.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static DataSource.Application parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataSource.Application parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataSource.Application parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataSource.Application parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataSource.Application parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataSource.Application parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataSource.Application parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataSource.Application parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DataSource.Application parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DataSource.Application parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataSource.Application parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataSource.Application parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public DataSource.Application.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static DataSource.Application.Builder newBuilder()
    • newBuilder

      public static DataSource.Application.Builder newBuilder(DataSource.Application prototype)
    • toBuilder

      public DataSource.Application.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected DataSource.Application.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static DataSource.Application getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DataSource.Application> parser()
    • getParserForType

      public com.google.protobuf.Parser<DataSource.Application> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public DataSource.Application getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder