Class ManagedFolder.Builder (2.40.1)

public static final class ManagedFolder.Builder extends GeneratedMessageV3.Builder<ManagedFolder.Builder> implements ManagedFolderOrBuilder

A managed folder.

Protobuf type google.storage.control.v2.ManagedFolder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ManagedFolder build()
Returns
Type Description
ManagedFolder

buildPartial()

public ManagedFolder buildPartial()
Returns
Type Description
ManagedFolder

clear()

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

clearCreateTime()

public ManagedFolder.Builder clearCreateTime()

Output only. The creation time of the managed folder.

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

Returns
Type Description
ManagedFolder.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMetageneration()

public ManagedFolder.Builder clearMetageneration()

Output only. The metadata version of this managed folder. It increases whenever the metadata is updated. Used for preconditions and for detecting changes in metadata. Managed folders don't have a generation number.

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

Returns
Type Description
ManagedFolder.Builder

This builder for chaining.

clearName()

public ManagedFolder.Builder clearName()

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

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

Returns
Type Description
ManagedFolder.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public ManagedFolder.Builder clearUpdateTime()

Output only. The modification time of the managed folder.

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

Returns
Type Description
ManagedFolder.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation time of the managed 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 managed 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 managed folder.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ManagedFolder getDefaultInstanceForType()
Returns
Type Description
ManagedFolder

getDescriptorForType()

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

getMetageneration()

public long getMetageneration()

Output only. The metadata version of this managed folder. It increases whenever the metadata is updated. Used for preconditions and for detecting changes in metadata. Managed folders don't have a generation number.

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

Returns
Type Description
long

The metageneration.

getName()

public String getName()

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

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

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

Returns
Type Description
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The modification time of the managed 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 managed 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 managed 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 managed folder.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The modification time of the managed 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 ManagedFolder.Builder mergeCreateTime(Timestamp value)

Output only. The creation time of the managed folder.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ManagedFolder.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ManagedFolder other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public ManagedFolder.Builder mergeUpdateTime(Timestamp value)

Output only. The modification time of the managed folder.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ManagedFolder.Builder

setCreateTime(Timestamp value)

public ManagedFolder.Builder setCreateTime(Timestamp value)

Output only. The creation time of the managed folder.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ManagedFolder.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ManagedFolder.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The creation time of the managed folder.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ManagedFolder.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetageneration(long value)

public ManagedFolder.Builder setMetageneration(long value)

Output only. The metadata version of this managed folder. It increases whenever the metadata is updated. Used for preconditions and for detecting changes in metadata. Managed folders don't have a generation number.

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

Parameter
Name Description
value long

The metageneration to set.

Returns
Type Description
ManagedFolder.Builder

This builder for chaining.

setName(String value)

public ManagedFolder.Builder setName(String value)

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

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ManagedFolder.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ManagedFolder.Builder setNameBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ManagedFolder.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public ManagedFolder.Builder setUpdateTime(Timestamp value)

Output only. The modification time of the managed folder.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ManagedFolder.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public ManagedFolder.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The modification time of the managed folder.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ManagedFolder.Builder