# ThreadBorderAgent

public final class **ThreadBorderAgent** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
implements [Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) Data interface for Thread Border Agent.

### Nested Class Summary

|---|---|---|---|
| class | [ThreadBorderAgent.Builder](https://developers.home.google.com/android/reference/com/google/android/gms/threadnetwork/ThreadBorderAgent.Builder) || Builder for constructing `https://developers.home.google.com/android/reference/com/google/android/gms/threadnetwork/ThreadBorderAgent` instances. |

### Inherited Constant Summary

From interface android.os.Parcelable

|---|---|---|
| int | CONTENTS_FILE_DESCRIPTOR |   |
| int | PARCELABLE_WRITE_RETURN_VALUE |   |

### Public Method Summary

|---|---|
| byte\[\] | [getId](https://developers.home.google.com/android/reference/com/google/android/gms/threadnetwork/ThreadBorderAgent#getId())() Returns the id which uniquely identifies a Thread Border Agent device. |
| static [ThreadBorderAgent.Builder](https://developers.home.google.com/android/reference/com/google/android/gms/threadnetwork/ThreadBorderAgent.Builder) | [newBuilder](https://developers.home.google.com/android/reference/com/google/android/gms/threadnetwork/ThreadBorderAgent#newBuilder(byte[]))(byte\[\] id) Creates a new `https://developers.home.google.com/android/reference/com/google/android/gms/threadnetwork/ThreadBorderAgent.Builder` for constructing a `https://developers.home.google.com/android/reference/com/google/android/gms/threadnetwork/ThreadBorderAgent`. |
| void | [writeToParcel](https://developers.home.google.com/android/reference/com/google/android/gms/threadnetwork/ThreadBorderAgent#writeToParcel(android.os.Parcel,%20int))([Parcel](https://developer.android.com/reference/android/os/Parcel.html) dest, int flags) |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

From interface android.os.Parcelable

|---|---|
| abstract int | describeContents() |
| abstract void | writeToParcel([Parcel](https://developer.android.com/reference/android/os/Parcel.html) arg0, int arg1) |

## Public Methods

#### public byte\[\] **getId** ()

Returns the id which uniquely identifies a Thread Border Agent device.

#### public static [ThreadBorderAgent.Builder](https://developers.home.google.com/android/reference/com/google/android/gms/threadnetwork/ThreadBorderAgent.Builder)
**newBuilder** (byte\[\] id)

Creates a new `https://developers.home.google.com/android/reference/com/google/android/gms/threadnetwork/ThreadBorderAgent.Builder` for constructing a `https://developers.home.google.com/android/reference/com/google/android/gms/threadnetwork/ThreadBorderAgent`.

##### Parameters

| id | the id which uniquely identifies a Border Agent. The length must be 16 bytes. |
|---|---|

##### Throws

| [IllegalArgumentException](https://developer.android.com/reference/java/lang/IllegalArgumentException.html) | if the `id` is not of length 16 bytes. |
|---|---|

#### public void **writeToParcel** ([Parcel](https://developer.android.com/reference/android/os/Parcel.html) dest, int flags)