public static final class DataSource.Application.Builder extends GeneratedMessage.Builder<DataSource.Application.Builder> implements DataSource.ApplicationOrBuilderOptional metadata for the application that provided this data.
Protobuf type google.devicesandservices.health.v4.DataSource.Application
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DataSource.Application.BuilderImplements
DataSource.ApplicationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DataSource.Application build()| Returns | |
|---|---|
| Type | Description |
DataSource.Application |
|
buildPartial()
public DataSource.Application buildPartial()| Returns | |
|---|---|
| Type | Description |
DataSource.Application |
|
clear()
public DataSource.Application.Builder clear()| Returns | |
|---|---|
| Type | Description |
DataSource.Application.Builder |
|
clearGoogleWebClientId()
public DataSource.Application.Builder clearGoogleWebClientId()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 |
DataSource.Application.Builder |
This builder for chaining. |
clearPackageName()
public DataSource.Application.Builder clearPackageName()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 |
DataSource.Application.Builder |
This builder for chaining. |
clearWebClientId()
public DataSource.Application.Builder clearWebClientId()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 |
DataSource.Application.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public DataSource.Application getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DataSource.Application |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(DataSource.Application other)
public DataSource.Application.Builder mergeFrom(DataSource.Application other)| Parameter | |
|---|---|
| Name | Description |
other |
DataSource.Application |
| Returns | |
|---|---|
| Type | Description |
DataSource.Application.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DataSource.Application.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DataSource.Application.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DataSource.Application.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DataSource.Application.Builder |
|
setGoogleWebClientId(String value)
public DataSource.Application.Builder setGoogleWebClientId(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe googleWebClientId to set. |
| Returns | |
|---|---|
| Type | Description |
DataSource.Application.Builder |
This builder for chaining. |
setGoogleWebClientIdBytes(ByteString value)
public DataSource.Application.Builder setGoogleWebClientIdBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for googleWebClientId to set. |
| Returns | |
|---|---|
| Type | Description |
DataSource.Application.Builder |
This builder for chaining. |
setPackageName(String value)
public DataSource.Application.Builder setPackageName(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe packageName to set. |
| Returns | |
|---|---|
| Type | Description |
DataSource.Application.Builder |
This builder for chaining. |
setPackageNameBytes(ByteString value)
public DataSource.Application.Builder setPackageNameBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for packageName to set. |
| Returns | |
|---|---|
| Type | Description |
DataSource.Application.Builder |
This builder for chaining. |
setWebClientId(String value)
public DataSource.Application.Builder setWebClientId(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe webClientId to set. |
| Returns | |
|---|---|
| Type | Description |
DataSource.Application.Builder |
This builder for chaining. |
setWebClientIdBytes(ByteString value)
public DataSource.Application.Builder setWebClientIdBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for webClientId to set. |
| Returns | |
|---|---|
| Type | Description |
DataSource.Application.Builder |
This builder for chaining. |