public final class ChecksummedData extends GeneratedMessageV3 implements ChecksummedDataOrBuilder
Message used to convey content being read or written, along with an optional
checksum.
Protobuf type google.storage.v2.ChecksummedData
Static Fields
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
Field Value
CRC32C_FIELD_NUMBER
public static final int CRC32C_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ChecksummedData getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ChecksummedData.Builder newBuilder()
Returns
newBuilder(ChecksummedData prototype)
public static ChecksummedData.Builder newBuilder(ChecksummedData prototype)
Parameter
Returns
public static ChecksummedData parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ChecksummedData parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ChecksummedData parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ChecksummedData parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ChecksummedData parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ChecksummedData parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ChecksummedData parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ChecksummedData parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ChecksummedData parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ChecksummedData parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ChecksummedData parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ChecksummedData parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ChecksummedData> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getContent()
public ByteString getContent()
The data.
bytes content = 1;
Returns
getCrc32C()
If set, the CRC32C digest of the content field.
optional fixed32 crc32c = 2;
Returns
Type |
Description |
int |
The crc32c.
|
getDefaultInstanceForType()
public ChecksummedData getDefaultInstanceForType()
Returns
getParserForType()
public Parser<ChecksummedData> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasCrc32C()
public boolean hasCrc32C()
If set, the CRC32C digest of the content field.
optional fixed32 crc32c = 2;
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
newBuilderForType()
public ChecksummedData.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ChecksummedData.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ChecksummedData.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions