Class 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.GeneratedMessageV3.Builder<MacSignResponse.Builder>
    implements MacSignResponseOrBuilder
     Response message for
     [KeyManagementService.MacSign][google.cloud.kms.v1.KeyManagementService.MacSign].
     
    Protobuf type google.cloud.kms.v1.MacSignResponse
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public MacSignResponse.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<MacSignResponse.Builder>
      • setField

        public MacSignResponse.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<MacSignResponse.Builder>
      • clearField

        public MacSignResponse.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<MacSignResponse.Builder>
      • clearOneof

        public MacSignResponse.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MacSignResponse.Builder>
      • setRepeatedField

        public MacSignResponse.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MacSignResponse.Builder>
      • addRepeatedField

        public MacSignResponse.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MacSignResponse.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • setUnknownFields

        public final MacSignResponse.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MacSignResponse.Builder>
      • mergeUnknownFields

        public final MacSignResponse.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MacSignResponse.Builder>