Class Bucket.Autoclass.Builder (2.29.0)

public static final class Bucket.Autoclass.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Bucket.Autoclass build()
Returns
TypeDescription
Bucket.Autoclass

buildPartial()

public Bucket.Autoclass buildPartial()
Returns
TypeDescription
Bucket.Autoclass

clear()

public Bucket.Autoclass.Builder clear()
Returns
TypeDescription
Bucket.Autoclass.Builder
Overrides

clearEnabled()

public Bucket.Autoclass.Builder clearEnabled()

Enables Autoclass.

bool enabled = 1;

Returns
TypeDescription
Bucket.Autoclass.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTerminalStorageClass()

public Bucket.Autoclass.Builder clearTerminalStorageClass()

An object in an Autoclass bucket will eventually cool 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
TypeDescription
Bucket.Autoclass.Builder

This builder for chaining.

clearTerminalStorageClassUpdateTime()

public Bucket.Autoclass.Builder clearTerminalStorageClassUpdateTime()

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
TypeDescription
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 toggle_time is set to the bucket creation time.

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

Returns
TypeDescription
Bucket.Autoclass.Builder

clone()

public Bucket.Autoclass.Builder clone()
Returns
TypeDescription
Bucket.Autoclass.Builder
Overrides

getDefaultInstanceForType()

public Bucket.Autoclass getDefaultInstanceForType()
Returns
TypeDescription
Bucket.Autoclass

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Enables Autoclass.

bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

getTerminalStorageClass()

public String getTerminalStorageClass()

An object in an Autoclass bucket will eventually cool 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
TypeDescription
String

The terminalStorageClass.

getTerminalStorageClassBytes()

public ByteString getTerminalStorageClassBytes()

An object in an Autoclass bucket will eventually cool 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
TypeDescription
ByteString

The bytes for terminalStorageClass.

getTerminalStorageClassUpdateTime()

public Timestamp getTerminalStorageClassUpdateTime()

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
TypeDescription
Timestamp

The terminalStorageClassUpdateTime.

getTerminalStorageClassUpdateTimeBuilder()

public Timestamp.Builder getTerminalStorageClassUpdateTimeBuilder()

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
TypeDescription
Builder

getTerminalStorageClassUpdateTimeOrBuilder()

public TimestampOrBuilder getTerminalStorageClassUpdateTimeOrBuilder()

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
TypeDescription
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 toggle_time is set to the bucket creation time.

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

Returns
TypeDescription
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 toggle_time is set to the bucket creation time.

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

Returns
TypeDescription
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 toggle_time is set to the bucket creation time.

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

Returns
TypeDescription
TimestampOrBuilder

hasTerminalStorageClass()

public boolean hasTerminalStorageClass()

An object in an Autoclass bucket will eventually cool 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
TypeDescription
boolean

Whether the terminalStorageClass field is set.

hasTerminalStorageClassUpdateTime()

public boolean hasTerminalStorageClassUpdateTime()

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
TypeDescription
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 toggle_time is set to the bucket creation time.

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

Returns
TypeDescription
boolean

Whether the toggleTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Bucket.Autoclass other)

public Bucket.Autoclass.Builder mergeFrom(Bucket.Autoclass other)
Parameter
NameDescription
otherBucket.Autoclass
Returns
TypeDescription
Bucket.Autoclass.Builder

mergeTerminalStorageClassUpdateTime(Timestamp value)

public Bucket.Autoclass.Builder mergeTerminalStorageClassUpdateTime(Timestamp value)

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
NameDescription
valueTimestamp
Returns
TypeDescription
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 toggle_time is set to the bucket creation time.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Bucket.Autoclass.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnabled(boolean value)

public Bucket.Autoclass.Builder setEnabled(boolean value)

Enables Autoclass.

bool enabled = 1;

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
Bucket.Autoclass.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTerminalStorageClass(String value)

public Bucket.Autoclass.Builder setTerminalStorageClass(String value)

An object in an Autoclass bucket will eventually cool 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
NameDescription
valueString

The terminalStorageClass to set.

Returns
TypeDescription
Bucket.Autoclass.Builder

This builder for chaining.

setTerminalStorageClassBytes(ByteString value)

public Bucket.Autoclass.Builder setTerminalStorageClassBytes(ByteString value)

An object in an Autoclass bucket will eventually cool 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
NameDescription
valueByteString

The bytes for terminalStorageClass to set.

Returns
TypeDescription
Bucket.Autoclass.Builder

This builder for chaining.

setTerminalStorageClassUpdateTime(Timestamp value)

public Bucket.Autoclass.Builder setTerminalStorageClassUpdateTime(Timestamp value)

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
NameDescription
valueTimestamp
Returns
TypeDescription
Bucket.Autoclass.Builder

setTerminalStorageClassUpdateTime(Timestamp.Builder builderForValue)

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

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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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 toggle_time is set to the bucket creation time.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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 toggle_time is set to the bucket creation time.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Bucket.Autoclass.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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