Class UpdateFolderRequest.Builder (1.31.0)

public static final class UpdateFolderRequest.Builder extends GeneratedMessageV3.Builder<UpdateFolderRequest.Builder> implements UpdateFolderRequestOrBuilder

The request sent to the UpdateFolder method.

Only the display_name field can be changed. All other fields will be ignored. Use the MoveFolder method to change the parent field.

Protobuf type google.cloud.resourcemanager.v3.UpdateFolderRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateFolderRequest build()
Returns
TypeDescription
UpdateFolderRequest

buildPartial()

public UpdateFolderRequest buildPartial()
Returns
TypeDescription
UpdateFolderRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFolder()

public UpdateFolderRequest.Builder clearFolder()

Required. The new definition of the Folder. It must include the name field, which cannot be changed.

.google.cloud.resourcemanager.v3.Folder folder = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateFolderRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateFolderRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UpdateFolderRequest.Builder
Overrides

clearUpdateMask()

public UpdateFolderRequest.Builder clearUpdateMask()

Required. Fields to be updated. Only the display_name can be updated.

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

Returns
TypeDescription
UpdateFolderRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateFolderRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateFolderRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFolder()

public Folder getFolder()

Required. The new definition of the Folder. It must include the name field, which cannot be changed.

.google.cloud.resourcemanager.v3.Folder folder = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Folder

The folder.

getFolderBuilder()

public Folder.Builder getFolderBuilder()

Required. The new definition of the Folder. It must include the name field, which cannot be changed.

.google.cloud.resourcemanager.v3.Folder folder = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Folder.Builder

getFolderOrBuilder()

public FolderOrBuilder getFolderOrBuilder()

Required. The new definition of the Folder. It must include the name field, which cannot be changed.

.google.cloud.resourcemanager.v3.Folder folder = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FolderOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. Fields to be updated. Only the display_name can be updated.

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

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. Fields to be updated. Only the display_name can be updated.

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

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Fields to be updated. Only the display_name can be updated.

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

Returns
TypeDescription
FieldMaskOrBuilder

hasFolder()

public boolean hasFolder()

Required. The new definition of the Folder. It must include the name field, which cannot be changed.

.google.cloud.resourcemanager.v3.Folder folder = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the folder field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. Fields to be updated. Only the display_name can be updated.

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

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

mergeFolder(Folder value)

public UpdateFolderRequest.Builder mergeFolder(Folder value)

Required. The new definition of the Folder. It must include the name field, which cannot be changed.

.google.cloud.resourcemanager.v3.Folder folder = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueFolder
Returns
TypeDescription
UpdateFolderRequest.Builder

mergeFrom(UpdateFolderRequest other)

public UpdateFolderRequest.Builder mergeFrom(UpdateFolderRequest other)
Parameter
NameDescription
otherUpdateFolderRequest
Returns
TypeDescription
UpdateFolderRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public UpdateFolderRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UpdateFolderRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateFolderRequest.Builder mergeUpdateMask(FieldMask value)

Required. Fields to be updated. Only the display_name can be updated.

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

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateFolderRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFolder(Folder value)

public UpdateFolderRequest.Builder setFolder(Folder value)

Required. The new definition of the Folder. It must include the name field, which cannot be changed.

.google.cloud.resourcemanager.v3.Folder folder = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueFolder
Returns
TypeDescription
UpdateFolderRequest.Builder

setFolder(Folder.Builder builderForValue)

public UpdateFolderRequest.Builder setFolder(Folder.Builder builderForValue)

Required. The new definition of the Folder. It must include the name field, which cannot be changed.

.google.cloud.resourcemanager.v3.Folder folder = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueFolder.Builder
Returns
TypeDescription
UpdateFolderRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateFolderRequest.Builder setUpdateMask(FieldMask value)

Required. Fields to be updated. Only the display_name can be updated.

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

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateFolderRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateFolderRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. Fields to be updated. Only the display_name can be updated.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateFolderRequest.Builder