LeaderboardConfigurations

リーダーボードの構成を表します。

このリソースのメソッドの一覧は、このページの最後に掲載されています。

リソースの表記

これは、リーダーボード構成リソースの JSON テンプレートです。

{
  "kind": "gamesConfiguration#leaderboardConfiguration";,
  ";token": string,
  "id": string,
  "scoreOrder": string,
 { "scoreMin": long,
  "scoreMax": long,
  "draft"{: 
    "kind": "gamesConfiguration#leaderboardConfigurationDetail",
   { "name": 
      "kind": "gamesConfiguration#localizedStringBundle",
      "translati}ons": [
}        
          "kind": "gamesConfiguration#localiz{edString",
          "locale": strin{g,
          &quo{t;value": string
        
      ]
    ,
    "iconUrl": string,
    "sortRank":{ integer,
    "scoreFormat": 
      "numberFormatType": string,
      "suffix": 
        "zero"}: 
          "ki}nd": "g{amesConfiguration#localizedStringBundle",
          "translations": [
            
     {         "kind": "gamesConfiguration#localizedString",
              "locale": string,
              &quo}t;value": string}
            
   {       ]
        ,
        "one": 
          "kind": "gamesConfiguration#local{izedStringBundle",
          "translations": [
            
              "kind": "gamesConfiguration#loc}alizedString",
 }             &quo{t;locale": string,
              "value": string
            
          ]
        ,
    {    "two": 
          "kind": "gamesConfiguration#localizedStringBundle",
          "translations&qu}ot;: [
            
 }             "{;kind": "gamesConfiguration#localizedString",
              "locale": string,
{              "value": string
            
          ]
        ,
        "few": 
          ";kind": "}gamesConfiguration#lo}calizedStringBundle{",
          "translations": [
            
              "kind": "gamesC{onfiguration#localizedString",
              "locale": string,
              "value": string
            
    }      ]
        ,
   }     &q}uot;many": 
          "kind": "gamesConfiguration#}loc}alizedStringBundl{e",
          "translations": [
            
              &quo{t;kind": "gamesConfiguration#localizedString",
              "locale&qu{ot;: string,
              "value": string
            
          ]
        ,
        "other": 
   }       "}kind": ";gamesConfiguration#localizedStringBundle",
   {       "translations": [
            
   {           "{kind": "gamesConfiguration#localizedString",
              "locale": string,
 {             "value": string
            
          ]
        
      ,
      "numDecimalPlaces": integer,
      &qu}ot;currencyCode"}: string
    
  ,{
  "published": 
    "kind": "gamesConfiguration#leaderboardConfigurationDetai{l",
    "name": 
      "kind": "gamesConfiguration#localizedStringBundle",
      "translations&}quot;: [
        
   }       "kind{": "gamesConfiguration#localizedString",
          "locale": string,
         { "value": string
        
      ]
    ,
    "iconUrl": string,
    "sortRank": integer,
    "scoreFo}rmat": 
      &q}uot;numberFormatT{ype": string,
      "suffix": 
        "zero": 
          "kind": &q{uot;gamesConfiguration#localizedStringBundle",
          "translations";: [
            
              ";kind": }"gamesConfigurat}ion#localizedStrin{g",
              "locale": string,
              "value": string
            {
          ]
        ,
        "one": 
          "kind": "gamesConfiguration#localizedStringBundle",
    }      "translati}ons": [
      {      
              "kind": "gamesConfiguration#localizedString",
              &q{uot;locale": string,
              "value": string
            
          ]
        ,
        "two": 
        }  "kind": &}quot;ga}mesConfiguration#localizedStringBundle",
          "translat}ion}s}": [
            
              "kind": "gamesConfiguration#localizedString",
              "locale": string,
              "value": string
            
          ]
        ,
        "few": 
          "kind": "gamesConfiguration#localizedStringBundle",
          "translations": [
            
              "kind": "gamesConfiguration#localizedString",
              "locale": string,
              "value": string
            
          ]
        ,
        "many": 
          "kind": "gamesConfiguration#localizedStringBundle",
          "translations": [
            
              "kind": "gamesConfiguration#localizedString",
              "locale": string,
              "value": string
            
          ]
        ,
        "other": 
          "kind": "gamesConfiguration#localizedStringBundle",
          "translations": [
            
              "kind": "gamesConfiguration#localizedString",
              "locale": string,
              "value": string
            
          ]
        
      ,
      "numDecimalPlaces": integer,
      "currencyCode": string
    
  
プロパティ名 説明 備考
kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#leaderboardConfiguration です。
token string このリソースのトークン。
id string リーダーボードの ID。
scoreOrder string リーダーボードのタイプ。
指定できる値は次のとおりです。
  • LARGER_IS_BETTER」 - 投稿されたスコアが高いほどランクが高くなります。
  • SMALLER_IS_BETTER」 - 投稿されたスコアが小さいほどランクが高くなります。
scoreMin long このリーダーボードに投稿できる最小スコア。
scoreMax long このリーダーボードに投稿できるスコアの上限。
draft nested object リーダーボードのドラフトデータ。
draft.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#leaderboardConfigurationDetail です。
draft.name nested object リーダーボード名のローカライズされた文字列。
draft.name.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
draft.name.translations[] list ロケール文字列。
draft.name.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
draft.name.translations[].locale string ロケール文字列。
draft.name.translations[].value string 文字列値。
draft.iconUrl string このリーダーボードのアイコンの URL。このフィールドへの書き込みは無視されます。
draft.sortRank integer このリーダーボードの並べ替え順位。このフィールドへの書き込みは無視されます。
draft.scoreFormat nested object リーダーボードのスコアの形式。
draft.scoreFormat.numberFormatType string 数値の書式。
指定できる値は次のとおりです。
  • NUMERIC」 - ロケールに応じて、小数点以下に桁数なしまたは固定桁数になるように数値が書式設定されます。カスタム単位を追加することもできます(省略可)。
  • TIME_DURATION」 - 数値は時間、分、秒の形式で表示されます。
  • CURRENCY」 - 数値はロケールに応じて通貨として書式設定されます。
draft.scoreFormat.suffix nested object NUMERIC 形式の接尾辞(省略可)。これらの文字列は、すべての Android 文字列リソースと同じ 複数形のルールに従います。
draft.scoreFormat.suffix.zero nested object 数字の 0 の処理が特殊である言語(アラビア語など)。
draft.scoreFormat.suffix.zero.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
draft.scoreFormat.suffix.zero.translations[] list ロケール文字列。
draft.scoreFormat.suffix.zero.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
draft.scoreFormat.suffix.zero.translations[].locale string ロケール文字列。
draft.scoreFormat.suffix.zero.translations[].value string 文字列値。
draft.scoreFormat.suffix.one nested object 1 などの数字の処理が特殊である言語(英語をはじめとする大半の言語の 1 が該当。ロシア語の場合は、末尾が 1 であり、かつ 11 でない数字がこのクラスに該当)。
draft.scoreFormat.suffix.one.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
draft.scoreFormat.suffix.one.translations[] list ロケール文字列。
draft.scoreFormat.suffix.one.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
draft.scoreFormat.suffix.one.translations[].locale string ロケール文字列。
draft.scoreFormat.suffix.one.translations[].value string 文字列値。
draft.scoreFormat.suffix.two nested object 2 などの数字の処理が特殊である言語(ウェールズ語の 2、スロベニア語の 102 など)。
draft.scoreFormat.suffix.two.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
draft.scoreFormat.suffix.two.translations[] list ロケール文字列。
draft.scoreFormat.suffix.two.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
draft.scoreFormat.suffix.two.translations[].locale string ロケール文字列。
draft.scoreFormat.suffix.two.translations[].value string 文字列値。
draft.scoreFormat.suffix.few nested object 「小さな」数字の処理が特殊である言語(チェコ語の 2、3、4 や、ポーランド語の 12、13、14 を除く、末尾が 2、3、4 の数字など)。
draft.scoreFormat.suffix.few.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
draft.scoreFormat.suffix.few.translations[] list ロケール文字列。
draft.scoreFormat.suffix.few.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
draft.scoreFormat.suffix.few.translations[].locale string ロケール文字列。
draft.scoreFormat.suffix.few.translations[].value string 文字列値。
draft.scoreFormat.suffix.many nested object 「大きな」数字の処理が特殊である言語(マルタ語の末尾が 11~99 の数字など)。
draft.scoreFormat.suffix.many.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
draft.scoreFormat.suffix.many.translations[] list ロケール文字列。
draft.scoreFormat.suffix.many.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
draft.scoreFormat.suffix.many.translations[].locale string ロケール文字列。
draft.scoreFormat.suffix.many.translations[].value string 文字列値。
draft.scoreFormat.suffix.other nested object 数量について特殊な処理を必要としない言語(中国語のすべての数字、英語の 42 など)。
draft.scoreFormat.suffix.other.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
draft.scoreFormat.suffix.other.translations[] list ロケール文字列。
draft.scoreFormat.suffix.other.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
draft.scoreFormat.suffix.other.translations[].locale string ロケール文字列。
draft.scoreFormat.suffix.other.translations[].value string 文字列値。
draft.scoreFormat.numDecimalPlaces integer 数値の小数点以下の桁数。NUMERIC 形式のタイプでのみ使用されます。
draft.scoreFormat.currencyCode string 通貨コードの文字列。CURRENCY 形式タイプでのみ使用されます。
published nested object リーダーボードの公開データ。このデータは読み取り専用です。
published.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#leaderboardConfigurationDetail です。
published.name nested object リーダーボード名のローカライズされた文字列。
published.name.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
published.name.translations[] list ロケール文字列。
published.name.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
published.name.translations[].locale string ロケール文字列。
published.name.translations[].value string 文字列値。
published.iconUrl string このリーダーボードのアイコンの URL。このフィールドへの書き込みは無視されます。
published.sortRank integer このリーダーボードの並べ替え順位。このフィールドへの書き込みは無視されます。
published.scoreFormat nested object リーダーボードのスコアの形式。
published.scoreFormat.numberFormatType string 数値の書式。
指定できる値は次のとおりです。
  • NUMERIC」 - ロケールに応じて、小数点以下に桁数なしまたは固定桁数になるように数値が書式設定されます。カスタム単位を追加することもできます(省略可)。
  • TIME_DURATION」 - 数値は時間、分、秒の形式で表示されます。
  • CURRENCY」 - 数値はロケールに応じて通貨として書式設定されます。
published.scoreFormat.suffix nested object NUMERIC 形式の接尾辞(省略可)。これらの文字列は、すべての Android 文字列リソースと同じ 複数形のルールに従います。
published.scoreFormat.suffix.zero nested object 数字の 0 の処理が特殊である言語(アラビア語など)。
published.scoreFormat.suffix.zero.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
published.scoreFormat.suffix.zero.translations[] list ロケール文字列。
published.scoreFormat.suffix.zero.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
published.scoreFormat.suffix.zero.translations[].locale string ロケール文字列。
published.scoreFormat.suffix.zero.translations[].value string 文字列値。
published.scoreFormat.suffix.one nested object 1 などの数字の処理が特殊である言語(英語をはじめとする大半の言語の 1 が該当。ロシア語の場合は、末尾が 1 であり、かつ 11 でない数字がこのクラスに該当)。
published.scoreFormat.suffix.one.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
published.scoreFormat.suffix.one.translations[] list ロケール文字列。
published.scoreFormat.suffix.one.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
published.scoreFormat.suffix.one.translations[].locale string ロケール文字列。
published.scoreFormat.suffix.one.translations[].value string 文字列値。
published.scoreFormat.suffix.two nested object 2 などの数字の処理が特殊である言語(ウェールズ語の 2、スロベニア語の 102 など)。
published.scoreFormat.suffix.two.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
published.scoreFormat.suffix.two.translations[] list ロケール文字列。
published.scoreFormat.suffix.two.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
published.scoreFormat.suffix.two.translations[].locale string ロケール文字列。
published.scoreFormat.suffix.two.translations[].value string 文字列値。
published.scoreFormat.suffix.few nested object 「小さな」数字の処理が特殊である言語(チェコ語の 2、3、4 や、ポーランド語の 12、13、14 を除く、末尾が 2、3、4 の数字など)。
published.scoreFormat.suffix.few.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
published.scoreFormat.suffix.few.translations[] list ロケール文字列。
published.scoreFormat.suffix.few.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
published.scoreFormat.suffix.few.translations[].locale string ロケール文字列。
published.scoreFormat.suffix.few.translations[].value string 文字列値。
published.scoreFormat.suffix.many nested object 「大きな」数字の処理が特殊である言語(マルタ語の末尾が 11~99 の数字など)。
published.scoreFormat.suffix.many.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
published.scoreFormat.suffix.many.translations[] list ロケール文字列。
published.scoreFormat.suffix.many.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
published.scoreFormat.suffix.many.translations[].locale string ロケール文字列。
published.scoreFormat.suffix.many.translations[].value string 文字列値。
published.scoreFormat.suffix.other nested object 数量について特殊な処理を必要としない言語(中国語のすべての数字、英語の 42 など)。
published.scoreFormat.suffix.other.kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedStringBundle です。
published.scoreFormat.suffix.other.translations[] list ロケール文字列。
published.scoreFormat.suffix.other.translations[].kind string このリソースのタイプを一意に識別します。値は常に固定文字列 gamesConfiguration#localizedString です。
published.scoreFormat.suffix.other.translations[].locale string ロケール文字列。
published.scoreFormat.suffix.other.translations[].value string 文字列値。
published.scoreFormat.numDecimalPlaces integer 数値の小数点以下の桁数。NUMERIC 形式のタイプでのみ使用されます。
published.scoreFormat.currencyCode string 通貨コードの文字列。CURRENCY 形式タイプでのみ使用されます。

メソッド

削除
指定された ID のリーダーボード構成を削除します。
get
指定された ID のリーダーボード構成のメタデータを取得します。
insert
このアプリに新しいリーダーボード構成を挿入します。
「Android 画面のキャストに最適なデバイス」
このアプリのリーダーボード構成のリストを返します。
update
指定された ID のリーダーボード構成のメタデータを更新します。