public final class ObjectChecksums extends GeneratedMessageV3 implements ObjectChecksumsOrBuilder
Message used for storing full (not subrange) object checksums.
Protobuf type google.storage.v2.ObjectChecksums
Fields
CRC32C_FIELD_NUMBER
public static final int CRC32C_FIELD_NUMBER
Field Value
MD5_HASH_FIELD_NUMBER
public static final int MD5_HASH_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getCrc32C()
CRC32C digest of the object data. Computed by the Cloud Storage service for
all written objects.
If set in an WriteObjectRequest, service will validate that the stored
object matches this checksum.
optional fixed32 crc32c = 1;
Returns
Type |
Description |
int |
The crc32c.
|
getDefaultInstance()
public static ObjectChecksums getDefaultInstance()
Returns
getDefaultInstanceForType()
public ObjectChecksums getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getMd5Hash()
public 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.
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;
Returns
getParserForType()
public Parser<ObjectChecksums> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasCrc32C()
public boolean hasCrc32C()
CRC32C digest of the object data. Computed by the Cloud Storage service for
all written objects.
If set in an WriteObjectRequest, service will validate that the stored
object matches this checksum.
optional fixed32 crc32c = 1;
Returns
Type |
Description |
boolean |
Whether the crc32c field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static ObjectChecksums.Builder newBuilder()
Returns
newBuilder(ObjectChecksums prototype)
public static ObjectChecksums.Builder newBuilder(ObjectChecksums prototype)
Parameter
Returns
newBuilderForType()
public ObjectChecksums.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ObjectChecksums.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static ObjectChecksums parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ObjectChecksums parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ObjectChecksums parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ObjectChecksums parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ObjectChecksums parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ObjectChecksums parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ObjectChecksums parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ObjectChecksums parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ObjectChecksums parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ObjectChecksums parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ObjectChecksums parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ObjectChecksums parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ObjectChecksums> parser()
Returns
toBuilder()
public ObjectChecksums.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions