Class StorageObjectData.Builder (0.15.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StorageObjectData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StorageObjectData.Builder
Overrides

build()

public StorageObjectData build()
Returns
Type Description
StorageObjectData

buildPartial()

public StorageObjectData buildPartial()
Returns
Type Description
StorageObjectData

clear()

public StorageObjectData.Builder clear()
Returns
Type Description
StorageObjectData.Builder
Overrides

clearBucket()

public StorageObjectData.Builder clearBucket()

The name of the bucket containing this object.

string bucket = 25;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
StorageObjectData.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public StorageObjectData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
StorageObjectData.Builder

This builder for chaining.

public StorageObjectData.Builder clearMediaLink()

Media download link.

string media_link = 100;

Returns
Type Description
StorageObjectData.Builder

This builder for chaining.

clearMetadata()

public StorageObjectData.Builder clearMetadata()
Returns
Type Description
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
Type Description
StorageObjectData.Builder

This builder for chaining.

clearName()

public StorageObjectData.Builder clearName()

The name of the object.

string name = 23;

Returns
Type Description
StorageObjectData.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public StorageObjectData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
StorageObjectData.Builder
public StorageObjectData.Builder clearSelfLink()

The link to this object.

string self_link = 101;

Returns
Type Description
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
Type Description
StorageObjectData.Builder

This builder for chaining.

clearStorageClass()

public StorageObjectData.Builder clearStorageClass()

Storage class of the object.

string storage_class = 16;

Returns
Type Description
StorageObjectData.Builder

This builder for chaining.

clearTemporaryHold()

public StorageObjectData.Builder clearTemporaryHold()

Whether an object is under temporary hold.

bool temporary_hold = 19;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
StorageObjectData.Builder

clearUpdated()

public StorageObjectData.Builder clearUpdated()

The modification time of the object metadata.

.google.protobuf.Timestamp updated = 15;

Returns
Type Description
StorageObjectData.Builder

clone()

public StorageObjectData.Builder clone()
Returns
Type Description
StorageObjectData.Builder
Overrides

containsMetadata(String key)

public boolean containsMetadata(String key)

User-provided metadata, in key/value pairs.

map<string, string> metadata = 21;

Parameter
Name Description
key String
Returns
Type Description
boolean

getBucket()

public String getBucket()

The name of the bucket containing this object.

string bucket = 25;

Returns
Type Description
String

The bucket.

getBucketBytes()

public ByteString getBucketBytes()

The name of the bucket containing this object.

string bucket = 25;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
StorageObjectData.CustomerEncryptionOrBuilder

getDefaultInstanceForType()

public StorageObjectData getDefaultInstanceForType()
Returns
Type Description
StorageObjectData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for etag.

getEventBasedHold()

public boolean getEventBasedHold()

Whether an object is under event-based hold.

bool event_based_hold = 29;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

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

string kind = 102;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for md5Hash.

public String getMediaLink()

Media download link.

string media_link = 100;

Returns
Type Description
String

The mediaLink.

getMediaLinkBytes()

public ByteString getMediaLinkBytes()

Media download link.

string media_link = 100;

Returns
Type Description
ByteString

The bytes for mediaLink.

getMetadata()

public Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
Type Description
Map<String,String>

getMetadataCount()

public int getMetadataCount()

User-provided metadata, in key/value pairs.

map<string, string> metadata = 21;

Returns
Type Description
int

getMetadataMap()

public Map<String,String> getMetadataMap()

User-provided metadata, in key/value pairs.

map<string, string> metadata = 21;

Returns
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
String

getMetadataOrThrow(String key)

public String getMetadataOrThrow(String key)

User-provided metadata, in key/value pairs.

map<string, string> metadata = 21;

Parameter
Name Description
key String
Returns
Type Description
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
Type Description
long

The metageneration.

getMutableMetadata()

public Map<String,String> getMutableMetadata()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

The name of the object.

string name = 23;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the object.

string name = 23;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
TimestampOrBuilder
public String getSelfLink()

The link to this object.

string self_link = 101;

Returns
Type Description
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

The link to this object.

string self_link = 101;

Returns
Type Description
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
Type Description
long

The size.

getStorageClass()

public String getStorageClass()

Storage class of the object.

string storage_class = 16;

Returns
Type Description
String

The storageClass.

getStorageClassBytes()

public ByteString getStorageClassBytes()

Storage class of the object.

string storage_class = 16;

Returns
Type Description
ByteString

The bytes for storageClass.

getTemporaryHold()

public boolean getTemporaryHold()

Whether an object is under temporary hold.

bool temporary_hold = 19;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
TimestampOrBuilder

getUpdated()

public Timestamp getUpdated()

The modification time of the object metadata.

.google.protobuf.Timestamp updated = 15;

Returns
Type Description
Timestamp

The updated.

getUpdatedBuilder()

public Timestamp.Builder getUpdatedBuilder()

The modification time of the object metadata.

.google.protobuf.Timestamp updated = 15;

Returns
Type Description
Builder

getUpdatedOrBuilder()

public TimestampOrBuilder getUpdatedOrBuilder()

The modification time of the object metadata.

.google.protobuf.Timestamp updated = 15;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the timeStorageClassUpdated field is set.

hasUpdated()

public boolean hasUpdated()

The modification time of the object metadata.

.google.protobuf.Timestamp updated = 15;

Returns
Type Description
boolean

Whether the updated field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value StorageObjectData.CustomerEncryption
Returns
Type Description
StorageObjectData.Builder

mergeFrom(StorageObjectData other)

public StorageObjectData.Builder mergeFrom(StorageObjectData other)
Parameter
Name Description
other StorageObjectData
Returns
Type Description
StorageObjectData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StorageObjectData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StorageObjectData.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StorageObjectData.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
StorageObjectData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StorageObjectData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
StorageObjectData.Builder

removeMetadata(String key)

public StorageObjectData.Builder removeMetadata(String key)

User-provided metadata, in key/value pairs.

map<string, string> metadata = 21;

Parameter
Name Description
key String
Returns
Type Description
StorageObjectData.Builder

setBucket(String value)

public StorageObjectData.Builder setBucket(String value)

The name of the bucket containing this object.

string bucket = 25;

Parameter
Name Description
value String

The bucket to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for bucket to set.

Returns
Type Description
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
Name Description
value String

The cacheControl to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for cacheControl to set.

Returns
Type Description
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
Name Description
value int

The componentCount to set.

Returns
Type Description
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
Name Description
value String

The contentDisposition to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for contentDisposition to set.

Returns
Type Description
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
Name Description
value String

The contentEncoding to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for contentEncoding to set.

Returns
Type Description
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
Name Description
value String

The contentLanguage to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for contentLanguage to set.

Returns
Type Description
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
Name Description
value String

The contentType to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for contentType to set.

Returns
Type Description
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
Name Description
value String

The crc32c to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for crc32c to set.

Returns
Type Description
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
Name Description
value StorageObjectData.CustomerEncryption
Returns
Type Description
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
Name Description
builderForValue StorageObjectData.CustomerEncryption.Builder
Returns
Type Description
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
Name Description
value String

The etag to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
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
Name Description
value boolean

The eventBasedHold to set.

Returns
Type Description
StorageObjectData.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public StorageObjectData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value long

The generation to set.

Returns
Type Description
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
Name Description
value String

The id to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
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
Name Description
value String

The kind to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
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
Name Description
value String

The kmsKeyName to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for kmsKeyName to set.

Returns
Type Description
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
Name Description
value String

The md5Hash to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for md5Hash to set.

Returns
Type Description
StorageObjectData.Builder

This builder for chaining.

public StorageObjectData.Builder setMediaLink(String value)

Media download link.

string media_link = 100;

Parameter
Name Description
value String

The mediaLink to set.

Returns
Type Description
StorageObjectData.Builder

This builder for chaining.

setMediaLinkBytes(ByteString value)

public StorageObjectData.Builder setMediaLinkBytes(ByteString value)

Media download link.

string media_link = 100;

Parameter
Name Description
value ByteString

The bytes for mediaLink to set.

Returns
Type Description
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
Name Description
value long

The metageneration to set.

Returns
Type Description
StorageObjectData.Builder

This builder for chaining.

setName(String value)

public StorageObjectData.Builder setName(String value)

The name of the object.

string name = 23;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
StorageObjectData.Builder

This builder for chaining.

setNameBytes(ByteString value)

public StorageObjectData.Builder setNameBytes(ByteString value)

The name of the object.

string name = 23;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
StorageObjectData.Builder
public StorageObjectData.Builder setSelfLink(String value)

The link to this object.

string self_link = 101;

Parameter
Name Description
value String

The selfLink to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for selfLink to set.

Returns
Type Description
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
Name Description
value long

The size to set.

Returns
Type Description
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
Name Description
value String

The storageClass to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for storageClass to set.

Returns
Type Description
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
Name Description
value boolean

The temporaryHold to set.

Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
StorageObjectData.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final StorageObjectData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
StorageObjectData.Builder