Class 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.GeneratedMessageV3.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 Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public CreateProjectRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<CreateProjectRequest.Builder>
      • setField

        public CreateProjectRequest.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateProjectRequest.Builder>
      • clearField

        public CreateProjectRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateProjectRequest.Builder>
      • clearOneof

        public CreateProjectRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CreateProjectRequest.Builder>
      • setRepeatedField

        public CreateProjectRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateProjectRequest.Builder>
      • addRepeatedField

        public CreateProjectRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateProjectRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • setUnknownFields

        public final CreateProjectRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateProjectRequest.Builder>
      • mergeUnknownFields

        public final CreateProjectRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateProjectRequest.Builder>