Class Project.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Project.Builder>
com.google.cloud.resourcemanager.v3.Project.Builder
All Implemented Interfaces:
ProjectOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Project

public static final class Project.Builder extends com.google.protobuf.GeneratedMessage.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Project.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Project.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Project.Builder>
    • clear

      public Project.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Project.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Project.Builder>
    • getDefaultInstanceForType

      public Project getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Project build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Project buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Project.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Project.Builder>
    • mergeFrom

      public Project.Builder mergeFrom(Project other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Project.Builder>
    • mergeFrom

      public Project.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Project.Builder>
      Throws:
      IOException
    • getName

      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];
      Specified by:
      getName in interface ProjectOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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];
      Specified by:
      getNameBytes in interface ProjectOrBuilder
      Returns:
      The bytes for name.
    • setName

      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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      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];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Project.Builder setNameBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getParent

      public String getParent()
       Optional. A reference to a parent Resource. eg., `organizations/123` or
       `folders/876`.
       
      string parent = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParent in interface ProjectOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Optional. A reference to a parent Resource. eg., `organizations/123` or
       `folders/876`.
       
      string parent = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParentBytes in interface ProjectOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      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];
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      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];
      Returns:
      This builder for chaining.
    • setParentBytes

      public Project.Builder setParentBytes(com.google.protobuf.ByteString value)
       Optional. A reference to a parent Resource. eg., `organizations/123` or
       `folders/876`.
       
      string parent = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getProjectId

      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];
      Specified by:
      getProjectId in interface ProjectOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.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];
      Specified by:
      getProjectIdBytes in interface ProjectOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      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];
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      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];
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public Project.Builder setProjectIdBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. The project lifecycle state.
       
      .google.cloud.resourcemanager.v3.Project.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface ProjectOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      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];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Project.State getState()
       Output only. The project lifecycle state.
       
      .google.cloud.resourcemanager.v3.Project.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface ProjectOrBuilder
      Returns:
      The state.
    • setState

      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];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Project.Builder clearState()
       Output only. The project lifecycle state.
       
      .google.cloud.resourcemanager.v3.Project.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getDisplayName

      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];
      Specified by:
      getDisplayName in interface ProjectOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.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];
      Specified by:
      getDisplayNameBytes in interface ProjectOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      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];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      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];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Project.Builder setDisplayNameBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Creation time.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface ProjectOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Creation time.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface ProjectOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Project.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Creation time.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Project.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Creation time.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Project.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Creation time.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Project.Builder clearCreateTime()
       Output only. Creation time.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Creation time.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Creation time.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface ProjectOrBuilder
    • hasUpdateTime

      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];
      Specified by:
      hasUpdateTime in interface ProjectOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The most recent time this resource was modified.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface ProjectOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Project.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The most recent time this resource was modified.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Project.Builder setUpdateTime(com.google.protobuf.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];
    • mergeUpdateTime

      public Project.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The most recent time this resource was modified.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      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];
    • getUpdateTimeBuilder

      public com.google.protobuf.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];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The most recent time this resource was modified.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface ProjectOrBuilder
    • hasDeleteTime

      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];
      Specified by:
      hasDeleteTime in interface ProjectOrBuilder
      Returns:
      Whether the deleteTime field is set.
    • getDeleteTime

      public com.google.protobuf.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];
      Specified by:
      getDeleteTime in interface ProjectOrBuilder
      Returns:
      The deleteTime.
    • setDeleteTime

      public Project.Builder setDeleteTime(com.google.protobuf.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];
    • setDeleteTime

      public Project.Builder setDeleteTime(com.google.protobuf.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];
    • mergeDeleteTime

      public Project.Builder mergeDeleteTime(com.google.protobuf.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];
    • clearDeleteTime

      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];
    • getDeleteTimeBuilder

      public com.google.protobuf.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];
    • getDeleteTimeOrBuilder

      public com.google.protobuf.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];
      Specified by:
      getDeleteTimeOrBuilder in interface ProjectOrBuilder
    • getEtag

      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];
      Specified by:
      getEtag in interface ProjectOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.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];
      Specified by:
      getEtagBytes in interface ProjectOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      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];
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      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];
      Returns:
      This builder for chaining.
    • setEtagBytes

      public Project.Builder setEtagBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: 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 64 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];
      Specified by:
      getLabelsCount in interface ProjectOrBuilder
    • containsLabels

      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 64 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];
      Specified by:
      containsLabels in interface ProjectOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface ProjectOrBuilder
    • getLabelsMap

      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 64 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];
      Specified by:
      getLabelsMap in interface ProjectOrBuilder
    • getLabelsOrDefault

      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 64 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];
      Specified by:
      getLabelsOrDefault in interface ProjectOrBuilder
    • getLabelsOrThrow

      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 64 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];
      Specified by:
      getLabelsOrThrow in interface ProjectOrBuilder
    • clearLabels

      public Project.Builder clearLabels()
    • removeLabels

      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 64 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];
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      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 64 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];
    • putAllLabels

      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 64 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];