Class CreateProjectRequest.Builder (1.48.0)

public static final class CreateProjectRequest.Builder extends GeneratedMessageV3.Builder<CreateProjectRequest.Builder> implements CreateProjectRequestOrBuilder

The request sent to the CreateProject method.

Protobuf type google.cloud.resourcemanager.v3.CreateProjectRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateProjectRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateProjectRequest.Builder
Overrides

build()

public CreateProjectRequest build()
Returns
Type Description
CreateProjectRequest

buildPartial()

public CreateProjectRequest buildPartial()
Returns
Type Description
CreateProjectRequest

clear()

public CreateProjectRequest.Builder clear()
Returns
Type Description
CreateProjectRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateProjectRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateProjectRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateProjectRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateProjectRequest.Builder
Overrides

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

Returns
Type Description
CreateProjectRequest.Builder

clone()

public CreateProjectRequest.Builder clone()
Returns
Type Description
CreateProjectRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateProjectRequest getDefaultInstanceForType()
Returns
Type Description
CreateProjectRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

Returns
Type Description
Project

The project.

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

Returns
Type Description
Project.Builder

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

Returns
Type Description
ProjectOrBuilder

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

Returns
Type Description
boolean

Whether the project field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateProjectRequest other)

public CreateProjectRequest.Builder mergeFrom(CreateProjectRequest other)
Parameter
Name Description
other CreateProjectRequest
Returns
Type Description
CreateProjectRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateProjectRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateProjectRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateProjectRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateProjectRequest.Builder
Overrides

mergeProject(Project value)

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

Parameter
Name Description
value Project
Returns
Type Description
CreateProjectRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateProjectRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateProjectRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateProjectRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateProjectRequest.Builder
Overrides

setProject(Project value)

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

Parameter
Name Description
value Project
Returns
Type Description
CreateProjectRequest.Builder

setProject(Project.Builder builderForValue)

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

Parameter
Name Description
builderForValue Project.Builder
Returns
Type Description
CreateProjectRequest.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateProjectRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateProjectRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateProjectRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateProjectRequest.Builder
Overrides