Package com.google.storage.v2
Class Object.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Object.Builder>
com.google.storage.v2.Object.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ObjectOrBuilder,Cloneable
- Enclosing class:
- Object
public static final class Object.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Object.Builder>
implements ObjectOrBuilder
An object.Protobuf type
google.storage.v2.Object-
Method Summary
Modifier and TypeMethodDescriptionaddAcl(int index, ObjectAccessControl value) Optional.addAcl(int index, ObjectAccessControl.Builder builderForValue) Optional.addAcl(ObjectAccessControl value) Optional.addAcl(ObjectAccessControl.Builder builderForValue) Optional.Optional.addAclBuilder(int index) Optional.addAllAcl(Iterable<? extends ObjectAccessControl> values) Optional.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearAcl()Optional.Immutable.Optional.Output only.Output only.Optional.Optional.Optional.Optional.Optional.Output only.Optional.Optional.Output only.Optional.Whether an object is under event-based hold.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Output only.Immutable.Output only.Optional.Output only.Immutable.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Output only.Output only.Optional.Optional.Output only.Output only.Optional.Optional.Output only.Output only.clone()booleancontainsMetadata(String key) Optional.getAcl(int index) Optional.getAclBuilder(int index) Optional.Optional.intOptional.Optional.getAclOrBuilder(int index) Optional.List<? extends ObjectAccessControlOrBuilder>Optional.Immutable.com.google.protobuf.ByteStringImmutable.Optional.com.google.protobuf.ByteStringOptional.Output only.Output only.Output only.intOutput only.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.Optional.Optional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Optional.Optional.Optional.com.google.protobuf.TimestampOptional.com.google.protobuf.Timestamp.BuilderOptional.com.google.protobuf.TimestampOrBuilderOptional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEtag()Optional.com.google.protobuf.ByteStringOptional.booleanWhether an object is under event-based hold.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.longImmutable.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Optional.com.google.protobuf.ByteStringOptional.Deprecated.intOptional.Optional.getMetadataOrDefault(String key, String defaultValue) Optional.getMetadataOrThrow(String key) Optional.longOutput only.Deprecated.getName()Immutable.com.google.protobuf.ByteStringImmutable.getOwner()Output only.Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.Optional.Optional.com.google.protobuf.TimestampOptional.com.google.protobuf.Timestamp.BuilderOptional.com.google.protobuf.TimestampOrBuilderOptional.Optional.longgetSize()Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.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.booleanOutput only.booleanOptional.booleanOutput only.booleanOptional.booleanOptional.booleanOutput only.booleanWhether an object is under event-based hold.booleanOutput only.booleanOutput only.booleanhasOwner()Output only.booleanOutput only.booleanOptional.booleanOptional.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeChecksums(ObjectChecksums value) Output only.mergeContexts(ObjectContexts value) Optional.mergeCreateTime(com.google.protobuf.Timestamp value) Output only.Optional.mergeCustomTime(com.google.protobuf.Timestamp value) Optional.mergeDeleteTime(com.google.protobuf.Timestamp value) Output only.mergeFinalizeTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeHardDeleteTime(com.google.protobuf.Timestamp value) Output only.mergeOwner(Owner value) Output only.mergeRetention(Object.Retention value) Optional.mergeRetentionExpireTime(com.google.protobuf.Timestamp value) Optional.mergeSoftDeleteTime(com.google.protobuf.Timestamp value) Output only.final Object.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) mergeUpdateStorageClassTime(com.google.protobuf.Timestamp value) Output only.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.putAllMetadata(Map<String, String> values) Optional.putMetadata(String key, String value) Optional.removeAcl(int index) Optional.removeMetadata(String key) Optional.setAcl(int index, ObjectAccessControl value) Optional.setAcl(int index, ObjectAccessControl.Builder builderForValue) Optional.Immutable.setBucketBytes(com.google.protobuf.ByteString value) Immutable.setCacheControl(String value) Optional.setCacheControlBytes(com.google.protobuf.ByteString value) Optional.setChecksums(ObjectChecksums value) Output only.setChecksums(ObjectChecksums.Builder builderForValue) Output only.setComponentCount(int value) Output only.setContentDisposition(String value) Optional.setContentDispositionBytes(com.google.protobuf.ByteString value) Optional.setContentEncoding(String value) Optional.setContentEncodingBytes(com.google.protobuf.ByteString value) Optional.setContentLanguage(String value) Optional.setContentLanguageBytes(com.google.protobuf.ByteString value) Optional.setContentType(String value) Optional.setContentTypeBytes(com.google.protobuf.ByteString value) Optional.setContexts(ObjectContexts value) Optional.setContexts(ObjectContexts.Builder builderForValue) Optional.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Optional.setCustomerEncryption(CustomerEncryption.Builder builderForValue) Optional.setCustomTime(com.google.protobuf.Timestamp value) Optional.setCustomTime(com.google.protobuf.Timestamp.Builder builderForValue) Optional.setDeleteTime(com.google.protobuf.Timestamp value) Output only.setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Optional.setEtagBytes(com.google.protobuf.ByteString value) Optional.setEventBasedHold(boolean value) Whether an object is under event-based hold.setFinalizeTime(com.google.protobuf.Timestamp value) Output only.setFinalizeTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setGeneration(long value) Immutable.setHardDeleteTime(com.google.protobuf.Timestamp value) Output only.setHardDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Optional.setKmsKeyBytes(com.google.protobuf.ByteString value) Optional.setMetageneration(long value) Output only.Immutable.setNameBytes(com.google.protobuf.ByteString value) Immutable.Output only.setOwner(Owner.Builder builderForValue) Output only.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRestoreToken(String value) Output only.setRestoreTokenBytes(com.google.protobuf.ByteString value) Output only.setRetention(Object.Retention value) Optional.setRetention(Object.Retention.Builder builderForValue) Optional.setRetentionExpireTime(com.google.protobuf.Timestamp value) Optional.setRetentionExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) Optional.setSize(long value) Output only.setSoftDeleteTime(com.google.protobuf.Timestamp value) Output only.setSoftDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setStorageClass(String value) Optional.setStorageClassBytes(com.google.protobuf.ByteString value) Optional.setTemporaryHold(boolean value) Optional.final Object.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUpdateStorageClassTime(com.google.protobuf.Timestamp value) Output only.setUpdateStorageClassTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<Object.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<Object.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Object.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<Object.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<Object.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<Object.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Object.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Object.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Object.Builder>
-
setRepeatedField
public Object.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<Object.Builder>
-
addRepeatedField
public Object.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<Object.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Object.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Object.Builder>
-
mergeFrom
public Object.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<Object.Builder>- Throws:
IOException
-
getName
Immutable. The name of this object. Nearly any sequence of unicode characters is valid. See [Guidelines](https://cloud.google.com/storage/docs/objects#naming). Example: `test.txt` The `name` field by itself does not uniquely identify a Cloud Storage object. A Cloud Storage object is uniquely identified by the tuple of (bucket, object, generation).
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNamein interfaceObjectOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Immutable. The name of this object. Nearly any sequence of unicode characters is valid. See [Guidelines](https://cloud.google.com/storage/docs/objects#naming). Example: `test.txt` The `name` field by itself does not uniquely identify a Cloud Storage object. A Cloud Storage object is uniquely identified by the tuple of (bucket, object, generation).
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNameBytesin interfaceObjectOrBuilder- Returns:
- The bytes for name.
-
setName
Immutable. The name of this object. Nearly any sequence of unicode characters is valid. See [Guidelines](https://cloud.google.com/storage/docs/objects#naming). Example: `test.txt` The `name` field by itself does not uniquely identify a Cloud Storage object. A Cloud Storage object is uniquely identified by the tuple of (bucket, object, generation).
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Immutable. The name of this object. Nearly any sequence of unicode characters is valid. See [Guidelines](https://cloud.google.com/storage/docs/objects#naming). Example: `test.txt` The `name` field by itself does not uniquely identify a Cloud Storage object. A Cloud Storage object is uniquely identified by the tuple of (bucket, object, generation).
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
setNameBytes
Immutable. The name of this object. Nearly any sequence of unicode characters is valid. See [Guidelines](https://cloud.google.com/storage/docs/objects#naming). Example: `test.txt` The `name` field by itself does not uniquely identify a Cloud Storage object. A Cloud Storage object is uniquely identified by the tuple of (bucket, object, generation).
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getBucket
Immutable. The name of the bucket containing this object.
string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getBucketin interfaceObjectOrBuilder- Returns:
- The bucket.
-
getBucketBytes
public com.google.protobuf.ByteString getBucketBytes()Immutable. The name of the bucket containing this object.
string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getBucketBytesin interfaceObjectOrBuilder- Returns:
- The bytes for bucket.
-
setBucket
Immutable. The name of the bucket containing this object.
string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Parameters:
value- The bucket to set.- Returns:
- This builder for chaining.
-
clearBucket
Immutable. The name of the bucket containing this object.
string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setBucketBytes
Immutable. The name of the bucket containing this object.
string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for bucket to set.- Returns:
- This builder for chaining.
-
getEtag
Optional. The etag of the object. If included in the metadata of an update or delete request message, the operation will only be performed if the etag matches that of the live object.
string etag = 27 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEtagin interfaceObjectOrBuilder- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()Optional. The etag of the object. If included in the metadata of an update or delete request message, the operation will only be performed if the etag matches that of the live object.
string etag = 27 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEtagBytesin interfaceObjectOrBuilder- Returns:
- The bytes for etag.
-
setEtag
Optional. The etag of the object. If included in the metadata of an update or delete request message, the operation will only be performed if the etag matches that of the live object.
string etag = 27 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
Optional. The etag of the object. If included in the metadata of an update or delete request message, the operation will only be performed if the etag matches that of the live object.
string etag = 27 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setEtagBytes
Optional. The etag of the object. If included in the metadata of an update or delete request message, the operation will only be performed if the etag matches that of the live object.
string etag = 27 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for etag to set.- Returns:
- This builder for chaining.
-
getGeneration
public long getGeneration()Immutable. The content generation of this object. Used for object versioning.
int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getGenerationin interfaceObjectOrBuilder- Returns:
- The generation.
-
setGeneration
Immutable. The content generation of this object. Used for object versioning.
int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The generation to set.- Returns:
- This builder for chaining.
-
clearGeneration
Immutable. The content generation of this object. Used for object versioning.
int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
hasRestoreToken
public boolean hasRestoreToken()Output only. Restore token used to differentiate deleted objects with the same name and generation. This field is output only, and only set for deleted objects in HNS buckets.
optional string restore_token = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasRestoreTokenin interfaceObjectOrBuilder- Returns:
- Whether the restoreToken field is set.
-
getRestoreToken
Output only. Restore token used to differentiate deleted objects with the same name and generation. This field is output only, and only set for deleted objects in HNS buckets.
optional string restore_token = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRestoreTokenin interfaceObjectOrBuilder- Returns:
- The restoreToken.
-
getRestoreTokenBytes
public com.google.protobuf.ByteString getRestoreTokenBytes()Output only. Restore token used to differentiate deleted objects with the same name and generation. This field is output only, and only set for deleted objects in HNS buckets.
optional string restore_token = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRestoreTokenBytesin interfaceObjectOrBuilder- Returns:
- The bytes for restoreToken.
-
setRestoreToken
Output only. Restore token used to differentiate deleted objects with the same name and generation. This field is output only, and only set for deleted objects in HNS buckets.
optional string restore_token = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The restoreToken to set.- Returns:
- This builder for chaining.
-
clearRestoreToken
Output only. Restore token used to differentiate deleted objects with the same name and generation. This field is output only, and only set for deleted objects in HNS buckets.
optional string restore_token = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setRestoreTokenBytes
Output only. Restore token used to differentiate deleted objects with the same name and generation. This field is output only, and only set for deleted objects in HNS buckets.
optional string restore_token = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for restoreToken to set.- Returns:
- This builder for chaining.
-
getMetageneration
public long getMetageneration()Output only. The version of the metadata for this generation of this object. Used for preconditions and for detecting changes in metadata. A metageneration number is only meaningful in the context of a particular generation of a particular object.
int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMetagenerationin interfaceObjectOrBuilder- Returns:
- The metageneration.
-
setMetageneration
Output only. The version of the metadata for this generation of this object. Used for preconditions and for detecting changes in metadata. A metageneration number is only meaningful in the context of a particular generation of a particular object.
int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The metageneration to set.- Returns:
- This builder for chaining.
-
clearMetageneration
Output only. The version of the metadata for this generation of this object. Used for preconditions and for detecting changes in metadata. A metageneration number is only meaningful in the context of a particular generation of a particular object.
int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getStorageClass
Optional. Storage class of the object.
string storage_class = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStorageClassin interfaceObjectOrBuilder- Returns:
- The storageClass.
-
getStorageClassBytes
public com.google.protobuf.ByteString getStorageClassBytes()Optional. Storage class of the object.
string storage_class = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStorageClassBytesin interfaceObjectOrBuilder- Returns:
- The bytes for storageClass.
-
setStorageClass
Optional. Storage class of the object.
string storage_class = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The storageClass to set.- Returns:
- This builder for chaining.
-
clearStorageClass
Optional. Storage class of the object.
string storage_class = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setStorageClassBytes
Optional. Storage class of the object.
string storage_class = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for storageClass to set.- Returns:
- This builder for chaining.
-
getSize
public long getSize()Output only. Content-Length of the object data in bytes, matching [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2].
int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSizein interfaceObjectOrBuilder- Returns:
- The size.
-
setSize
Output only. Content-Length of the object data in bytes, matching [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2].
int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The size to set.- Returns:
- This builder for chaining.
-
clearSize
Output only. Content-Length of the object data in bytes, matching [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2].
int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getContentEncoding
Optional. Content-Encoding of the object data, matching [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
string content_encoding = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentEncodingin interfaceObjectOrBuilder- Returns:
- The contentEncoding.
-
getContentEncodingBytes
public com.google.protobuf.ByteString getContentEncodingBytes()Optional. Content-Encoding of the object data, matching [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
string content_encoding = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentEncodingBytesin interfaceObjectOrBuilder- Returns:
- The bytes for contentEncoding.
-
setContentEncoding
Optional. Content-Encoding of the object data, matching [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
string content_encoding = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The contentEncoding to set.- Returns:
- This builder for chaining.
-
clearContentEncoding
Optional. Content-Encoding of the object data, matching [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
string content_encoding = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setContentEncodingBytes
Optional. Content-Encoding of the object data, matching [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
string content_encoding = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for contentEncoding to set.- Returns:
- This builder for chaining.
-
getContentDisposition
Optional. Content-Disposition of the object data, matching [https://tools.ietf.org/html/rfc6266][RFC 6266].
string content_disposition = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentDispositionin interfaceObjectOrBuilder- Returns:
- The contentDisposition.
-
getContentDispositionBytes
public com.google.protobuf.ByteString getContentDispositionBytes()Optional. Content-Disposition of the object data, matching [https://tools.ietf.org/html/rfc6266][RFC 6266].
string content_disposition = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentDispositionBytesin interfaceObjectOrBuilder- Returns:
- The bytes for contentDisposition.
-
setContentDisposition
Optional. Content-Disposition of the object data, matching [https://tools.ietf.org/html/rfc6266][RFC 6266].
string content_disposition = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The contentDisposition to set.- Returns:
- This builder for chaining.
-
clearContentDisposition
Optional. Content-Disposition of the object data, matching [https://tools.ietf.org/html/rfc6266][RFC 6266].
string content_disposition = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setContentDispositionBytes
Optional. Content-Disposition of the object data, matching [https://tools.ietf.org/html/rfc6266][RFC 6266].
string content_disposition = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for contentDisposition to set.- Returns:
- This builder for chaining.
-
getCacheControl
Optional. Cache-Control directive for the object data, matching [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2]. If omitted, and the object is accessible to all anonymous users, the default will be `public, max-age=3600`.
string cache_control = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCacheControlin interfaceObjectOrBuilder- Returns:
- The cacheControl.
-
getCacheControlBytes
public com.google.protobuf.ByteString getCacheControlBytes()Optional. Cache-Control directive for the object data, matching [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2]. If omitted, and the object is accessible to all anonymous users, the default will be `public, max-age=3600`.
string cache_control = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCacheControlBytesin interfaceObjectOrBuilder- Returns:
- The bytes for cacheControl.
-
setCacheControl
Optional. Cache-Control directive for the object data, matching [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2]. If omitted, and the object is accessible to all anonymous users, the default will be `public, max-age=3600`.
string cache_control = 9 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The cacheControl to set.- Returns:
- This builder for chaining.
-
clearCacheControl
Optional. Cache-Control directive for the object data, matching [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2]. If omitted, and the object is accessible to all anonymous users, the default will be `public, max-age=3600`.
string cache_control = 9 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setCacheControlBytes
Optional. Cache-Control directive for the object data, matching [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2]. If omitted, and the object is accessible to all anonymous users, the default will be `public, max-age=3600`.
string cache_control = 9 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for cacheControl to set.- Returns:
- This builder for chaining.
-
getAclList
Optional. Access controls on the object. If iam_config.uniform_bucket_level_access is enabled on the parent bucket, requests to set, read, or modify acl is an error.
repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAclListin interfaceObjectOrBuilder
-
getAclCount
public int getAclCount()Optional. Access controls on the object. If iam_config.uniform_bucket_level_access is enabled on the parent bucket, requests to set, read, or modify acl is an error.
repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAclCountin interfaceObjectOrBuilder
-
getAcl
Optional. Access controls on the object. If iam_config.uniform_bucket_level_access is enabled on the parent bucket, requests to set, read, or modify acl is an error.
repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAclin interfaceObjectOrBuilder
-
setAcl
Optional. Access controls on the object. If iam_config.uniform_bucket_level_access is enabled on the parent bucket, requests to set, read, or modify acl is an error.
repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL]; -
setAcl
Optional. Access controls on the object. If iam_config.uniform_bucket_level_access is enabled on the parent bucket, requests to set, read, or modify acl is an error.
repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL]; -
addAcl
Optional. Access controls on the object. If iam_config.uniform_bucket_level_access is enabled on the parent bucket, requests to set, read, or modify acl is an error.
repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL]; -
addAcl
Optional. Access controls on the object. If iam_config.uniform_bucket_level_access is enabled on the parent bucket, requests to set, read, or modify acl is an error.
repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL]; -
addAcl
Optional. Access controls on the object. If iam_config.uniform_bucket_level_access is enabled on the parent bucket, requests to set, read, or modify acl is an error.
repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL]; -
addAcl
Optional. Access controls on the object. If iam_config.uniform_bucket_level_access is enabled on the parent bucket, requests to set, read, or modify acl is an error.
repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL]; -
addAllAcl
Optional. Access controls on the object. If iam_config.uniform_bucket_level_access is enabled on the parent bucket, requests to set, read, or modify acl is an error.
repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL]; -
clearAcl
Optional. Access controls on the object. If iam_config.uniform_bucket_level_access is enabled on the parent bucket, requests to set, read, or modify acl is an error.
repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL]; -
removeAcl
Optional. Access controls on the object. If iam_config.uniform_bucket_level_access is enabled on the parent bucket, requests to set, read, or modify acl is an error.
repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL]; -
getAclBuilder
Optional. Access controls on the object. If iam_config.uniform_bucket_level_access is enabled on the parent bucket, requests to set, read, or modify acl is an error.
repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL]; -
getAclOrBuilder
Optional. Access controls on the object. If iam_config.uniform_bucket_level_access is enabled on the parent bucket, requests to set, read, or modify acl is an error.
repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAclOrBuilderin interfaceObjectOrBuilder
-
getAclOrBuilderList
Optional. Access controls on the object. If iam_config.uniform_bucket_level_access is enabled on the parent bucket, requests to set, read, or modify acl is an error.
repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAclOrBuilderListin interfaceObjectOrBuilder
-
addAclBuilder
Optional. Access controls on the object. If iam_config.uniform_bucket_level_access is enabled on the parent bucket, requests to set, read, or modify acl is an error.
repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL]; -
addAclBuilder
Optional. Access controls on the object. If iam_config.uniform_bucket_level_access is enabled on the parent bucket, requests to set, read, or modify acl is an error.
repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL]; -
getAclBuilderList
Optional. Access controls on the object. If iam_config.uniform_bucket_level_access is enabled on the parent bucket, requests to set, read, or modify acl is an error.
repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL]; -
getContentLanguage
Optional. Content-Language of the object data, matching [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
string content_language = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentLanguagein interfaceObjectOrBuilder- Returns:
- The contentLanguage.
-
getContentLanguageBytes
public com.google.protobuf.ByteString getContentLanguageBytes()Optional. Content-Language of the object data, matching [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
string content_language = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentLanguageBytesin interfaceObjectOrBuilder- Returns:
- The bytes for contentLanguage.
-
setContentLanguage
Optional. Content-Language of the object data, matching [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
string content_language = 11 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The contentLanguage to set.- Returns:
- This builder for chaining.
-
clearContentLanguage
Optional. Content-Language of the object data, matching [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
string content_language = 11 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setContentLanguageBytes
Optional. Content-Language of the object data, matching [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
string content_language = 11 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for contentLanguage to set.- Returns:
- This builder for chaining.
-
hasDeleteTime
public boolean hasDeleteTime()Output only. If this object is noncurrent, this is the time when the object became noncurrent.
.google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasDeleteTimein interfaceObjectOrBuilder- Returns:
- Whether the deleteTime field is set.
-
getDeleteTime
public com.google.protobuf.Timestamp getDeleteTime()Output only. If this object is noncurrent, this is the time when the object became noncurrent.
.google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDeleteTimein interfaceObjectOrBuilder- Returns:
- The deleteTime.
-
setDeleteTime
Output only. If this object is noncurrent, this is the time when the object became noncurrent.
.google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setDeleteTime
Output only. If this object is noncurrent, this is the time when the object became noncurrent.
.google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeDeleteTime
Output only. If this object is noncurrent, this is the time when the object became noncurrent.
.google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearDeleteTime
Output only. If this object is noncurrent, this is the time when the object became noncurrent.
.google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getDeleteTimeBuilder
public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder()Output only. If this object is noncurrent, this is the time when the object became noncurrent.
.google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getDeleteTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()Output only. If this object is noncurrent, this is the time when the object became noncurrent.
.google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDeleteTimeOrBuilderin interfaceObjectOrBuilder
-
hasFinalizeTime
public boolean hasFinalizeTime()Output only. The time when the object was finalized.
.google.protobuf.Timestamp finalize_time = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasFinalizeTimein interfaceObjectOrBuilder- Returns:
- Whether the finalizeTime field is set.
-
getFinalizeTime
public com.google.protobuf.Timestamp getFinalizeTime()Output only. The time when the object was finalized.
.google.protobuf.Timestamp finalize_time = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getFinalizeTimein interfaceObjectOrBuilder- Returns:
- The finalizeTime.
-
setFinalizeTime
Output only. The time when the object was finalized.
.google.protobuf.Timestamp finalize_time = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setFinalizeTime
Output only. The time when the object was finalized.
.google.protobuf.Timestamp finalize_time = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeFinalizeTime
Output only. The time when the object was finalized.
.google.protobuf.Timestamp finalize_time = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearFinalizeTime
Output only. The time when the object was finalized.
.google.protobuf.Timestamp finalize_time = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getFinalizeTimeBuilder
public com.google.protobuf.Timestamp.Builder getFinalizeTimeBuilder()Output only. The time when the object was finalized.
.google.protobuf.Timestamp finalize_time = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getFinalizeTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getFinalizeTimeOrBuilder()Output only. The time when the object was finalized.
.google.protobuf.Timestamp finalize_time = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getFinalizeTimeOrBuilderin interfaceObjectOrBuilder
-
getContentType
Optional. Content-Type of the object data, matching [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5]. If an object is stored without a Content-Type, it is served as `application/octet-stream`.
string content_type = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentTypein interfaceObjectOrBuilder- Returns:
- The contentType.
-
getContentTypeBytes
public com.google.protobuf.ByteString getContentTypeBytes()Optional. Content-Type of the object data, matching [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5]. If an object is stored without a Content-Type, it is served as `application/octet-stream`.
string content_type = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContentTypeBytesin interfaceObjectOrBuilder- Returns:
- The bytes for contentType.
-
setContentType
Optional. Content-Type of the object data, matching [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5]. If an object is stored without a Content-Type, it is served as `application/octet-stream`.
string content_type = 13 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The contentType to set.- Returns:
- This builder for chaining.
-
clearContentType
Optional. Content-Type of the object data, matching [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5]. If an object is stored without a Content-Type, it is served as `application/octet-stream`.
string content_type = 13 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setContentTypeBytes
Optional. Content-Type of the object data, matching [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5]. If an object is stored without a Content-Type, it is served as `application/octet-stream`.
string content_type = 13 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for contentType to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. The creation time of the object.
.google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceObjectOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The creation time of the object.
.google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceObjectOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The creation time of the object.
.google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The creation time of the object.
.google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The creation time of the object.
.google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The creation time of the object.
.google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. The creation time of the object.
.google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The creation time of the object.
.google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceObjectOrBuilder
-
getComponentCount
public int getComponentCount()Output only. Number of underlying components that make up this object. Components are accumulated by compose operations.
int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getComponentCountin interfaceObjectOrBuilder- Returns:
- The componentCount.
-
setComponentCount
Output only. Number of underlying components that make up this object. Components are accumulated by compose operations.
int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The componentCount to set.- Returns:
- This builder for chaining.
-
clearComponentCount
Output only. Number of underlying components that make up this object. Components are accumulated by compose operations.
int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasChecksums
public boolean hasChecksums()Output only. Hashes for the data part of this object. This field is used for output only and will be silently ignored if provided in requests. The checksums of the complete object regardless of data range. If the object is downloaded in full, the client should compute one of these checksums over the downloaded object and compare it against the value provided here.
.google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasChecksumsin interfaceObjectOrBuilder- Returns:
- Whether the checksums field is set.
-
getChecksums
Output only. Hashes for the data part of this object. This field is used for output only and will be silently ignored if provided in requests. The checksums of the complete object regardless of data range. If the object is downloaded in full, the client should compute one of these checksums over the downloaded object and compare it against the value provided here.
.google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getChecksumsin interfaceObjectOrBuilder- Returns:
- The checksums.
-
setChecksums
Output only. Hashes for the data part of this object. This field is used for output only and will be silently ignored if provided in requests. The checksums of the complete object regardless of data range. If the object is downloaded in full, the client should compute one of these checksums over the downloaded object and compare it against the value provided here.
.google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setChecksums
Output only. Hashes for the data part of this object. This field is used for output only and will be silently ignored if provided in requests. The checksums of the complete object regardless of data range. If the object is downloaded in full, the client should compute one of these checksums over the downloaded object and compare it against the value provided here.
.google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeChecksums
Output only. Hashes for the data part of this object. This field is used for output only and will be silently ignored if provided in requests. The checksums of the complete object regardless of data range. If the object is downloaded in full, the client should compute one of these checksums over the downloaded object and compare it against the value provided here.
.google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearChecksums
Output only. Hashes for the data part of this object. This field is used for output only and will be silently ignored if provided in requests. The checksums of the complete object regardless of data range. If the object is downloaded in full, the client should compute one of these checksums over the downloaded object and compare it against the value provided here.
.google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getChecksumsBuilder
Output only. Hashes for the data part of this object. This field is used for output only and will be silently ignored if provided in requests. The checksums of the complete object regardless of data range. If the object is downloaded in full, the client should compute one of these checksums over the downloaded object and compare it against the value provided here.
.google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getChecksumsOrBuilder
Output only. Hashes for the data part of this object. This field is used for output only and will be silently ignored if provided in requests. The checksums of the complete object regardless of data range. If the object is downloaded in full, the client should compute one of these checksums over the downloaded object and compare it against the value provided here.
.google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getChecksumsOrBuilderin interfaceObjectOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. The modification time of the object metadata. Set initially to object creation time and then updated whenever any metadata of the object changes. This includes changes made by a requester, such as modifying custom metadata, as well as changes made by Cloud Storage on behalf of a requester, such as changing the storage class based on an Object Lifecycle Configuration.
.google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceObjectOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The modification time of the object metadata. Set initially to object creation time and then updated whenever any metadata of the object changes. This includes changes made by a requester, such as modifying custom metadata, as well as changes made by Cloud Storage on behalf of a requester, such as changing the storage class based on an Object Lifecycle Configuration.
.google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceObjectOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The modification time of the object metadata. Set initially to object creation time and then updated whenever any metadata of the object changes. This includes changes made by a requester, such as modifying custom metadata, as well as changes made by Cloud Storage on behalf of a requester, such as changing the storage class based on an Object Lifecycle Configuration.
.google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. The modification time of the object metadata. Set initially to object creation time and then updated whenever any metadata of the object changes. This includes changes made by a requester, such as modifying custom metadata, as well as changes made by Cloud Storage on behalf of a requester, such as changing the storage class based on an Object Lifecycle Configuration.
.google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The modification time of the object metadata. Set initially to object creation time and then updated whenever any metadata of the object changes. This includes changes made by a requester, such as modifying custom metadata, as well as changes made by Cloud Storage on behalf of a requester, such as changing the storage class based on an Object Lifecycle Configuration.
.google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. The modification time of the object metadata. Set initially to object creation time and then updated whenever any metadata of the object changes. This includes changes made by a requester, such as modifying custom metadata, as well as changes made by Cloud Storage on behalf of a requester, such as changing the storage class based on an Object Lifecycle Configuration.
.google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. The modification time of the object metadata. Set initially to object creation time and then updated whenever any metadata of the object changes. This includes changes made by a requester, such as modifying custom metadata, as well as changes made by Cloud Storage on behalf of a requester, such as changing the storage class based on an Object Lifecycle Configuration.
.google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The modification time of the object metadata. Set initially to object creation time and then updated whenever any metadata of the object changes. This includes changes made by a requester, such as modifying custom metadata, as well as changes made by Cloud Storage on behalf of a requester, such as changing the storage class based on an Object Lifecycle Configuration.
.google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceObjectOrBuilder
-
getKmsKey
Optional. Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key.
string kms_key = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getKmsKeyin interfaceObjectOrBuilder- Returns:
- The kmsKey.
-
getKmsKeyBytes
public com.google.protobuf.ByteString getKmsKeyBytes()Optional. Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key.
string kms_key = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getKmsKeyBytesin interfaceObjectOrBuilder- Returns:
- The bytes for kmsKey.
-
setKmsKey
Optional. Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key.
string kms_key = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The kmsKey to set.- Returns:
- This builder for chaining.
-
clearKmsKey
Optional. Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key.
string kms_key = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setKmsKeyBytes
Optional. Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key.
string kms_key = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for kmsKey to set.- Returns:
- This builder for chaining.
-
hasUpdateStorageClassTime
public boolean hasUpdateStorageClassTime()Output only. The time at which the object's storage class was last changed. When the object is initially created, it will be set to time_created.
.google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateStorageClassTimein interfaceObjectOrBuilder- Returns:
- Whether the updateStorageClassTime field is set.
-
getUpdateStorageClassTime
public com.google.protobuf.Timestamp getUpdateStorageClassTime()Output only. The time at which the object's storage class was last changed. When the object is initially created, it will be set to time_created.
.google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateStorageClassTimein interfaceObjectOrBuilder- Returns:
- The updateStorageClassTime.
-
setUpdateStorageClassTime
Output only. The time at which the object's storage class was last changed. When the object is initially created, it will be set to time_created.
.google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateStorageClassTime
public Object.Builder setUpdateStorageClassTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. The time at which the object's storage class was last changed. When the object is initially created, it will be set to time_created.
.google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateStorageClassTime
Output only. The time at which the object's storage class was last changed. When the object is initially created, it will be set to time_created.
.google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateStorageClassTime
Output only. The time at which the object's storage class was last changed. When the object is initially created, it will be set to time_created.
.google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateStorageClassTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateStorageClassTimeBuilder()Output only. The time at which the object's storage class was last changed. When the object is initially created, it will be set to time_created.
.google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateStorageClassTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder()Output only. The time at which the object's storage class was last changed. When the object is initially created, it will be set to time_created.
.google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateStorageClassTimeOrBuilderin interfaceObjectOrBuilder
-
getTemporaryHold
public boolean getTemporaryHold()Optional. Whether an object is under temporary hold. While this flag is set to true, the object is protected against deletion and overwrites. A common use case of this flag is regulatory investigations where objects need to be retained while the investigation is ongoing. Note that unlike event-based hold, temporary hold does not impact retention expiration time of an object.
bool temporary_hold = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTemporaryHoldin interfaceObjectOrBuilder- Returns:
- The temporaryHold.
-
setTemporaryHold
Optional. Whether an object is under temporary hold. While this flag is set to true, the object is protected against deletion and overwrites. A common use case of this flag is regulatory investigations where objects need to be retained while the investigation is ongoing. Note that unlike event-based hold, temporary hold does not impact retention expiration time of an object.
bool temporary_hold = 20 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The temporaryHold to set.- Returns:
- This builder for chaining.
-
clearTemporaryHold
Optional. Whether an object is under temporary hold. While this flag is set to true, the object is protected against deletion and overwrites. A common use case of this flag is regulatory investigations where objects need to be retained while the investigation is ongoing. Note that unlike event-based hold, temporary hold does not impact retention expiration time of an object.
bool temporary_hold = 20 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasRetentionExpireTime
public boolean hasRetentionExpireTime()Optional. A server-determined value that specifies the earliest time that the object's retention period expires. Note 1: This field is not provided for objects with an active event-based hold, since retention expiration is unknown until the hold is removed. Note 2: This value can be provided even when temporary hold is set (so that the user can reason about policy without having to first unset the temporary hold).
.google.protobuf.Timestamp retention_expire_time = 21 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasRetentionExpireTimein interfaceObjectOrBuilder- Returns:
- Whether the retentionExpireTime field is set.
-
getRetentionExpireTime
public com.google.protobuf.Timestamp getRetentionExpireTime()Optional. A server-determined value that specifies the earliest time that the object's retention period expires. Note 1: This field is not provided for objects with an active event-based hold, since retention expiration is unknown until the hold is removed. Note 2: This value can be provided even when temporary hold is set (so that the user can reason about policy without having to first unset the temporary hold).
.google.protobuf.Timestamp retention_expire_time = 21 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRetentionExpireTimein interfaceObjectOrBuilder- Returns:
- The retentionExpireTime.
-
setRetentionExpireTime
Optional. A server-determined value that specifies the earliest time that the object's retention period expires. Note 1: This field is not provided for objects with an active event-based hold, since retention expiration is unknown until the hold is removed. Note 2: This value can be provided even when temporary hold is set (so that the user can reason about policy without having to first unset the temporary hold).
.google.protobuf.Timestamp retention_expire_time = 21 [(.google.api.field_behavior) = OPTIONAL]; -
setRetentionExpireTime
Optional. A server-determined value that specifies the earliest time that the object's retention period expires. Note 1: This field is not provided for objects with an active event-based hold, since retention expiration is unknown until the hold is removed. Note 2: This value can be provided even when temporary hold is set (so that the user can reason about policy without having to first unset the temporary hold).
.google.protobuf.Timestamp retention_expire_time = 21 [(.google.api.field_behavior) = OPTIONAL]; -
mergeRetentionExpireTime
Optional. A server-determined value that specifies the earliest time that the object's retention period expires. Note 1: This field is not provided for objects with an active event-based hold, since retention expiration is unknown until the hold is removed. Note 2: This value can be provided even when temporary hold is set (so that the user can reason about policy without having to first unset the temporary hold).
.google.protobuf.Timestamp retention_expire_time = 21 [(.google.api.field_behavior) = OPTIONAL]; -
clearRetentionExpireTime
Optional. A server-determined value that specifies the earliest time that the object's retention period expires. Note 1: This field is not provided for objects with an active event-based hold, since retention expiration is unknown until the hold is removed. Note 2: This value can be provided even when temporary hold is set (so that the user can reason about policy without having to first unset the temporary hold).
.google.protobuf.Timestamp retention_expire_time = 21 [(.google.api.field_behavior) = OPTIONAL]; -
getRetentionExpireTimeBuilder
public com.google.protobuf.Timestamp.Builder getRetentionExpireTimeBuilder()Optional. A server-determined value that specifies the earliest time that the object's retention period expires. Note 1: This field is not provided for objects with an active event-based hold, since retention expiration is unknown until the hold is removed. Note 2: This value can be provided even when temporary hold is set (so that the user can reason about policy without having to first unset the temporary hold).
.google.protobuf.Timestamp retention_expire_time = 21 [(.google.api.field_behavior) = OPTIONAL]; -
getRetentionExpireTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getRetentionExpireTimeOrBuilder()Optional. A server-determined value that specifies the earliest time that the object's retention period expires. Note 1: This field is not provided for objects with an active event-based hold, since retention expiration is unknown until the hold is removed. Note 2: This value can be provided even when temporary hold is set (so that the user can reason about policy without having to first unset the temporary hold).
.google.protobuf.Timestamp retention_expire_time = 21 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRetentionExpireTimeOrBuilderin interfaceObjectOrBuilder
-
getMetadataCount
public int getMetadataCount()Description copied from interface:ObjectOrBuilderOptional. User-provided metadata, in key/value pairs.
map<string, string> metadata = 22 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetadataCountin interfaceObjectOrBuilder
-
containsMetadata
Optional. User-provided metadata, in key/value pairs.
map<string, string> metadata = 22 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsMetadatain interfaceObjectOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceObjectOrBuilder
-
getMetadataMap
Optional. User-provided metadata, in key/value pairs.
map<string, string> metadata = 22 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetadataMapin interfaceObjectOrBuilder
-
getMetadataOrDefault
Optional. User-provided metadata, in key/value pairs.
map<string, string> metadata = 22 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetadataOrDefaultin interfaceObjectOrBuilder
-
getMetadataOrThrow
Optional. User-provided metadata, in key/value pairs.
map<string, string> metadata = 22 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetadataOrThrowin interfaceObjectOrBuilder
-
clearMetadata
-
removeMetadata
Optional. User-provided metadata, in key/value pairs.
map<string, string> metadata = 22 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableMetadata
Deprecated.Use alternate mutation accessors instead. -
putMetadata
Optional. User-provided metadata, in key/value pairs.
map<string, string> metadata = 22 [(.google.api.field_behavior) = OPTIONAL]; -
putAllMetadata
Optional. User-provided metadata, in key/value pairs.
map<string, string> metadata = 22 [(.google.api.field_behavior) = OPTIONAL]; -
hasContexts
public boolean hasContexts()Optional. User-defined or system-defined object contexts. Each object context is a key-payload pair, where the key provides the identification and the payload holds the associated value and additional metadata.
.google.storage.v2.ObjectContexts contexts = 38 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasContextsin interfaceObjectOrBuilder- Returns:
- Whether the contexts field is set.
-
getContexts
Optional. User-defined or system-defined object contexts. Each object context is a key-payload pair, where the key provides the identification and the payload holds the associated value and additional metadata.
.google.storage.v2.ObjectContexts contexts = 38 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContextsin interfaceObjectOrBuilder- Returns:
- The contexts.
-
setContexts
Optional. User-defined or system-defined object contexts. Each object context is a key-payload pair, where the key provides the identification and the payload holds the associated value and additional metadata.
.google.storage.v2.ObjectContexts contexts = 38 [(.google.api.field_behavior) = OPTIONAL]; -
setContexts
Optional. User-defined or system-defined object contexts. Each object context is a key-payload pair, where the key provides the identification and the payload holds the associated value and additional metadata.
.google.storage.v2.ObjectContexts contexts = 38 [(.google.api.field_behavior) = OPTIONAL]; -
mergeContexts
Optional. User-defined or system-defined object contexts. Each object context is a key-payload pair, where the key provides the identification and the payload holds the associated value and additional metadata.
.google.storage.v2.ObjectContexts contexts = 38 [(.google.api.field_behavior) = OPTIONAL]; -
clearContexts
Optional. User-defined or system-defined object contexts. Each object context is a key-payload pair, where the key provides the identification and the payload holds the associated value and additional metadata.
.google.storage.v2.ObjectContexts contexts = 38 [(.google.api.field_behavior) = OPTIONAL]; -
getContextsBuilder
Optional. User-defined or system-defined object contexts. Each object context is a key-payload pair, where the key provides the identification and the payload holds the associated value and additional metadata.
.google.storage.v2.ObjectContexts contexts = 38 [(.google.api.field_behavior) = OPTIONAL]; -
getContextsOrBuilder
Optional. User-defined or system-defined object contexts. Each object context is a key-payload pair, where the key provides the identification and the payload holds the associated value and additional metadata.
.google.storage.v2.ObjectContexts contexts = 38 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContextsOrBuilderin interfaceObjectOrBuilder
-
hasEventBasedHold
public boolean hasEventBasedHold()Whether an object is under event-based hold. An event-based hold is a way to force the retention of an object until after some event occurs. Once the hold is released by explicitly setting this field to false, the object will become subject to any bucket-level retention policy, except that the retention duration will be calculated from the time the event based hold was lifted, rather than the time the object was created. In a WriteObject request, not setting this field implies that the value should be taken from the parent bucket's "default_event_based_hold" field. In a response, this field will always be set to true or false.
optional bool event_based_hold = 23;- Specified by:
hasEventBasedHoldin interfaceObjectOrBuilder- Returns:
- Whether the eventBasedHold field is set.
-
getEventBasedHold
public boolean getEventBasedHold()Whether an object is under event-based hold. An event-based hold is a way to force the retention of an object until after some event occurs. Once the hold is released by explicitly setting this field to false, the object will become subject to any bucket-level retention policy, except that the retention duration will be calculated from the time the event based hold was lifted, rather than the time the object was created. In a WriteObject request, not setting this field implies that the value should be taken from the parent bucket's "default_event_based_hold" field. In a response, this field will always be set to true or false.
optional bool event_based_hold = 23;- Specified by:
getEventBasedHoldin interfaceObjectOrBuilder- Returns:
- The eventBasedHold.
-
setEventBasedHold
Whether an object is under event-based hold. An event-based hold is a way to force the retention of an object until after some event occurs. Once the hold is released by explicitly setting this field to false, the object will become subject to any bucket-level retention policy, except that the retention duration will be calculated from the time the event based hold was lifted, rather than the time the object was created. In a WriteObject request, not setting this field implies that the value should be taken from the parent bucket's "default_event_based_hold" field. In a response, this field will always be set to true or false.
optional bool event_based_hold = 23;- Parameters:
value- The eventBasedHold to set.- Returns:
- This builder for chaining.
-
clearEventBasedHold
Whether an object is under event-based hold. An event-based hold is a way to force the retention of an object until after some event occurs. Once the hold is released by explicitly setting this field to false, the object will become subject to any bucket-level retention policy, except that the retention duration will be calculated from the time the event based hold was lifted, rather than the time the object was created. In a WriteObject request, not setting this field implies that the value should be taken from the parent bucket's "default_event_based_hold" field. In a response, this field will always be set to true or false.
optional bool event_based_hold = 23;- Returns:
- This builder for chaining.
-
hasOwner
public boolean hasOwner()Output only. The owner of the object. This will always be the uploader of the object.
.google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasOwnerin interfaceObjectOrBuilder- Returns:
- Whether the owner field is set.
-
getOwner
Output only. The owner of the object. This will always be the uploader of the object.
.google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOwnerin interfaceObjectOrBuilder- Returns:
- The owner.
-
setOwner
Output only. The owner of the object. This will always be the uploader of the object.
.google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setOwner
Output only. The owner of the object. This will always be the uploader of the object.
.google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeOwner
Output only. The owner of the object. This will always be the uploader of the object.
.google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearOwner
Output only. The owner of the object. This will always be the uploader of the object.
.google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getOwnerBuilder
Output only. The owner of the object. This will always be the uploader of the object.
.google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getOwnerOrBuilder
Output only. The owner of the object. This will always be the uploader of the object.
.google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOwnerOrBuilderin interfaceObjectOrBuilder
-
hasCustomerEncryption
public boolean hasCustomerEncryption()Optional. Metadata of Customer-Supplied Encryption Key, if the object is encrypted by such a key.
.google.storage.v2.CustomerEncryption customer_encryption = 25 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasCustomerEncryptionin interfaceObjectOrBuilder- Returns:
- Whether the customerEncryption field is set.
-
getCustomerEncryption
Optional. Metadata of Customer-Supplied Encryption Key, if the object is encrypted by such a key.
.google.storage.v2.CustomerEncryption customer_encryption = 25 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCustomerEncryptionin interfaceObjectOrBuilder- Returns:
- The customerEncryption.
-
setCustomerEncryption
Optional. Metadata of Customer-Supplied Encryption Key, if the object is encrypted by such a key.
.google.storage.v2.CustomerEncryption customer_encryption = 25 [(.google.api.field_behavior) = OPTIONAL]; -
setCustomerEncryption
Optional. Metadata of Customer-Supplied Encryption Key, if the object is encrypted by such a key.
.google.storage.v2.CustomerEncryption customer_encryption = 25 [(.google.api.field_behavior) = OPTIONAL]; -
mergeCustomerEncryption
Optional. Metadata of Customer-Supplied Encryption Key, if the object is encrypted by such a key.
.google.storage.v2.CustomerEncryption customer_encryption = 25 [(.google.api.field_behavior) = OPTIONAL]; -
clearCustomerEncryption
Optional. Metadata of Customer-Supplied Encryption Key, if the object is encrypted by such a key.
.google.storage.v2.CustomerEncryption customer_encryption = 25 [(.google.api.field_behavior) = OPTIONAL]; -
getCustomerEncryptionBuilder
Optional. Metadata of Customer-Supplied Encryption Key, if the object is encrypted by such a key.
.google.storage.v2.CustomerEncryption customer_encryption = 25 [(.google.api.field_behavior) = OPTIONAL]; -
getCustomerEncryptionOrBuilder
Optional. Metadata of Customer-Supplied Encryption Key, if the object is encrypted by such a key.
.google.storage.v2.CustomerEncryption customer_encryption = 25 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCustomerEncryptionOrBuilderin interfaceObjectOrBuilder
-
hasCustomTime
public boolean hasCustomTime()Optional. A user-specified timestamp set on an object.
.google.protobuf.Timestamp custom_time = 26 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasCustomTimein interfaceObjectOrBuilder- Returns:
- Whether the customTime field is set.
-
getCustomTime
public com.google.protobuf.Timestamp getCustomTime()Optional. A user-specified timestamp set on an object.
.google.protobuf.Timestamp custom_time = 26 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCustomTimein interfaceObjectOrBuilder- Returns:
- The customTime.
-
setCustomTime
Optional. A user-specified timestamp set on an object.
.google.protobuf.Timestamp custom_time = 26 [(.google.api.field_behavior) = OPTIONAL]; -
setCustomTime
Optional. A user-specified timestamp set on an object.
.google.protobuf.Timestamp custom_time = 26 [(.google.api.field_behavior) = OPTIONAL]; -
mergeCustomTime
Optional. A user-specified timestamp set on an object.
.google.protobuf.Timestamp custom_time = 26 [(.google.api.field_behavior) = OPTIONAL]; -
clearCustomTime
Optional. A user-specified timestamp set on an object.
.google.protobuf.Timestamp custom_time = 26 [(.google.api.field_behavior) = OPTIONAL]; -
getCustomTimeBuilder
public com.google.protobuf.Timestamp.Builder getCustomTimeBuilder()Optional. A user-specified timestamp set on an object.
.google.protobuf.Timestamp custom_time = 26 [(.google.api.field_behavior) = OPTIONAL]; -
getCustomTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCustomTimeOrBuilder()Optional. A user-specified timestamp set on an object.
.google.protobuf.Timestamp custom_time = 26 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCustomTimeOrBuilderin interfaceObjectOrBuilder
-
hasSoftDeleteTime
public boolean hasSoftDeleteTime()Output only. This is the time when the object became soft-deleted. Soft-deleted objects are only accessible if a soft_delete_policy is enabled. Also see hard_delete_time.
optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasSoftDeleteTimein interfaceObjectOrBuilder- Returns:
- Whether the softDeleteTime field is set.
-
getSoftDeleteTime
public com.google.protobuf.Timestamp getSoftDeleteTime()Output only. This is the time when the object became soft-deleted. Soft-deleted objects are only accessible if a soft_delete_policy is enabled. Also see hard_delete_time.
optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSoftDeleteTimein interfaceObjectOrBuilder- Returns:
- The softDeleteTime.
-
setSoftDeleteTime
Output only. This is the time when the object became soft-deleted. Soft-deleted objects are only accessible if a soft_delete_policy is enabled. Also see hard_delete_time.
optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setSoftDeleteTime
Output only. This is the time when the object became soft-deleted. Soft-deleted objects are only accessible if a soft_delete_policy is enabled. Also see hard_delete_time.
optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeSoftDeleteTime
Output only. This is the time when the object became soft-deleted. Soft-deleted objects are only accessible if a soft_delete_policy is enabled. Also see hard_delete_time.
optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearSoftDeleteTime
Output only. This is the time when the object became soft-deleted. Soft-deleted objects are only accessible if a soft_delete_policy is enabled. Also see hard_delete_time.
optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSoftDeleteTimeBuilder
public com.google.protobuf.Timestamp.Builder getSoftDeleteTimeBuilder()Output only. This is the time when the object became soft-deleted. Soft-deleted objects are only accessible if a soft_delete_policy is enabled. Also see hard_delete_time.
optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSoftDeleteTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getSoftDeleteTimeOrBuilder()Output only. This is the time when the object became soft-deleted. Soft-deleted objects are only accessible if a soft_delete_policy is enabled. Also see hard_delete_time.
optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSoftDeleteTimeOrBuilderin interfaceObjectOrBuilder
-
hasHardDeleteTime
public boolean hasHardDeleteTime()Output only. The time when the object will be permanently deleted. Only set when an object becomes soft-deleted with a soft_delete_policy. Otherwise, the object will not be accessible.
optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasHardDeleteTimein interfaceObjectOrBuilder- Returns:
- Whether the hardDeleteTime field is set.
-
getHardDeleteTime
public com.google.protobuf.Timestamp getHardDeleteTime()Output only. The time when the object will be permanently deleted. Only set when an object becomes soft-deleted with a soft_delete_policy. Otherwise, the object will not be accessible.
optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getHardDeleteTimein interfaceObjectOrBuilder- Returns:
- The hardDeleteTime.
-
setHardDeleteTime
Output only. The time when the object will be permanently deleted. Only set when an object becomes soft-deleted with a soft_delete_policy. Otherwise, the object will not be accessible.
optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setHardDeleteTime
Output only. The time when the object will be permanently deleted. Only set when an object becomes soft-deleted with a soft_delete_policy. Otherwise, the object will not be accessible.
optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeHardDeleteTime
Output only. The time when the object will be permanently deleted. Only set when an object becomes soft-deleted with a soft_delete_policy. Otherwise, the object will not be accessible.
optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearHardDeleteTime
Output only. The time when the object will be permanently deleted. Only set when an object becomes soft-deleted with a soft_delete_policy. Otherwise, the object will not be accessible.
optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getHardDeleteTimeBuilder
public com.google.protobuf.Timestamp.Builder getHardDeleteTimeBuilder()Output only. The time when the object will be permanently deleted. Only set when an object becomes soft-deleted with a soft_delete_policy. Otherwise, the object will not be accessible.
optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getHardDeleteTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getHardDeleteTimeOrBuilder()Output only. The time when the object will be permanently deleted. Only set when an object becomes soft-deleted with a soft_delete_policy. Otherwise, the object will not be accessible.
optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getHardDeleteTimeOrBuilderin interfaceObjectOrBuilder
-
hasRetention
public boolean hasRetention()Optional. Retention configuration of this object. May only be configured if the bucket has object retention enabled.
.google.storage.v2.Object.Retention retention = 30 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasRetentionin interfaceObjectOrBuilder- Returns:
- Whether the retention field is set.
-
getRetention
Optional. Retention configuration of this object. May only be configured if the bucket has object retention enabled.
.google.storage.v2.Object.Retention retention = 30 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRetentionin interfaceObjectOrBuilder- Returns:
- The retention.
-
setRetention
Optional. Retention configuration of this object. May only be configured if the bucket has object retention enabled.
.google.storage.v2.Object.Retention retention = 30 [(.google.api.field_behavior) = OPTIONAL]; -
setRetention
Optional. Retention configuration of this object. May only be configured if the bucket has object retention enabled.
.google.storage.v2.Object.Retention retention = 30 [(.google.api.field_behavior) = OPTIONAL]; -
mergeRetention
Optional. Retention configuration of this object. May only be configured if the bucket has object retention enabled.
.google.storage.v2.Object.Retention retention = 30 [(.google.api.field_behavior) = OPTIONAL]; -
clearRetention
Optional. Retention configuration of this object. May only be configured if the bucket has object retention enabled.
.google.storage.v2.Object.Retention retention = 30 [(.google.api.field_behavior) = OPTIONAL]; -
getRetentionBuilder
Optional. Retention configuration of this object. May only be configured if the bucket has object retention enabled.
.google.storage.v2.Object.Retention retention = 30 [(.google.api.field_behavior) = OPTIONAL]; -
getRetentionOrBuilder
Optional. Retention configuration of this object. May only be configured if the bucket has object retention enabled.
.google.storage.v2.Object.Retention retention = 30 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRetentionOrBuilderin interfaceObjectOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Object.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Object.Builder>
-