public abstract static class ProjectInfo.Builder extends Object
ProjectInfo.| Constructor and Description |
|---|
ProjectInfo.Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract ProjectInfo.Builder |
addLabel(String key,
String value)
Add a label associated with this project.
|
abstract ProjectInfo |
build() |
abstract ProjectInfo.Builder |
clearLabels()
Clear the labels associated with this project.
|
abstract ProjectInfo.Builder |
labels(Map<String,String> labels)
Set the labels associated with this project.
|
abstract ProjectInfo.Builder |
name(String name)
Set the user-assigned name of the project.
|
abstract ProjectInfo.Builder |
projectId(String projectId)
Set the unique, user-assigned ID of the project.
|
abstract ProjectInfo.Builder |
removeLabel(String key)
Remove a label associated with this project.
|
public abstract ProjectInfo.Builder name(String name)
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.
public abstract ProjectInfo.Builder projectId(String projectId)
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.
public abstract ProjectInfo.Builder addLabel(String key, String value)
See labels(java.util.Map<java.lang.String, java.lang.String>) for label restrictions.
public abstract ProjectInfo.Builder removeLabel(String key)
public abstract ProjectInfo.Builder clearLabels()
public abstract ProjectInfo.Builder labels(Map<String,String> labels)
Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])?. Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?. No more than 256 labels can be associated with a given resource. This field can be changed after project creation.
public abstract ProjectInfo build()
Copyright © 2016 Google. All rights reserved.