Send feedback
Class Role (2.43.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.43.0 keyboard_arrow_down
public final class Role implements Serializable
Static Methods
editor()
public static Role editor()
Returns the editor role. Encapsulates all viewer's permissions and permissions for actions that
modify the state of a resource.
See Also: Understanding Roles
Returns
Type
Description
Role
of(String value)
public static Role of(String value)
Parameter
Name
Description
value
String
the string value for the role
Returns
Type
Description
Role
owner()
public static Role owner()
Returns the owner role. Encapsulates all editor's permissions and permissions to manage access
control for a resource or manage the billing options for a project.
See Also: Understanding Roles
Returns
Type
Description
Role
viewer()
public static Role viewer()
Returns the viewer role. Encapsulates the permission for read-only actions that preserve state
of a resource.
See Also: Understanding Roles
Returns
Type
Description
Role
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Name
Description
obj
Object
Overrides
getValue()
Returns the string identifier for this role. For example, "roles/viewer"
,
"roles/editor"
, or "roles/owner"
.
Returns
Type
Description
String
hashCode()
Returns
Type
Description
int
Overrides
toString()
Returns
Type
Description
String
Overrides
Send feedback
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-10-03 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-10-03 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-03 UTC."]]