# Interface DataSourceOrBuilder (0.2.0)

    public interface DataSourceOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getApplication()

    public abstract DataSource.Application getApplication()

Output only. Captures metadata for the application that provided this data.

`
.google.devicesandservices.health.v4.DataSource.Application application = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.DataSource.Application` | The application. |

### getApplicationOrBuilder()

    public abstract DataSource.ApplicationOrBuilder getApplicationOrBuilder()

Output only. Captures metadata for the application that provided this data.

`
.google.devicesandservices.health.v4.DataSource.Application application = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.DataSource.ApplicationOrBuilder` |   |

### getDevice()

    public abstract DataSource.Device getDevice()

Optional. Captures metadata for raw data points originating from devices.
We expect this data source to be used for data points written on
device sync.

`
.google.devicesandservices.health.v4.DataSource.Device device = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.DataSource.Device` | The device. |

### getDeviceOrBuilder()

    public abstract DataSource.DeviceOrBuilder getDeviceOrBuilder()

Optional. Captures metadata for raw data points originating from devices.
We expect this data source to be used for data points written on
device sync.

`
.google.devicesandservices.health.v4.DataSource.Device device = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.DataSource.DeviceOrBuilder` |   |

### getPlatform()

    public abstract DataSource.Platform getPlatform()

Output only. Captures the platform that uploaded the data.

`
.google.devicesandservices.health.v4.DataSource.Platform platform = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.DataSource.Platform` | The platform. |

### getPlatformValue()

    public abstract int getPlatformValue()

Output only. Captures the platform that uploaded the data.

`
.google.devicesandservices.health.v4.DataSource.Platform platform = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for platform. |

### getRecordingMethod()

    public abstract DataSource.RecordingMethod getRecordingMethod()

Optional. Captures how the data was recorded.

`
.google.devicesandservices.health.v4.DataSource.RecordingMethod recording_method = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.DataSource.RecordingMethod` | The recordingMethod. |

### getRecordingMethodValue()

    public abstract int getRecordingMethodValue()

Optional. Captures how the data was recorded.

`
.google.devicesandservices.health.v4.DataSource.RecordingMethod recording_method = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for recordingMethod. |

### hasApplication()

    public abstract boolean hasApplication()

Output only. Captures metadata for the application that provided this data.

`
.google.devicesandservices.health.v4.DataSource.Application application = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the application field is set. |

### hasDevice()

    public abstract boolean hasDevice()

Optional. Captures metadata for raw data points originating from devices.
We expect this data source to be used for data points written on
device sync.

`
.google.devicesandservices.health.v4.DataSource.Device device = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the device field is set. |