Class GenerateRandomBytesResponse.Builder (2.49.0)

public static final class GenerateRandomBytesResponse.Builder extends GeneratedMessageV3.Builder<GenerateRandomBytesResponse.Builder> implements GenerateRandomBytesResponseOrBuilder

Response message for KeyManagementService.GenerateRandomBytes.

Protobuf type google.cloud.kms.v1.GenerateRandomBytesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateRandomBytesResponse build()
Returns
Type Description
GenerateRandomBytesResponse

buildPartial()

public GenerateRandomBytesResponse buildPartial()
Returns
Type Description
GenerateRandomBytesResponse

clear()

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

clearData()

public GenerateRandomBytesResponse.Builder clearData()

The generated data.

bytes data = 1;

Returns
Type Description
GenerateRandomBytesResponse.Builder

This builder for chaining.

clearDataCrc32C()

public GenerateRandomBytesResponse.Builder clearDataCrc32C()

Integrity verification field. A CRC32C checksum of the returned GenerateRandomBytesResponse.data. An integrity check of GenerateRandomBytesResponse.data can be performed by computing the CRC32C checksum of GenerateRandomBytesResponse.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 data_crc32c = 3;

Returns
Type Description
GenerateRandomBytesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public GenerateRandomBytesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GenerateRandomBytesResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GenerateRandomBytesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GenerateRandomBytesResponse.Builder
Overrides

clone()

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

getData()

public ByteString getData()

The generated data.

bytes data = 1;

Returns
Type Description
ByteString

The data.

getDataCrc32C()

public Int64Value getDataCrc32C()

Integrity verification field. A CRC32C checksum of the returned GenerateRandomBytesResponse.data. An integrity check of GenerateRandomBytesResponse.data can be performed by computing the CRC32C checksum of GenerateRandomBytesResponse.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 data_crc32c = 3;

Returns
Type Description
Int64Value

The dataCrc32c.

getDataCrc32CBuilder()

public Int64Value.Builder getDataCrc32CBuilder()

Integrity verification field. A CRC32C checksum of the returned GenerateRandomBytesResponse.data. An integrity check of GenerateRandomBytesResponse.data can be performed by computing the CRC32C checksum of GenerateRandomBytesResponse.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 data_crc32c = 3;

Returns
Type Description
Builder

getDataCrc32COrBuilder()

public Int64ValueOrBuilder getDataCrc32COrBuilder()

Integrity verification field. A CRC32C checksum of the returned GenerateRandomBytesResponse.data. An integrity check of GenerateRandomBytesResponse.data can be performed by computing the CRC32C checksum of GenerateRandomBytesResponse.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 data_crc32c = 3;

Returns
Type Description
Int64ValueOrBuilder

getDefaultInstanceForType()

public GenerateRandomBytesResponse getDefaultInstanceForType()
Returns
Type Description
GenerateRandomBytesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

hasDataCrc32C()

public boolean hasDataCrc32C()

Integrity verification field. A CRC32C checksum of the returned GenerateRandomBytesResponse.data. An integrity check of GenerateRandomBytesResponse.data can be performed by computing the CRC32C checksum of GenerateRandomBytesResponse.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 data_crc32c = 3;

Returns
Type Description
boolean

Whether the dataCrc32c field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDataCrc32C(Int64Value value)

public GenerateRandomBytesResponse.Builder mergeDataCrc32C(Int64Value value)

Integrity verification field. A CRC32C checksum of the returned GenerateRandomBytesResponse.data. An integrity check of GenerateRandomBytesResponse.data can be performed by computing the CRC32C checksum of GenerateRandomBytesResponse.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 data_crc32c = 3;

Parameter
Name Description
value Int64Value
Returns
Type Description
GenerateRandomBytesResponse.Builder

mergeFrom(GenerateRandomBytesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public GenerateRandomBytesResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GenerateRandomBytesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenerateRandomBytesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerateRandomBytesResponse.Builder
Overrides

setData(ByteString value)

public GenerateRandomBytesResponse.Builder setData(ByteString value)

The generated data.

bytes data = 1;

Parameter
Name Description
value ByteString

The data to set.

Returns
Type Description
GenerateRandomBytesResponse.Builder

This builder for chaining.

setDataCrc32C(Int64Value value)

public GenerateRandomBytesResponse.Builder setDataCrc32C(Int64Value value)

Integrity verification field. A CRC32C checksum of the returned GenerateRandomBytesResponse.data. An integrity check of GenerateRandomBytesResponse.data can be performed by computing the CRC32C checksum of GenerateRandomBytesResponse.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 data_crc32c = 3;

Parameter
Name Description
value Int64Value
Returns
Type Description
GenerateRandomBytesResponse.Builder

setDataCrc32C(Int64Value.Builder builderForValue)

public GenerateRandomBytesResponse.Builder setDataCrc32C(Int64Value.Builder builderForValue)

Integrity verification field. A CRC32C checksum of the returned GenerateRandomBytesResponse.data. An integrity check of GenerateRandomBytesResponse.data can be performed by computing the CRC32C checksum of GenerateRandomBytesResponse.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 data_crc32c = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
GenerateRandomBytesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public GenerateRandomBytesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GenerateRandomBytesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GenerateRandomBytesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerateRandomBytesResponse.Builder
Overrides