public interface ObjectChecksumsOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
int |
getCrc32C()
CRC32C digest of the object data.
|
com.google.protobuf.ByteString |
getMd5Hash()
128 bit MD5 hash of the object data.
|
boolean |
hasCrc32C()
CRC32C digest of the object data.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
boolean hasCrc32C()
CRC32C digest of the object data. Computed by the Cloud Storage service for all written objects. If set in a WriteObjectRequest, service will validate that the stored object matches this checksum.
optional fixed32 crc32c = 1;
int getCrc32C()
CRC32C digest of the object data. Computed by the Cloud Storage service for all written objects. If set in a WriteObjectRequest, service will validate that the stored object matches this checksum.
optional fixed32 crc32c = 1;
com.google.protobuf.ByteString getMd5Hash()
128 bit MD5 hash of the object data. For more information about using the MD5 hash, see [https://cloud.google.com/storage/docs/hashes-etags#json-api][Hashes and ETags: Best Practices]. Not all objects will provide an MD5 hash. For example, composite objects provide only crc32c hashes. This value is equivalent to running `cat object.txt | openssl md5 -binary`
bytes md5_hash = 2;
Copyright © 2023 Google LLC. All rights reserved.