Class CreateProjectRequest.Builder (1.36.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateProjectRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateProjectRequest.Builder
Overrides

build()

public CreateProjectRequest build()
Returns
TypeDescription
CreateProjectRequest

buildPartial()

public CreateProjectRequest buildPartial()
Returns
TypeDescription
CreateProjectRequest

clear()

public CreateProjectRequest.Builder clear()
Returns
TypeDescription
CreateProjectRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateProjectRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateProjectRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateProjectRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateProjectRequest.Builder

clone()

public CreateProjectRequest.Builder clone()
Returns
TypeDescription
CreateProjectRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateProjectRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateProjectRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the project field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateProjectRequest other)

public CreateProjectRequest.Builder mergeFrom(CreateProjectRequest other)
Parameter
NameDescription
otherCreateProjectRequest
Returns
TypeDescription
CreateProjectRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateProjectRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateProjectRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateProjectRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueProject
Returns
TypeDescription
CreateProjectRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateProjectRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateProjectRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateProjectRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueProject
Returns
TypeDescription
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
NameDescription
builderForValueProject.Builder
Returns
TypeDescription
CreateProjectRequest.Builder

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

public CreateProjectRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateProjectRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateProjectRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateProjectRequest.Builder
Overrides