Summary: [Ctors](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder#pubctors) \| [Methods](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder#pubmethods) \| [Inherited Methods](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder#inhmethods)  

# StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder


`
public
static

abstract
class
StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder
`


`

extends `[Object](https://developer.android.com/reference/java/lang/Object.html)`


`

`


`

|---|------------------------------------------------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)                       ||
| ↳ | com.google.android.play.core.integrity.StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder |

<br />

*** ** * ** ***

Builder for [StandardIntegrityManager.PrepareIntegrityTokenRequest](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.PrepareIntegrityTokenRequest.html).

## Summary

|                                                                                         ### Public constructors                                                                                         ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[Builder](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder.html#Builder())`() ` |

|                                                                                                                                                                                                                                                                                                                                    ### Public methods                                                                                                                                                                                                                                                                                                                                     ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract `[StandardIntegrityManager.PrepareIntegrityTokenRequest](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.PrepareIntegrityTokenRequest.html)                 | ` `[build](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder.html#build())`() ` Builds a [StandardIntegrityManager.PrepareIntegrityTokenRequest](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.PrepareIntegrityTokenRequest.html). |
| ` abstract `[StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder.html) | ` `[setCloudProjectNumber](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder.html#setCloudProjectNumber(long))`(long value) ` A cloud project number to link to the integrity token.                                                                                                                               |

| ### Inherited methods |
|-----------------------|---|
| From class ` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)` ` |-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` boolean`                                                                          | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` 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() `                                                                                 | ||

## Public constructors

### Builder

```
public Builder ()
```

<br />

<br />

## Public methods

### build

```
public abstract StandardIntegrityManager.PrepareIntegrityTokenRequest build ()
```

Builds a [StandardIntegrityManager.PrepareIntegrityTokenRequest](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.PrepareIntegrityTokenRequest.html).

<br />

|                                                                                                             Returns                                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|
| [StandardIntegrityManager.PrepareIntegrityTokenRequest](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.PrepareIntegrityTokenRequest.html) | <br /> |

### setCloudProjectNumber

```
public abstract StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder setCloudProjectNumber (long value)
```

A cloud project number to link to the integrity token.

This field is required.

Cloud project number can be found in Project info in your Google Cloud Console for the
cloud project where Play Integrity API is enabled.

Calls to [decrypt the token on Google's server](https://developer.android.com/google/play/integrity/verdict#decrypt-verify-google-servers) must be authenticated using the cloud account that
was linked to the token in this request.

<br />

|       Parameters       ||
|---------|---------------|
| `value` | `long` <br /> |

|                                                                                                                     Returns                                                                                                                      ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|
| [StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder.html) | <br /> |