提供意見
REST Resource: projects.databases.collectionGroups.fields
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:欄位
代表資料庫中的單一欄位。
欄位是按「集合群組」分類,代表資料庫中具備相同 ID 的所有集合。
JSON 表示法
{
"name" : string ,
"indexConfig" : {
object (IndexConfig
)
}
}
欄位
name
string
projects/{projectId}/databases/{databaseId}/collectionGroups/{collectionId}/fields/{fieldPath}
表單的欄位名稱
欄位路徑可以是簡單的欄位名稱,例如 address
或 mapValue 中欄位的路徑 (例如 address.city
或特殊欄位路徑)。唯一有效的特殊欄位是 *
,代表任何欄位。
欄位路徑可以使用 (backtick). The only character that needs
to be escaped within a quoted field path is the backtick character itself,
escaped using a backslash. Special characters in field paths that
must be quoted include:
*,
.,
``` (backtick),
[,
]` 或任何 ASCII 符號字元加上引號。
範例:(注意:這裡的註解是以 Markdown 語法撰寫,因此還有一個倒引號來代表程式碼區塊) \
address.city`represents a field named
address.city, not the map key
cityin the field
address.
`*`represents a field named
*` 而非任何欄位。
特殊的 Field
包含所有欄位的預設索引設定。這個欄位的資源名稱為:這個 Field
中定義的 projects/{projectId}/databases/{databaseId}/collectionGroups/__default__/fields/*
個索引會套用至所有沒有專屬 Field
索引設定的欄位。
indexConfig
object (IndexConfig
)
這個欄位的索引設定。如未設定,欄位索引功能會還原為 ancestorField
定義的設定。如要明確移除這個欄位的所有索引,請使用空白的索引清單指定索引設定。
IndexConfig
JSON 表示法
{
"indexes" : [
{
object (Index
)
}
] ,
"usesAncestorConfig" : boolean ,
"ancestorField" : string ,
"reverting" : boolean
}
欄位
indexes[]
object (Index
)
這個欄位支援的索引。
usesAncestorConfig
boolean
僅供輸出。如果為 true,Field
的索引設定是根據 ancestorField
指定的設定進行。如果設為 False,系統會明確定義 Field
的索引設定。
ancestorField
string
僅供輸出。指定已設定這個欄位索引設定時所用 Field
的資源名稱 (如果 usesAncestorConfig
為 true),或如果這個欄位沒有索引設定,則「會」 設定該名稱 (當 usesAncestorConfig
為 false)。
reverting
boolean
僅輸出為 true 時,Field
的索引設定正在進行還原。完成後,索引設定會轉換為與 ancestorField
指定欄位相同的狀態,在這個時間點上 usesAncestorConfig
為 true
,reverting
則為 false
。
方法
取得欄位的中繼資料和設定。
列出這個資料庫的欄位設定和中繼資料。
更新欄位設定。
提供意見
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權 ,程式碼範例則為阿帕契 2.0 授權 。詳情請參閱《Google Developers 網站政策 》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-04-12 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
想進一步說明嗎?