Class Folder.Builder (2.39.0)

public static final class Folder.Builder extends GeneratedMessageV3.Builder<Folder.Builder> implements FolderOrBuilder

A folder resource. This resource can only exist in a hierarchical namespace enabled bucket. Hierarchical namespace buckets are in allowlist preview.

Protobuf type google.storage.control.v2.Folder

Implements

FolderOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Folder build()
Returns
Type Description
Folder

buildPartial()

public Folder buildPartial()
Returns
Type Description
Folder

clear()

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

clearCreateTime()

public Folder.Builder clearCreateTime()

Output only. The creation time of the folder.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Folder.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMetageneration()

public Folder.Builder clearMetageneration()

Output only. The version of the metadata for this folder. Used for preconditions and for detecting changes in metadata.

int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Folder.Builder

This builder for chaining.

clearName()

public Folder.Builder clearName()

Identifier. The name of this folder. Format: projects/{project}/buckets/{bucket}/folders/{folder}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
Folder.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPendingRenameInfo()

public Folder.Builder clearPendingRenameInfo()

Output only. Only present if the folder is part of an ongoing RenameFolder operation. Contains information which can be used to query the operation status. The presence of this field also indicates all write operations are blocked for this folder, including folder, managed folder, and object operations.

.google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Folder.Builder

clearUpdateTime()

public Folder.Builder clearUpdateTime()

Output only. The modification time of the folder.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Folder.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation time of the folder.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The creation time of the folder.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation time of the folder.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Folder getDefaultInstanceForType()
Returns
Type Description
Folder

getDescriptorForType()

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

getMetageneration()

public long getMetageneration()

Output only. The version of the metadata for this folder. Used for preconditions and for detecting changes in metadata.

int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The metageneration.

getName()

public String getName()

Identifier. The name of this folder. Format: projects/{project}/buckets/{bucket}/folders/{folder}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of this folder. Format: projects/{project}/buckets/{bucket}/folders/{folder}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getPendingRenameInfo()

public PendingRenameInfo getPendingRenameInfo()

Output only. Only present if the folder is part of an ongoing RenameFolder operation. Contains information which can be used to query the operation status. The presence of this field also indicates all write operations are blocked for this folder, including folder, managed folder, and object operations.

.google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PendingRenameInfo

The pendingRenameInfo.

getPendingRenameInfoBuilder()

public PendingRenameInfo.Builder getPendingRenameInfoBuilder()

Output only. Only present if the folder is part of an ongoing RenameFolder operation. Contains information which can be used to query the operation status. The presence of this field also indicates all write operations are blocked for this folder, including folder, managed folder, and object operations.

.google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PendingRenameInfo.Builder

getPendingRenameInfoOrBuilder()

public PendingRenameInfoOrBuilder getPendingRenameInfoOrBuilder()

Output only. Only present if the folder is part of an ongoing RenameFolder operation. Contains information which can be used to query the operation status. The presence of this field also indicates all write operations are blocked for this folder, including folder, managed folder, and object operations.

.google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PendingRenameInfoOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The modification time of the folder.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The modification time of the folder.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The modification time of the folder.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation time of the folder.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasPendingRenameInfo()

public boolean hasPendingRenameInfo()

Output only. Only present if the folder is part of an ongoing RenameFolder operation. Contains information which can be used to query the operation status. The presence of this field also indicates all write operations are blocked for this folder, including folder, managed folder, and object operations.

.google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the pendingRenameInfo field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The modification time of the folder.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Folder.Builder mergeCreateTime(Timestamp value)

Output only. The creation time of the folder.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Folder.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Folder other)

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

mergePendingRenameInfo(PendingRenameInfo value)

public Folder.Builder mergePendingRenameInfo(PendingRenameInfo value)

Output only. Only present if the folder is part of an ongoing RenameFolder operation. Contains information which can be used to query the operation status. The presence of this field also indicates all write operations are blocked for this folder, including folder, managed folder, and object operations.

.google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value PendingRenameInfo
Returns
Type Description
Folder.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Folder.Builder mergeUpdateTime(Timestamp value)

Output only. The modification time of the folder.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Folder.Builder

setCreateTime(Timestamp value)

public Folder.Builder setCreateTime(Timestamp value)

Output only. The creation time of the folder.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Folder.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Folder.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The creation time of the folder.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Folder.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetageneration(long value)

public Folder.Builder setMetageneration(long value)

Output only. The version of the metadata for this folder. Used for preconditions and for detecting changes in metadata.

int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The metageneration to set.

Returns
Type Description
Folder.Builder

This builder for chaining.

setName(String value)

public Folder.Builder setName(String value)

Identifier. The name of this folder. Format: projects/{project}/buckets/{bucket}/folders/{folder}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Folder.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Folder.Builder setNameBytes(ByteString value)

Identifier. The name of this folder. Format: projects/{project}/buckets/{bucket}/folders/{folder}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Folder.Builder

This builder for chaining.

setPendingRenameInfo(PendingRenameInfo value)

public Folder.Builder setPendingRenameInfo(PendingRenameInfo value)

Output only. Only present if the folder is part of an ongoing RenameFolder operation. Contains information which can be used to query the operation status. The presence of this field also indicates all write operations are blocked for this folder, including folder, managed folder, and object operations.

.google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value PendingRenameInfo
Returns
Type Description
Folder.Builder

setPendingRenameInfo(PendingRenameInfo.Builder builderForValue)

public Folder.Builder setPendingRenameInfo(PendingRenameInfo.Builder builderForValue)

Output only. Only present if the folder is part of an ongoing RenameFolder operation. Contains information which can be used to query the operation status. The presence of this field also indicates all write operations are blocked for this folder, including folder, managed folder, and object operations.

.google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue PendingRenameInfo.Builder
Returns
Type Description
Folder.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Folder.Builder setUpdateTime(Timestamp value)

Output only. The modification time of the folder.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Folder.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Folder.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The modification time of the folder.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Folder.Builder