Class CreateProjectRequest.Builder

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

public static final class CreateProjectRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateProjectRequest.Builder> implements CreateProjectRequestOrBuilder
 The request sent to the
 [CreateProject][google.cloud.resourcemanager.v3.Projects.CreateProject]
 method.
 
Protobuf type google.cloud.resourcemanager.v3.CreateProjectRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CreateProjectRequest.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<CreateProjectRequest.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<CreateProjectRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public CreateProjectRequest.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<CreateProjectRequest.Builder>
    • mergeFrom

    • isInitialized

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

      public CreateProjectRequest.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<CreateProjectRequest.Builder>
      Throws:
      IOException
    • hasProject

      public boolean hasProject()
       Required. The Project to create.
      
       Project ID is required. If the requested ID is unavailable, the request
       fails.
      
       If the `parent` field is set, the `resourcemanager.projects.create`
       permission is checked on the parent resource. If no parent is set and
       the authorization credentials belong to an Organization, the parent
       will be set to that Organization.
       
      .google.cloud.resourcemanager.v3.Project project = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasProject in interface CreateProjectRequestOrBuilder
      Returns:
      Whether the project field is set.
    • getProject

      public Project getProject()
       Required. The Project to create.
      
       Project ID is required. If the requested ID is unavailable, the request
       fails.
      
       If the `parent` field is set, the `resourcemanager.projects.create`
       permission is checked on the parent resource. If no parent is set and
       the authorization credentials belong to an Organization, the parent
       will be set to that Organization.
       
      .google.cloud.resourcemanager.v3.Project project = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProject in interface CreateProjectRequestOrBuilder
      Returns:
      The project.
    • setProject

      public CreateProjectRequest.Builder setProject(Project value)
       Required. The Project to create.
      
       Project ID is required. If the requested ID is unavailable, the request
       fails.
      
       If the `parent` field is set, the `resourcemanager.projects.create`
       permission is checked on the parent resource. If no parent is set and
       the authorization credentials belong to an Organization, the parent
       will be set to that Organization.
       
      .google.cloud.resourcemanager.v3.Project project = 1 [(.google.api.field_behavior) = REQUIRED];
    • setProject

      public CreateProjectRequest.Builder setProject(Project.Builder builderForValue)
       Required. The Project to create.
      
       Project ID is required. If the requested ID is unavailable, the request
       fails.
      
       If the `parent` field is set, the `resourcemanager.projects.create`
       permission is checked on the parent resource. If no parent is set and
       the authorization credentials belong to an Organization, the parent
       will be set to that Organization.
       
      .google.cloud.resourcemanager.v3.Project project = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeProject

      public CreateProjectRequest.Builder mergeProject(Project value)
       Required. The Project to create.
      
       Project ID is required. If the requested ID is unavailable, the request
       fails.
      
       If the `parent` field is set, the `resourcemanager.projects.create`
       permission is checked on the parent resource. If no parent is set and
       the authorization credentials belong to an Organization, the parent
       will be set to that Organization.
       
      .google.cloud.resourcemanager.v3.Project project = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearProject

      public CreateProjectRequest.Builder clearProject()
       Required. The Project to create.
      
       Project ID is required. If the requested ID is unavailable, the request
       fails.
      
       If the `parent` field is set, the `resourcemanager.projects.create`
       permission is checked on the parent resource. If no parent is set and
       the authorization credentials belong to an Organization, the parent
       will be set to that Organization.
       
      .google.cloud.resourcemanager.v3.Project project = 1 [(.google.api.field_behavior) = REQUIRED];
    • getProjectBuilder

      public Project.Builder getProjectBuilder()
       Required. The Project to create.
      
       Project ID is required. If the requested ID is unavailable, the request
       fails.
      
       If the `parent` field is set, the `resourcemanager.projects.create`
       permission is checked on the parent resource. If no parent is set and
       the authorization credentials belong to an Organization, the parent
       will be set to that Organization.
       
      .google.cloud.resourcemanager.v3.Project project = 1 [(.google.api.field_behavior) = REQUIRED];
    • getProjectOrBuilder

      public ProjectOrBuilder getProjectOrBuilder()
       Required. The Project to create.
      
       Project ID is required. If the requested ID is unavailable, the request
       fails.
      
       If the `parent` field is set, the `resourcemanager.projects.create`
       permission is checked on the parent resource. If no parent is set and
       the authorization credentials belong to an Organization, the parent
       will be set to that Organization.
       
      .google.cloud.resourcemanager.v3.Project project = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProjectOrBuilder in interface CreateProjectRequestOrBuilder