Package com.google.storage.v2
Class Object
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.storage.v2.Object
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ObjectOrBuilder,Serializable
An object.Protobuf type
google.storage.v2.Object- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn object.static final classSpecifies retention parameters of the object.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsMetadata(String key) Optional.booleangetAcl(int index) 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.intOutput only.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Optional.Optional.com.google.protobuf.TimestampOptional.com.google.protobuf.TimestampOrBuilderOptional.static Objectcom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.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.TimestampOrBuilderOutput only.longImmutable.com.google.protobuf.TimestampOutput 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.getName()Immutable.com.google.protobuf.ByteStringImmutable.getOwner()Output only.Output only.com.google.protobuf.Parser<Object>Output only.com.google.protobuf.ByteStringOutput only.Optional.com.google.protobuf.TimestampOptional.com.google.protobuf.TimestampOrBuilderOptional.Optional.intlonggetSize()Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOutput only.booleanOptional.booleanOptional.booleanOutput only.booleanWhether an object is under event-based hold.booleanOutput only.booleanOutput only.inthashCode()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) final booleanstatic Object.Builderstatic Object.BuildernewBuilder(Object prototype) protected Object.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ObjectparseDelimitedFrom(InputStream input) static ObjectparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ObjectparseFrom(byte[] data) static ObjectparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ObjectparseFrom(com.google.protobuf.ByteString data) static ObjectparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ObjectparseFrom(com.google.protobuf.CodedInputStream input) static ObjectparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ObjectparseFrom(InputStream input) static ObjectparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ObjectparseFrom(ByteBuffer data) static ObjectparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Object>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
BUCKET_FIELD_NUMBER
public static final int BUCKET_FIELD_NUMBER- See Also:
-
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER- See Also:
-
GENERATION_FIELD_NUMBER
public static final int GENERATION_FIELD_NUMBER- See Also:
-
RESTORE_TOKEN_FIELD_NUMBER
public static final int RESTORE_TOKEN_FIELD_NUMBER- See Also:
-
METAGENERATION_FIELD_NUMBER
public static final int METAGENERATION_FIELD_NUMBER- See Also:
-
STORAGE_CLASS_FIELD_NUMBER
public static final int STORAGE_CLASS_FIELD_NUMBER- See Also:
-
SIZE_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER- See Also:
-
CONTENT_ENCODING_FIELD_NUMBER
public static final int CONTENT_ENCODING_FIELD_NUMBER- See Also:
-
CONTENT_DISPOSITION_FIELD_NUMBER
public static final int CONTENT_DISPOSITION_FIELD_NUMBER- See Also:
-
CACHE_CONTROL_FIELD_NUMBER
public static final int CACHE_CONTROL_FIELD_NUMBER- See Also:
-
ACL_FIELD_NUMBER
public static final int ACL_FIELD_NUMBER- See Also:
-
CONTENT_LANGUAGE_FIELD_NUMBER
public static final int CONTENT_LANGUAGE_FIELD_NUMBER- See Also:
-
DELETE_TIME_FIELD_NUMBER
public static final int DELETE_TIME_FIELD_NUMBER- See Also:
-
FINALIZE_TIME_FIELD_NUMBER
public static final int FINALIZE_TIME_FIELD_NUMBER- See Also:
-
CONTENT_TYPE_FIELD_NUMBER
public static final int CONTENT_TYPE_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
COMPONENT_COUNT_FIELD_NUMBER
public static final int COMPONENT_COUNT_FIELD_NUMBER- See Also:
-
CHECKSUMS_FIELD_NUMBER
public static final int CHECKSUMS_FIELD_NUMBER- See Also:
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER- See Also:
-
KMS_KEY_FIELD_NUMBER
public static final int KMS_KEY_FIELD_NUMBER- See Also:
-
UPDATE_STORAGE_CLASS_TIME_FIELD_NUMBER
public static final int UPDATE_STORAGE_CLASS_TIME_FIELD_NUMBER- See Also:
-
TEMPORARY_HOLD_FIELD_NUMBER
public static final int TEMPORARY_HOLD_FIELD_NUMBER- See Also:
-
RETENTION_EXPIRE_TIME_FIELD_NUMBER
public static final int RETENTION_EXPIRE_TIME_FIELD_NUMBER- See Also:
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER- See Also:
-
EVENT_BASED_HOLD_FIELD_NUMBER
public static final int EVENT_BASED_HOLD_FIELD_NUMBER- See Also:
-
OWNER_FIELD_NUMBER
public static final int OWNER_FIELD_NUMBER- See Also:
-
CUSTOMER_ENCRYPTION_FIELD_NUMBER
public static final int CUSTOMER_ENCRYPTION_FIELD_NUMBER- See Also:
-
CUSTOM_TIME_FIELD_NUMBER
public static final int CUSTOM_TIME_FIELD_NUMBER- See Also:
-
SOFT_DELETE_TIME_FIELD_NUMBER
public static final int SOFT_DELETE_TIME_FIELD_NUMBER- See Also:
-
HARD_DELETE_TIME_FIELD_NUMBER
public static final int HARD_DELETE_TIME_FIELD_NUMBER- See Also:
-
RETENTION_FIELD_NUMBER
public static final int RETENTION_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
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
-
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
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Object parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Object parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Object parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Object parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Object parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Object parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Object parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Object parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Object parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Object.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-