def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
local_buffer = utils.BytearrayStream()<EOL>if self._located_items:<EOL><INDENT>self._located_items.write(local_buffer, kmip_version=kmip_version)<EOL><DEDENT>if self._unique_identifiers:<EOL><INDENT>for unique_identifier in self._unique_identifiers:<EOL><INDENT>unique_identifier.write(<EOL>local_buffer,<EOL>kmip_version=kmip_version<EOL>)<EOL><DEDENT><DEDENT>self.length = local_buffer.length()<EOL>super(LocateResponsePayload, self).write(<EOL>output_buffer,<EOL>kmip_version=kmip_version<EOL>)<EOL>output_buffer.write(local_buffer.buffer)<EOL>
Write the data encoding the Locate response payload to a buffer.

Args:
    output_buffer (stream): A data buffer in which to encode object
        data, supporting a write method.
    kmip_version (KMIPVersion): An enumeration defining the KMIP
        version with which the object will be encoded. Optional,
        defaults to KMIP 1.0.