# GPUCompilationMessage

Artifact: [androidx.webgpu:webgpu](https://developer.android.com/jetpack/androidx/releases/webgpu) [View Source](https://cs.android.com/search?q=file:androidx/webgpu/GPUCompilationMessage.kt+class:androidx.webgpu.GPUCompilationMessage) Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

*** ** * ** ***


```
public final class GPUCompilationMessage
```

<br />

*** ** * ** ***

Describes a single message generated during shader compilation.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/webgpu/GPUCompilationMessage#GPUCompilationMessage(kotlin.String,kotlin.Int,kotlin.Long,kotlin.Long,kotlin.Long,kotlin.Long)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html message, int type, long lineNum, long linePos, long offset, long length )` |

| ### Public methods |
|---|---|
| `final long` | `https://developer.android.com/reference/androidx/webgpu/GPUCompilationMessage#getLength()()` The length in bytes of the source code related to the message. |
| `final long` | `https://developer.android.com/reference/androidx/webgpu/GPUCompilationMessage#getLineNum()()` |
| `final long` | `https://developer.android.com/reference/androidx/webgpu/GPUCompilationMessage#getLinePos()()` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/webgpu/GPUCompilationMessage#getMessage()()` The compilation message string. |
| `final long` | `https://developer.android.com/reference/androidx/webgpu/GPUCompilationMessage#getOffset()()` The byte offset from the beginning of the shader source. |
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPUCompilationMessage#getType()()` The severity of the message (error, warning, or info). |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUCompilationMessage#setLength(kotlin.Long)(long value)` The length in bytes of the source code related to the message. |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUCompilationMessage#setLineNum(kotlin.Long)(long value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUCompilationMessage#setLinePos(kotlin.Long)(long value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUCompilationMessage#setMessage(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html value)` The compilation message string. |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUCompilationMessage#setOffset(kotlin.Long)(long value)` The byte offset from the beginning of the shader source. |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUCompilationMessage#setType(kotlin.Int)(int value)` The severity of the message (error, warning, or info). |

## Public constructors

### GPUCompilationMessage

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public GPUCompilationMessage(
    @NonNull String message,
    int type,
    long lineNum,
    long linePos,
    long offset,
    long length
)
```

## Public methods

### getLength

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public final long getLength()
```

The length in bytes of the source code related to the message.

### getLineNum

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public final long getLineNum()
```

### getLinePos

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public final long getLinePos()
```

### getMessage

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public final @NonNull String getMessage()
```

The compilation message string.

### getOffset

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public final long getOffset()
```

The byte offset from the beginning of the shader source.

### getType

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public final int getType()
```

The severity of the message (error, warning, or info).

### setLength

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public final void setLength(long value)
```

The length in bytes of the source code related to the message.

### setLineNum

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public final void setLineNum(long value)
```

### setLinePos

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public final void setLinePos(long value)
```

### setMessage

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public final void setMessage(@NonNull String value)
```

The compilation message string.

### setOffset

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public final void setOffset(long value)
```

The byte offset from the beginning of the shader source.

### setType

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public final void setType(int value)
```

The severity of the message (error, warning, or info).