Class DataSource.Application (0.2.0)

public static final class DataSource.Application extends GeneratedMessage implements DataSource.ApplicationOrBuilder

Optional metadata for the application that provided this data.

Protobuf type google.devicesandservices.health.v4.DataSource.Application

Static Fields

GOOGLE_WEB_CLIENT_ID_FIELD_NUMBER

public static final int GOOGLE_WEB_CLIENT_ID_FIELD_NUMBER
Field Value
Type Description
int

PACKAGE_NAME_FIELD_NUMBER

public static final int PACKAGE_NAME_FIELD_NUMBER
Field Value
Type Description
int

WEB_CLIENT_ID_FIELD_NUMBER

public static final int WEB_CLIENT_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DataSource.Application getDefaultInstance()
Returns
Type Description
DataSource.Application

getDescriptor()

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

newBuilder()

public static DataSource.Application.Builder newBuilder()
Returns
Type Description
DataSource.Application.Builder

newBuilder(DataSource.Application prototype)

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

parseDelimitedFrom(InputStream input)

public static DataSource.Application parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DataSource.Application
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static DataSource.Application parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DataSource.Application
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static DataSource.Application parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DataSource.Application
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static DataSource.Application parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DataSource.Application
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static DataSource.Application parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DataSource.Application
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<DataSource.Application> parser()
Returns
Type Description
Parser<Application>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public DataSource.Application getDefaultInstanceForType()
Returns
Type Description
DataSource.Application

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];

Returns
Type Description
String

The googleWebClientId.

getGoogleWebClientIdBytes()

public 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];

Returns
Type Description
ByteString

The bytes for googleWebClientId.

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];

Returns
Type Description
String

The packageName.

getPackageNameBytes()

public 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];

Returns
Type Description
ByteString

The bytes for packageName.

getParserForType()

public Parser<DataSource.Application> getParserForType()
Returns
Type Description
Parser<Application>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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];

Returns
Type Description
String

The webClientId.

getWebClientIdBytes()

public 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];

Returns
Type Description
ByteString

The bytes for webClientId.

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 DataSource.Application.Builder newBuilderForType()
Returns
Type Description
DataSource.Application.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public DataSource.Application.Builder toBuilder()
Returns
Type Description
DataSource.Application.Builder

writeTo(CodedOutputStream output)

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