Class Bucket.Autoclass.Builder (2.62.1)

public static final class Bucket.Autoclass.Builder extends GeneratedMessage.Builder<Bucket.Autoclass.Builder> implements Bucket.AutoclassOrBuilder

Configuration for a bucket's Autoclass feature.

Protobuf type google.storage.v2.Bucket.Autoclass

Static Methods

getDescriptor()

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

Methods

build()

public Bucket.Autoclass build()
Returns
Type Description
Bucket.Autoclass

buildPartial()

public Bucket.Autoclass buildPartial()
Returns
Type Description
Bucket.Autoclass

clear()

public Bucket.Autoclass.Builder clear()
Returns
Type Description
Bucket.Autoclass.Builder
Overrides

clearEnabled()

public Bucket.Autoclass.Builder clearEnabled()

Optional. Enables Autoclass.

bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Bucket.Autoclass.Builder

This builder for chaining.

clearTerminalStorageClass()

public Bucket.Autoclass.Builder clearTerminalStorageClass()

An object in an Autoclass bucket eventually cools down to the terminal storage class if there is no access to the object. The only valid values are NEARLINE and ARCHIVE.

optional string terminal_storage_class = 3;

Returns
Type Description
Bucket.Autoclass.Builder

This builder for chaining.

clearTerminalStorageClassUpdateTime()

public Bucket.Autoclass.Builder clearTerminalStorageClassUpdateTime()

Output only. Latest instant at which the autoclass terminal storage class was updated.

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

Returns
Type Description
Bucket.Autoclass.Builder

clearToggleTime()

public Bucket.Autoclass.Builder clearToggleTime()

Output only. Latest instant at which the enabled field was set to true after being disabled/unconfigured or set to false after being enabled. If Autoclass is enabled when the bucket is created, the value of the toggle_time field is set to the bucket create_time.

.google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Bucket.Autoclass.Builder

getDefaultInstanceForType()

public Bucket.Autoclass getDefaultInstanceForType()
Returns
Type Description
Bucket.Autoclass

getDescriptorForType()

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

getEnabled()

public boolean getEnabled()

Optional. Enables Autoclass.

bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enabled.

getTerminalStorageClass()

public String getTerminalStorageClass()

An object in an Autoclass bucket eventually cools down to the terminal storage class if there is no access to the object. The only valid values are NEARLINE and ARCHIVE.

optional string terminal_storage_class = 3;

Returns
Type Description
String

The terminalStorageClass.

getTerminalStorageClassBytes()

public ByteString getTerminalStorageClassBytes()

An object in an Autoclass bucket eventually cools down to the terminal storage class if there is no access to the object. The only valid values are NEARLINE and ARCHIVE.

optional string terminal_storage_class = 3;

Returns
Type Description
ByteString

The bytes for terminalStorageClass.

getTerminalStorageClassUpdateTime()

public Timestamp getTerminalStorageClassUpdateTime()

Output only. Latest instant at which the autoclass terminal storage class was updated.

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

Returns
Type Description
Timestamp

The terminalStorageClassUpdateTime.

getTerminalStorageClassUpdateTimeBuilder()

public Timestamp.Builder getTerminalStorageClassUpdateTimeBuilder()

Output only. Latest instant at which the autoclass terminal storage class was updated.

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

Returns
Type Description
Builder

getTerminalStorageClassUpdateTimeOrBuilder()

public TimestampOrBuilder getTerminalStorageClassUpdateTimeOrBuilder()

Output only. Latest instant at which the autoclass terminal storage class was updated.

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

Returns
Type Description
TimestampOrBuilder

getToggleTime()

public Timestamp getToggleTime()

Output only. Latest instant at which the enabled field was set to true after being disabled/unconfigured or set to false after being enabled. If Autoclass is enabled when the bucket is created, the value of the toggle_time field is set to the bucket create_time.

.google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The toggleTime.

getToggleTimeBuilder()

public Timestamp.Builder getToggleTimeBuilder()

Output only. Latest instant at which the enabled field was set to true after being disabled/unconfigured or set to false after being enabled. If Autoclass is enabled when the bucket is created, the value of the toggle_time field is set to the bucket create_time.

.google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getToggleTimeOrBuilder()

public TimestampOrBuilder getToggleTimeOrBuilder()

Output only. Latest instant at which the enabled field was set to true after being disabled/unconfigured or set to false after being enabled. If Autoclass is enabled when the bucket is created, the value of the toggle_time field is set to the bucket create_time.

.google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasTerminalStorageClass()

public boolean hasTerminalStorageClass()

An object in an Autoclass bucket eventually cools down to the terminal storage class if there is no access to the object. The only valid values are NEARLINE and ARCHIVE.

optional string terminal_storage_class = 3;

Returns
Type Description
boolean

Whether the terminalStorageClass field is set.

hasTerminalStorageClassUpdateTime()

public boolean hasTerminalStorageClassUpdateTime()

Output only. Latest instant at which the autoclass terminal storage class was updated.

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

Returns
Type Description
boolean

Whether the terminalStorageClassUpdateTime field is set.

hasToggleTime()

public boolean hasToggleTime()

Output only. Latest instant at which the enabled field was set to true after being disabled/unconfigured or set to false after being enabled. If Autoclass is enabled when the bucket is created, the value of the toggle_time field is set to the bucket create_time.

.google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the toggleTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Bucket.Autoclass other)

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

mergeTerminalStorageClassUpdateTime(Timestamp value)

public Bucket.Autoclass.Builder mergeTerminalStorageClassUpdateTime(Timestamp value)

Output only. Latest instant at which the autoclass terminal storage class was updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Bucket.Autoclass.Builder

mergeToggleTime(Timestamp value)

public Bucket.Autoclass.Builder mergeToggleTime(Timestamp value)

Output only. Latest instant at which the enabled field was set to true after being disabled/unconfigured or set to false after being enabled. If Autoclass is enabled when the bucket is created, the value of the toggle_time field is set to the bucket create_time.

.google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Bucket.Autoclass.Builder

setEnabled(boolean value)

public Bucket.Autoclass.Builder setEnabled(boolean value)

Optional. Enables Autoclass.

bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
Bucket.Autoclass.Builder

This builder for chaining.

setTerminalStorageClass(String value)

public Bucket.Autoclass.Builder setTerminalStorageClass(String value)

An object in an Autoclass bucket eventually cools down to the terminal storage class if there is no access to the object. The only valid values are NEARLINE and ARCHIVE.

optional string terminal_storage_class = 3;

Parameter
Name Description
value String

The terminalStorageClass to set.

Returns
Type Description
Bucket.Autoclass.Builder

This builder for chaining.

setTerminalStorageClassBytes(ByteString value)

public Bucket.Autoclass.Builder setTerminalStorageClassBytes(ByteString value)

An object in an Autoclass bucket eventually cools down to the terminal storage class if there is no access to the object. The only valid values are NEARLINE and ARCHIVE.

optional string terminal_storage_class = 3;

Parameter
Name Description
value ByteString

The bytes for terminalStorageClass to set.

Returns
Type Description
Bucket.Autoclass.Builder

This builder for chaining.

setTerminalStorageClassUpdateTime(Timestamp value)

public Bucket.Autoclass.Builder setTerminalStorageClassUpdateTime(Timestamp value)

Output only. Latest instant at which the autoclass terminal storage class was updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Bucket.Autoclass.Builder

setTerminalStorageClassUpdateTime(Timestamp.Builder builderForValue)

public Bucket.Autoclass.Builder setTerminalStorageClassUpdateTime(Timestamp.Builder builderForValue)

Output only. Latest instant at which the autoclass terminal storage class was updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Bucket.Autoclass.Builder

setToggleTime(Timestamp value)

public Bucket.Autoclass.Builder setToggleTime(Timestamp value)

Output only. Latest instant at which the enabled field was set to true after being disabled/unconfigured or set to false after being enabled. If Autoclass is enabled when the bucket is created, the value of the toggle_time field is set to the bucket create_time.

.google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Bucket.Autoclass.Builder

setToggleTime(Timestamp.Builder builderForValue)

public Bucket.Autoclass.Builder setToggleTime(Timestamp.Builder builderForValue)

Output only. Latest instant at which the enabled field was set to true after being disabled/unconfigured or set to false after being enabled. If Autoclass is enabled when the bucket is created, the value of the toggle_time field is set to the bucket create_time.

.google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Bucket.Autoclass.Builder