Stay organized with collections Save and categorize content based on your preferences.
Detailed documentationgetId()
Returns the unique ID associated with this developer metadata.
ReturnInteger
— The unique ID associated with this developer metadata.
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/spreadsheets.currentonly
https://www.googleapis.com/auth/spreadsheets
getKey()
Returns the key associated with this developer metadata.
ReturnString
— The key associated with this developer metadata.
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/spreadsheets.currentonly
https://www.googleapis.com/auth/spreadsheets
getLocation()
Returns the location of this developer metadata.
ReturnDeveloperMetadataLocation
— The location of this developer metadata.
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/spreadsheets.currentonly
https://www.googleapis.com/auth/spreadsheets
getValue()
Returns the value associated with this developer metadata, or null
if this metadata has no value.
String
— The value associated with this developer metadata, or null
if this metadata has no value.
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/spreadsheets.currentonly
https://www.googleapis.com/auth/spreadsheets
getVisibility()
Returns the visibility of this developer metadata.
ReturnDeveloperMetadataVisibility
— The visibility of this developer metadata.
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/spreadsheets.currentonly
https://www.googleapis.com/auth/spreadsheets
moveToColumn(column)
Moves this developer metadata to the specified column. If the specified range does not represent a single column this throws an exception.
Parameters Name Type Descriptioncolumn
Range
The range representing the column that is the new location for this developer metadata. Return
DeveloperMetadata
— The developer metadata, for chaining.
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/spreadsheets.currentonly
https://www.googleapis.com/auth/spreadsheets
moveToRow(row)
Moves this developer metadata to the specified row. If the specified range does not represent a single row this throws an exception.
Parameters Name Type Descriptionrow
Range
The range representing the row that is the new location for this developer metadata. Return
DeveloperMetadata
— The developer metadata, for chaining.
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/spreadsheets.currentonly
https://www.googleapis.com/auth/spreadsheets
moveToSheet(sheet)
Moves this developer metadata to the specified sheet.
Parameters Name Type Descriptionsheet
Sheet
The sheet that is the new location for this developer metata. Return
DeveloperMetadata
— The developer metadata, for chaining.
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/spreadsheets.currentonly
https://www.googleapis.com/auth/spreadsheets
moveToSpreadsheet()
Moves this developer metadata to the top-level spreadsheet.
ReturnDeveloperMetadata
— The developer metadata, for chaining.
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/spreadsheets.currentonly
https://www.googleapis.com/auth/spreadsheets
remove()
Deletes this metadata.
AuthorizationScripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/spreadsheets.currentonly
https://www.googleapis.com/auth/spreadsheets
setKey(key)
Sets the key of this developer metadata to the specified value.
Parameters Name Type Descriptionkey
String
The new key to set for this metadata. Return
DeveloperMetadata
— The developer metadata, for chaining.
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/spreadsheets.currentonly
https://www.googleapis.com/auth/spreadsheets
setValue(value)
Sets the value associated with this developer metadata to the specified value.
Parameters Name Type Descriptionvalue
String
The new value to set for this metadata. Return
DeveloperMetadata
— The developer metadata, for chaining.
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/spreadsheets.currentonly
https://www.googleapis.com/auth/spreadsheets
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-03 UTC."],[[["Developer metadata allows you to store extra information within spreadsheets, sheets, or ranges using key-value pairs."],["You can create, access, and modify developer metadata using dedicated methods like `addDeveloperMetadata()`, `getKey()`, `getValue()`, and more."],["Various methods enable you to manage the location and visibility of your metadata, such as moving it between spreadsheets, sheets, or rows/columns, and setting its visibility."],["The `DeveloperMetadata` class offers a comprehensive set of methods for manipulating developer metadata, including setting values, keys, and visibility."],["Authorization with specific scopes like `https://www.googleapis.com/auth/spreadsheets` is required when using these methods in Apps Script."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4