Class StorageObjectData.Builder (0.14.1)

public static final class StorageObjectData.Builder extends GeneratedMessageV3.Builder<StorageObjectData.Builder> implements StorageObjectDataOrBuilder

An object within Google Cloud Storage.

Protobuf type google.events.cloud.storage.v1.StorageObjectData

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StorageObjectData build()
Returns
TypeDescription
StorageObjectData

buildPartial()

public StorageObjectData buildPartial()
Returns
TypeDescription
StorageObjectData

clear()

public StorageObjectData.Builder clear()
Returns
TypeDescription
StorageObjectData.Builder
Overrides

clearBucket()

public StorageObjectData.Builder clearBucket()

The name of the bucket containing this object.

string bucket = 25;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearCacheControl()

public StorageObjectData.Builder clearCacheControl()

Cache-Control directive for the object data, matching https://tools.ietf.org/html/rfc7234#section-5.2".

string cache_control = 3;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearComponentCount()

public StorageObjectData.Builder clearComponentCount()

Number of underlying components that make up this object. Components are accumulated by compose operations. Attempting to set this field will result in an error.

int32 component_count = 12;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearContentDisposition()

public StorageObjectData.Builder clearContentDisposition()

Content-Disposition of the object data, matching https://tools.ietf.org/html/rfc6266.

string content_disposition = 2;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearContentEncoding()

public StorageObjectData.Builder clearContentEncoding()

Content-Encoding of the object data, matching https://tools.ietf.org/html/rfc7231#section-3.1.2.2

string content_encoding = 1;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearContentLanguage()

public StorageObjectData.Builder clearContentLanguage()

Content-Language of the object data, matching https://tools.ietf.org/html/rfc7231#section-3.1.3.2.

string content_language = 5;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearContentType()

public StorageObjectData.Builder clearContentType()

Content-Type of the object data, matching https://tools.ietf.org/html/rfc7231#section-3.1.1.5. If an object is stored without a Content-Type, it is served as application/octet-stream.

string content_type = 8;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearCrc32C()

public StorageObjectData.Builder clearCrc32C()

CRC32c checksum. For more information about using the CRC32c checksum, see https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI.

string crc32c = 11;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearCustomerEncryption()

public StorageObjectData.Builder clearCustomerEncryption()

Metadata of customer-supplied encryption key, if the object is encrypted by such a key.

.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;

Returns
TypeDescription
StorageObjectData.Builder

clearEtag()

public StorageObjectData.Builder clearEtag()

HTTP 1.1 Entity tag for the object. See https://tools.ietf.org/html/rfc7232#section-2.3.

string etag = 14;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearEventBasedHold()

public StorageObjectData.Builder clearEventBasedHold()

Whether an object is under event-based hold.

bool event_based_hold = 29;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGeneration()

public StorageObjectData.Builder clearGeneration()

The content generation of this object. Used for object versioning. Attempting to set this field will result in an error.

int64 generation = 26;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearId()

public StorageObjectData.Builder clearId()

The ID of the object, including the bucket name, object name, and generation number.

string id = 24;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearKind()

public StorageObjectData.Builder clearKind()

The kind of item this is. For objects, this is always "storage#object".

string kind = 102;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearKmsKeyName()

public StorageObjectData.Builder clearKmsKeyName()

Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key.

string kms_key_name = 17;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearMd5Hash()

public StorageObjectData.Builder clearMd5Hash()

MD5 hash of the data; encoded using base64 as per https://tools.ietf.org/html/rfc4648#section-4. For more information about using the MD5 hash, see https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI.

string md5_hash = 13;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

public StorageObjectData.Builder clearMediaLink()

Media download link.

string media_link = 100;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearMetadata()

public StorageObjectData.Builder clearMetadata()
Returns
TypeDescription
StorageObjectData.Builder

clearMetageneration()

public StorageObjectData.Builder clearMetageneration()

The version of the metadata for this object at this generation. 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 = 6;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearName()

public StorageObjectData.Builder clearName()

The name of the object.

string name = 23;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRetentionExpirationTime()

public StorageObjectData.Builder clearRetentionExpirationTime()

A server-determined value that specifies the earliest time that the object's retention period expires.

.google.protobuf.Timestamp retention_expiration_time = 20;

Returns
TypeDescription
StorageObjectData.Builder
public StorageObjectData.Builder clearSelfLink()

The link to this object.

string self_link = 101;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearSize()

public StorageObjectData.Builder clearSize()

Content-Length of the object data in bytes, matching https://tools.ietf.org/html/rfc7230#section-3.3.2.

int64 size = 9;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearStorageClass()

public StorageObjectData.Builder clearStorageClass()

Storage class of the object.

string storage_class = 16;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearTemporaryHold()

public StorageObjectData.Builder clearTemporaryHold()

Whether an object is under temporary hold.

bool temporary_hold = 19;

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

clearTimeCreated()

public StorageObjectData.Builder clearTimeCreated()

The creation time of the object. Attempting to set this field will result in an error.

.google.protobuf.Timestamp time_created = 10;

Returns
TypeDescription
StorageObjectData.Builder

clearTimeDeleted()

public StorageObjectData.Builder clearTimeDeleted()

The deletion time of the object. Will be returned if and only if this version of the object has been deleted.

.google.protobuf.Timestamp time_deleted = 7;

Returns
TypeDescription
StorageObjectData.Builder

clearTimeStorageClassUpdated()

public StorageObjectData.Builder clearTimeStorageClassUpdated()

The time at which the object's storage class was last changed.

.google.protobuf.Timestamp time_storage_class_updated = 18;

Returns
TypeDescription
StorageObjectData.Builder

clearUpdated()

public StorageObjectData.Builder clearUpdated()

The modification time of the object metadata.

.google.protobuf.Timestamp updated = 15;

Returns
TypeDescription
StorageObjectData.Builder

clone()

public StorageObjectData.Builder clone()
Returns
TypeDescription
StorageObjectData.Builder
Overrides

containsMetadata(String key)

public boolean containsMetadata(String key)

User-provided metadata, in key/value pairs.

map<string, string> metadata = 21;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getBucket()

public String getBucket()

The name of the bucket containing this object.

string bucket = 25;

Returns
TypeDescription
String

The bucket.

getBucketBytes()

public ByteString getBucketBytes()

The name of the bucket containing this object.

string bucket = 25;

Returns
TypeDescription
ByteString

The bytes for bucket.

getCacheControl()

public String getCacheControl()

Cache-Control directive for the object data, matching https://tools.ietf.org/html/rfc7234#section-5.2".

string cache_control = 3;

Returns
TypeDescription
String

The cacheControl.

getCacheControlBytes()

public ByteString getCacheControlBytes()

Cache-Control directive for the object data, matching https://tools.ietf.org/html/rfc7234#section-5.2".

string cache_control = 3;

Returns
TypeDescription
ByteString

The bytes for cacheControl.

getComponentCount()

public int getComponentCount()

Number of underlying components that make up this object. Components are accumulated by compose operations. Attempting to set this field will result in an error.

int32 component_count = 12;

Returns
TypeDescription
int

The componentCount.

getContentDisposition()

public String getContentDisposition()

Content-Disposition of the object data, matching https://tools.ietf.org/html/rfc6266.

string content_disposition = 2;

Returns
TypeDescription
String

The contentDisposition.

getContentDispositionBytes()

public ByteString getContentDispositionBytes()

Content-Disposition of the object data, matching https://tools.ietf.org/html/rfc6266.

string content_disposition = 2;

Returns
TypeDescription
ByteString

The bytes for contentDisposition.

getContentEncoding()

public String getContentEncoding()

Content-Encoding of the object data, matching https://tools.ietf.org/html/rfc7231#section-3.1.2.2

string content_encoding = 1;

Returns
TypeDescription
String

The contentEncoding.

getContentEncodingBytes()

public ByteString getContentEncodingBytes()

Content-Encoding of the object data, matching https://tools.ietf.org/html/rfc7231#section-3.1.2.2

string content_encoding = 1;

Returns
TypeDescription
ByteString

The bytes for contentEncoding.

getContentLanguage()

public String getContentLanguage()

Content-Language of the object data, matching https://tools.ietf.org/html/rfc7231#section-3.1.3.2.

string content_language = 5;

Returns
TypeDescription
String

The contentLanguage.

getContentLanguageBytes()

public ByteString getContentLanguageBytes()

Content-Language of the object data, matching https://tools.ietf.org/html/rfc7231#section-3.1.3.2.

string content_language = 5;

Returns
TypeDescription
ByteString

The bytes for contentLanguage.

getContentType()

public String getContentType()

Content-Type of the object data, matching https://tools.ietf.org/html/rfc7231#section-3.1.1.5. If an object is stored without a Content-Type, it is served as application/octet-stream.

string content_type = 8;

Returns
TypeDescription
String

The contentType.

getContentTypeBytes()

public ByteString getContentTypeBytes()

Content-Type of the object data, matching https://tools.ietf.org/html/rfc7231#section-3.1.1.5. If an object is stored without a Content-Type, it is served as application/octet-stream.

string content_type = 8;

Returns
TypeDescription
ByteString

The bytes for contentType.

getCrc32C()

public String getCrc32C()

CRC32c checksum. For more information about using the CRC32c checksum, see https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI.

string crc32c = 11;

Returns
TypeDescription
String

The crc32c.

getCrc32CBytes()

public ByteString getCrc32CBytes()

CRC32c checksum. For more information about using the CRC32c checksum, see https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI.

string crc32c = 11;

Returns
TypeDescription
ByteString

The bytes for crc32c.

getCustomerEncryption()

public StorageObjectData.CustomerEncryption getCustomerEncryption()

Metadata of customer-supplied encryption key, if the object is encrypted by such a key.

.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;

Returns
TypeDescription
StorageObjectData.CustomerEncryption

The customerEncryption.

getCustomerEncryptionBuilder()

public StorageObjectData.CustomerEncryption.Builder getCustomerEncryptionBuilder()

Metadata of customer-supplied encryption key, if the object is encrypted by such a key.

.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;

Returns
TypeDescription
StorageObjectData.CustomerEncryption.Builder

getCustomerEncryptionOrBuilder()

public StorageObjectData.CustomerEncryptionOrBuilder getCustomerEncryptionOrBuilder()

Metadata of customer-supplied encryption key, if the object is encrypted by such a key.

.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;

Returns
TypeDescription
StorageObjectData.CustomerEncryptionOrBuilder

getDefaultInstanceForType()

public StorageObjectData getDefaultInstanceForType()
Returns
TypeDescription
StorageObjectData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEtag()

public String getEtag()

HTTP 1.1 Entity tag for the object. See https://tools.ietf.org/html/rfc7232#section-2.3.

string etag = 14;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

HTTP 1.1 Entity tag for the object. See https://tools.ietf.org/html/rfc7232#section-2.3.

string etag = 14;

Returns
TypeDescription
ByteString

The bytes for etag.

getEventBasedHold()

public boolean getEventBasedHold()

Whether an object is under event-based hold.

bool event_based_hold = 29;

Returns
TypeDescription
boolean

The eventBasedHold.

getGeneration()

public long getGeneration()

The content generation of this object. Used for object versioning. Attempting to set this field will result in an error.

int64 generation = 26;

Returns
TypeDescription
long

The generation.

getId()

public String getId()

The ID of the object, including the bucket name, object name, and generation number.

string id = 24;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

The ID of the object, including the bucket name, object name, and generation number.

string id = 24;

Returns
TypeDescription
ByteString

The bytes for id.

getKind()

public String getKind()

The kind of item this is. For objects, this is always "storage#object".

string kind = 102;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

The kind of item this is. For objects, this is always "storage#object".

string kind = 102;

Returns
TypeDescription
ByteString

The bytes for kind.

getKmsKeyName()

public String getKmsKeyName()

Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key.

string kms_key_name = 17;

Returns
TypeDescription
String

The kmsKeyName.

getKmsKeyNameBytes()

public ByteString getKmsKeyNameBytes()

Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key.

string kms_key_name = 17;

Returns
TypeDescription
ByteString

The bytes for kmsKeyName.

getMd5Hash()

public String getMd5Hash()

MD5 hash of the data; encoded using base64 as per https://tools.ietf.org/html/rfc4648#section-4. For more information about using the MD5 hash, see https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI.

string md5_hash = 13;

Returns
TypeDescription
String

The md5Hash.

getMd5HashBytes()

public ByteString getMd5HashBytes()

MD5 hash of the data; encoded using base64 as per https://tools.ietf.org/html/rfc4648#section-4. For more information about using the MD5 hash, see https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI.

string md5_hash = 13;

Returns
TypeDescription
ByteString

The bytes for md5Hash.

public String getMediaLink()

Media download link.

string media_link = 100;

Returns
TypeDescription
String

The mediaLink.

getMediaLinkBytes()

public ByteString getMediaLinkBytes()

Media download link.

string media_link = 100;

Returns
TypeDescription
ByteString

The bytes for mediaLink.

getMetadata()

public Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
TypeDescription
Map<String,String>

getMetadataCount()

public int getMetadataCount()

User-provided metadata, in key/value pairs.

map<string, string> metadata = 21;

Returns
TypeDescription
int

getMetadataMap()

public Map<String,String> getMetadataMap()

User-provided metadata, in key/value pairs.

map<string, string> metadata = 21;

Returns
TypeDescription
Map<String,String>

getMetadataOrDefault(String key, String defaultValue)

public String getMetadataOrDefault(String key, String defaultValue)

User-provided metadata, in key/value pairs.

map<string, string> metadata = 21;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getMetadataOrThrow(String key)

public String getMetadataOrThrow(String key)

User-provided metadata, in key/value pairs.

map<string, string> metadata = 21;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMetageneration()

public long getMetageneration()

The version of the metadata for this object at this generation. 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 = 6;

Returns
TypeDescription
long

The metageneration.

getMutableMetadata()

public Map<String,String> getMutableMetadata()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

The name of the object.

string name = 23;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the object.

string name = 23;

Returns
TypeDescription
ByteString

The bytes for name.

getRetentionExpirationTime()

public Timestamp getRetentionExpirationTime()

A server-determined value that specifies the earliest time that the object's retention period expires.

.google.protobuf.Timestamp retention_expiration_time = 20;

Returns
TypeDescription
Timestamp

The retentionExpirationTime.

getRetentionExpirationTimeBuilder()

public Timestamp.Builder getRetentionExpirationTimeBuilder()

A server-determined value that specifies the earliest time that the object's retention period expires.

.google.protobuf.Timestamp retention_expiration_time = 20;

Returns
TypeDescription
Builder

getRetentionExpirationTimeOrBuilder()

public TimestampOrBuilder getRetentionExpirationTimeOrBuilder()

A server-determined value that specifies the earliest time that the object's retention period expires.

.google.protobuf.Timestamp retention_expiration_time = 20;

Returns
TypeDescription
TimestampOrBuilder
public String getSelfLink()

The link to this object.

string self_link = 101;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

The link to this object.

string self_link = 101;

Returns
TypeDescription
ByteString

The bytes for selfLink.

getSize()

public long getSize()

Content-Length of the object data in bytes, matching https://tools.ietf.org/html/rfc7230#section-3.3.2.

int64 size = 9;

Returns
TypeDescription
long

The size.

getStorageClass()

public String getStorageClass()

Storage class of the object.

string storage_class = 16;

Returns
TypeDescription
String

The storageClass.

getStorageClassBytes()

public ByteString getStorageClassBytes()

Storage class of the object.

string storage_class = 16;

Returns
TypeDescription
ByteString

The bytes for storageClass.

getTemporaryHold()

public boolean getTemporaryHold()

Whether an object is under temporary hold.

bool temporary_hold = 19;

Returns
TypeDescription
boolean

The temporaryHold.

getTimeCreated()

public Timestamp getTimeCreated()

The creation time of the object. Attempting to set this field will result in an error.

.google.protobuf.Timestamp time_created = 10;

Returns
TypeDescription
Timestamp

The timeCreated.

getTimeCreatedBuilder()

public Timestamp.Builder getTimeCreatedBuilder()

The creation time of the object. Attempting to set this field will result in an error.

.google.protobuf.Timestamp time_created = 10;

Returns
TypeDescription
Builder

getTimeCreatedOrBuilder()

public TimestampOrBuilder getTimeCreatedOrBuilder()

The creation time of the object. Attempting to set this field will result in an error.

.google.protobuf.Timestamp time_created = 10;

Returns
TypeDescription
TimestampOrBuilder

getTimeDeleted()

public Timestamp getTimeDeleted()

The deletion time of the object. Will be returned if and only if this version of the object has been deleted.

.google.protobuf.Timestamp time_deleted = 7;

Returns
TypeDescription
Timestamp

The timeDeleted.

getTimeDeletedBuilder()

public Timestamp.Builder getTimeDeletedBuilder()

The deletion time of the object. Will be returned if and only if this version of the object has been deleted.

.google.protobuf.Timestamp time_deleted = 7;

Returns
TypeDescription
Builder

getTimeDeletedOrBuilder()

public TimestampOrBuilder getTimeDeletedOrBuilder()

The deletion time of the object. Will be returned if and only if this version of the object has been deleted.

.google.protobuf.Timestamp time_deleted = 7;

Returns
TypeDescription
TimestampOrBuilder

getTimeStorageClassUpdated()

public Timestamp getTimeStorageClassUpdated()

The time at which the object's storage class was last changed.

.google.protobuf.Timestamp time_storage_class_updated = 18;

Returns
TypeDescription
Timestamp

The timeStorageClassUpdated.

getTimeStorageClassUpdatedBuilder()

public Timestamp.Builder getTimeStorageClassUpdatedBuilder()

The time at which the object's storage class was last changed.

.google.protobuf.Timestamp time_storage_class_updated = 18;

Returns
TypeDescription
Builder

getTimeStorageClassUpdatedOrBuilder()

public TimestampOrBuilder getTimeStorageClassUpdatedOrBuilder()

The time at which the object's storage class was last changed.

.google.protobuf.Timestamp time_storage_class_updated = 18;

Returns
TypeDescription
TimestampOrBuilder

getUpdated()

public Timestamp getUpdated()

The modification time of the object metadata.

.google.protobuf.Timestamp updated = 15;

Returns
TypeDescription
Timestamp

The updated.

getUpdatedBuilder()

public Timestamp.Builder getUpdatedBuilder()

The modification time of the object metadata.

.google.protobuf.Timestamp updated = 15;

Returns
TypeDescription
Builder

getUpdatedOrBuilder()

public TimestampOrBuilder getUpdatedOrBuilder()

The modification time of the object metadata.

.google.protobuf.Timestamp updated = 15;

Returns
TypeDescription
TimestampOrBuilder

hasCustomerEncryption()

public boolean hasCustomerEncryption()

Metadata of customer-supplied encryption key, if the object is encrypted by such a key.

.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;

Returns
TypeDescription
boolean

Whether the customerEncryption field is set.

hasRetentionExpirationTime()

public boolean hasRetentionExpirationTime()

A server-determined value that specifies the earliest time that the object's retention period expires.

.google.protobuf.Timestamp retention_expiration_time = 20;

Returns
TypeDescription
boolean

Whether the retentionExpirationTime field is set.

hasTimeCreated()

public boolean hasTimeCreated()

The creation time of the object. Attempting to set this field will result in an error.

.google.protobuf.Timestamp time_created = 10;

Returns
TypeDescription
boolean

Whether the timeCreated field is set.

hasTimeDeleted()

public boolean hasTimeDeleted()

The deletion time of the object. Will be returned if and only if this version of the object has been deleted.

.google.protobuf.Timestamp time_deleted = 7;

Returns
TypeDescription
boolean

Whether the timeDeleted field is set.

hasTimeStorageClassUpdated()

public boolean hasTimeStorageClassUpdated()

The time at which the object's storage class was last changed.

.google.protobuf.Timestamp time_storage_class_updated = 18;

Returns
TypeDescription
boolean

Whether the timeStorageClassUpdated field is set.

hasUpdated()

public boolean hasUpdated()

The modification time of the object metadata.

.google.protobuf.Timestamp updated = 15;

Returns
TypeDescription
boolean

Whether the updated field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCustomerEncryption(StorageObjectData.CustomerEncryption value)

public StorageObjectData.Builder mergeCustomerEncryption(StorageObjectData.CustomerEncryption value)

Metadata of customer-supplied encryption key, if the object is encrypted by such a key.

.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;

Parameter
NameDescription
valueStorageObjectData.CustomerEncryption
Returns
TypeDescription
StorageObjectData.Builder

mergeFrom(StorageObjectData other)

public StorageObjectData.Builder mergeFrom(StorageObjectData other)
Parameter
NameDescription
otherStorageObjectData
Returns
TypeDescription
StorageObjectData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRetentionExpirationTime(Timestamp value)

public StorageObjectData.Builder mergeRetentionExpirationTime(Timestamp value)

A server-determined value that specifies the earliest time that the object's retention period expires.

.google.protobuf.Timestamp retention_expiration_time = 20;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
StorageObjectData.Builder

mergeTimeCreated(Timestamp value)

public StorageObjectData.Builder mergeTimeCreated(Timestamp value)

The creation time of the object. Attempting to set this field will result in an error.

.google.protobuf.Timestamp time_created = 10;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
StorageObjectData.Builder

mergeTimeDeleted(Timestamp value)

public StorageObjectData.Builder mergeTimeDeleted(Timestamp value)

The deletion time of the object. Will be returned if and only if this version of the object has been deleted.

.google.protobuf.Timestamp time_deleted = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
StorageObjectData.Builder

mergeTimeStorageClassUpdated(Timestamp value)

public StorageObjectData.Builder mergeTimeStorageClassUpdated(Timestamp value)

The time at which the object's storage class was last changed.

.google.protobuf.Timestamp time_storage_class_updated = 18;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
StorageObjectData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdated(Timestamp value)

public StorageObjectData.Builder mergeUpdated(Timestamp value)

The modification time of the object metadata.

.google.protobuf.Timestamp updated = 15;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
StorageObjectData.Builder

putAllMetadata(Map<String,String> values)

public StorageObjectData.Builder putAllMetadata(Map<String,String> values)

User-provided metadata, in key/value pairs.

map<string, string> metadata = 21;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
StorageObjectData.Builder

putMetadata(String key, String value)

public StorageObjectData.Builder putMetadata(String key, String value)

User-provided metadata, in key/value pairs.

map<string, string> metadata = 21;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
StorageObjectData.Builder

removeMetadata(String key)

public StorageObjectData.Builder removeMetadata(String key)

User-provided metadata, in key/value pairs.

map<string, string> metadata = 21;

Parameter
NameDescription
keyString
Returns
TypeDescription
StorageObjectData.Builder

setBucket(String value)

public StorageObjectData.Builder setBucket(String value)

The name of the bucket containing this object.

string bucket = 25;

Parameter
NameDescription
valueString

The bucket to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setBucketBytes(ByteString value)

public StorageObjectData.Builder setBucketBytes(ByteString value)

The name of the bucket containing this object.

string bucket = 25;

Parameter
NameDescription
valueByteString

The bytes for bucket to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setCacheControl(String value)

public StorageObjectData.Builder setCacheControl(String value)

Cache-Control directive for the object data, matching https://tools.ietf.org/html/rfc7234#section-5.2".

string cache_control = 3;

Parameter
NameDescription
valueString

The cacheControl to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setCacheControlBytes(ByteString value)

public StorageObjectData.Builder setCacheControlBytes(ByteString value)

Cache-Control directive for the object data, matching https://tools.ietf.org/html/rfc7234#section-5.2".

string cache_control = 3;

Parameter
NameDescription
valueByteString

The bytes for cacheControl to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setComponentCount(int value)

public StorageObjectData.Builder setComponentCount(int value)

Number of underlying components that make up this object. Components are accumulated by compose operations. Attempting to set this field will result in an error.

int32 component_count = 12;

Parameter
NameDescription
valueint

The componentCount to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setContentDisposition(String value)

public StorageObjectData.Builder setContentDisposition(String value)

Content-Disposition of the object data, matching https://tools.ietf.org/html/rfc6266.

string content_disposition = 2;

Parameter
NameDescription
valueString

The contentDisposition to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setContentDispositionBytes(ByteString value)

public StorageObjectData.Builder setContentDispositionBytes(ByteString value)

Content-Disposition of the object data, matching https://tools.ietf.org/html/rfc6266.

string content_disposition = 2;

Parameter
NameDescription
valueByteString

The bytes for contentDisposition to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setContentEncoding(String value)

public StorageObjectData.Builder setContentEncoding(String value)

Content-Encoding of the object data, matching https://tools.ietf.org/html/rfc7231#section-3.1.2.2

string content_encoding = 1;

Parameter
NameDescription
valueString

The contentEncoding to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setContentEncodingBytes(ByteString value)

public StorageObjectData.Builder setContentEncodingBytes(ByteString value)

Content-Encoding of the object data, matching https://tools.ietf.org/html/rfc7231#section-3.1.2.2

string content_encoding = 1;

Parameter
NameDescription
valueByteString

The bytes for contentEncoding to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setContentLanguage(String value)

public StorageObjectData.Builder setContentLanguage(String value)

Content-Language of the object data, matching https://tools.ietf.org/html/rfc7231#section-3.1.3.2.

string content_language = 5;

Parameter
NameDescription
valueString

The contentLanguage to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setContentLanguageBytes(ByteString value)

public StorageObjectData.Builder setContentLanguageBytes(ByteString value)

Content-Language of the object data, matching https://tools.ietf.org/html/rfc7231#section-3.1.3.2.

string content_language = 5;

Parameter
NameDescription
valueByteString

The bytes for contentLanguage to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setContentType(String value)

public StorageObjectData.Builder setContentType(String value)

Content-Type of the object data, matching https://tools.ietf.org/html/rfc7231#section-3.1.1.5. If an object is stored without a Content-Type, it is served as application/octet-stream.

string content_type = 8;

Parameter
NameDescription
valueString

The contentType to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setContentTypeBytes(ByteString value)

public StorageObjectData.Builder setContentTypeBytes(ByteString value)

Content-Type of the object data, matching https://tools.ietf.org/html/rfc7231#section-3.1.1.5. If an object is stored without a Content-Type, it is served as application/octet-stream.

string content_type = 8;

Parameter
NameDescription
valueByteString

The bytes for contentType to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setCrc32C(String value)

public StorageObjectData.Builder setCrc32C(String value)

CRC32c checksum. For more information about using the CRC32c checksum, see https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI.

string crc32c = 11;

Parameter
NameDescription
valueString

The crc32c to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setCrc32CBytes(ByteString value)

public StorageObjectData.Builder setCrc32CBytes(ByteString value)

CRC32c checksum. For more information about using the CRC32c checksum, see https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI.

string crc32c = 11;

Parameter
NameDescription
valueByteString

The bytes for crc32c to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setCustomerEncryption(StorageObjectData.CustomerEncryption value)

public StorageObjectData.Builder setCustomerEncryption(StorageObjectData.CustomerEncryption value)

Metadata of customer-supplied encryption key, if the object is encrypted by such a key.

.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;

Parameter
NameDescription
valueStorageObjectData.CustomerEncryption
Returns
TypeDescription
StorageObjectData.Builder

setCustomerEncryption(StorageObjectData.CustomerEncryption.Builder builderForValue)

public StorageObjectData.Builder setCustomerEncryption(StorageObjectData.CustomerEncryption.Builder builderForValue)

Metadata of customer-supplied encryption key, if the object is encrypted by such a key.

.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;

Parameter
NameDescription
builderForValueStorageObjectData.CustomerEncryption.Builder
Returns
TypeDescription
StorageObjectData.Builder

setEtag(String value)

public StorageObjectData.Builder setEtag(String value)

HTTP 1.1 Entity tag for the object. See https://tools.ietf.org/html/rfc7232#section-2.3.

string etag = 14;

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public StorageObjectData.Builder setEtagBytes(ByteString value)

HTTP 1.1 Entity tag for the object. See https://tools.ietf.org/html/rfc7232#section-2.3.

string etag = 14;

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setEventBasedHold(boolean value)

public StorageObjectData.Builder setEventBasedHold(boolean value)

Whether an object is under event-based hold.

bool event_based_hold = 29;

Parameter
NameDescription
valueboolean

The eventBasedHold to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGeneration(long value)

public StorageObjectData.Builder setGeneration(long value)

The content generation of this object. Used for object versioning. Attempting to set this field will result in an error.

int64 generation = 26;

Parameter
NameDescription
valuelong

The generation to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setId(String value)

public StorageObjectData.Builder setId(String value)

The ID of the object, including the bucket name, object name, and generation number.

string id = 24;

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setIdBytes(ByteString value)

public StorageObjectData.Builder setIdBytes(ByteString value)

The ID of the object, including the bucket name, object name, and generation number.

string id = 24;

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setKind(String value)

public StorageObjectData.Builder setKind(String value)

The kind of item this is. For objects, this is always "storage#object".

string kind = 102;

Parameter
NameDescription
valueString

The kind to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setKindBytes(ByteString value)

public StorageObjectData.Builder setKindBytes(ByteString value)

The kind of item this is. For objects, this is always "storage#object".

string kind = 102;

Parameter
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setKmsKeyName(String value)

public StorageObjectData.Builder setKmsKeyName(String value)

Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key.

string kms_key_name = 17;

Parameter
NameDescription
valueString

The kmsKeyName to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setKmsKeyNameBytes(ByteString value)

public StorageObjectData.Builder setKmsKeyNameBytes(ByteString value)

Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key.

string kms_key_name = 17;

Parameter
NameDescription
valueByteString

The bytes for kmsKeyName to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setMd5Hash(String value)

public StorageObjectData.Builder setMd5Hash(String value)

MD5 hash of the data; encoded using base64 as per https://tools.ietf.org/html/rfc4648#section-4. For more information about using the MD5 hash, see https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI.

string md5_hash = 13;

Parameter
NameDescription
valueString

The md5Hash to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setMd5HashBytes(ByteString value)

public StorageObjectData.Builder setMd5HashBytes(ByteString value)

MD5 hash of the data; encoded using base64 as per https://tools.ietf.org/html/rfc4648#section-4. For more information about using the MD5 hash, see https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI.

string md5_hash = 13;

Parameter
NameDescription
valueByteString

The bytes for md5Hash to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

public StorageObjectData.Builder setMediaLink(String value)

Media download link.

string media_link = 100;

Parameter
NameDescription
valueString

The mediaLink to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setMediaLinkBytes(ByteString value)

public StorageObjectData.Builder setMediaLinkBytes(ByteString value)

Media download link.

string media_link = 100;

Parameter
NameDescription
valueByteString

The bytes for mediaLink to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setMetageneration(long value)

public StorageObjectData.Builder setMetageneration(long value)

The version of the metadata for this object at this generation. 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 = 6;

Parameter
NameDescription
valuelong

The metageneration to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setName(String value)

public StorageObjectData.Builder setName(String value)

The name of the object.

string name = 23;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setNameBytes(ByteString value)

public StorageObjectData.Builder setNameBytes(ByteString value)

The name of the object.

string name = 23;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

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

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

setRetentionExpirationTime(Timestamp value)

public StorageObjectData.Builder setRetentionExpirationTime(Timestamp value)

A server-determined value that specifies the earliest time that the object's retention period expires.

.google.protobuf.Timestamp retention_expiration_time = 20;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
StorageObjectData.Builder

setRetentionExpirationTime(Timestamp.Builder builderForValue)

public StorageObjectData.Builder setRetentionExpirationTime(Timestamp.Builder builderForValue)

A server-determined value that specifies the earliest time that the object's retention period expires.

.google.protobuf.Timestamp retention_expiration_time = 20;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
StorageObjectData.Builder
public StorageObjectData.Builder setSelfLink(String value)

The link to this object.

string self_link = 101;

Parameter
NameDescription
valueString

The selfLink to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public StorageObjectData.Builder setSelfLinkBytes(ByteString value)

The link to this object.

string self_link = 101;

Parameter
NameDescription
valueByteString

The bytes for selfLink to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setSize(long value)

public StorageObjectData.Builder setSize(long value)

Content-Length of the object data in bytes, matching https://tools.ietf.org/html/rfc7230#section-3.3.2.

int64 size = 9;

Parameter
NameDescription
valuelong

The size to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setStorageClass(String value)

public StorageObjectData.Builder setStorageClass(String value)

Storage class of the object.

string storage_class = 16;

Parameter
NameDescription
valueString

The storageClass to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setStorageClassBytes(ByteString value)

public StorageObjectData.Builder setStorageClassBytes(ByteString value)

Storage class of the object.

string storage_class = 16;

Parameter
NameDescription
valueByteString

The bytes for storageClass to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setTemporaryHold(boolean value)

public StorageObjectData.Builder setTemporaryHold(boolean value)

Whether an object is under temporary hold.

bool temporary_hold = 19;

Parameter
NameDescription
valueboolean

The temporaryHold to set.

Returns
TypeDescription
StorageObjectData.Builder

This builder for chaining.

setTimeCreated(Timestamp value)

public StorageObjectData.Builder setTimeCreated(Timestamp value)

The creation time of the object. Attempting to set this field will result in an error.

.google.protobuf.Timestamp time_created = 10;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
StorageObjectData.Builder

setTimeCreated(Timestamp.Builder builderForValue)

public StorageObjectData.Builder setTimeCreated(Timestamp.Builder builderForValue)

The creation time of the object. Attempting to set this field will result in an error.

.google.protobuf.Timestamp time_created = 10;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
StorageObjectData.Builder

setTimeDeleted(Timestamp value)

public StorageObjectData.Builder setTimeDeleted(Timestamp value)

The deletion time of the object. Will be returned if and only if this version of the object has been deleted.

.google.protobuf.Timestamp time_deleted = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
StorageObjectData.Builder

setTimeDeleted(Timestamp.Builder builderForValue)

public StorageObjectData.Builder setTimeDeleted(Timestamp.Builder builderForValue)

The deletion time of the object. Will be returned if and only if this version of the object has been deleted.

.google.protobuf.Timestamp time_deleted = 7;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
StorageObjectData.Builder

setTimeStorageClassUpdated(Timestamp value)

public StorageObjectData.Builder setTimeStorageClassUpdated(Timestamp value)

The time at which the object's storage class was last changed.

.google.protobuf.Timestamp time_storage_class_updated = 18;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
StorageObjectData.Builder

setTimeStorageClassUpdated(Timestamp.Builder builderForValue)

public StorageObjectData.Builder setTimeStorageClassUpdated(Timestamp.Builder builderForValue)

The time at which the object's storage class was last changed.

.google.protobuf.Timestamp time_storage_class_updated = 18;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
StorageObjectData.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdated(Timestamp value)

public StorageObjectData.Builder setUpdated(Timestamp value)

The modification time of the object metadata.

.google.protobuf.Timestamp updated = 15;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
StorageObjectData.Builder

setUpdated(Timestamp.Builder builderForValue)

public StorageObjectData.Builder setUpdated(Timestamp.Builder builderForValue)

The modification time of the object metadata.

.google.protobuf.Timestamp updated = 15;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
StorageObjectData.Builder