- 1.50.0 (latest)
- 1.49.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.6
- 1.4.0
- 1.3.2
- 1.2.12
public static class Project.Builder extends ProjectInfo.Builder
Builder for Project
.
Methods
addLabel(String key, String value)
public Project.Builder addLabel(String key, String value)
Add a label associated with this project.
See #labels for label restrictions.
Parameters | |
---|---|
Name | Description |
key |
String |
value |
String |
Returns | |
---|---|
Type | Description |
Project.Builder |
build()
public Project build()
Returns | |
---|---|
Type | Description |
Project |
clearLabels()
public Project.Builder clearLabels()
Clear the labels associated with this project.
Returns | |
---|---|
Type | Description |
Project.Builder |
removeLabel(String key)
public Project.Builder removeLabel(String key)
Remove a label associated with this project.
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
Project.Builder |
setLabels(Map<String,String> labels)
public Project.Builder setLabels(Map<String,String> labels)
Set the labels associated with this project.
Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z?. Label values must be between 0 and 63 characters long and must conform to the regular expression (a-z?)?. No more than 256 labels can be associated with a given resource. This field can be changed after project creation.
Parameter | |
---|---|
Name | Description |
labels |
Map<String,String> |
Returns | |
---|---|
Type | Description |
Project.Builder |
setName(String name)
public Project.Builder setName(String name)
Set the user-assigned name of the project.
This field is optional and can remain unset. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. This field can be changed after project creation.
Parameter | |
---|---|
Name | Description |
name |
String |
Returns | |
---|---|
Type | Description |
Project.Builder |
setParent(ProjectInfo.ResourceId parent)
public Project.Builder setParent(ProjectInfo.ResourceId parent)
Parameter | |
---|---|
Name | Description |
parent |
ProjectInfo.ResourceId |
Returns | |
---|---|
Type | Description |
Project.Builder |
setProjectId(String projectId)
public Project.Builder setProjectId(String projectId)
Set the unique, user-assigned ID of the project.
The ID must be 6 to 30 lowercase letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. This field cannot be changed after the server creates the project.
Parameter | |
---|---|
Name | Description |
projectId |
String |
Returns | |
---|---|
Type | Description |
Project.Builder |