Class ChecksummedData.Builder (2.66.0)

public static final class ChecksummedData.Builder extends GeneratedMessageV3.Builder<ChecksummedData.Builder> implements ChecksummedDataOrBuilder

Data with integrity verification field.

Protobuf type google.cloud.kms.v1.ChecksummedData

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ChecksummedData build()
Returns
TypeDescription
ChecksummedData

buildPartial()

public ChecksummedData buildPartial()
Returns
TypeDescription
ChecksummedData

clear()

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

clearCrc32CChecksum()

public ChecksummedData.Builder clearCrc32CChecksum()

Integrity verification field. A CRC32C checksum of the returned ChecksummedData.data. An integrity check of ChecksummedData.data can be performed by computing the CRC32C checksum of ChecksummedData.data and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.

.google.protobuf.Int64Value crc32c_checksum = 2;

Returns
TypeDescription
ChecksummedData.Builder

clearData()

public ChecksummedData.Builder clearData()

Raw Data.

bytes data = 3;

Returns
TypeDescription
ChecksummedData.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCrc32CChecksum()

public Int64Value getCrc32CChecksum()

Integrity verification field. A CRC32C checksum of the returned ChecksummedData.data. An integrity check of ChecksummedData.data can be performed by computing the CRC32C checksum of ChecksummedData.data and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.

.google.protobuf.Int64Value crc32c_checksum = 2;

Returns
TypeDescription
Int64Value

The crc32cChecksum.

getCrc32CChecksumBuilder()

public Int64Value.Builder getCrc32CChecksumBuilder()

Integrity verification field. A CRC32C checksum of the returned ChecksummedData.data. An integrity check of ChecksummedData.data can be performed by computing the CRC32C checksum of ChecksummedData.data and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.

.google.protobuf.Int64Value crc32c_checksum = 2;

Returns
TypeDescription
Builder

getCrc32CChecksumOrBuilder()

public Int64ValueOrBuilder getCrc32CChecksumOrBuilder()

Integrity verification field. A CRC32C checksum of the returned ChecksummedData.data. An integrity check of ChecksummedData.data can be performed by computing the CRC32C checksum of ChecksummedData.data and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.

.google.protobuf.Int64Value crc32c_checksum = 2;

Returns
TypeDescription
Int64ValueOrBuilder

getData()

public ByteString getData()

Raw Data.

bytes data = 3;

Returns
TypeDescription
ByteString

The data.

getDefaultInstanceForType()

public ChecksummedData getDefaultInstanceForType()
Returns
TypeDescription
ChecksummedData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

hasCrc32CChecksum()

public boolean hasCrc32CChecksum()

Integrity verification field. A CRC32C checksum of the returned ChecksummedData.data. An integrity check of ChecksummedData.data can be performed by computing the CRC32C checksum of ChecksummedData.data and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.

.google.protobuf.Int64Value crc32c_checksum = 2;

Returns
TypeDescription
boolean

Whether the crc32cChecksum field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCrc32CChecksum(Int64Value value)

public ChecksummedData.Builder mergeCrc32CChecksum(Int64Value value)

Integrity verification field. A CRC32C checksum of the returned ChecksummedData.data. An integrity check of ChecksummedData.data can be performed by computing the CRC32C checksum of ChecksummedData.data and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.

.google.protobuf.Int64Value crc32c_checksum = 2;

Parameter
NameDescription
valueInt64Value
Returns
TypeDescription
ChecksummedData.Builder

mergeFrom(ChecksummedData other)

public ChecksummedData.Builder mergeFrom(ChecksummedData other)
Parameter
NameDescription
otherChecksummedData
Returns
TypeDescription
ChecksummedData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCrc32CChecksum(Int64Value value)

public ChecksummedData.Builder setCrc32CChecksum(Int64Value value)

Integrity verification field. A CRC32C checksum of the returned ChecksummedData.data. An integrity check of ChecksummedData.data can be performed by computing the CRC32C checksum of ChecksummedData.data and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.

.google.protobuf.Int64Value crc32c_checksum = 2;

Parameter
NameDescription
valueInt64Value
Returns
TypeDescription
ChecksummedData.Builder

setCrc32CChecksum(Int64Value.Builder builderForValue)

public ChecksummedData.Builder setCrc32CChecksum(Int64Value.Builder builderForValue)

Integrity verification field. A CRC32C checksum of the returned ChecksummedData.data. An integrity check of ChecksummedData.data can be performed by computing the CRC32C checksum of ChecksummedData.data and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.

.google.protobuf.Int64Value crc32c_checksum = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ChecksummedData.Builder

setData(ByteString value)

public ChecksummedData.Builder setData(ByteString value)

Raw Data.

bytes data = 3;

Parameter
NameDescription
valueByteString

The data to set.

Returns
TypeDescription
ChecksummedData.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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