'The wire format is an AnyValue message.'

def ConvertFromWireFormat(self, value, container=None):

    result = AnyValue()
    ReadIntoObject(value[2], 0, result)
    converted_value = self._type(container)
    if result.type_url.startswith('type.googleapis.com/google.protobuf.'):
        wrapper_cls = self.__class__.WRAPPER_BY_TYPE[converted_value.data_store_type]
        wrapper_value = wrapper_cls()
        wrapper_value.ParseFromString(result.value)
        return converted_value.FromDatastoreValue(wrapper_value.value)
    else:
        return converted_value.FromSerializedString(result.value)
