Class UpdateProjectRequest.Builder (1.25.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateProjectRequest build()
Returns
TypeDescription
UpdateProjectRequest

buildPartial()

public UpdateProjectRequest buildPartial()
Returns
TypeDescription
UpdateProjectRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public UpdateProjectRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateProjectRequest

getDescriptorForType()

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

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateProjectRequest other)

public UpdateProjectRequest.Builder mergeFrom(UpdateProjectRequest other)
Parameter
NameDescription
otherUpdateProjectRequest
Returns
TypeDescription
UpdateProjectRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateProjectRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateProjectRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateProjectRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateProjectRequest.Builder