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.GeneratedMessage.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.GeneratedMessage.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 TypeMethodDescriptionbuild()clear()Optional.An object in an Autoclass bucket eventually cools down to the terminal storage class if there is no access to the object.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.An object in an Autoclass bucket eventually cools down to the terminal storage class if there is no access to the object.com.google.protobuf.ByteStringAn object in an Autoclass bucket eventually cools 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 eventually cools down to the terminal storage class if there is no access to the object.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.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.setEnabled(boolean value) Optional.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.setTerminalStorageClassBytes(com.google.protobuf.ByteString value) An object in an Autoclass bucket eventually cools 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.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
-
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.GeneratedMessage.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 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];- 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 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];- 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 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]; -
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 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]; -
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 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]; -
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]; -
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 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]; -
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 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];- Specified by:
getToggleTimeOrBuilderin interfaceBucket.AutoclassOrBuilder
-
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;- Specified by:
hasTerminalStorageClassin interfaceBucket.AutoclassOrBuilder- Returns:
- Whether the terminalStorageClass field is set.
-
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;- Specified by:
getTerminalStorageClassin interfaceBucket.AutoclassOrBuilder- Returns:
- The terminalStorageClass.
-
getTerminalStorageClassBytes
public com.google.protobuf.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;- Specified by:
getTerminalStorageClassBytesin interfaceBucket.AutoclassOrBuilder- Returns:
- The bytes for terminalStorageClass.
-
setTerminalStorageClass
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;- Parameters:
value- The terminalStorageClass to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setTerminalStorageClassBytes
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;- 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
-