Class DataSource.Application.Builder

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

public static final class DataSource.Application.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataSource.Application.Builder> implements DataSource.ApplicationOrBuilder
 Optional metadata for the application that provided this data.
 
Protobuf type google.devicesandservices.health.v4.DataSource.Application
  • 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<DataSource.Application.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<DataSource.Application.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<DataSource.Application.Builder>
    • getDefaultInstanceForType

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

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

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

      public DataSource.Application.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<DataSource.Application.Builder>
    • mergeFrom

    • isInitialized

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

      public DataSource.Application.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<DataSource.Application.Builder>
      Throws:
      IOException
    • 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.
    • setPackageName

      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];
      Parameters:
      value - The packageName to set.
      Returns:
      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:
      This builder for chaining.
    • setPackageNameBytes

      public DataSource.Application.Builder setPackageNameBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for packageName to set.
      Returns:
      This builder for chaining.
    • 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.
    • setWebClientId

      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];
      Parameters:
      value - The webClientId to set.
      Returns:
      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:
      This builder for chaining.
    • setWebClientIdBytes

      public DataSource.Application.Builder setWebClientIdBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for webClientId to set.
      Returns:
      This builder for chaining.
    • 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.
    • setGoogleWebClientId

      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];
      Parameters:
      value - The googleWebClientId to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setGoogleWebClientIdBytes

      public DataSource.Application.Builder setGoogleWebClientIdBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for googleWebClientId to set.
      Returns:
      This builder for chaining.