Class UpdateProjectRequest.Builder (1.46.0)

public static final class UpdateProjectRequest.Builder extends GeneratedMessageV3.Builder<UpdateProjectRequest.Builder> implements UpdateProjectRequestOrBuilder

The request sent to the UpdateProject method.

Only the display_name and labels fields can be change. Use the MoveProject method to change the parent field.

Protobuf type google.cloud.resourcemanager.v3.UpdateProjectRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateProjectRequest build()
Returns
Type Description
UpdateProjectRequest

buildPartial()

public UpdateProjectRequest buildPartial()
Returns
Type Description
UpdateProjectRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public UpdateProjectRequest.Builder clearProject()

Required. The new definition of the project.

.google.cloud.resourcemanager.v3.Project project = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateProjectRequest.Builder

clearUpdateMask()

public UpdateProjectRequest.Builder clearUpdateMask()

Optional. An update mask to selectively update fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpdateProjectRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateProjectRequest getDefaultInstanceForType()
Returns
Type Description
UpdateProjectRequest

getDescriptorForType()

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

getProject()

public Project getProject()

Required. The new definition of the project.

.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 new definition of the project.

.google.cloud.resourcemanager.v3.Project project = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Project.Builder

getProjectOrBuilder()

public ProjectOrBuilder getProjectOrBuilder()

Required. The new definition of the project.

.google.cloud.resourcemanager.v3.Project project = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProjectOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Optional. An update mask to selectively update fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Optional. An update mask to selectively update fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. An update mask to selectively update fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldMaskOrBuilder

hasProject()

public boolean hasProject()

Required. The new definition of the project.

.google.cloud.resourcemanager.v3.Project project = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the project field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Optional. An update mask to selectively update fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateProjectRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeProject(Project value)

public UpdateProjectRequest.Builder mergeProject(Project value)

Required. The new definition of the project.

.google.cloud.resourcemanager.v3.Project project = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Project
Returns
Type Description
UpdateProjectRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateProjectRequest.Builder mergeUpdateMask(FieldMask value)

Optional. An update mask to selectively update fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateProjectRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setProject(Project value)

public UpdateProjectRequest.Builder setProject(Project value)

Required. The new definition of the project.

.google.cloud.resourcemanager.v3.Project project = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Project
Returns
Type Description
UpdateProjectRequest.Builder

setProject(Project.Builder builderForValue)

public UpdateProjectRequest.Builder setProject(Project.Builder builderForValue)

Required. The new definition of the project.

.google.cloud.resourcemanager.v3.Project project = 1 [(.google.api.field_behavior) = REQUIRED];

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateProjectRequest.Builder setUpdateMask(FieldMask value)

Optional. An update mask to selectively update fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateProjectRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateProjectRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Optional. An update mask to selectively update fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateProjectRequest.Builder