public static final class MacSignResponse.Builder extends GeneratedMessageV3.Builder<MacSignResponse.Builder> implements MacSignResponseOrBuilder
Response message for [KeyManagementService.MacSign][google.cloud.kms.v1.KeyManagementService.MacSign].Protobuf type
google.cloud.kms.v1.MacSignResponse
Modifier and Type | Method and Description |
---|---|
MacSignResponse.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
MacSignResponse |
build() |
MacSignResponse |
buildPartial() |
MacSignResponse.Builder |
clear() |
MacSignResponse.Builder |
clearField(Descriptors.FieldDescriptor field) |
MacSignResponse.Builder |
clearMac()
The created signature.
|
MacSignResponse.Builder |
clearMacCrc32C()
Integrity verification field.
|
MacSignResponse.Builder |
clearName()
The resource name of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
|
MacSignResponse.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
MacSignResponse.Builder |
clearProtectionLevel()
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
|
MacSignResponse.Builder |
clearVerifiedDataCrc32C()
Integrity verification field.
|
MacSignResponse.Builder |
clone() |
MacSignResponse |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
ByteString |
getMac()
The created signature.
|
Int64Value |
getMacCrc32C()
Integrity verification field.
|
Int64Value.Builder |
getMacCrc32CBuilder()
Integrity verification field.
|
Int64ValueOrBuilder |
getMacCrc32COrBuilder()
Integrity verification field.
|
String |
getName()
The resource name of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
|
ByteString |
getNameBytes()
The resource name of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
|
ProtectionLevel |
getProtectionLevel()
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
|
int |
getProtectionLevelValue()
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
|
boolean |
getVerifiedDataCrc32C()
Integrity verification field.
|
boolean |
hasMacCrc32C()
Integrity verification field.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
MacSignResponse.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
MacSignResponse.Builder |
mergeFrom(MacSignResponse other) |
MacSignResponse.Builder |
mergeFrom(Message other) |
MacSignResponse.Builder |
mergeMacCrc32C(Int64Value value)
Integrity verification field.
|
MacSignResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
MacSignResponse.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
MacSignResponse.Builder |
setMac(ByteString value)
The created signature.
|
MacSignResponse.Builder |
setMacCrc32C(Int64Value.Builder builderForValue)
Integrity verification field.
|
MacSignResponse.Builder |
setMacCrc32C(Int64Value value)
Integrity verification field.
|
MacSignResponse.Builder |
setName(String value)
The resource name of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
|
MacSignResponse.Builder |
setNameBytes(ByteString value)
The resource name of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
|
MacSignResponse.Builder |
setProtectionLevel(ProtectionLevel value)
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
|
MacSignResponse.Builder |
setProtectionLevelValue(int value)
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
|
MacSignResponse.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
MacSignResponse.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
MacSignResponse.Builder |
setVerifiedDataCrc32C(boolean value)
Integrity verification field.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<MacSignResponse.Builder>
public MacSignResponse.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<MacSignResponse.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<MacSignResponse.Builder>
public MacSignResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public MacSignResponse build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public MacSignResponse buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public MacSignResponse.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<MacSignResponse.Builder>
public MacSignResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<MacSignResponse.Builder>
public MacSignResponse.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<MacSignResponse.Builder>
public MacSignResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<MacSignResponse.Builder>
public MacSignResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<MacSignResponse.Builder>
public MacSignResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<MacSignResponse.Builder>
public MacSignResponse.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<MacSignResponse.Builder>
public MacSignResponse.Builder mergeFrom(MacSignResponse other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<MacSignResponse.Builder>
public MacSignResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<MacSignResponse.Builder>
IOException
public String getName()
The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing. Check this field to verify that the intended resource was used for signing.
string name = 1;
getName
in interface MacSignResponseOrBuilder
public ByteString getNameBytes()
The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing. Check this field to verify that the intended resource was used for signing.
string name = 1;
getNameBytes
in interface MacSignResponseOrBuilder
public MacSignResponse.Builder setName(String value)
The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing. Check this field to verify that the intended resource was used for signing.
string name = 1;
value
- The name to set.public MacSignResponse.Builder clearName()
The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing. Check this field to verify that the intended resource was used for signing.
string name = 1;
public MacSignResponse.Builder setNameBytes(ByteString value)
The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing. Check this field to verify that the intended resource was used for signing.
string name = 1;
value
- The bytes for name to set.public ByteString getMac()
The created signature.
bytes mac = 2;
getMac
in interface MacSignResponseOrBuilder
public MacSignResponse.Builder setMac(ByteString value)
The created signature.
bytes mac = 2;
value
- The mac to set.public MacSignResponse.Builder clearMac()
The created signature.
bytes mac = 2;
public boolean hasMacCrc32C()
Integrity verification field. A CRC32C checksum of the returned [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An integrity check of [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac] can be performed by computing the CRC32C checksum of [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac] 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 mac_crc32c = 3;
hasMacCrc32C
in interface MacSignResponseOrBuilder
public Int64Value getMacCrc32C()
Integrity verification field. A CRC32C checksum of the returned [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An integrity check of [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac] can be performed by computing the CRC32C checksum of [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac] 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 mac_crc32c = 3;
getMacCrc32C
in interface MacSignResponseOrBuilder
public MacSignResponse.Builder setMacCrc32C(Int64Value value)
Integrity verification field. A CRC32C checksum of the returned [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An integrity check of [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac] can be performed by computing the CRC32C checksum of [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac] 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 mac_crc32c = 3;
public MacSignResponse.Builder setMacCrc32C(Int64Value.Builder builderForValue)
Integrity verification field. A CRC32C checksum of the returned [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An integrity check of [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac] can be performed by computing the CRC32C checksum of [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac] 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 mac_crc32c = 3;
public MacSignResponse.Builder mergeMacCrc32C(Int64Value value)
Integrity verification field. A CRC32C checksum of the returned [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An integrity check of [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac] can be performed by computing the CRC32C checksum of [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac] 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 mac_crc32c = 3;
public MacSignResponse.Builder clearMacCrc32C()
Integrity verification field. A CRC32C checksum of the returned [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An integrity check of [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac] can be performed by computing the CRC32C checksum of [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac] 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 mac_crc32c = 3;
public Int64Value.Builder getMacCrc32CBuilder()
Integrity verification field. A CRC32C checksum of the returned [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An integrity check of [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac] can be performed by computing the CRC32C checksum of [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac] 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 mac_crc32c = 3;
public Int64ValueOrBuilder getMacCrc32COrBuilder()
Integrity verification field. A CRC32C checksum of the returned [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An integrity check of [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac] can be performed by computing the CRC32C checksum of [MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac] 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 mac_crc32c = 3;
getMacCrc32COrBuilder
in interface MacSignResponseOrBuilder
public boolean getVerifiedDataCrc32C()
Integrity verification field. A flag indicating whether [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_crc32c] was received by [KeyManagementService][google.cloud.kms.v1.KeyManagementService] and used for the integrity verification of the [data][google.cloud.kms.v1.MacSignRequest.data]. A false value of this field indicates either that [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_crc32c] was left unset or that it was not delivered to [KeyManagementService][google.cloud.kms.v1.KeyManagementService]. If you've set [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_crc32c] but this field is still false, discard the response and perform a limited number of retries.
bool verified_data_crc32c = 4;
getVerifiedDataCrc32C
in interface MacSignResponseOrBuilder
public MacSignResponse.Builder setVerifiedDataCrc32C(boolean value)
Integrity verification field. A flag indicating whether [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_crc32c] was received by [KeyManagementService][google.cloud.kms.v1.KeyManagementService] and used for the integrity verification of the [data][google.cloud.kms.v1.MacSignRequest.data]. A false value of this field indicates either that [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_crc32c] was left unset or that it was not delivered to [KeyManagementService][google.cloud.kms.v1.KeyManagementService]. If you've set [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_crc32c] but this field is still false, discard the response and perform a limited number of retries.
bool verified_data_crc32c = 4;
value
- The verifiedDataCrc32c to set.public MacSignResponse.Builder clearVerifiedDataCrc32C()
Integrity verification field. A flag indicating whether [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_crc32c] was received by [KeyManagementService][google.cloud.kms.v1.KeyManagementService] and used for the integrity verification of the [data][google.cloud.kms.v1.MacSignRequest.data]. A false value of this field indicates either that [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_crc32c] was left unset or that it was not delivered to [KeyManagementService][google.cloud.kms.v1.KeyManagementService]. If you've set [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_crc32c] but this field is still false, discard the response and perform a limited number of retries.
bool verified_data_crc32c = 4;
public int getProtectionLevelValue()
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
.google.cloud.kms.v1.ProtectionLevel protection_level = 5;
getProtectionLevelValue
in interface MacSignResponseOrBuilder
public MacSignResponse.Builder setProtectionLevelValue(int value)
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
.google.cloud.kms.v1.ProtectionLevel protection_level = 5;
value
- The enum numeric value on the wire for protectionLevel to set.public ProtectionLevel getProtectionLevel()
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
.google.cloud.kms.v1.ProtectionLevel protection_level = 5;
getProtectionLevel
in interface MacSignResponseOrBuilder
public MacSignResponse.Builder setProtectionLevel(ProtectionLevel value)
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
.google.cloud.kms.v1.ProtectionLevel protection_level = 5;
value
- The protectionLevel to set.public MacSignResponse.Builder clearProtectionLevel()
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
.google.cloud.kms.v1.ProtectionLevel protection_level = 5;
public final MacSignResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<MacSignResponse.Builder>
public final MacSignResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<MacSignResponse.Builder>
Copyright © 2022 Google LLC. All rights reserved.