Package com.google.storage.v2
Class Bucket.Autoclass.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Autoclass.Builder>
com.google.storage.v2.Bucket.Autoclass.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Bucket.AutoclassOrBuilder,Cloneable
- Enclosing class:
- Bucket.Autoclass
public static final class Bucket.Autoclass.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Autoclass.Builder>
implements Bucket.AutoclassOrBuilder
Configuration for a bucket's Autoclass feature.Protobuf type
google.storage.v2.Bucket.Autoclass-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Optional.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) An object in an Autoclass bucket will eventually cool down to the terminal storage class if there is no access to the object.Output only.Output only.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.An object in an Autoclass bucket will eventually cool down to the terminal storage class if there is no access to the object.com.google.protobuf.ByteStringAn object in an Autoclass bucket will eventually cool down to the terminal storage class if there is no access to the object.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanAn object in an Autoclass bucket will eventually cool down to the terminal storage class if there is no access to the object.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Bucket.Autoclass other) mergeTerminalStorageClassUpdateTime(com.google.protobuf.Timestamp value) Output only.mergeToggleTime(com.google.protobuf.Timestamp value) Output only.final Bucket.Autoclass.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setEnabled(boolean value) Optional.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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.setTerminalStorageClassBytes(com.google.protobuf.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.setTerminalStorageClassUpdateTime(com.google.protobuf.Timestamp value) Output only.setTerminalStorageClassUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setToggleTime(com.google.protobuf.Timestamp value) Output only.setToggleTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.final Bucket.Autoclass.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Autoclass.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Autoclass.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Autoclass.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Autoclass.Builder>
-
setField
public Bucket.Autoclass.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Autoclass.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Autoclass.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Autoclass.Builder>
-
setRepeatedField
public Bucket.Autoclass.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Autoclass.Builder>
-
addRepeatedField
public Bucket.Autoclass.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Autoclass.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Bucket.Autoclass.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Autoclass.Builder>
-
mergeFrom
public Bucket.Autoclass.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Bucket.Autoclass.Builder>- Throws:
IOException
-
getEnabled
public boolean getEnabled()Optional. Enables Autoclass.
bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnabledin interfaceBucket.AutoclassOrBuilder- Returns:
- The enabled.
-
setEnabled
Optional. Enables Autoclass.
bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enabled to set.- Returns:
- This builder for chaining.
-
clearEnabled
Optional. Enables Autoclass.
bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
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];- Specified by:
hasToggleTimein interfaceBucket.AutoclassOrBuilder- Returns:
- Whether the toggleTime field is set.
-
getToggleTime
public com.google.protobuf.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];- Specified by:
getToggleTimein interfaceBucket.AutoclassOrBuilder- Returns:
- The toggleTime.
-
setToggleTime
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]; -
setToggleTime
public Bucket.Autoclass.Builder setToggleTime(com.google.protobuf.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]; -
mergeToggleTime
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]; -
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]; -
getToggleTimeBuilder
public com.google.protobuf.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]; -
getToggleTimeOrBuilder
public com.google.protobuf.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];- Specified by:
getToggleTimeOrBuilderin interfaceBucket.AutoclassOrBuilder
-
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;- Specified by:
hasTerminalStorageClassin interfaceBucket.AutoclassOrBuilder- Returns:
- Whether the terminalStorageClass field is set.
-
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;- Specified by:
getTerminalStorageClassin interfaceBucket.AutoclassOrBuilder- Returns:
- The terminalStorageClass.
-
getTerminalStorageClassBytes
public com.google.protobuf.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;- Specified by:
getTerminalStorageClassBytesin interfaceBucket.AutoclassOrBuilder- Returns:
- The bytes for terminalStorageClass.
-
setTerminalStorageClass
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;- Parameters:
value- The terminalStorageClass to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setTerminalStorageClassBytes
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;- Parameters:
value- The bytes for terminalStorageClass to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasTerminalStorageClassUpdateTimein interfaceBucket.AutoclassOrBuilder- Returns:
- Whether the terminalStorageClassUpdateTime field is set.
-
getTerminalStorageClassUpdateTime
public com.google.protobuf.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];- Specified by:
getTerminalStorageClassUpdateTimein interfaceBucket.AutoclassOrBuilder- Returns:
- The terminalStorageClassUpdateTime.
-
setTerminalStorageClassUpdateTime
public Bucket.Autoclass.Builder setTerminalStorageClassUpdateTime(com.google.protobuf.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]; -
setTerminalStorageClassUpdateTime
public Bucket.Autoclass.Builder setTerminalStorageClassUpdateTime(com.google.protobuf.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]; -
mergeTerminalStorageClassUpdateTime
public Bucket.Autoclass.Builder mergeTerminalStorageClassUpdateTime(com.google.protobuf.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]; -
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]; -
getTerminalStorageClassUpdateTimeBuilder
public com.google.protobuf.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]; -
getTerminalStorageClassUpdateTimeOrBuilder
public com.google.protobuf.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];- Specified by:
getTerminalStorageClassUpdateTimeOrBuilderin interfaceBucket.AutoclassOrBuilder
-
setUnknownFields
public final Bucket.Autoclass.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Autoclass.Builder>
-
mergeUnknownFields
public final Bucket.Autoclass.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Autoclass.Builder>
-