Class RenameFolderMetadata.Builder (2.33.0)

public static final class RenameFolderMetadata.Builder extends GeneratedMessageV3.Builder<RenameFolderMetadata.Builder> implements RenameFolderMetadataOrBuilder

Message returned in the metadata field of the Operation resource for RenameFolder operations.

Protobuf type google.storage.control.v2.RenameFolderMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RenameFolderMetadata build()
Returns
Type Description
RenameFolderMetadata

buildPartial()

public RenameFolderMetadata buildPartial()
Returns
Type Description
RenameFolderMetadata

clear()

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

clearCommonMetadata()

public RenameFolderMetadata.Builder clearCommonMetadata()

Generic metadata for the long running operation.

.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;

Returns
Type Description
RenameFolderMetadata.Builder

clearDestinationFolderId()

public RenameFolderMetadata.Builder clearDestinationFolderId()

The path of the destination folder.

string destination_folder_id = 3;

Returns
Type Description
RenameFolderMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSourceFolderId()

public RenameFolderMetadata.Builder clearSourceFolderId()

The path of the source folder.

string source_folder_id = 2;

Returns
Type Description
RenameFolderMetadata.Builder

This builder for chaining.

clone()

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

getCommonMetadata()

public CommonLongRunningOperationMetadata getCommonMetadata()

Generic metadata for the long running operation.

.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;

Returns
Type Description
CommonLongRunningOperationMetadata

The commonMetadata.

getCommonMetadataBuilder()

public CommonLongRunningOperationMetadata.Builder getCommonMetadataBuilder()

Generic metadata for the long running operation.

.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;

Returns
Type Description
CommonLongRunningOperationMetadata.Builder

getCommonMetadataOrBuilder()

public CommonLongRunningOperationMetadataOrBuilder getCommonMetadataOrBuilder()

Generic metadata for the long running operation.

.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;

Returns
Type Description
CommonLongRunningOperationMetadataOrBuilder

getDefaultInstanceForType()

public RenameFolderMetadata getDefaultInstanceForType()
Returns
Type Description
RenameFolderMetadata

getDescriptorForType()

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

getDestinationFolderId()

public String getDestinationFolderId()

The path of the destination folder.

string destination_folder_id = 3;

Returns
Type Description
String

The destinationFolderId.

getDestinationFolderIdBytes()

public ByteString getDestinationFolderIdBytes()

The path of the destination folder.

string destination_folder_id = 3;

Returns
Type Description
ByteString

The bytes for destinationFolderId.

getSourceFolderId()

public String getSourceFolderId()

The path of the source folder.

string source_folder_id = 2;

Returns
Type Description
String

The sourceFolderId.

getSourceFolderIdBytes()

public ByteString getSourceFolderIdBytes()

The path of the source folder.

string source_folder_id = 2;

Returns
Type Description
ByteString

The bytes for sourceFolderId.

hasCommonMetadata()

public boolean hasCommonMetadata()

Generic metadata for the long running operation.

.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;

Returns
Type Description
boolean

Whether the commonMetadata field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCommonMetadata(CommonLongRunningOperationMetadata value)

public RenameFolderMetadata.Builder mergeCommonMetadata(CommonLongRunningOperationMetadata value)

Generic metadata for the long running operation.

.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;

Parameter
Name Description
value CommonLongRunningOperationMetadata
Returns
Type Description
RenameFolderMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(RenameFolderMetadata other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCommonMetadata(CommonLongRunningOperationMetadata value)

public RenameFolderMetadata.Builder setCommonMetadata(CommonLongRunningOperationMetadata value)

Generic metadata for the long running operation.

.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;

Parameter
Name Description
value CommonLongRunningOperationMetadata
Returns
Type Description
RenameFolderMetadata.Builder

setCommonMetadata(CommonLongRunningOperationMetadata.Builder builderForValue)

public RenameFolderMetadata.Builder setCommonMetadata(CommonLongRunningOperationMetadata.Builder builderForValue)

Generic metadata for the long running operation.

.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;

Parameter
Name Description
builderForValue CommonLongRunningOperationMetadata.Builder
Returns
Type Description
RenameFolderMetadata.Builder

setDestinationFolderId(String value)

public RenameFolderMetadata.Builder setDestinationFolderId(String value)

The path of the destination folder.

string destination_folder_id = 3;

Parameter
Name Description
value String

The destinationFolderId to set.

Returns
Type Description
RenameFolderMetadata.Builder

This builder for chaining.

setDestinationFolderIdBytes(ByteString value)

public RenameFolderMetadata.Builder setDestinationFolderIdBytes(ByteString value)

The path of the destination folder.

string destination_folder_id = 3;

Parameter
Name Description
value ByteString

The bytes for destinationFolderId to set.

Returns
Type Description
RenameFolderMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSourceFolderId(String value)

public RenameFolderMetadata.Builder setSourceFolderId(String value)

The path of the source folder.

string source_folder_id = 2;

Parameter
Name Description
value String

The sourceFolderId to set.

Returns
Type Description
RenameFolderMetadata.Builder

This builder for chaining.

setSourceFolderIdBytes(ByteString value)

public RenameFolderMetadata.Builder setSourceFolderIdBytes(ByteString value)

The path of the source folder.

string source_folder_id = 2;

Parameter
Name Description
value ByteString

The bytes for sourceFolderId to set.

Returns
Type Description
RenameFolderMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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