Class AsymmetricSignResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AsymmetricSignResponse.Builder>
com.google.cloud.kms.v1.AsymmetricSignResponse.Builder
All Implemented Interfaces:
AsymmetricSignResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AsymmetricSignResponse

public static final class AsymmetricSignResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<AsymmetricSignResponse.Builder> implements AsymmetricSignResponseOrBuilder
 Response message for
 [KeyManagementService.AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign].
 
Protobuf type google.cloud.kms.v1.AsymmetricSignResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AsymmetricSignResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AsymmetricSignResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AsymmetricSignResponse.Builder>
    • getDefaultInstanceForType

      public AsymmetricSignResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AsymmetricSignResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AsymmetricSignResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AsymmetricSignResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AsymmetricSignResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AsymmetricSignResponse.Builder>
    • mergeFrom

      public AsymmetricSignResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AsymmetricSignResponse.Builder>
      Throws:
      IOException
    • getSignature

      public com.google.protobuf.ByteString getSignature()
       The created signature.
       
      bytes signature = 1;
      Specified by:
      getSignature in interface AsymmetricSignResponseOrBuilder
      Returns:
      The signature.
    • setSignature

      public AsymmetricSignResponse.Builder setSignature(com.google.protobuf.ByteString value)
       The created signature.
       
      bytes signature = 1;
      Parameters:
      value - The signature to set.
      Returns:
      This builder for chaining.
    • clearSignature

      public AsymmetricSignResponse.Builder clearSignature()
       The created signature.
       
      bytes signature = 1;
      Returns:
      This builder for chaining.
    • hasSignatureCrc32C

      public boolean hasSignatureCrc32C()
       Integrity verification field. A CRC32C checksum of the returned
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
       An integrity check of
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature]
       can be performed by computing the CRC32C checksum of
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature]
       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 signature_crc32c = 2;
      Specified by:
      hasSignatureCrc32C in interface AsymmetricSignResponseOrBuilder
      Returns:
      Whether the signatureCrc32c field is set.
    • getSignatureCrc32C

      public com.google.protobuf.Int64Value getSignatureCrc32C()
       Integrity verification field. A CRC32C checksum of the returned
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
       An integrity check of
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature]
       can be performed by computing the CRC32C checksum of
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature]
       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 signature_crc32c = 2;
      Specified by:
      getSignatureCrc32C in interface AsymmetricSignResponseOrBuilder
      Returns:
      The signatureCrc32c.
    • setSignatureCrc32C

      public AsymmetricSignResponse.Builder setSignatureCrc32C(com.google.protobuf.Int64Value value)
       Integrity verification field. A CRC32C checksum of the returned
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
       An integrity check of
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature]
       can be performed by computing the CRC32C checksum of
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature]
       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 signature_crc32c = 2;
    • setSignatureCrc32C

      public AsymmetricSignResponse.Builder setSignatureCrc32C(com.google.protobuf.Int64Value.Builder builderForValue)
       Integrity verification field. A CRC32C checksum of the returned
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
       An integrity check of
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature]
       can be performed by computing the CRC32C checksum of
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature]
       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 signature_crc32c = 2;
    • mergeSignatureCrc32C

      public AsymmetricSignResponse.Builder mergeSignatureCrc32C(com.google.protobuf.Int64Value value)
       Integrity verification field. A CRC32C checksum of the returned
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
       An integrity check of
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature]
       can be performed by computing the CRC32C checksum of
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature]
       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 signature_crc32c = 2;
    • clearSignatureCrc32C

      public AsymmetricSignResponse.Builder clearSignatureCrc32C()
       Integrity verification field. A CRC32C checksum of the returned
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
       An integrity check of
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature]
       can be performed by computing the CRC32C checksum of
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature]
       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 signature_crc32c = 2;
    • getSignatureCrc32CBuilder

      public com.google.protobuf.Int64Value.Builder getSignatureCrc32CBuilder()
       Integrity verification field. A CRC32C checksum of the returned
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
       An integrity check of
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature]
       can be performed by computing the CRC32C checksum of
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature]
       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 signature_crc32c = 2;
    • getSignatureCrc32COrBuilder

      public com.google.protobuf.Int64ValueOrBuilder getSignatureCrc32COrBuilder()
       Integrity verification field. A CRC32C checksum of the returned
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature].
       An integrity check of
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature]
       can be performed by computing the CRC32C checksum of
       [AsymmetricSignResponse.signature][google.cloud.kms.v1.AsymmetricSignResponse.signature]
       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 signature_crc32c = 2;
      Specified by:
      getSignatureCrc32COrBuilder in interface AsymmetricSignResponseOrBuilder
    • getVerifiedDigestCrc32C

      public boolean getVerifiedDigestCrc32C()
       Integrity verification field. A flag indicating whether
       [AsymmetricSignRequest.digest_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.digest_crc32c]
       was received by
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] and used
       for the integrity verification of the
       [digest][google.cloud.kms.v1.AsymmetricSignRequest.digest]. A false value
       of this field indicates either that
       [AsymmetricSignRequest.digest_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.digest_crc32c]
       was left unset or that it was not delivered to
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService]. If you've
       set
       [AsymmetricSignRequest.digest_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.digest_crc32c]
       but this field is still false, discard the response and perform a limited
       number of retries.
       
      bool verified_digest_crc32c = 3;
      Specified by:
      getVerifiedDigestCrc32C in interface AsymmetricSignResponseOrBuilder
      Returns:
      The verifiedDigestCrc32c.
    • setVerifiedDigestCrc32C

      public AsymmetricSignResponse.Builder setVerifiedDigestCrc32C(boolean value)
       Integrity verification field. A flag indicating whether
       [AsymmetricSignRequest.digest_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.digest_crc32c]
       was received by
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] and used
       for the integrity verification of the
       [digest][google.cloud.kms.v1.AsymmetricSignRequest.digest]. A false value
       of this field indicates either that
       [AsymmetricSignRequest.digest_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.digest_crc32c]
       was left unset or that it was not delivered to
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService]. If you've
       set
       [AsymmetricSignRequest.digest_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.digest_crc32c]
       but this field is still false, discard the response and perform a limited
       number of retries.
       
      bool verified_digest_crc32c = 3;
      Parameters:
      value - The verifiedDigestCrc32c to set.
      Returns:
      This builder for chaining.
    • clearVerifiedDigestCrc32C

      public AsymmetricSignResponse.Builder clearVerifiedDigestCrc32C()
       Integrity verification field. A flag indicating whether
       [AsymmetricSignRequest.digest_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.digest_crc32c]
       was received by
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] and used
       for the integrity verification of the
       [digest][google.cloud.kms.v1.AsymmetricSignRequest.digest]. A false value
       of this field indicates either that
       [AsymmetricSignRequest.digest_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.digest_crc32c]
       was left unset or that it was not delivered to
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService]. If you've
       set
       [AsymmetricSignRequest.digest_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.digest_crc32c]
       but this field is still false, discard the response and perform a limited
       number of retries.
       
      bool verified_digest_crc32c = 3;
      Returns:
      This builder for chaining.
    • getName

      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 = 4;
      Specified by:
      getName in interface AsymmetricSignResponseOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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 = 4;
      Specified by:
      getNameBytes in interface AsymmetricSignResponseOrBuilder
      Returns:
      The bytes for name.
    • setName

      public AsymmetricSignResponse.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 = 4;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public AsymmetricSignResponse.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 = 4;
      Returns:
      This builder for chaining.
    • setNameBytes

      public AsymmetricSignResponse.Builder setNameBytes(com.google.protobuf.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 = 4;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getVerifiedDataCrc32C

      public boolean getVerifiedDataCrc32C()
       Integrity verification field. A flag indicating whether
       [AsymmetricSignRequest.data_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.data_crc32c]
       was received by
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] and used
       for the integrity verification of the
       [data][google.cloud.kms.v1.AsymmetricSignRequest.data]. A false value of
       this field indicates either that
       [AsymmetricSignRequest.data_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.data_crc32c]
       was left unset or that it was not delivered to
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService]. If you've
       set
       [AsymmetricSignRequest.data_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.data_crc32c]
       but this field is still false, discard the response and perform a limited
       number of retries.
       
      bool verified_data_crc32c = 5;
      Specified by:
      getVerifiedDataCrc32C in interface AsymmetricSignResponseOrBuilder
      Returns:
      The verifiedDataCrc32c.
    • setVerifiedDataCrc32C

      public AsymmetricSignResponse.Builder setVerifiedDataCrc32C(boolean value)
       Integrity verification field. A flag indicating whether
       [AsymmetricSignRequest.data_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.data_crc32c]
       was received by
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] and used
       for the integrity verification of the
       [data][google.cloud.kms.v1.AsymmetricSignRequest.data]. A false value of
       this field indicates either that
       [AsymmetricSignRequest.data_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.data_crc32c]
       was left unset or that it was not delivered to
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService]. If you've
       set
       [AsymmetricSignRequest.data_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.data_crc32c]
       but this field is still false, discard the response and perform a limited
       number of retries.
       
      bool verified_data_crc32c = 5;
      Parameters:
      value - The verifiedDataCrc32c to set.
      Returns:
      This builder for chaining.
    • clearVerifiedDataCrc32C

      public AsymmetricSignResponse.Builder clearVerifiedDataCrc32C()
       Integrity verification field. A flag indicating whether
       [AsymmetricSignRequest.data_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.data_crc32c]
       was received by
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] and used
       for the integrity verification of the
       [data][google.cloud.kms.v1.AsymmetricSignRequest.data]. A false value of
       this field indicates either that
       [AsymmetricSignRequest.data_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.data_crc32c]
       was left unset or that it was not delivered to
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService]. If you've
       set
       [AsymmetricSignRequest.data_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.data_crc32c]
       but this field is still false, discard the response and perform a limited
       number of retries.
       
      bool verified_data_crc32c = 5;
      Returns:
      This builder for chaining.
    • getProtectionLevelValue

      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 = 6;
      Specified by:
      getProtectionLevelValue in interface AsymmetricSignResponseOrBuilder
      Returns:
      The enum numeric value on the wire for protectionLevel.
    • setProtectionLevelValue

      public AsymmetricSignResponse.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 = 6;
      Parameters:
      value - The enum numeric value on the wire for protectionLevel to set.
      Returns:
      This builder for chaining.
    • getProtectionLevel

      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 = 6;
      Specified by:
      getProtectionLevel in interface AsymmetricSignResponseOrBuilder
      Returns:
      The protectionLevel.
    • setProtectionLevel

      public AsymmetricSignResponse.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 = 6;
      Parameters:
      value - The protectionLevel to set.
      Returns:
      This builder for chaining.
    • clearProtectionLevel

      public AsymmetricSignResponse.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 = 6;
      Returns:
      This builder for chaining.