Class MacSignRequest.Builder

  • All Implemented Interfaces:
    MacSignRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    MacSignRequest

    public static final class MacSignRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<MacSignRequest.Builder>
    implements MacSignRequestOrBuilder
     Request message for
     [KeyManagementService.MacSign][google.cloud.kms.v1.KeyManagementService.MacSign].
     
    Protobuf type google.cloud.kms.v1.MacSignRequest
    • 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<MacSignRequest.Builder>
      • clear

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

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

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

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

        public MacSignRequest.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<MacSignRequest.Builder>
      • setField

        public MacSignRequest.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<MacSignRequest.Builder>
      • clearField

        public MacSignRequest.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<MacSignRequest.Builder>
      • clearOneof

        public MacSignRequest.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<MacSignRequest.Builder>
      • setRepeatedField

        public MacSignRequest.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<MacSignRequest.Builder>
      • addRepeatedField

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

        public MacSignRequest.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<MacSignRequest.Builder>
      • isInitialized

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

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

        public String getName()
         Required. The resource name of the
         [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
         signing.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getName in interface MacSignRequestOrBuilder
        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
         signing.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getNameBytes in interface MacSignRequestOrBuilder
        Returns:
        The bytes for name.
      • setName

        public MacSignRequest.Builder setName​(String value)
         Required. The resource name of the
         [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
         signing.
         
        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 MacSignRequest.Builder clearName()
         Required. The resource name of the
         [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
         signing.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setNameBytes

        public MacSignRequest.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. The resource name of the
         [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
         signing.
         
        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.
      • getData

        public com.google.protobuf.ByteString getData()
         Required. The data to sign. The MAC tag is computed over this data field
         based on the specific algorithm.
         
        bytes data = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getData in interface MacSignRequestOrBuilder
        Returns:
        The data.
      • setData

        public MacSignRequest.Builder setData​(com.google.protobuf.ByteString value)
         Required. The data to sign. The MAC tag is computed over this data field
         based on the specific algorithm.
         
        bytes data = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The data to set.
        Returns:
        This builder for chaining.
      • clearData

        public MacSignRequest.Builder clearData()
         Required. The data to sign. The MAC tag is computed over this data field
         based on the specific algorithm.
         
        bytes data = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • hasDataCrc32C

        public boolean hasDataCrc32C()
         Optional. An optional CRC32C checksum of the
         [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
         specified, [KeyManagementService][google.cloud.kms.v1.KeyManagementService]
         will verify the integrity of the received
         [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data] 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([MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]) is
         equal to
         [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_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 data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasDataCrc32C in interface MacSignRequestOrBuilder
        Returns:
        Whether the dataCrc32c field is set.
      • getDataCrc32C

        public com.google.protobuf.Int64Value getDataCrc32C()
         Optional. An optional CRC32C checksum of the
         [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
         specified, [KeyManagementService][google.cloud.kms.v1.KeyManagementService]
         will verify the integrity of the received
         [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data] 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([MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]) is
         equal to
         [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_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 data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDataCrc32C in interface MacSignRequestOrBuilder
        Returns:
        The dataCrc32c.
      • setDataCrc32C

        public MacSignRequest.Builder setDataCrc32C​(com.google.protobuf.Int64Value value)
         Optional. An optional CRC32C checksum of the
         [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
         specified, [KeyManagementService][google.cloud.kms.v1.KeyManagementService]
         will verify the integrity of the received
         [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data] 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([MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]) is
         equal to
         [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_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 data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL];
      • setDataCrc32C

        public MacSignRequest.Builder setDataCrc32C​(com.google.protobuf.Int64Value.Builder builderForValue)
         Optional. An optional CRC32C checksum of the
         [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
         specified, [KeyManagementService][google.cloud.kms.v1.KeyManagementService]
         will verify the integrity of the received
         [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data] 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([MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]) is
         equal to
         [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_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 data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL];
      • mergeDataCrc32C

        public MacSignRequest.Builder mergeDataCrc32C​(com.google.protobuf.Int64Value value)
         Optional. An optional CRC32C checksum of the
         [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
         specified, [KeyManagementService][google.cloud.kms.v1.KeyManagementService]
         will verify the integrity of the received
         [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data] 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([MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]) is
         equal to
         [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_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 data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL];
      • clearDataCrc32C

        public MacSignRequest.Builder clearDataCrc32C()
         Optional. An optional CRC32C checksum of the
         [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
         specified, [KeyManagementService][google.cloud.kms.v1.KeyManagementService]
         will verify the integrity of the received
         [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data] 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([MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]) is
         equal to
         [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_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 data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL];
      • getDataCrc32CBuilder

        public com.google.protobuf.Int64Value.Builder getDataCrc32CBuilder()
         Optional. An optional CRC32C checksum of the
         [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
         specified, [KeyManagementService][google.cloud.kms.v1.KeyManagementService]
         will verify the integrity of the received
         [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data] 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([MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]) is
         equal to
         [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_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 data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL];
      • getDataCrc32COrBuilder

        public com.google.protobuf.Int64ValueOrBuilder getDataCrc32COrBuilder()
         Optional. An optional CRC32C checksum of the
         [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]. If
         specified, [KeyManagementService][google.cloud.kms.v1.KeyManagementService]
         will verify the integrity of the received
         [MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data] 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([MacSignRequest.data][google.cloud.kms.v1.MacSignRequest.data]) is
         equal to
         [MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_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 data_crc32c = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDataCrc32COrBuilder in interface MacSignRequestOrBuilder
      • setUnknownFields

        public final MacSignRequest.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<MacSignRequest.Builder>
      • mergeUnknownFields

        public final MacSignRequest.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<MacSignRequest.Builder>