コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
IntegrityTokenRequest.Builder
public
static
abstract
class
IntegrityTokenRequest.Builder
extends Object
java.lang.Object
|
↳ |
com.google.android.play.core.integrity.IntegrityTokenRequest.Builder
|
IntegrityTokenRequest
のビルダー。
概要
継承されるメソッド |
継承元のクラス
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
パブリック コンストラクタ
Builder
public Builder ()
パブリック メソッド
setCloudProjectNumber
public abstract IntegrityTokenRequest.Builder setCloudProjectNumber (long cloudProjectNumber)
完全性トークンにリンクする Cloud プロジェクト番号。
このフィールドは、Google Play 以外で独占配信されるアプリと SDK で必須です。Google Play で配信されるアプリの場合、Cloud プロジェクト番号は Google Play Console で構成します。リクエストに設定する必要はありません。
Play Integrity API が有効になっている Cloud プロジェクトの Cloud プロジェクト番号は、Google Cloud コンソールのプロジェクト情報で確認できます。
Google のサーバー上でトークンを復号する呼び出しは、このリクエストのトークンにリンクされた Cloud アカウントを使用して認証する必要があります。
パラメータ |
cloudProjectNumber |
long |
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-27 UTC。"],[],[],null,["# IntegrityTokenRequest.Builder\n\nSummary: [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nIntegrityTokenRequest.Builder\n=============================\n\n\n`\npublic\nstatic\n\nabstract\nclass\nIntegrityTokenRequest.Builder\n`\n\n\n`\n\nextends `[Object](https://developer.android.com/reference/java/lang/Object.html)`\n\n\n`\n\n`\n\n\n`\n\n|---|----------------------------------------------------------------------|\n| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||\n| ↳ | com.google.android.play.core.integrity.IntegrityTokenRequest.Builder |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nBuilder for [IntegrityTokenRequest](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.html).\n\nSummary\n-------\n\n| ### Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[Builder](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.Builder.html#Builder())`() ` |\n\n| ### Public methods ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[IntegrityTokenRequest](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.html) | ` `[build](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.Builder.html#build())`() ` Builds a [IntegrityTokenRequest](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.html). |\n| ` abstract `[IntegrityTokenRequest.Builder](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.Builder.html) | ` `[setCloudProjectNumber](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.Builder.html#setCloudProjectNumber(long))`(long cloudProjectNumber) ` A cloud project number to link to the integrity token. |\n| ` abstract `[IntegrityTokenRequest.Builder](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.Builder.html) | ` `[setNonce](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.Builder.html#setNonce(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` nonce) ` A nonce to bind the integrity token to. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| 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)`\u003c?\u003e` | ` 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() ` | ||\n\nPublic constructors\n-------------------\n\n### Builder\n\n```\npublic Builder ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### build\n\n```\npublic abstract IntegrityTokenRequest build ()\n```\n\nBuilds a [IntegrityTokenRequest](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.html).\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------------------------------------------------------------------------------------------------------------------------|--------|\n| [IntegrityTokenRequest](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.html) | \u003cbr /\u003e |\n\n### setCloudProjectNumber\n\n```\npublic abstract IntegrityTokenRequest.Builder setCloudProjectNumber (long cloudProjectNumber)\n```\n\nA cloud project number to link to the integrity token.\n\nThis field is required for apps exclusively distributed outside of Google Play and SDKs. For\napps distributed on Google Play, the cloud project number is configured in the Play Console and\nneed not be set on the request.\n\nCloud project number can be found in Project info in your Google Cloud Console for the\ncloud project where Play Integrity API is enabled.\n\nCalls to [decrypt the token on Google's server](https://developer.android.com/google/play/integrity/classic#decrypt-verify-google-servers) must be authenticated using the cloud account that\nwas linked to the token in this request.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------------------|---------------|\n| `cloudProjectNumber` | `long` \u003cbr /\u003e |\n\n| Returns ||\n|-------------------------------------------------------------------------------------------------------------------------------------------|--------|\n| [IntegrityTokenRequest.Builder](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.Builder.html) | \u003cbr /\u003e |\n\n### setNonce\n\n```\npublic abstract IntegrityTokenRequest.Builder setNonce (String nonce)\n```\n\nA nonce to bind the integrity token to.\n\nIt must be base64 encoded in web-safe no-wrap form.\n\nSee [details](https://developer.android.com/google/play/integrity/classic#nonce) about the nonce requirements and recommendations.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|-----------------|\n| `nonce` | `String` \u003cbr /\u003e |\n\n| Returns ||\n|-------------------------------------------------------------------------------------------------------------------------------------------|--------|\n| [IntegrityTokenRequest.Builder](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenRequest.Builder.html) | \u003cbr /\u003e |"]]