Class DecapsulateRequest.Builder

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

public static final class DecapsulateRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<DecapsulateRequest.Builder> implements DecapsulateRequestOrBuilder
 Request message for
 [KeyManagementService.Decapsulate][google.cloud.kms.v1.KeyManagementService.Decapsulate].
 
Protobuf type google.cloud.kms.v1.DecapsulateRequest
  • 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<DecapsulateRequest.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<DecapsulateRequest.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<DecapsulateRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public DecapsulateRequest.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<DecapsulateRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The resource name of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
       decapsulation.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface DecapsulateRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The resource name of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
       decapsulation.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface DecapsulateRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public DecapsulateRequest.Builder setName(String value)
       Required. The resource name of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
       decapsulation.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public DecapsulateRequest.Builder clearName()
       Required. The resource name of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
       decapsulation.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public DecapsulateRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the
       [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
       decapsulation.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getCiphertext

      public com.google.protobuf.ByteString getCiphertext()
       Required. The ciphertext produced from encapsulation with the
       named [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public
       key(s).
       
      bytes ciphertext = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCiphertext in interface DecapsulateRequestOrBuilder
      Returns:
      The ciphertext.
    • setCiphertext

      public DecapsulateRequest.Builder setCiphertext(com.google.protobuf.ByteString value)
       Required. The ciphertext produced from encapsulation with the
       named [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public
       key(s).
       
      bytes ciphertext = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The ciphertext to set.
      Returns:
      This builder for chaining.
    • clearCiphertext

      public DecapsulateRequest.Builder clearCiphertext()
       Required. The ciphertext produced from encapsulation with the
       named [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public
       key(s).
       
      bytes ciphertext = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasCiphertextCrc32C

      public boolean hasCiphertextCrc32C()
       Optional. A CRC32C checksum of the
       [DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext].
       If specified,
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
       verify the integrity of the received
       [DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext]
       using this checksum.
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
       report an error if the checksum verification fails. If you receive a
       checksum error, your client should verify that
       CRC32C([DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext])
       is equal to
       [DecapsulateRequest.ciphertext_crc32c][google.cloud.kms.v1.DecapsulateRequest.ciphertext_crc32c],
       and if so, 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 ciphertext_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCiphertextCrc32C in interface DecapsulateRequestOrBuilder
      Returns:
      Whether the ciphertextCrc32c field is set.
    • getCiphertextCrc32C

      public com.google.protobuf.Int64Value getCiphertextCrc32C()
       Optional. A CRC32C checksum of the
       [DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext].
       If specified,
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
       verify the integrity of the received
       [DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext]
       using this checksum.
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
       report an error if the checksum verification fails. If you receive a
       checksum error, your client should verify that
       CRC32C([DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext])
       is equal to
       [DecapsulateRequest.ciphertext_crc32c][google.cloud.kms.v1.DecapsulateRequest.ciphertext_crc32c],
       and if so, 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 ciphertext_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCiphertextCrc32C in interface DecapsulateRequestOrBuilder
      Returns:
      The ciphertextCrc32c.
    • setCiphertextCrc32C

      public DecapsulateRequest.Builder setCiphertextCrc32C(com.google.protobuf.Int64Value value)
       Optional. A CRC32C checksum of the
       [DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext].
       If specified,
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
       verify the integrity of the received
       [DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext]
       using this checksum.
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
       report an error if the checksum verification fails. If you receive a
       checksum error, your client should verify that
       CRC32C([DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext])
       is equal to
       [DecapsulateRequest.ciphertext_crc32c][google.cloud.kms.v1.DecapsulateRequest.ciphertext_crc32c],
       and if so, 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 ciphertext_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setCiphertextCrc32C

      public DecapsulateRequest.Builder setCiphertextCrc32C(com.google.protobuf.Int64Value.Builder builderForValue)
       Optional. A CRC32C checksum of the
       [DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext].
       If specified,
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
       verify the integrity of the received
       [DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext]
       using this checksum.
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
       report an error if the checksum verification fails. If you receive a
       checksum error, your client should verify that
       CRC32C([DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext])
       is equal to
       [DecapsulateRequest.ciphertext_crc32c][google.cloud.kms.v1.DecapsulateRequest.ciphertext_crc32c],
       and if so, 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 ciphertext_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeCiphertextCrc32C

      public DecapsulateRequest.Builder mergeCiphertextCrc32C(com.google.protobuf.Int64Value value)
       Optional. A CRC32C checksum of the
       [DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext].
       If specified,
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
       verify the integrity of the received
       [DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext]
       using this checksum.
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
       report an error if the checksum verification fails. If you receive a
       checksum error, your client should verify that
       CRC32C([DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext])
       is equal to
       [DecapsulateRequest.ciphertext_crc32c][google.cloud.kms.v1.DecapsulateRequest.ciphertext_crc32c],
       and if so, 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 ciphertext_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearCiphertextCrc32C

      public DecapsulateRequest.Builder clearCiphertextCrc32C()
       Optional. A CRC32C checksum of the
       [DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext].
       If specified,
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
       verify the integrity of the received
       [DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext]
       using this checksum.
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
       report an error if the checksum verification fails. If you receive a
       checksum error, your client should verify that
       CRC32C([DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext])
       is equal to
       [DecapsulateRequest.ciphertext_crc32c][google.cloud.kms.v1.DecapsulateRequest.ciphertext_crc32c],
       and if so, 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 ciphertext_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getCiphertextCrc32CBuilder

      public com.google.protobuf.Int64Value.Builder getCiphertextCrc32CBuilder()
       Optional. A CRC32C checksum of the
       [DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext].
       If specified,
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
       verify the integrity of the received
       [DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext]
       using this checksum.
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
       report an error if the checksum verification fails. If you receive a
       checksum error, your client should verify that
       CRC32C([DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext])
       is equal to
       [DecapsulateRequest.ciphertext_crc32c][google.cloud.kms.v1.DecapsulateRequest.ciphertext_crc32c],
       and if so, 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 ciphertext_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getCiphertextCrc32COrBuilder

      public com.google.protobuf.Int64ValueOrBuilder getCiphertextCrc32COrBuilder()
       Optional. A CRC32C checksum of the
       [DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext].
       If specified,
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
       verify the integrity of the received
       [DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext]
       using this checksum.
       [KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
       report an error if the checksum verification fails. If you receive a
       checksum error, your client should verify that
       CRC32C([DecapsulateRequest.ciphertext][google.cloud.kms.v1.DecapsulateRequest.ciphertext])
       is equal to
       [DecapsulateRequest.ciphertext_crc32c][google.cloud.kms.v1.DecapsulateRequest.ciphertext_crc32c],
       and if so, 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 ciphertext_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCiphertextCrc32COrBuilder in interface DecapsulateRequestOrBuilder