Package com.google.cloud.storage
Class Acl.Project
java.lang.Object
com.google.cloud.storage.Acl.Entity
com.google.cloud.storage.Acl.Project
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Acl
Class for ACL Project entities.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.cloud.storage.Acl.Entity
Acl.Entity.Type
-
Constructor Summary
ConstructorDescriptionProject
(Acl.Project.ProjectRole projectRole, String projectId) Creates a project entity. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the project id for this entity.Returns the role in the project for this entity.int
hashCode()
Methods inherited from class com.google.cloud.storage.Acl.Entity
getType, getValue, toString
-
Constructor Details
-
Project
Creates a project entity.- Parameters:
projectRole
- a role in the project, used to select project's teamsprojectId
- id of the project
-
-
Method Details
-
getProjectRole
Returns the role in the project for this entity. -
getProjectId
Returns the project id for this entity. -
equals
- Overrides:
equals
in classAcl.Entity
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAcl.Entity
-