Class GenerateRandomBytesResponse.Builder (2.8.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateRandomBytesResponse build()
Returns
TypeDescription
GenerateRandomBytesResponse

buildPartial()

public GenerateRandomBytesResponse buildPartial()
Returns
TypeDescription
GenerateRandomBytesResponse

clear()

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

clearData()

public GenerateRandomBytesResponse.Builder clearData()

The generated data.

bytes data = 1;

Returns
TypeDescription
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
TypeDescription
GenerateRandomBytesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getData()

public ByteString getData()

The generated data.

bytes data = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Int64ValueOrBuilder

getDefaultInstanceForType()

public GenerateRandomBytesResponse getDefaultInstanceForType()
Returns
TypeDescription
GenerateRandomBytesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the dataCrc32c field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueInt64Value
Returns
TypeDescription
GenerateRandomBytesResponse.Builder

mergeFrom(GenerateRandomBytesResponse other)

public GenerateRandomBytesResponse.Builder mergeFrom(GenerateRandomBytesResponse other)
Parameter
NameDescription
otherGenerateRandomBytesResponse
Returns
TypeDescription
GenerateRandomBytesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setData(ByteString value)

public GenerateRandomBytesResponse.Builder setData(ByteString value)

The generated data.

bytes data = 1;

Parameter
NameDescription
valueByteString

The data to set.

Returns
TypeDescription
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
NameDescription
valueInt64Value
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
GenerateRandomBytesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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