Class MacSignResponse.Builder

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

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

    Modifier and Type
    Method
    Description
     
     
     
    The created signature.
    Integrity verification field.
    The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
    The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
    Integrity verification field.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.ByteString
    The created signature.
    com.google.protobuf.Int64Value
    Integrity verification field.
    com.google.protobuf.Int64Value.Builder
    Integrity verification field.
    com.google.protobuf.Int64ValueOrBuilder
    Integrity verification field.
    The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
    com.google.protobuf.ByteString
    The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
    The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
    int
    The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
    boolean
    Integrity verification field.
    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)
     
    mergeMacCrc32C(com.google.protobuf.Int64Value value)
    Integrity verification field.
    setMac(com.google.protobuf.ByteString value)
    The created signature.
    setMacCrc32C(com.google.protobuf.Int64Value value)
    Integrity verification field.
    setMacCrc32C(com.google.protobuf.Int64Value.Builder builderForValue)
    Integrity verification field.
    setName(String value)
    The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
    setNameBytes(com.google.protobuf.ByteString value)
    The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
    The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
    The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
    setVerifiedDataCrc32C(boolean value)
    Integrity verification field.

    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<MacSignResponse.Builder>
    • clear

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

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

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

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

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

      public MacSignResponse.Builder mergeFrom(MacSignResponse other)
    • isInitialized

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

      public MacSignResponse.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<MacSignResponse.Builder>
      Throws:
      IOException
    • 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 = 1;
      Specified by:
      getName in interface MacSignResponseOrBuilder
      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 = 1;
      Specified by:
      getNameBytes in interface MacSignResponseOrBuilder
      Returns:
      The bytes for name.
    • setName

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

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

      public MacSignResponse.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 = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getMac

      public com.google.protobuf.ByteString getMac()
       The created signature.
       
      bytes mac = 2;
      Specified by:
      getMac in interface MacSignResponseOrBuilder
      Returns:
      The mac.
    • setMac

      public MacSignResponse.Builder setMac(com.google.protobuf.ByteString value)
       The created signature.
       
      bytes mac = 2;
      Parameters:
      value - The mac to set.
      Returns:
      This builder for chaining.
    • clearMac

      public MacSignResponse.Builder clearMac()
       The created signature.
       
      bytes mac = 2;
      Returns:
      This builder for chaining.
    • hasMacCrc32C

      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;
      Specified by:
      hasMacCrc32C in interface MacSignResponseOrBuilder
      Returns:
      Whether the macCrc32c field is set.
    • getMacCrc32C

      public com.google.protobuf.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;
      Specified by:
      getMacCrc32C in interface MacSignResponseOrBuilder
      Returns:
      The macCrc32c.
    • setMacCrc32C

      public MacSignResponse.Builder setMacCrc32C(com.google.protobuf.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;
    • setMacCrc32C

      public MacSignResponse.Builder setMacCrc32C(com.google.protobuf.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;
    • mergeMacCrc32C

      public MacSignResponse.Builder mergeMacCrc32C(com.google.protobuf.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;
    • clearMacCrc32C

      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;
    • getMacCrc32CBuilder

      public com.google.protobuf.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;
    • getMacCrc32COrBuilder

      public com.google.protobuf.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;
      Specified by:
      getMacCrc32COrBuilder in interface MacSignResponseOrBuilder
    • getVerifiedDataCrc32C

      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;
      Specified by:
      getVerifiedDataCrc32C in interface MacSignResponseOrBuilder
      Returns:
      The verifiedDataCrc32c.
    • setVerifiedDataCrc32C

      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;
      Parameters:
      value - The verifiedDataCrc32c to set.
      Returns:
      This builder for chaining.
    • clearVerifiedDataCrc32C

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

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

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

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