def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
super(QueryResponsePayload, self).read(<EOL>input_buffer,<EOL>kmip_version=kmip_version<EOL>)<EOL>local_buffer = utils.BytearrayStream(input_buffer.read(self.length))<EOL>operations = []<EOL>while(self.is_tag_next(enums.Tags.OPERATION, local_buffer)):<EOL><INDENT>operation = primitives.Enumeration(<EOL>enums.Operation,<EOL>tag=enums.Tags.OPERATION<EOL>)<EOL>operation.read(local_buffer, kmip_version=kmip_version)<EOL>operations.append(operation)<EOL><DEDENT>self._operations = operations<EOL>object_types = []<EOL>while(self.is_tag_next(enums.Tags.OBJECT_TYPE, local_buffer)):<EOL><INDENT>object_type = primitives.Enumeration(<EOL>enums.ObjectType,<EOL>tag=enums.Tags.OBJECT_TYPE<EOL>)<EOL>object_type.read(local_buffer, kmip_version=kmip_version)<EOL>object_types.append(object_type)<EOL><DEDENT>self._object_types = object_types<EOL>if self.is_tag_next(enums.Tags.VENDOR_IDENTIFICATION, local_buffer):<EOL><INDENT>vendor_identification = primitives.TextString(<EOL>tag=enums.Tags.VENDOR_IDENTIFICATION<EOL>)<EOL>vendor_identification.read(<EOL>local_buffer,<EOL>kmip_version=kmip_version<EOL>)<EOL>self._vendor_identification = vendor_identification<EOL><DEDENT>if self.is_tag_next(enums.Tags.SERVER_INFORMATION, local_buffer):<EOL><INDENT>server_information = misc.ServerInformation()<EOL>server_information.read(<EOL>local_buffer,<EOL>kmip_version=kmip_version<EOL>)<EOL>self._server_information = server_information<EOL><DEDENT>application_namespaces = []<EOL>while(self.is_tag_next(<EOL>enums.Tags.APPLICATION_NAMESPACE,<EOL>local_buffer<EOL>)<EOL>):<EOL><INDENT>application_namespace = primitives.TextString(<EOL>tag=enums.Tags.APPLICATION_NAMESPACE<EOL>)<EOL>application_namespace.read(local_buffer, kmip_version=kmip_version)<EOL>application_namespaces.append(application_namespace)<EOL><DEDENT>self._application_namespaces = application_namespaces<EOL>if kmip_version >= enums.KMIPVersion.KMIP_1_1:<EOL><INDENT>extensions_information = []<EOL>while(self.is_tag_next(<EOL>enums.Tags.EXTENSION_INFORMATION,<EOL>local_buffer<EOL>)<EOL>):<EOL><INDENT>extension_information = objects.ExtensionInformation()<EOL>extension_information.read(<EOL>local_buffer,<EOL>kmip_version=kmip_version<EOL>)<EOL>extensions_information.append(extension_information)<EOL><DEDENT>self._extension_information = extensions_information<EOL><DEDENT>if kmip_version >= enums.KMIPVersion.KMIP_1_2:<EOL><INDENT>attestation_types = []<EOL>while(self.is_tag_next(enums.Tags.ATTESTATION_TYPE, local_buffer)):<EOL><INDENT>attestation_type = primitives.Enumeration(<EOL>enums.AttestationType,<EOL>tag=enums.Tags.ATTESTATION_TYPE<EOL>)<EOL>attestation_type.read(local_buffer, kmip_version=kmip_version)<EOL>attestation_types.append(attestation_type)<EOL><DEDENT>self._attestation_types = attestation_types<EOL><DEDENT>if kmip_version >= enums.KMIPVersion.KMIP_1_3:<EOL><INDENT>rngs_parameters = []<EOL>while(self.is_tag_next(enums.Tags.RNG_PARAMETERS, local_buffer)):<EOL><INDENT>rng_parameters = objects.RNGParameters()<EOL>rng_parameters.read(local_buffer, kmip_version=kmip_version)<EOL>rngs_parameters.append(rng_parameters)<EOL><DEDENT>self._rng_parameters = rngs_parameters<EOL>profiles_information = []<EOL>while(self.is_tag_next(<EOL>enums.Tags.PROFILE_INFORMATION,<EOL>local_buffer<EOL>)<EOL>):<EOL><INDENT>profile_information = objects.ProfileInformation()<EOL>profile_information.read(<EOL>local_buffer,<EOL>kmip_version=kmip_version<EOL>)<EOL>profiles_information.append(profile_information)<EOL><DEDENT>self._profile_information = profiles_information<EOL>validations_information = []<EOL>while(self.is_tag_next(<EOL>enums.Tags.VALIDATION_INFORMATION,<EOL>local_buffer<EOL>)<EOL>):<EOL><INDENT>validation_information = objects.ValidationInformation()<EOL>validation_information.read(<EOL>local_buffer,<EOL>kmip_version=kmip_version<EOL>)<EOL>validations_information.append(validation_information)<EOL><DEDENT>self._validation_information = validations_information<EOL>capabilities_information = []<EOL>while(self.is_tag_next(<EOL>enums.Tags.CAPABILITY_INFORMATION,<EOL>local_buffer<EOL>)<EOL>):<EOL><INDENT>capability_information = objects.CapabilityInformation()<EOL>capability_information.read(<EOL>local_buffer,<EOL>kmip_version=kmip_version<EOL>)<EOL>capabilities_information.append(capability_information)<EOL><DEDENT>self._capability_information = capabilities_information<EOL>client_registration_methods = []<EOL>while(self.is_tag_next(<EOL>enums.Tags.CLIENT_REGISTRATION_METHOD,<EOL>local_buffer<EOL>)<EOL>):<EOL><INDENT>client_registration_method = primitives.Enumeration(<EOL>enums.ClientRegistrationMethod,<EOL>tag=enums.Tags.CLIENT_REGISTRATION_METHOD<EOL>)<EOL>client_registration_method.read(<EOL>local_buffer,<EOL>kmip_version=kmip_version<EOL>)<EOL>client_registration_methods.append(client_registration_method)<EOL><DEDENT>self._client_registration_methods = client_registration_methods<EOL><DEDENT>if kmip_version >= enums.KMIPVersion.KMIP_2_0:<EOL><INDENT>if self.is_tag_next(enums.Tags.DEFAULTS_INFORMATION, local_buffer):<EOL><INDENT>defaults_information = objects.DefaultsInformation()<EOL>defaults_information.read(<EOL>local_buffer,<EOL>kmip_version=kmip_version<EOL>)<EOL>self._defaults_information = defaults_information<EOL><DEDENT>storage_protection_masks = []<EOL>while(self.is_tag_next(<EOL>enums.Tags.PROTECTION_STORAGE_MASK,<EOL>local_buffer<EOL>)<EOL>):<EOL><INDENT>storage_protection_mask = primitives.Integer(<EOL>tag=enums.Tags.PROTECTION_STORAGE_MASK<EOL>)<EOL>storage_protection_mask.read(<EOL>local_buffer,<EOL>kmip_version=kmip_version<EOL>)<EOL>storage_protection_masks.append(storage_protection_mask)<EOL><DEDENT>self._storage_protection_masks = storage_protection_masks<EOL><DEDENT>self.is_oversized(local_buffer)<EOL>
Read the data encoding the QueryResponsePayload object and decode it
into its constituent parts.

Args:
    input_buffer (Stream): A data stream containing encoded object
        data, supporting a read method; usually a BytearrayStream
        object.
    kmip_version (KMIPVersion): An enumeration defining the KMIP
        version with which the object will be decoded. Optional,
        defaults to KMIP 1.0.