public static final class Project.Builder extends GeneratedMessageV3.Builder<Project.Builder> implements ProjectOrBuilder
A project is a high-level Google Cloud entity. It is a container for ACLs, APIs, App Engine Apps, VMs, and other Google Cloud Platform resources.Protobuf type
google.cloud.resourcemanager.v3.Project
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<Project.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<Project.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Project.Builder>
public Project.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Project.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Project.Builder>
public Project getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Project build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Project buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Project.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Project.Builder>
public Project.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Project.Builder>
public Project.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Project.Builder>
public Project.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Project.Builder>
public Project.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Project.Builder>
public Project.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Project.Builder>
public Project.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Project.Builder>
public Project.Builder mergeFrom(Project other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Project.Builder>
public Project.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Project.Builder>
IOException
public String getName()
Output only. The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example: `projects/415104041262`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getName
in interface ProjectOrBuilder
public ByteString getNameBytes()
Output only. The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example: `projects/415104041262`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getNameBytes
in interface ProjectOrBuilder
public Project.Builder setName(String value)
Output only. The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example: `projects/415104041262`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The name to set.public Project.Builder clearName()
Output only. The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example: `projects/415104041262`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Project.Builder setNameBytes(ByteString value)
Output only. The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example: `projects/415104041262`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The bytes for name to set.public String getParent()
Optional. A reference to a parent Resource. eg., `organizations/123` or `folders/876`.
string parent = 2 [(.google.api.field_behavior) = OPTIONAL];
getParent
in interface ProjectOrBuilder
public ByteString getParentBytes()
Optional. A reference to a parent Resource. eg., `organizations/123` or `folders/876`.
string parent = 2 [(.google.api.field_behavior) = OPTIONAL];
getParentBytes
in interface ProjectOrBuilder
public Project.Builder setParent(String value)
Optional. A reference to a parent Resource. eg., `organizations/123` or `folders/876`.
string parent = 2 [(.google.api.field_behavior) = OPTIONAL];
value
- The parent to set.public Project.Builder clearParent()
Optional. A reference to a parent Resource. eg., `organizations/123` or `folders/876`.
string parent = 2 [(.google.api.field_behavior) = OPTIONAL];
public Project.Builder setParentBytes(ByteString value)
Optional. A reference to a parent Resource. eg., `organizations/123` or `folders/876`.
string parent = 2 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes for parent to set.public String getProjectId()
Immutable. The unique, user-assigned id of the project. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: `tokyo-rain-123`
string project_id = 3 [(.google.api.field_behavior) = IMMUTABLE];
getProjectId
in interface ProjectOrBuilder
public ByteString getProjectIdBytes()
Immutable. The unique, user-assigned id of the project. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: `tokyo-rain-123`
string project_id = 3 [(.google.api.field_behavior) = IMMUTABLE];
getProjectIdBytes
in interface ProjectOrBuilder
public Project.Builder setProjectId(String value)
Immutable. The unique, user-assigned id of the project. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: `tokyo-rain-123`
string project_id = 3 [(.google.api.field_behavior) = IMMUTABLE];
value
- The projectId to set.public Project.Builder clearProjectId()
Immutable. The unique, user-assigned id of the project. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: `tokyo-rain-123`
string project_id = 3 [(.google.api.field_behavior) = IMMUTABLE];
public Project.Builder setProjectIdBytes(ByteString value)
Immutable. The unique, user-assigned id of the project. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: `tokyo-rain-123`
string project_id = 3 [(.google.api.field_behavior) = IMMUTABLE];
value
- The bytes for projectId to set.public int getStateValue()
Output only. The project lifecycle state.
.google.cloud.resourcemanager.v3.Project.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue
in interface ProjectOrBuilder
public Project.Builder setStateValue(int value)
Output only. The project lifecycle state.
.google.cloud.resourcemanager.v3.Project.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The enum numeric value on the wire for state to set.public Project.State getState()
Output only. The project lifecycle state.
.google.cloud.resourcemanager.v3.Project.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState
in interface ProjectOrBuilder
public Project.Builder setState(Project.State value)
Output only. The project lifecycle state.
.google.cloud.resourcemanager.v3.Project.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The state to set.public Project.Builder clearState()
Output only. The project lifecycle state.
.google.cloud.resourcemanager.v3.Project.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public String getDisplayName()
Optional. A user-assigned display name of the project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: `My Project`
string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];
getDisplayName
in interface ProjectOrBuilder
public ByteString getDisplayNameBytes()
Optional. A user-assigned display name of the project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: `My Project`
string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];
getDisplayNameBytes
in interface ProjectOrBuilder
public Project.Builder setDisplayName(String value)
Optional. A user-assigned display name of the project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: `My Project`
string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];
value
- The displayName to set.public Project.Builder clearDisplayName()
Optional. A user-assigned display name of the project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: `My Project`
string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];
public Project.Builder setDisplayNameBytes(ByteString value)
Optional. A user-assigned display name of the project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: `My Project`
string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes for displayName to set.public boolean hasCreateTime()
Output only. Creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime
in interface ProjectOrBuilder
public Timestamp getCreateTime()
Output only. Creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime
in interface ProjectOrBuilder
public Project.Builder setCreateTime(Timestamp value)
Output only. Creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Project.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. Creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Project.Builder mergeCreateTime(Timestamp value)
Output only. Creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Project.Builder clearCreateTime()
Output only. Creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Timestamp.Builder getCreateTimeBuilder()
Output only. Creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder
in interface ProjectOrBuilder
public boolean hasUpdateTime()
Output only. The most recent time this resource was modified.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime
in interface ProjectOrBuilder
public Timestamp getUpdateTime()
Output only. The most recent time this resource was modified.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTime
in interface ProjectOrBuilder
public Project.Builder setUpdateTime(Timestamp value)
Output only. The most recent time this resource was modified.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Project.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. The most recent time this resource was modified.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Project.Builder mergeUpdateTime(Timestamp value)
Output only. The most recent time this resource was modified.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Project.Builder clearUpdateTime()
Output only. The most recent time this resource was modified.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Timestamp.Builder getUpdateTimeBuilder()
Output only. The most recent time this resource was modified.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The most recent time this resource was modified.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder
in interface ProjectOrBuilder
public boolean hasDeleteTime()
Output only. The time at which this resource was requested for deletion.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasDeleteTime
in interface ProjectOrBuilder
public Timestamp getDeleteTime()
Output only. The time at which this resource was requested for deletion.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDeleteTime
in interface ProjectOrBuilder
public Project.Builder setDeleteTime(Timestamp value)
Output only. The time at which this resource was requested for deletion.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Project.Builder setDeleteTime(Timestamp.Builder builderForValue)
Output only. The time at which this resource was requested for deletion.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Project.Builder mergeDeleteTime(Timestamp value)
Output only. The time at which this resource was requested for deletion.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Project.Builder clearDeleteTime()
Output only. The time at which this resource was requested for deletion.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Timestamp.Builder getDeleteTimeBuilder()
Output only. The time at which this resource was requested for deletion.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TimestampOrBuilder getDeleteTimeOrBuilder()
Output only. The time at which this resource was requested for deletion.
.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDeleteTimeOrBuilder
in interface ProjectOrBuilder
public String getEtag()
Output only. A checksum computed by the server based on the current value of the Project resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
string etag = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEtag
in interface ProjectOrBuilder
public ByteString getEtagBytes()
Output only. A checksum computed by the server based on the current value of the Project resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
string etag = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEtagBytes
in interface ProjectOrBuilder
public Project.Builder setEtag(String value)
Output only. A checksum computed by the server based on the current value of the Project resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
string etag = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The etag to set.public Project.Builder clearEtag()
Output only. A checksum computed by the server based on the current value of the Project resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
string etag = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Project.Builder setEtagBytes(ByteString value)
Output only. A checksum computed by the server based on the current value of the Project resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
string etag = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The bytes for etag to set.public int getLabelsCount()
ProjectOrBuilder
Optional. 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\](\[-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. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: `"myBusinessDimension" : "businessValue"`
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
getLabelsCount
in interface ProjectOrBuilder
public boolean containsLabels(String key)
Optional. 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\](\[-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. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: `"myBusinessDimension" : "businessValue"`
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
containsLabels
in interface ProjectOrBuilder
@Deprecated public Map<String,String> getLabels()
getLabelsMap()
instead.getLabels
in interface ProjectOrBuilder
public Map<String,String> getLabelsMap()
Optional. 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\](\[-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. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: `"myBusinessDimension" : "businessValue"`
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
getLabelsMap
in interface ProjectOrBuilder
public String getLabelsOrDefault(String key, String defaultValue)
Optional. 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\](\[-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. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: `"myBusinessDimension" : "businessValue"`
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
getLabelsOrDefault
in interface ProjectOrBuilder
public String getLabelsOrThrow(String key)
Optional. 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\](\[-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. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: `"myBusinessDimension" : "businessValue"`
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
getLabelsOrThrow
in interface ProjectOrBuilder
public Project.Builder clearLabels()
public Project.Builder removeLabels(String key)
Optional. 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\](\[-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. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: `"myBusinessDimension" : "businessValue"`
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
@Deprecated public Map<String,String> getMutableLabels()
public Project.Builder putLabels(String key, String value)
Optional. 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\](\[-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. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: `"myBusinessDimension" : "businessValue"`
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
public Project.Builder putAllLabels(Map<String,String> values)
Optional. 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\](\[-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. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: `"myBusinessDimension" : "businessValue"`
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
public final Project.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Project.Builder>
public final Project.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Project.Builder>
Copyright © 2022 Google LLC. All rights reserved.