Class DecryptResponse.Builder

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

public static final class DecryptResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<DecryptResponse.Builder> implements DecryptResponseOrBuilder
 Response message for
 [KeyManagementService.Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt].
 
Protobuf type google.cloud.kms.v1.DecryptResponse
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The decrypted data originally supplied in [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
    Integrity verification field.
    The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in decryption.
    Whether the Decryption was performed using the primary key version.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.ByteString
    The decrypted data originally supplied in [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
    com.google.protobuf.Int64Value
    Integrity verification field.
    com.google.protobuf.Int64Value.Builder
    Integrity verification field.
    com.google.protobuf.Int64ValueOrBuilder
    Integrity verification field.
    The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in decryption.
    int
    The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in decryption.
    boolean
    Whether the Decryption was performed using the primary key version.
    boolean
    Integrity verification field.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergePlaintextCrc32C(com.google.protobuf.Int64Value value)
    Integrity verification field.
    setPlaintext(com.google.protobuf.ByteString value)
    The decrypted data originally supplied in [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
    setPlaintextCrc32C(com.google.protobuf.Int64Value value)
    Integrity verification field.
    setPlaintextCrc32C(com.google.protobuf.Int64Value.Builder builderForValue)
    Integrity verification field.
    The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in decryption.
    The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in decryption.
    setUsedPrimary(boolean value)
    Whether the Decryption was performed using the primary key version.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<DecryptResponse.Builder>
    • clear

      public DecryptResponse.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<DecryptResponse.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<DecryptResponse.Builder>
    • getDefaultInstanceForType

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

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

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

      public DecryptResponse.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<DecryptResponse.Builder>
    • mergeFrom

      public DecryptResponse.Builder mergeFrom(DecryptResponse other)
    • isInitialized

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

      public DecryptResponse.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<DecryptResponse.Builder>
      Throws:
      IOException
    • getPlaintext

      public com.google.protobuf.ByteString getPlaintext()
       The decrypted data originally supplied in
       [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
       
      bytes plaintext = 1;
      Specified by:
      getPlaintext in interface DecryptResponseOrBuilder
      Returns:
      The plaintext.
    • setPlaintext

      public DecryptResponse.Builder setPlaintext(com.google.protobuf.ByteString value)
       The decrypted data originally supplied in
       [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
       
      bytes plaintext = 1;
      Parameters:
      value - The plaintext to set.
      Returns:
      This builder for chaining.
    • clearPlaintext

      public DecryptResponse.Builder clearPlaintext()
       The decrypted data originally supplied in
       [EncryptRequest.plaintext][google.cloud.kms.v1.EncryptRequest.plaintext].
       
      bytes plaintext = 1;
      Returns:
      This builder for chaining.
    • hasPlaintextCrc32C

      public boolean hasPlaintextCrc32C()
       Integrity verification field. A CRC32C checksum of the returned
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
       An integrity check of
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext]
       can be performed by computing the CRC32C checksum of
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext]
       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: receiving this response message indicates that
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] is able to
       successfully decrypt the
       [ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]. 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 plaintext_crc32c = 2;
      Specified by:
      hasPlaintextCrc32C in interface DecryptResponseOrBuilder
      Returns:
      Whether the plaintextCrc32c field is set.
    • getPlaintextCrc32C

      public com.google.protobuf.Int64Value getPlaintextCrc32C()
       Integrity verification field. A CRC32C checksum of the returned
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
       An integrity check of
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext]
       can be performed by computing the CRC32C checksum of
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext]
       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: receiving this response message indicates that
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] is able to
       successfully decrypt the
       [ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]. 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 plaintext_crc32c = 2;
      Specified by:
      getPlaintextCrc32C in interface DecryptResponseOrBuilder
      Returns:
      The plaintextCrc32c.
    • setPlaintextCrc32C

      public DecryptResponse.Builder setPlaintextCrc32C(com.google.protobuf.Int64Value value)
       Integrity verification field. A CRC32C checksum of the returned
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
       An integrity check of
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext]
       can be performed by computing the CRC32C checksum of
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext]
       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: receiving this response message indicates that
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] is able to
       successfully decrypt the
       [ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]. 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 plaintext_crc32c = 2;
    • setPlaintextCrc32C

      public DecryptResponse.Builder setPlaintextCrc32C(com.google.protobuf.Int64Value.Builder builderForValue)
       Integrity verification field. A CRC32C checksum of the returned
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
       An integrity check of
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext]
       can be performed by computing the CRC32C checksum of
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext]
       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: receiving this response message indicates that
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] is able to
       successfully decrypt the
       [ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]. 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 plaintext_crc32c = 2;
    • mergePlaintextCrc32C

      public DecryptResponse.Builder mergePlaintextCrc32C(com.google.protobuf.Int64Value value)
       Integrity verification field. A CRC32C checksum of the returned
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
       An integrity check of
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext]
       can be performed by computing the CRC32C checksum of
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext]
       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: receiving this response message indicates that
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] is able to
       successfully decrypt the
       [ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]. 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 plaintext_crc32c = 2;
    • clearPlaintextCrc32C

      public DecryptResponse.Builder clearPlaintextCrc32C()
       Integrity verification field. A CRC32C checksum of the returned
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
       An integrity check of
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext]
       can be performed by computing the CRC32C checksum of
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext]
       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: receiving this response message indicates that
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] is able to
       successfully decrypt the
       [ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]. 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 plaintext_crc32c = 2;
    • getPlaintextCrc32CBuilder

      public com.google.protobuf.Int64Value.Builder getPlaintextCrc32CBuilder()
       Integrity verification field. A CRC32C checksum of the returned
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
       An integrity check of
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext]
       can be performed by computing the CRC32C checksum of
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext]
       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: receiving this response message indicates that
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] is able to
       successfully decrypt the
       [ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]. 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 plaintext_crc32c = 2;
    • getPlaintextCrc32COrBuilder

      public com.google.protobuf.Int64ValueOrBuilder getPlaintextCrc32COrBuilder()
       Integrity verification field. A CRC32C checksum of the returned
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext].
       An integrity check of
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext]
       can be performed by computing the CRC32C checksum of
       [DecryptResponse.plaintext][google.cloud.kms.v1.DecryptResponse.plaintext]
       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: receiving this response message indicates that
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] is able to
       successfully decrypt the
       [ciphertext][google.cloud.kms.v1.DecryptRequest.ciphertext]. 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 plaintext_crc32c = 2;
      Specified by:
      getPlaintextCrc32COrBuilder in interface DecryptResponseOrBuilder
    • getUsedPrimary

      public boolean getUsedPrimary()
       Whether the Decryption was performed using the primary key version.
       
      bool used_primary = 3;
      Specified by:
      getUsedPrimary in interface DecryptResponseOrBuilder
      Returns:
      The usedPrimary.
    • setUsedPrimary

      public DecryptResponse.Builder setUsedPrimary(boolean value)
       Whether the Decryption was performed using the primary key version.
       
      bool used_primary = 3;
      Parameters:
      value - The usedPrimary to set.
      Returns:
      This builder for chaining.
    • clearUsedPrimary

      public DecryptResponse.Builder clearUsedPrimary()
       Whether the Decryption was performed using the primary key version.
       
      bool used_primary = 3;
      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 in
       decryption.
       
      .google.cloud.kms.v1.ProtectionLevel protection_level = 4;
      Specified by:
      getProtectionLevelValue in interface DecryptResponseOrBuilder
      Returns:
      The enum numeric value on the wire for protectionLevel.
    • setProtectionLevelValue

      public DecryptResponse.Builder setProtectionLevelValue(int value)
       The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
       decryption.
       
      .google.cloud.kms.v1.ProtectionLevel protection_level = 4;
      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 in
       decryption.
       
      .google.cloud.kms.v1.ProtectionLevel protection_level = 4;
      Specified by:
      getProtectionLevel in interface DecryptResponseOrBuilder
      Returns:
      The protectionLevel.
    • setProtectionLevel

      public DecryptResponse.Builder setProtectionLevel(ProtectionLevel value)
       The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
       decryption.
       
      .google.cloud.kms.v1.ProtectionLevel protection_level = 4;
      Parameters:
      value - The protectionLevel to set.
      Returns:
      This builder for chaining.
    • clearProtectionLevel

      public DecryptResponse.Builder clearProtectionLevel()
       The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used in
       decryption.
       
      .google.cloud.kms.v1.ProtectionLevel protection_level = 4;
      Returns:
      This builder for chaining.